configure.in
changeset 452 78188b7061be
parent 451 1b767145cf8d
child 456 3cc15d601e0c
equal deleted inserted replaced
451:1b767145cf8d 452:78188b7061be
   397 AC_ARG_ENABLE([music-flac-shared],
   397 AC_ARG_ENABLE([music-flac-shared],
   398 AC_HELP_STRING([--enable-music-flac-shared],
   398 AC_HELP_STRING([--enable-music-flac-shared],
   399               [dynamically load FLAC support [[default=yes]]]),
   399               [dynamically load FLAC support [[default=yes]]]),
   400               [], [enable_music_flac_shared=yes])
   400               [], [enable_music_flac_shared=yes])
   401 if test x$enable_music_flac = xyes; then
   401 if test x$enable_music_flac = xyes; then
   402 	AC_CHECK_HEADER([FLAC/export.h], [have_flac_export=yes])
   402     AC_CHECK_HEADER([FLAC/export.h], [have_flac_export=yes])
   403 	if test x$have_flac_export = xyes; then
   403     if test x$have_flac_export = xyes; then
   404 		LIBS_SAVED="$LIBS"
   404         LIBS_SAVED="$LIBS"
   405 		LIBS="-lFLAC"
   405         LIBS="-lFLAC"
   406 	    AC_MSG_CHECKING([for libflac so-name version >= $libflac_ver])
   406         AC_MSG_CHECKING([for libflac so-name version >= $libflac_ver])
   407 	    AC_TRY_RUN([
   407         AC_TRY_RUN([
   408 #include "FLAC/export.h"
   408 #include "FLAC/export.h"
   409 #include "stdio.h"
   409 #include "stdio.h"
   410 int main( int argc, char *argv[] ) {
   410 int main( int argc, char *argv[] ) {
   411 #if defined(FLAC_API_VERSION_CURRENT) && (FLAC_API_VERSION_CURRENT >= $libflac_ver)
   411 #if defined(FLAC_API_VERSION_CURRENT) && (FLAC_API_VERSION_CURRENT >= $libflac_ver)
   412 	return 0;
   412     return 0;
   413 #else
   413 #else
   414 	return 1;
   414     return 1;
   415 #endif
   415 #endif
   416 }
   416 }
   417 ], have_flac_ver=yes, have_flac_ver=no)
   417 ], have_flac_ver=yes, have_flac_ver=no)
   418         LIBS="$LIBS_SAVED"
   418         LIBS="$LIBS_SAVED"
   419         AC_MSG_RESULT($have_flac_ver)
   419         AC_MSG_RESULT($have_flac_ver)