comparison configure.ac @ 838:ae1f6418d093

libSIDPlay2-FP backend interface is now in a separate module. Configuration related things still pending.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 08 Nov 2012 21:24:38 +0200
parents 2531396c2718
children 29f3c3f29c0d
comparison
equal deleted inserted replaced
837:5b3e2116408f 838:ae1f6418d093
19 dnl *** Define some templates 19 dnl *** Define some templates
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_SIDPLAY1], [Define if you have and want to use libSIDPlay 1.]) 22 AH_TEMPLATE([HAVE_SIDPLAY1], [Define if you have and want to use libSIDPlay 1.])
23 AH_TEMPLATE([HAVE_SIDPLAY2], [Define if you have and want to use libSIDPlay 2.]) 23 AH_TEMPLATE([HAVE_SIDPLAY2], [Define if you have and want to use libSIDPlay 2.])
24 AH_TEMPLATE([HAVE_SIDPLAY2_FP], [Define if you have and want to use libSIDPlay 2-FP http://sourceforge.net/projects/sidplay-residfp/]) 24 AH_TEMPLATE([HAVE_SIDPLAYFP], [Define if you have and want to use libSIDPlay2-FP http://sourceforge.net/projects/sidplay-residfp/])
25 AH_TEMPLATE([HAVE_SIDPLAYFP_V1], [Define if you are using v1.0.0 API of libSIDPlay2-FP.])
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([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([DEBUG], [Define if you wish to enable debug output to terminal.]) 27 AH_TEMPLATE([DEBUG], [Define if you wish to enable debug output to terminal.])
27 28
28 29
29 dnl *** 30 dnl ***
114 if test "x$xs_have_sidplay1" = "xyes"; then 115 if test "x$xs_have_sidplay1" = "xyes"; then
115 AC_DEFINE([HAVE_SIDPLAY1]) 116 AC_DEFINE([HAVE_SIDPLAY1])
116 fi 117 fi
117 118
118 119
119 xs_have_sidplay2_api=""
120 XS_ARG_WITH([sidplayfp], [libSIDPlayFP], [XS_PATH_LIBSIDPLAYFP]) 120 XS_ARG_WITH([sidplayfp], [libSIDPlayFP], [XS_PATH_LIBSIDPLAYFP])
121 if test "x$xs_pkg_sidplayfp_v1" = "xyes"; then
122 AC_DEFINE([HAVE_SIDPLAYFP_V1])
123 xs_have_sidplay2_api="(FP v1.0 (alpha) API)"
124 fi
125 fi
121 126
122 if test "x$xs_have_sidplayfp" = "xyes"; then 127 if test "x$xs_have_sidplayfp" = "xyes"; then
123 xs_have_sidplay2_api="(FP)" 128 AC_DEFINE([HAVE_SIDPLAYFP])
124 xs_have_sidplay2_lib="yes"
125 AC_DEFINE([HAVE_SIDPLAY2])
126 AC_DEFINE([HAVE_SIDPLAY2_FP])
127 AC_DEFINE([HAVE_HARDSID_BUILDER]) 129 AC_DEFINE([HAVE_HARDSID_BUILDER])
128 AC_DEFINE([HAVE_RESID_BUILDER]) 130 AC_DEFINE([HAVE_RESID_BUILDER])
129 AC_DEFINE([HAVE_RESID_FP_BUILDER]) 131 AC_DEFINE([HAVE_RESID_FP_BUILDER])
130 132
131 else 133 xs_have_sidplay2_api=""
132 XS_ARG_WITH([sidplay2], [libSIDPlay2], [XS_PATH_LIBSIDPLAY2]) 134 XS_ARG_WITH([sidplay2], [libSIDPlay2], [XS_PATH_LIBSIDPLAY2])
133 if test "x$xs_have_sidplay2" = "xyes"; then 135 if test "x$xs_have_sidplay2" = "xyes"; then
134 xs_have_sidplay2_api="(non-COMI)" 136 xs_have_sidplay2_api="(old non-COMI)"
135 xs_have_sidplay2_lib="yes"
136 AC_DEFINE([HAVE_SIDPLAY2]) 137 AC_DEFINE([HAVE_SIDPLAY2])
137 138
138 AC_LANG_PUSH([C++]) 139 AC_LANG_PUSH([C++])
139 140
140 XS_BUILDERS_CHECK 141 XS_BUILDERS_CHECK
141 xs_builders_available="no" 142 xs_builders_available="no"
143 dnl This is a faux check, to satisfy things
142 XS_BUILDERS_FIND([reSID_FP], [residfp-builder], [residfp.h], [ReSIDfpBuilder]) 144 XS_BUILDERS_FIND([reSID_FP], [residfp-builder], [residfp.h], [ReSIDfpBuilder])
145 dnl These checks are real
143 XS_BUILDERS_FIND([reSID], [resid-builder], [resid.h], [ReSIDBuilder]) 146 XS_BUILDERS_FIND([reSID], [resid-builder], [resid.h], [ReSIDBuilder])
144 XS_BUILDERS_FIND([HardSID], [hardsid-builder], [hardsid.h], [HardSID]) 147 XS_BUILDERS_FIND([HardSID], [hardsid-builder], [hardsid.h], [HardSID])
145 if test "x$xs_builders_available" = "xno"; then 148 if test "x$xs_builders_available" = "xno"; then
146 AC_MSG_ERROR([No builder modules were found in the sidbuilders directory!]); 149 AC_MSG_ERROR([No builder modules were found in the sidbuilders directory!]);
147 fi 150 fi
148 151
149 AC_LANG_POP([C++]) 152 AC_LANG_POP([C++])
150 fi 153 fi
151 fi
152 154
153 155
154 dnl *** 156 dnl ***
155 dnl *** Check if we have some emulator library available? 157 dnl *** Check if we have some emulator library available?
156 dnl *** 158 dnl ***
157 if test "x$xs_have_sidplay1" != "xyes" -a "x$xs_have_sidplay2" != "xyes" -a "x$xs_have_sidplayfp" != "xyes"; then 159 if test "x$xs_have_sidplay1" != "xyes" -a "x$xs_have_sidplay2" != "xyes" -a "x$xs_have_sidplayfp" != "xyes"; then
158 AC_MSG_ERROR([Either libSIDPlay1 or libSIDPlay2/libSIDPlay-FP is required! Please read INSTALL for more information!]) 160 AC_MSG_ERROR([Either libSIDPlay1, libSIDPlay2 or libSIDPlay2-FP is required! Please read INSTALL for more information!])
159 fi 161 fi
160 162
161 163
162 dnl *** 164 dnl ***
163 dnl *** Song position patch check 165 dnl *** Song position patch check
206 208
207 Prefix : $prefix 209 Prefix : $prefix
208 Plugin installation directory : $libdir 210 Plugin installation directory : $libdir
209 Song-position patch : $xs_have_songpos 211 Song-position patch : $xs_have_songpos
210 libSIDPlay 1 support : $xs_have_sidplay1 212 libSIDPlay 1 support : $xs_have_sidplay1
211 libSIDPlay 2 support : $xs_have_sidplay2_lib $xs_have_sidplay2_api 213 libSIDPlay 2 support : $xs_have_sidplay2 $xs_have_sidplay2_api
212 Included builders : $xs_builders 214 Included builders : $xs_builders
215 libSIDPlay 2-FP support : $xs_have_sidplayfp
213 XMMS-SID theme SID-tune : $xs_have_themetune 216 XMMS-SID theme SID-tune : $xs_have_themetune
214 Translations (i18n/nls) : $USE_NLS 217 Translations (i18n/nls) : $USE_NLS
215 Debugging enabled : $xs_enable_debug 218 Debugging enabled : $xs_enable_debug
216 ]) 219 ])