comparison configure.in @ 254:d3a4d35f2a8f

Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 21 Dec 2004 21:04:02 +0000
parents a66c634b222a
children 5b107e78c7c0
comparison
equal deleted inserted replaced
253:fa463b3ca57b 254:d3a4d35f2a8f
20 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.]) 20 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.])
21 AH_TEMPLATE([HAVE_SIDPLAY1],[Define if you have and want to use libSIDPlay 1]) 21 AH_TEMPLATE([HAVE_SIDPLAY1],[Define if you have and want to use libSIDPlay 1])
22 AH_TEMPLATE([HAVE_SIDPLAY2],[Define if you have and want to use libSIDPlay 2]) 22 AH_TEMPLATE([HAVE_SIDPLAY2],[Define if you have and want to use libSIDPlay 2])
23 AH_TEMPLATE([HAVE_RESID_BUILDER],[Define if you have reSID with libSIDPlay 2]) 23 AH_TEMPLATE([HAVE_RESID_BUILDER],[Define if you have reSID with libSIDPlay 2])
24 AH_TEMPLATE([HAVE_HARDSID_BUILDER],[Define if you have HardSID with libSIDPlay 2]) 24 AH_TEMPLATE([HAVE_HARDSID_BUILDER],[Define if you have HardSID with libSIDPlay 2])
25 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([THEMETUNE_FILE],[Path and filename of the XMMS-SID theme song])
25 27
26 28
27 dnl *** 29 dnl ***
28 dnl *** Some general checks 30 dnl *** Some general checks
29 dnl *** 31 dnl ***
68 AC_TYPE_SIGNAL 70 AC_TYPE_SIGNAL
69 AC_FUNC_STAT 71 AC_FUNC_STAT
70 AC_CHECK_FUNCS([memset strcasecmp strerror]) 72 AC_CHECK_FUNCS([memset strcasecmp strerror])
71 AC_CHECK_TYPES([size_t]) 73 AC_CHECK_TYPES([size_t])
72 74
75
76 dnl ***
77 dnl *** Enable or disable themetune support/installation
78 dnl ***
79 AC_ARG_ENABLE(themetune,
80 [
81 --disable-themetune Disable XMMS-SID theme song-related
82 code and installation of SID-tune.
83 The tune is not under GNU GPL, refer
84 to documentation (README) for info.
85 ],
86 [
87 if test "x$enableval" = xyes; then
88 OPT_THEMETUNE=yes
89 else
90 if test "x$enableval" = xno; then
91 OPT_THEMETUNE=no
92 else
93 OPT_THEMETUNE=no
94 fi
95 fi
96 ],[
97 OPT_THEMETUNE=yes
98 ])
99
100 dnl *** Bits and pieces stolen from Glade generated configure.in
101 if test "x$OPT_THEMETUNE" = xyes; then
102 THEMETUNE_FILE="Kummatti_City.sid"
103
104 if test "x${datadir}" = 'x${prefix}/share'; then
105 if test "x${prefix}" = "xNONE"; then
106 AC_DEFINE_UNQUOTED([THEMETUNE_FILE], "${ac_default_prefix}/share/${PACKAGE}/${THEMETUNE_FILE}")
107 else
108 AC_DEFINE_UNQUOTED([THEMETUNE_FILE], "${prefix}/share/${PACKAGE}/${THEMETUNE_FILE}")
109 fi
110 else
111 AC_DEFINE_UNQUOTED([THEMETUNE_FILE], "${datadir}/${PACKAGE}/${THEMETUNE_FILE}")
112 fi
113
114 AC_DEFINE([HAVE_THEMETUNE])
115 else
116 THEMETUNE_FILE=""
117 fi
118 AC_SUBST([THEMETUNE_FILE])
119
120
73 dnl *** 121 dnl ***
74 dnl *** libSIDPlay 1 options 122 dnl *** libSIDPlay 1 options
75 dnl *** 123 dnl ***
76 AC_ARG_WITH(sidplay1, 124 AC_ARG_WITH(sidplay1,
77 [ 125 [
78 --with-sidplay1=PREFIX Enable SIDPlay1 with install-PREFIX], 126 --with-sidplay1=PREFIX Enable SIDPlay1 with install-PREFIX],
79 [ 127 [
80 if test "$withval" = yes; then 128 if test "x$withval" = xyes; then
81 xs_sidplay1=yes 129 xs_sidplay1=yes
82 xs_sidplay1_library="" 130 xs_sidplay1_library=""
83 xs_sidplay1_includes="" 131 xs_sidplay1_includes=""
84 else 132 else
85 if test "$withval" = no; then 133 if test "x$withval" = xno; then
86 xs_sidplay1=no 134 xs_sidplay1=no
87 else 135 else
88 xs_sidplay1=yes 136 xs_sidplay1=yes
89 xs_sidplay1_includes="$withval/include" 137 xs_sidplay1_includes="$withval/include"
90 xs_sidplay1_library="$withval/lib" 138 xs_sidplay1_library="$withval/lib"
91 fi 139 fi
92 fi 140 fi
93 ],[ 141 ],[
94 xs_sidplay1=xtry 142 xs_sidplay1=try
95 xs_sidplay1_library="" 143 xs_sidplay1_library=""
96 xs_sidplay1_includes="" 144 xs_sidplay1_includes=""
97 ]) 145 ])
98 146
99 147
111 dnl *** 159 dnl ***
112 AC_ARG_WITH(sidplay2, 160 AC_ARG_WITH(sidplay2,
113 [ 161 [
114 --with-sidplay2=PREFIX Enable SIDPlay2 with install-PREFIX], 162 --with-sidplay2=PREFIX Enable SIDPlay2 with install-PREFIX],
115 [ 163 [
116 if test "$withval" = yes; then 164 if test "x$withval" = xyes; then
117 xs_sidplay2=yes 165 xs_sidplay2=yes
118 xs_sidplay2_library="" 166 xs_sidplay2_library=""
119 xs_sidplay2_includes="" 167 xs_sidplay2_includes=""
120 else 168 else
121 if test "$withval" = no; then 169 if test "x$withval" = xno; then
122 xs_sidplay2=no 170 xs_sidplay2=no
123 else 171 else
124 xs_sidplay2=yes 172 xs_sidplay2=yes
125 xs_sidplay2_includes="$withval/include" 173 xs_sidplay2_includes="$withval/include"
126 xs_sidplay2_library="$withval/lib" 174 xs_sidplay2_library="$withval/lib"
127 fi 175 fi
128 fi 176 fi
129 ],[ 177 ],[
130 xs_sidplay2=xtry 178 xs_sidplay2=try
131 xs_sidplay2_library="" 179 xs_sidplay2_library=""
132 xs_sidplay2_includes="" 180 xs_sidplay2_includes=""
133 ]) 181 ])
134 182
135 183
145 193
146 dnl *** 194 dnl ***
147 dnl *** Determine if libraries are wanted and available 195 dnl *** Determine if libraries are wanted and available
148 dnl *** 196 dnl ***
149 OPT_SIDPLAY1="no" 197 OPT_SIDPLAY1="no"
150 if test "$xs_sidplay1" = xtry; then 198 if test "x$xs_sidplay1" = xtry; then
151 XS_PATH_LIBSIDPLAY1 199 XS_PATH_LIBSIDPLAY1
152 else 200 else
153 if test "$xs_sidplay1" = yes; then 201 if test "x$xs_sidplay1" = xyes; then
154 XS_PATH_LIBSIDPLAY1 202 XS_PATH_LIBSIDPLAY1
155 if test "$xs_have_sidplay1" = no; then 203 if test "x$xs_have_sidplay1" = xno; then
156 AC_MSG_ERROR([libSIDPlay1 library and/or headers were not found!]) 204 AC_MSG_ERROR([libSIDPlay1 library and/or headers were not found!])
157 fi 205 fi
158 fi 206 fi
159 fi 207 fi
160 if test "$xs_have_sidplay1" = yes; then 208 if test "x$xs_have_sidplay1" = xyes; then
161 AC_DEFINE(HAVE_SIDPLAY1) 209 AC_DEFINE([HAVE_SIDPLAY1])
162 OPT_SIDPLAY1="yes" 210 OPT_SIDPLAY1="yes"
163 fi 211 fi
164 212
165 213
166 214
167 OPT_SIDPLAY2="no" 215 OPT_SIDPLAY2="no"
168 LIBSIDPLAY2_REQUIRED_VERSION="2.1.0" 216 LIBSIDPLAY2_REQUIRED_VERSION="2.1.0"
169 if test "$xs_sidplay2" = xtry; then 217 if test "x$xs_sidplay2" = xtry; then
170 XS_PATH_LIBSIDPLAY2 218 XS_PATH_LIBSIDPLAY2
171 else 219 else
172 if test "$xs_sidplay2" = yes; then 220 if test "x$xs_sidplay2" = xyes; then
173 XS_PATH_LIBSIDPLAY2 221 XS_PATH_LIBSIDPLAY2
174 if test "$xs_have_sidplay2" = no; then 222 if test "x$xs_have_sidplay2" = xno; then
175 AC_MSG_ERROR([libSIDPlay2 library and/or headers were not found!]) 223 AC_MSG_ERROR([libSIDPlay2 library and/or headers were not found!])
176 fi 224 fi
177 fi 225 fi
178 fi 226 fi
179 if test "$xs_have_sidplay2" = yes; then 227 if test "x$xs_have_sidplay2" = xyes; then
180 AC_DEFINE(HAVE_SIDPLAY2) 228 AC_DEFINE([HAVE_SIDPLAY2])
181 OPT_SIDPLAY2="yes" 229 OPT_SIDPLAY2="yes"
182 BUILDERS_FIND 230 BUILDERS_FIND
183 BUILDERS_FIND_RESID 231 BUILDERS_FIND_RESID
184 BUILDERS_FIND_HARDSID 232 BUILDERS_FIND_HARDSID
185 if test "$builders_available" = no; then 233 if test "x$builders_available" = xno; then
186 AC_MSG_ERROR([No builder modules were found in the sidbuilders directory!]); 234 AC_MSG_ERROR([No builder modules were found in the sidbuilders directory!]);
187 fi 235 fi
188 fi 236 fi
189 237
190 238
191 dnl *** 239 dnl ***
192 dnl *** Check if we have some emulator library available? 240 dnl *** Check if we have some emulator library available?
193 dnl *** 241 dnl ***
194 if test "$OPT_SIDPLAY1" = no; then 242 if test "x$OPT_SIDPLAY1" = xno; then
195 if test "$OPT_SIDPLAY2" = no; then 243 if test "x$OPT_SIDPLAY2" = xno; then
196 AC_MSG_ERROR([Either libSIDPlay1 or libSIDPlay2 is required! Please read INSTALL for more information!]) 244 AC_MSG_ERROR([Either libSIDPlay1 or libSIDPlay2 is required! Please read INSTALL for more information!])
197 fi 245 fi
198 fi 246 fi
199 247
200 248
205 tmp_CPPFLAGS=$CPPFLAGS 253 tmp_CPPFLAGS=$CPPFLAGS
206 if test -d "$prefix" ;then 254 if test -d "$prefix" ;then
207 CPPFLAGS="$CPPFLAGS -I${prefix}/include" 255 CPPFLAGS="$CPPFLAGS -I${prefix}/include"
208 fi 256 fi
209 257
210 AC_EGREP_HEADER(set_song_position,xmms/plugin.h, 258 AC_EGREP_HEADER([set_song_position],[xmms/plugin.h],
211 [ 259 [
212 OPT_SONGPOS="yes" 260 OPT_SONGPOS="yes"
213 AC_DEFINE(HAVE_SONG_POSITION) 261 AC_DEFINE(HAVE_SONG_POSITION)
214 AC_MSG_RESULT([yes]) 262 AC_MSG_RESULT([yes])
215 ],[ 263 ],[
221 269
222 270
223 dnl *** 271 dnl ***
224 dnl *** Check XMMS version 272 dnl *** Check XMMS version
225 dnl *** 273 dnl ***
226 AM_PATH_XMMS(1.2.0,, [ 274 AM_PATH_XMMS([1.2.0],, [
227 AC_MSG_ERROR([*** XMMS >= 1.2.0 not found. You need XMMS v1.2.0 or later to use XMMS-SID plugin.]) 275 AC_MSG_ERROR([*** XMMS >= 1.2.0 not found. You need XMMS v1.2.0 or later to use XMMS-SID plugin.])
228 ]) 276 ])
229 libdir=$XMMS_INPUT_PLUGIN_DIR 277 libdir=$XMMS_INPUT_PLUGIN_DIR
230 278
231 XMMS_TEST_VERSION($XMMS_VERSION, 1.2.5, [ 279 XMMS_TEST_VERSION($XMMS_VERSION, 1.2.5, [
256 XMMS >= v1.2.5 extra features : $OPT_XMMSEXTRA 304 XMMS >= v1.2.5 extra features : $OPT_XMMSEXTRA
257 Song-position patch : $OPT_SONGPOS 305 Song-position patch : $OPT_SONGPOS
258 libSIDPlay 1 support : $OPT_SIDPLAY1 306 libSIDPlay 1 support : $OPT_SIDPLAY1
259 libSIDPlay 2 support : $OPT_SIDPLAY2 307 libSIDPlay 2 support : $OPT_SIDPLAY2
260 Included builders : $xs_builders 308 Included builders : $xs_builders
261 309 XMMS-SID theme SID-tune : $OPT_THEMETUNE
262 ]) 310 ])