Mercurial > audlegacy-plugins
diff configure.ac @ 2102:42a16b5e5151 audacious-plugins-1.4.0-beta3
try to fill in MAD_CFLAGS/MAD_LIBS with sensible defaults. enforce AC_SUBST().
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Fri, 19 Oct 2007 05:44:42 -0500 |
parents | 6e4ad45c21d6 |
children | 5c33e8e1a479 |
line wrap: on
line diff
--- a/configure.ac Fri Oct 19 03:14:47 2007 -0500 +++ b/configure.ac Fri Oct 19 05:44:42 2007 -0500 @@ -368,8 +368,13 @@ if test "$enable_mp3" = "yes"; then AC_CHECK_LIB(mad, mad_timer_add, - [INPUT_PLUGINS="$INPUT_PLUGINS madplug"], - [enable_mp3="no"]) + [INPUT_PLUGINS="$INPUT_PLUGINS madplug" + MAD_CFLAGS="" + MAD_LIBS="-lmad -lm"], + [PKG_CHECK_MODULES(MAD, [libmad], + [INPUT_PLUGINS="$INPUT_PLUGINS madplug"], + [enable_mp3="no"]) + ]) fi # XXX rtsp support # PKG_CHECK_MODULES(LIBNMS,[libnms >= 0.6.0], @@ -381,6 +386,9 @@ # AC_SUBST(LIBNMS_SRC) # fi +AC_SUBST(MAD_CFLAGS) +AC_SUBST(MAD_LIBS) + dnl *** Rocklight AC_ARG_ENABLE(rocklight,