dnl Process this file with autoconf to produce a configure script. AC_INIT(Makefile.am) AM_INIT_AUTOMAKE(modplugxmms, 2.05) AM_CONFIG_HEADER(config.h) dnl Checks for programs. dnl I am disabling static libraries here because otherwise libtool insists on dnl compiling everything twice -- once with and once without -fPIC. Pisses me dnl off. Just do everything with -fPIC, damnit! Compiling everything twice dnl probably wastes more cycles than not using -fPIC saves. AC_DISABLE_STATIC AM_DISABLE_STATIC AC_PROG_CC AC_PROG_CXX AC_C_BIGENDIAN #this will cause problems when cross-compiling... AM_PROG_LIBTOOL AC_HEADER_STDC CXXFLAGS="$CXXFLAGS -fno-exceptions -Wall -ffast-math -D_REENTRANT `glib-config --cflags`" # CXXFLAGS="-fno-exceptions -g -Wall -ffast-math -D_REENTRANT `glib-config --cflags`" case ${target_os} in *sun* | *solaris*) CXXFLAGS="$CXXFLAGS -fpermissive" ;; esac AM_PATH_GTK(1.2.0, , AC_MSG_ERROR(Cannot find GTK: Is gtk-config in path?)) dnl Add the languages which your application supports here. ALL_LINGUAS="" AM_GLIB_GNU_GETTEXT dnl find install dir AM_PATH_XMMS(1.0.0, , AC_MSG_ERROR([*** XMMS >= 1.0.0 not installed - please install first ***])) PKG_CHECK_MODULES(LIBMODPLUG, libmodplug >= 0.7) AC_SUBST(LIBMODPLUG_CFLAGS) AC_SUBST(LIBMODPLUG_LIBS) plugindir=$XMMS_INPUT_PLUGIN_DIR AC_SUBST(plugindir) AC_OUTPUT(Makefile modplugxmms/Makefile modplugxmms/gui/Makefile modplugxmms/archive/Makefile modplugplay/Makefile glade/Makefile ) echo "If you have a version of ModPlug-XMMS previous to version 2.0 installed," echo "please remove it before you continue."