Mercurial > hg > xmms-sid
diff configure.in @ 1:183e7cbc1036
Initial revision
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 03 Jun 2003 10:23:04 +0000 |
parents | |
children | 364fe4a69c2b |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/configure.in Tue Jun 03 10:23:04 2003 +0000 @@ -0,0 +1,71 @@ +dnl *** +dnl *** Process this file with autoconf to produce a configure script. +dnl *** + +AC_INIT(README) +AM_INIT_AUTOMAKE(xmms-sid, 0.7.4) + +dnl *** +dnl *** Some general checks +dnl *** +AC_DISABLE_STATIC +AC_LIBTOOL_DLOPEN +AM_PROG_LIBTOOL + + +dnl *** +dnl *** Checks for programs +dnl *** +AC_PROG_CC +AC_PROG_CXX +AC_PROG_CPP +AC_PROG_INSTALL +AC_HEADER_STDC + +AC_PATH_LIBSIDPLAY + +AM_PATH_XMMS(1.2.0, [ +# Check if the libdir has been set by user +#if test "x$libdir" = "x$exec_prefix/lib"; then + libdir=$XMMS_INPUT_PLUGIN_DIR +#fi +], +AC_MSG_ERROR([*** XMMS >= 1.2.0 not found. You need XMMS v1.2.0 or later to use XMMS-SID plugin.] +)) + + + +dnl *** +dnl *** Checks for libraries. +dnl *** +AM_PATH_GLIB(1.2.2,,AC_MSG_ERROR([*** GLIB >= 1.2.2 not found. You either don't have GLIB at all or your GLIB is too old. Latest GLIB can be found from Gtk+ homepages (http://www.gtk.org/)])) + +AM_PATH_GTK(1.2.2,,AC_MSG_ERROR([*** Gtk+ >= 1.2.2 not found. You either don't have Gtk+ at all or your Gtk+ is too old. Latest Gtk+ can be found from Gtk+ homepages (http://www.gtk.org/)]), gthread) + + +dnl *** +dnl *** Song position patch check +dnl *** +AC_MSG_CHECKING([for song position patch]) +dnl botte hack +tmp_CPPFLAGS=$CPPFLAGS +if test -d "$prefix" ;then + CPPFLAGS="$CPPFLAGS -I${prefix}/include" +fi + +AC_EGREP_HEADER(set_song_position,xmms/plugin.h, + AC_DEFINE(HAVE_SONG_POSITION) + AC_MSG_RESULT(yes),AC_MSG_RESULT(no)) + +CPPFLAGS=$tmp_CPPFLAGS + + +dnl *** +dnl *** And finally, output the all generatable files! +dnl *** + +AC_OUTPUT([ +Makefile +src/Makefile +dnl xmms-sid.spec +])