diff --git a/normalize/configure.ac b/normalize/configure.ac index dab0a09..7ccf93c 100644 --- a/normalize/configure.ac +++ b/normalize/configure.ac @@ -15,6 +15,9 @@ AC_PROG_CC AC_ISC_POSIX AC_PROG_INSTALL AC_PROG_LN_S +AC_PROG_RANLIB +AC_PROG_LIBTOOL +AM_PROG_CC_C_O AC_DOSFILE @@ -219,38 +222,13 @@ AC_ARG_ENABLE(lookup-table, esac ], AC_DEFINE(USE_LOOKUPTABLE)) -dnl *** Stuff for xmms plugin *** -have_xmms=true -AM_PATH_GLIB(1.2.2, , [ have_xmms=false ]) -AM_PATH_GTK(1.2.2, , [ have_xmms=false ], gthread) -AM_PATH_XMMS(1.0.0, , [ have_xmms=false ]) -AM_DISABLE_STATIC -AM_PROG_LIBTOOL -AC_ARG_ENABLE(xmms, - AC_HELP_STRING([--enable-xmms], - [build the volume adjust plugin for xmms (default yes)]), - [ case "$enableval" in - yes) enable_xmms=true ;; - no) enable_xmms=false ;; - *) AC_MSG_ERROR(bad value $enableval for --enable-xmms) ;; - esac ]) - -use_xmms=false -if test x$enable_xmms != xfalse; then - if test x$have_xmms = xtrue; then - use_xmms=true - PLUGINS="xmms-rva $PLUGINS" - elif test x$enable_xmms = xtrue; then - AC_MSG_ERROR([--enable-xmms specified, but xmms not found]) - fi -fi AC_SUBST(PLUGINS) dnl *** Stuff for audiofile library *** dnl v0.2.1 and before have bugs with 24-bit LE files -AM_PATH_AUDIOFILE([ 0.2.2 ], [ have_audiofile=true ]) -dnl AC_CHECK_LIB(audiofile, afSetVirtualSampleFormat, have_audiofile=true) +PKG_CHECK_MODULES(AUDIOFILE, audiofile >= 0.2.2,[ have_audiofile=true ]) + AH_TEMPLATE([USE_AUDIOFILE], [Define if you want to use the audiofile library.]) AC_ARG_WITH(audiofile,