changeset 314:e867f050912c

Seekable FLAC detection.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 24 Apr 2002 20:48:30 +0000
parents 028f00df53ae
children aaf9142d5a9e
files acconfig.h configure.in
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/acconfig.h	Wed Apr 24 20:48:02 2002 +0000
+++ b/acconfig.h	Wed Apr 24 20:48:30 2002 +0000
@@ -13,5 +13,6 @@
 #undef SOUND_SUPPORTS_WAV
 #undef SOUND_SUPPORTS_MIDI
 #undef SOUND_SUPPORTS_FLAC
+#undef SOUND_SUPPORTS_SEEKABLE_FLAC
 #undef SOUND_SUPPORTS_SMPEG
 #undef SOUND_SUPPORTS_MPGLIB
--- a/configure.in	Wed Apr 24 20:48:02 2002 +0000
+++ b/configure.in	Wed Apr 24 20:48:30 2002 +0000
@@ -163,6 +163,17 @@
   fi
 fi
 
+dnl Check if libFLAC is recent enough for a seekable decoder
+AC_ARG_ENABLE(seekable-flac,
+[  --enable-seekable-flac     enable the seekable decoder [default=yes]],
+              , enable_seekable_flac=yes)
+if test x$enable_seekable_flac = xyes; then
+  AC_CHECK_LIB(FLAC, FLAC__seekable_stream_decoder_new, have_seekable_flac_lib=yes)
+  if test x$have_flac_hdr = xyes -a x$have_seekable_flac_lib = xyes; then
+    AC_DEFINE(SOUND_SUPPORTS_SEEKABLE_FLAC)
+  fi
+fi
+
 dnl Check for SMPEG
 AC_ARG_ENABLE(smpeg,
 [  --enable-smpeg             enable MP3 decoding via smpeg [default=yes]],