graveman-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Graveman-cvs] Changes to graveman/current/configure.in


From: sylvain cresto
Subject: [Graveman-cvs] Changes to graveman/current/configure.in
Date: Wed, 02 Mar 2005 19:35:53 -0500

Index: graveman/current/configure.in
diff -u graveman/current/configure.in:1.15 graveman/current/configure.in:1.16
--- graveman/current/configure.in:1.15  Sun Feb 20 17:45:01 2005
+++ graveman/current/configure.in       Thu Mar  3 00:35:46 2005
@@ -44,6 +44,8 @@
                enable_mp3=yes)
 AC_ARG_ENABLE(ogg, AC_HELP_STRING([--disable-ogg], [Disable support for ogg 
vorbis files (default=enabled)]),,
                enable_ogg=yes)
+AC_ARG_ENABLE(flac, AC_HELP_STRING([--disable-flac], [Disable support for FLAC 
files (default=enabled)]),,
+               enable_flac=yes)
 AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [Enable debug mode 
(default=disabled)]),,
                debug=no)
 AC_ARG_ENABLE(linux-ide, AC_HELP_STRING([--enable-linux-ide], [Enable 
linux-ide support mode (default=auto)]),,
@@ -76,6 +78,7 @@
        echo "*** Install libid3tag and libmad libraries to enable it"
        echo "*** Get them on http://www.underbit.com/products/mad/ !"
        echo "***"
+       enable_mp3="no"
   else
        AC_MSG_RESULT(yes)
        AC_DEFINE(ENABLE_MP3,1,[Define for mp3 file support])
@@ -86,6 +89,7 @@
        echo "*** MP3 file support disabled on command line"
        echo "*** Use --enable-mp3 to enable it"
        echo "***"
+       enable_mp3="no"
 fi
 
 if test "A$enable_ogg" = "Ayes"; then
@@ -106,8 +110,9 @@
        echo "***"
        echo "*** Warning: OGG VORBIS file support disabled"
        echo "*** Install libogg and libvorbis libraries to enable it"
-       echo "*** Get it on http://http://www.vorbis.com !"
+       echo "*** Get it on http://www.vorbis.com !"
        echo "***"
+       enable_ogg="no"
   else
        AC_MSG_RESULT(yes)
        AC_DEFINE(ENABLE_OGG,1,[Define for ogg vorbis file support])
@@ -118,8 +123,40 @@
        echo "*** OGG VORBIS file support disabled on command line"
        echo "*** Use --enable-ogg to enable it"
        echo "***"
+       enable_ogg="no"
 fi
 
+if test "A$enable_flac" = "Ayes"; then
+  dnl verification presence libFLAC (and FLAC/metadata.h)
+  AC_CHECK_LIB([FLAC], [FLAC__metadata_iterator_get_block], , 
flac_available=no)
+  AC_CHECK_HEADER([FLAC/metadata.h], , flac_available=no)
+fi
+
+AC_MSG_CHECKING(for FLAC file support)
+
+if test "A$enable_flac" = "Ayes"; then
+  if test "A$flac_available" = "Ano"; then
+       AC_MSG_RESULT(no)
+       echo "***"
+       echo "*** Warning: FLAC file support disabled"
+       echo "*** Install libFLAC librarie to enable it"
+       echo "*** Get it on http://flac.sourceforge.net !"
+       echo "***"
+       enable_flac="no"
+  else
+       AC_MSG_RESULT(yes)
+       AC_DEFINE(ENABLE_FLAC,1,[Define for FLAC file support])
+  fi
+else
+       AC_MSG_RESULT(no)
+       echo "***"
+       echo "*** FLAC file support disabled on command line"
+       echo "*** Use --enable-flac to enable it"
+       echo "***"
+       enable_flac="no"
+fi
+
+
 AC_MSG_CHECKING(for linux-ide device support)
 if test "A$enable_linux_ide" = "Ayes"; then
        AC_MSG_RESULT(yes)
@@ -209,6 +246,7 @@
   GLIB version .................... : `pkg-config --modversion glib-2.0`
   Ogg vorbis file support ......... : $enable_ogg
   Mp3 file support ................ : $enable_mp3
+  FLAC file support ............... : $enable_flac
   Wav file support ................ : $enable_wav
   NLS/gettext ..................... : $USE_NLS
   Linux IDE/SCSI devices support .. : $enable_linux_ide/$enable_linux_scsi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]