comparison configure.ac @ 744:c7fa50576c70

Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as they seem to call it.) Also removed support for the "old" libSIDPlay2 API, only supporting the "new" CVS trunk COMI API for the old libSIDPlay2. We'll see how that goes ..
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 05 Nov 2012 17:24:16 +0200
parents 99ed62858072
children 9dc5378cc806
comparison
equal deleted inserted replaced
743:99ed62858072 744:c7fa50576c70
20 dnl *** 20 dnl ***
21 AH_TEMPLATE([HAVE_SONG_POSITION], [Define if you have XMMS patched with the songpos patch.]) 21 AH_TEMPLATE([HAVE_SONG_POSITION], [Define if you have XMMS patched with the songpos patch.])
22 AH_TEMPLATE([HAVE_XMMSEXTRA], [Define if you have XMMS version 1.2.5 or later and you want XMMS-SID to support some extra features.]) 22 AH_TEMPLATE([HAVE_XMMSEXTRA], [Define if you have XMMS version 1.2.5 or later and you want XMMS-SID to support some extra features.])
23 AH_TEMPLATE([HAVE_SIDPLAY1], [Define if you have and want to use libSIDPlay 1]) 23 AH_TEMPLATE([HAVE_SIDPLAY1], [Define if you have and want to use libSIDPlay 1])
24 AH_TEMPLATE([HAVE_SIDPLAY2], [Define if you have and want to use libSIDPlay 2]) 24 AH_TEMPLATE([HAVE_SIDPLAY2], [Define if you have and want to use libSIDPlay 2])
25 AH_TEMPLATE([HAVE_SIDPLAY2_COMI], [Define if you have libSIDPlay2 v2.2.x or later (or CVS version) with the new COMI API])
26 AH_TEMPLATE([HAVE_SIDPLAY2_DISTORTION], [Define if you have libSIDPlay2 + reSID with Antti Lankila's distortion patches (v10 and possibly later) http://bel.fi/~alankila/c64-sw/])
27 AH_TEMPLATE([HAVE_SIDPLAY2_FP], [Define if you have and want to use libSIDPlay 2-FP http://sourceforge.net/projects/sidplay-residfp/]) 25 AH_TEMPLATE([HAVE_SIDPLAY2_FP], [Define if you have and want to use libSIDPlay 2-FP http://sourceforge.net/projects/sidplay-residfp/])
28 AH_TEMPLATE([HAVE_THEMETUNE], [Define if you want to build code to play XMMS-SID theme SID-tune. The tune needs to be installed too, though.]) 26 AH_TEMPLATE([HAVE_THEMETUNE], [Define if you want to build code to play XMMS-SID theme SID-tune. The tune needs to be installed too, though.])
29 27
30 28
31 dnl *** 29 dnl ***
96 XS_ARG_WITH([sidplay1], [libSIDPlay1], [XS_PATH_LIBSIDPLAY1]) 94 XS_ARG_WITH([sidplay1], [libSIDPlay1], [XS_PATH_LIBSIDPLAY1])
97 if test "x$xs_have_sidplay1" = "xyes"; then 95 if test "x$xs_have_sidplay1" = "xyes"; then
98 AC_DEFINE([HAVE_SIDPLAY1]) 96 AC_DEFINE([HAVE_SIDPLAY1])
99 fi 97 fi
100 98
99
100 xs_have_sidplay2_api=""
101 XS_ARG_WITH([sidplay2], [libSIDPlay2], [XS_PATH_LIBSIDPLAY2]) 101 XS_ARG_WITH([sidplay2], [libSIDPlay2], [XS_PATH_LIBSIDPLAY2])
102 xs_have_sidplay2_api="" 102
103 xs_have_distortion="no" 103 if test "x$xs_have_sidplayfp" = "xyes"; then
104 if test "x$xs_have_sidplay2" = "xyes"; then 104 xs_have_sidplay2_api="(FP)"
105 xs_have_sidplay2_lib="yes"
105 AC_DEFINE([HAVE_SIDPLAY2]) 106 AC_DEFINE([HAVE_SIDPLAY2])
107 AC_DEFINE([HAVE_SIDPLAY2_FP])
108 AC_DEFINE([HAVE_HARDSID_BUILDER])
109 AC_DEFINE([HAVE_RESID_BUILDER])
110
111 elif test "x$xs_have_sidplay2" = "xyes"; then
112 xs_have_sidplay2_api="(normal COMI)"
113 xs_have_sidplay2_lib="yes"
114 AC_DEFINE([HAVE_SIDPLAY2])
115
106 AC_LANG_PUSH([C++]) 116 AC_LANG_PUSH([C++])
107 117
108 XS_BUILDERS_CHECK 118 XS_BUILDERS_CHECK
109 xs_builders_available="no" 119 xs_builders_available="no"
110 XS_BUILDERS_FIND([reSID], [resid-builder], [resid.h], [ReSIDBuilder]) 120 XS_BUILDERS_FIND([reSID], [resid-builder], [resid.h], [ReSIDBuilder])
111 XS_BUILDERS_FIND([HardSID], [hardsid-builder], [hardsid.h], [HardSID]) 121 XS_BUILDERS_FIND([HardSID], [hardsid-builder], [hardsid.h], [HardSID])
112 if test "x$xs_builders_available" = "xno"; then 122 if test "x$xs_builders_available" = "xno"; then
113 AC_MSG_ERROR([No builder modules were found in the sidbuilders directory!]); 123 AC_MSG_ERROR([No builder modules were found in the sidbuilders directory!]);
114 fi 124 fi
115 125
116 dnl *** Check for new COMI API
117 AC_MSG_CHECKING([libSIDPlay2 API style])
118 tmp_CPPFLAGS="$CPPFLAGS"
119 if test -d "$xs_sidplay2_includes"; then
120 CPPFLAGS="$CPPFLAGS -I${xs_sidplay2_includes}"
121 fi
122 AC_EGREP_HEADER([::Iid], [sidplay/sidplay2.h],
123 [xs_have_sidplay2_api="yes"],
124 [
125 AC_EGREP_HEADER([SIDIID], [sidplay/sidplay2.h],
126 [xs_have_sidplay2_api="yes"],
127 [xs_have_sidplay2_api="(old style API)"])
128 ]
129 )
130 if test "x$xs_have_sidplay2_api" = "xyes"; then
131 AC_LINK_IFELSE([
132 AC_LANG_PROGRAM(
133 [#include <sidplay/sidunknown.h>],
134 [ISidUnknown *i;])
135 ], [
136 xs_have_sidplay2_api="(new COMI style API)"
137 AC_DEFINE([HAVE_SIDPLAY2_COMI], [1], [Define if using new libSIDPlay2 with COM-style API.])
138 ],[
139 xs_have_sidplay2_api="(broken version!)"
140 ])
141 fi
142 AC_MSG_RESULT([$xs_have_sidplay2_api])
143
144 AC_LANG_POP([C++]) 126 AC_LANG_POP([C++])
145
146 dnl *** Check for distortion patch
147 AC_MSG_CHECKING([libSIDPlay2+reSID distortion patch])
148 AC_EGREP_HEADER([minimumfetresistance], [sidplay/sidtypes.h], [
149 xs_have_distortion="yes"
150 AC_DEFINE([HAVE_SIDPLAY2_DISTORTION])
151 ],[
152 xs_have_distortion="no"
153 ])
154 AC_MSG_RESULT([$xs_have_distortion])
155 CPPFLAGS="$tmp_CPPFLAGS"
156 fi 127 fi
157 128
158 129
159 dnl *** 130 dnl ***
160 dnl *** Check if we have some emulator library available? 131 dnl *** Check if we have some emulator library available?
161 dnl *** 132 dnl ***
162 if test "x$xs_have_sidplay1" != "xyes" -a "x$xs_have_sidplayfp" != "xyes"; then 133 if test "x$xs_have_sidplay1" != "xyes" -a "x$xs_have_sidplay2" != "xyes" -a "x$xs_have_sidplayfp" != "xyes"; then
163 AC_MSG_ERROR([Either libSIDPlay1 or libSIDPlay2-FP is required! Please read INSTALL for more information!]) 134 AC_MSG_ERROR([Either libSIDPlay1 or libSIDPlay2/libSIDPlay-FP is required! Please read INSTALL for more information!])
164 fi 135 fi
165 136
166 137
167 dnl *** 138 dnl ***
168 dnl *** Song position patch check 139 dnl *** Song position patch check
218 189
219 Installation directory : $libdir 190 Installation directory : $libdir
220 XMMS >= v1.2.5 extra features : $xs_have_xmmsextra 191 XMMS >= v1.2.5 extra features : $xs_have_xmmsextra
221 Song-position patch : $xs_have_songpos 192 Song-position patch : $xs_have_songpos
222 libSIDPlay 1 support : $xs_have_sidplay1 193 libSIDPlay 1 support : $xs_have_sidplay1
223 libSIDPlay 2 support : $xs_have_sidplay2 $xs_have_sidplay2_api 194 libSIDPlay 2 support : $xs_have_sidplay2_lib $xs_have_sidplay2_api
224 With distortion patch? : $xs_have_distortion
225 Included builders : $xs_builders 195 Included builders : $xs_builders
226 XMMS-SID theme SID-tune : $xs_have_themetune 196 XMMS-SID theme SID-tune : $xs_have_themetune
227 Translations (i18n/nls) : $USE_NLS 197 Translations (i18n/nls) : $USE_NLS
228 ]) 198 ])
229
230 if test "x$xs_have_distortion" = "xyes"; then
231 echo "***"
232 echo "*** WARNING! A version of libSIDPlay2 with Antti Lankila's distortion"
233 echo "*** patches has been detected. Due to the fast-changing nature of this"
234 echo "*** particular patch-set, it is possible that this version of XMMS-SID"
235 echo "*** may be incompatible."
236 echo "***"
237 echo "*** If you encounter any compilation problems, try a non-patched"
238 echo "*** version of libSIDPlay2+reSID."
239 echo "***"
240 fi