AC_INIT(Makefile.in) AC_PROG_INSTALL AC_SUBST(INSTALL_PROGRAM) AC_PROG_CC AC_CHECK_PROG(XMMS_CONFIG, xmms-config, yes, no) if test x$XMMS_CONFIG = xno then AC_MSG_ERROR("Could not find xmms-config. XMMS devel must be installed.") fi AC_MSG_CHECKING("XMMS version") XMMS_VERSION=`xmms-config --version` AC_MSG_RESULT($XMMS_VERSION) AC_MSG_CHECKING("XMMS libs") XMMS_LIBS=`xmms-config --libs` LIBS="$LIBS $XMMS_LIBS" AC_MSG_RESULT(yes) AC_MSG_CHECKING("XMMS cflags") XMMS_CFLAGS=`xmms-config --cflags` CFLAGS="$XMMS_CFLAGS" AC_MSG_RESULT(yes) AC_MSG_CHECKING("XMMS installpath") libdir=`xmms-config --general-plugin-dir` AC_MSG_RESULT($libdir) AC_CHECK_FUNCS(xmms_remote_is_repeat) AC_CHECK_FUNCS(xmms_remote_is_shuffle) AC_CHECK_FUNCS(xmms_remote_quit) AC_SUBST(PACKAGE) AC_SUBST(VERSION) AC_OUTPUT(Makefile)