configure.in
changeset 357 d6d0cfdbea65
parent 353 21fe62f9c4c6
child 368 e61c4fb262bd
     1.1 --- a/configure.in	Sun Jul 15 04:41:22 2007 +0000
     1.2 +++ b/configure.in	Sun Jul 15 05:33:35 2007 +0000
     1.3 @@ -320,6 +320,25 @@
     1.4          fi
     1.5      fi
     1.6  fi
     1.7 +AC_ARG_ENABLE(music-mp3-mad-gpl,
     1.8 +AC_HELP_STRING([--enable-music-mp3-mad-gpl], [enable MP3 music via libmad GPL code [[default=no]]]),
     1.9 +                  [], [enable_music_mp3_mad_gpl=no])
    1.10 +if test x$enable_music_mp3_mad_gpl = xyes; then
    1.11 +    AC_MSG_CHECKING(for libmad headers)
    1.12 +    have_libmad=no
    1.13 +    AC_TRY_COMPILE([
    1.14 +     #include "mad.h"
    1.15 +    ],[
    1.16 +    ],[
    1.17 +    have_libmad=yes
    1.18 +    ])
    1.19 +    AC_MSG_RESULT($have_libmad)
    1.20 +    if test x$have_libmad = xyes; then
    1.21 +        SOURCES="$SOURCES $srcdir/music_mad.c"
    1.22 +        EXTRA_CFLAGS="$EXTRA_CFLAGS -DMP3_MAD_MUSIC"
    1.23 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmad"
    1.24 +    fi
    1.25 +fi
    1.26  
    1.27  OBJECTS=`echo $SOURCES | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'`
    1.28