From 278985b2fdff985ca9ba88444bc4a91ae92fe9d0 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Fri, 19 Mar 2004 15:56:31 +0000 Subject: more fun with LOCALE and LANGINFO git-svn-id: https://svn.musicpd.org/mpd/trunk@299 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- configure.ac | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 008774b36..1879c7e16 100644 --- a/configure.ac +++ b/configure.ac @@ -62,9 +62,11 @@ AC_CHECK_LIB(nsl,gethostbyname,MPD_LIBS="$MPD_LIBS -lnsl",) AC_CHECK_LIB(m,exp,MPD_LIBS="$MPD_LIBS -lm",) AM_ICONV +MPD_CFLAGS="$MPD_CFLAGS $INCICONV" MPD_LIBS="$MPD_LIBS $LIBICONV" -AM_LANGINFO_CODESET -AM_LC_MESSAGES + +AC_CHECK_HEADER(langinfo.h,AC_DEFINE(HAVE_LANGINFO,1,[Define if nl_langinfo.h is present]),) +AC_CHECK_HEADER(locale.h,AC_DEFINE(HAVE_LOCALE,1,[Define if locale.h is present]),) if test x$enable_ipv6 = xyes; then AC_MSG_CHECKING(for ipv6) @@ -204,7 +206,7 @@ if test x$enable_aac = xyes; then FAAD_LIBS="-L$libdir" fi - FAAD_LIBS="$FAAD_LIBS -lfaad -lmp4v2 -lstdc++" + FAAD_LIBS="$FAAD_LIBS -lfaad" if test "x$faad_includes" != "x" ; then FAAD_CFLAGS="-I$faad_includes" @@ -219,23 +221,13 @@ if test x$enable_aac = xyes; then CFLAGS="$CFLAGS $MPD_CFLAGS $FAAD_CFLAGS -I." LIBS="$LIBS $MPD_LIBS $FAAD_LIBS" AC_CHECK_HEADER(faad.h,,enable_aac=no) - if test x$enable_aac = xyes; then - AC_CHECK_HEADER(mp4.h,,[enable_aac=no;AC_MSG_WARN( - You need mp4v2 installed for AAC/MP4 decoding. - If mp4.h is present, be sure that mpeg4ip.h does not - include systems.h)]) - fi - if test x$enable_aac = xyes; then - AC_CHECK_LIB(mp4v2, MP4Create,,[enable_aac=no;AC_MSG_WARN(You need mp4v2 installed for AAC/MP4 decoding)]) - fi - if test x$enable_aac = xyes; then - AC_CHECK_LIB(mp4v2, MP4MetadataDelete,,[enable_aac=no;AC_MSG_WARN(You need mp4v2 installed for AAC/MP4 decoding)]) - fi if test x$enable_aac = xyes; then AC_CHECK_LIB(faad, faacDecDecode,[MPD_LIBS="$MPD_LIBS $FAAD_LIBS";MPD_CFLAGS="$MPD_CFLAGS $FAAD_CFLAGS";MP4FF_SUBDIR="mp4ff";MP4FF_LIB="mp4ff/libmp4ff.la"],enable_aac=no) fi if test x$enable_aac = xyes; then AC_DEFINE(HAVE_FAAD,1,[Define to use FAAD2 for AAC decoding]) + else + AC_MSG_WARN([faad2 lib needed for MP4/AAC support -- disabling MP4/AAC support]) fi CFLAGS=$oldcflags LIBS=$oldlibs -- cgit v1.2.3