comparison configure.in @ 422:5b06e23d934e

Removed backwards compatible API nastiness from FLAC decoder.
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 30 Sep 2002 08:01:26 +0000
parents cbb15ecf423a
children ba94ffe34a47
comparison
equal deleted inserted replaced
421:a65440b3a057 422:5b06e23d934e
148 , enable_midi=yes) 148 , enable_midi=yes)
149 if test x$enable_midi = xyes; then 149 if test x$enable_midi = xyes; then
150 AC_DEFINE(SOUND_SUPPORTS_MIDI) 150 AC_DEFINE(SOUND_SUPPORTS_MIDI)
151 fi 151 fi
152 152
153
154 dnl Note that we intentionally look for a symbol in FLAC 1.0.4, since the
155 dnl FLAC developers tend to break their API with every release, so we're
156 dnl checking for the latest-and-greatest here so we don't have to support
157 dnl obsolete versions.
158
153 dnl Hooray for shitty autoconf bugs! 159 dnl Hooray for shitty autoconf bugs!
154 x="C__stream_decoder_new" 160 x="C__seekable_stream_decoder_process_single"
155 flcsym="FLA$x" 161 flcsym="FLA$x"
156 dnl Check for libFLAC 162 dnl Check for libFLAC
157 AC_ARG_ENABLE(flac, 163 AC_ARG_ENABLE(flac,
158 [ --enable-flac enable FLAC decoding via libFLAC [default=yes]], 164 [ --enable-flac enable FLAC decoding via libFLAC [default=yes]],
159 , enable_flac=yes) 165 , enable_flac=yes)
164 LIBS="$LIBS -lFLAC" 170 LIBS="$LIBS -lFLAC"
165 AC_DEFINE(SOUND_SUPPORTS_FLAC) 171 AC_DEFINE(SOUND_SUPPORTS_FLAC)
166 fi 172 fi
167 fi 173 fi
168 174
169 dnl Hooray for shitty autoconf bugs!
170 x="C__seekable_stream_decoder_new"
171 flcsym="FLA$x"
172 dnl Check if libFLAC is recent enough for a seekable decoder
173 AC_ARG_ENABLE(seekable-flac,
174 [ --enable-seekable-flac enable the seekable decoder [default=yes]],
175 , enable_seekable_flac=yes)
176 if test x$enable_seekable_flac = xyes; then
177 AC_CHECK_LIB(FLAC, $flcsym, have_seekable_flac_lib=yes)
178 if test x$have_flac_hdr = xyes -a x$have_seekable_flac_lib = xyes; then
179 AC_DEFINE(SOUND_SUPPORTS_SEEKABLE_FLAC)
180 fi
181 fi
182
183 dnl Check for SMPEG 175 dnl Check for SMPEG
184 AC_ARG_ENABLE(smpeg, 176 AC_ARG_ENABLE(smpeg,
185 [ --enable-smpeg enable MP3 decoding via smpeg [default=yes]], 177 [ --enable-smpeg enable MP3 decoding via smpeg [default=yes]],
186 , enable_smpeg=yes) 178 , enable_smpeg=yes)
187 if test x$enable_smpeg = xyes; then 179 if test x$enable_smpeg = xyes; then