1
|
1 dnl ***
|
|
2 dnl *** Process this file with autoconf to produce a configure script.
|
|
3 dnl ***
|
|
4
|
|
5 AC_INIT(README)
|
|
6 AM_INIT_AUTOMAKE(xmms-sid, 0.7.4)
|
|
7
|
|
8 dnl ***
|
|
9 dnl *** Some general checks
|
|
10 dnl ***
|
|
11 AC_DISABLE_STATIC
|
|
12 AC_LIBTOOL_DLOPEN
|
|
13 AM_PROG_LIBTOOL
|
|
14
|
|
15
|
|
16 dnl ***
|
|
17 dnl *** Checks for programs
|
|
18 dnl ***
|
|
19 AC_PROG_CC
|
|
20 AC_PROG_CXX
|
|
21 AC_PROG_CPP
|
|
22 AC_PROG_INSTALL
|
|
23 AC_HEADER_STDC
|
|
24
|
|
25 AC_PATH_LIBSIDPLAY
|
|
26
|
|
27 AM_PATH_XMMS(1.2.0, [
|
|
28 # Check if the libdir has been set by user
|
|
29 #if test "x$libdir" = "x$exec_prefix/lib"; then
|
|
30 libdir=$XMMS_INPUT_PLUGIN_DIR
|
|
31 #fi
|
|
32 ],
|
|
33 AC_MSG_ERROR([*** XMMS >= 1.2.0 not found. You need XMMS v1.2.0 or later to use XMMS-SID plugin.]
|
|
34 ))
|
|
35
|
|
36
|
|
37
|
|
38 dnl ***
|
|
39 dnl *** Checks for libraries.
|
|
40 dnl ***
|
|
41 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/)]))
|
|
42
|
|
43 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)
|
|
44
|
|
45
|
|
46 dnl ***
|
|
47 dnl *** Song position patch check
|
|
48 dnl ***
|
|
49 AC_MSG_CHECKING([for song position patch])
|
|
50 dnl botte hack
|
|
51 tmp_CPPFLAGS=$CPPFLAGS
|
|
52 if test -d "$prefix" ;then
|
|
53 CPPFLAGS="$CPPFLAGS -I${prefix}/include"
|
|
54 fi
|
|
55
|
|
56 AC_EGREP_HEADER(set_song_position,xmms/plugin.h,
|
|
57 AC_DEFINE(HAVE_SONG_POSITION)
|
|
58 AC_MSG_RESULT(yes),AC_MSG_RESULT(no))
|
|
59
|
|
60 CPPFLAGS=$tmp_CPPFLAGS
|
|
61
|
|
62
|
|
63 dnl ***
|
|
64 dnl *** And finally, output the all generatable files!
|
|
65 dnl ***
|
|
66
|
|
67 AC_OUTPUT([
|
|
68 Makefile
|
|
69 src/Makefile
|
|
70 dnl xmms-sid.spec
|
|
71 ])
|