annotate configure.in @ 43:3c609b6d5a02

Automagic updating of spec.in-file via configure
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 20 Jun 2003 01:12:00 +0000
parents 3fcc147b253a
children fd610bb817bc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 dnl ***
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 dnl *** Process this file with autoconf to produce a configure script.
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 dnl ***
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
5 dnl Require autoconf 2.56 or later
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
6 AC_PREREQ(2.56)
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
7
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
8 dnl Initialize
43
3c609b6d5a02 Automagic updating of spec.in-file via configure
Matti Hamalainen <ccr@tnsp.org>
parents: 35
diff changeset
9 AC_INIT(XMMS-SID, 0.8.0alpha0, ccr@tnsp.org)
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
10 AC_COPYRIGHT([[(C) 2002-2003 Matti 'ccr' Hämäläinen]])
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
11 AC_CONFIG_SRCDIR(src/xmms-sid.h)
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
12 AM_INIT_AUTOMAKE
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
13 AC_CONFIG_HEADERS(src/config.h)
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
14
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
15
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
16 dnl ***
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
17 dnl *** Define some templates
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
18 dnl ***
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
19 AH_TEMPLATE([HAVE_XMMSEXTRA],[Define if you have XMMS version 1.2.5 or later])
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
20 AH_TEMPLATE([HAVE_SIDPLAY1],[Define if you want to use libSIDPlay 1])
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
21 AH_TEMPLATE([HAVE_SIDPLAY2],[Define if you want to use libSIDPlay 2])
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
22 AH_TEMPLATE([HAVE_RESID_BUILDER],[Define if you have reSID with libSIDPlay 2])
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
23 AH_TEMPLATE([HAVE_HARDSID_BUILDER],[Define if you have HardSID with libSIDPlay 2])
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
24
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26 dnl ***
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27 dnl *** Some general checks
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
28 dnl ***
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
29 AC_PREFIX_PROGRAM(xmms)
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
30 AC_DISABLE_STATIC
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
31 AC_LIBTOOL_DLOPEN
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
32 AM_PROG_LIBTOOL
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
33
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
34
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
35 dnl ***
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
36 dnl *** Checks for programs
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
37 dnl ***
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
38 AC_PROG_CXX
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
39 AC_PROG_CC
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
40 AC_PROG_CPP
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
41 AC_PROG_INSTALL
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
42
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
43
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
44 dnl ***
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
45 dnl *** Checks for generic libraries
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
46 dnl ***
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
47 AM_PATH_GLIB(1.2.8,,AC_MSG_ERROR([*** GLib >= 1.2.8 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/)]))
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
48
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
49 AM_PATH_GTK(1.2.8,,AC_MSG_ERROR([*** Gtk+ >= 1.2.8 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)
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
50
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
51
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
52 dnl ***
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
53 dnl *** libSIDPlay 1 options
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
54 dnl ***
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
55 AC_ARG_WITH(sidplay1,
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
56 [ --with-sidplay1=PREFIX Enable SIDPlay1 with install-PREFIX is],
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
57 [
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
58 if test "$withval" = yes; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
59 xs_sidplay1=yes
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
60 xs_sidplay1_library=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
61 xs_sidplay1_includes=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
62 else
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
63 if test "$withval" = no; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
64 xs_sidplay1=no
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
65 else
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
66 xs_sidplay1=yes
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
67 xs_sidplay1_includes="$withval/include"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
68 xs_sidplay1_library="$withval/lib"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
69 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
70 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
71 ],[
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
72 xs_sidplay1=yes
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
73 xs_sidplay1_library=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
74 xs_sidplay1_includes=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
75 ])
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
76
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
77 AC_ARG_WITH(sidplay1-inc,
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
78 [ --with-sidplay1-inc=DIR Where the SIDPlay1 headers are located],
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
79 [xs_sidplay1_includes="$withval"],)
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
80
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
81 AC_ARG_WITH(sidplay1-lib,
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
82 [ --with-sidplay1-lib=DIR Where the SIDPlay1 library is installed],
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
83 [xs_sidplay1_library="$withval"],)
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
84
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
85
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
86 dnl ***
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
87 dnl *** libSIDPlay 2 options
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
88 dnl ***
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
89 AC_ARG_WITH(sidplay2,
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
90 [ --with-sidplay2=PREFIX Enable SIDPlay1 with install-PREFIX is],
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
91 [
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
92 if test "$withval" = yes; then
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
93 xs_sidplay1=no
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
94 xs_sidplay2=yes
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
95 xs_sidplay2_library=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
96 xs_sidplay2_includes=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
97 else
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
98 if test "$withval" = no; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
99 xs_sidplay2=no
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
100 else
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
101 xs_sidplay2=yes
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
102 xs_sidplay1=no
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
103 xs_sidplay2_includes="$withval/include"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
104 xs_sidplay2_library="$withval/lib"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
105 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
106 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
107 ],[
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
108 xs_sidplay2=yes
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
109 xs_sidplay2_library=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
110 xs_sidplay2_includes=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
111 ])
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
112
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
113 AC_ARG_WITH(sidplay2-inc,
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
114 [ --with-sidplay2-inc=DIR Where the SIDPlay2 headers are located],
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
115 [xs_sidplay2_includes="$withval"],)
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
116
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
117 AC_ARG_WITH(sidplay2-lib,
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
118 [ --with-sidplay2-lib=DIR Where the SIDPlay2 library is installed],
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
119 [xs_sidplay2_library="$withval"],)
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
120
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
121
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
122 dnl ***
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
123 dnl *** Determine if libraries are wanted and available
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
124 dnl ***
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
125 OPT_SIDPLAY1="no"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
126 if test "$xs_sidplay1" = yes; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
127 XS_PATH_LIBSIDPLAY1
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
128 if test "$xs_have_sidplay1" = yes; then
33
9cf8092ec7d3 More improvements on configuration, updated documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 32
diff changeset
129 AC_DEFINE(HAVE_SIDPLAY1)
43
3c609b6d5a02 Automagic updating of spec.in-file via configure
Matti Hamalainen <ccr@tnsp.org>
parents: 35
diff changeset
130 AC_SUBST(REQUIRE_LIBRARY,[libsidplay.so.1])
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
131 OPT_SIDPLAY1="yes"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
132 else
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
133 AC_MSG_ERROR([libSIDPlay1 library and/or headers were not found!])
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
134 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
135 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
136
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
137
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
138 OPT_SIDPLAY2="no"
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
139 if test "$OPT_SIDPLAY1" = no; then
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
140 if test "$xs_sidplay2" = yes; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
141 LIBSIDPLAY2_REQUIRED_VERSION="2.1.0"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
142 XS_PATH_LIBSIDPLAY2
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
143 if test "$xs_have_sidplay2" = yes; then
33
9cf8092ec7d3 More improvements on configuration, updated documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 32
diff changeset
144 AC_DEFINE(HAVE_SIDPLAY2)
43
3c609b6d5a02 Automagic updating of spec.in-file via configure
Matti Hamalainen <ccr@tnsp.org>
parents: 35
diff changeset
145 AC_SUBST(REQUIRE_LIBRARY,[libsidplay2.so.1])
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
146 OPT_SIDPLAY2="yes"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
147 BUILDERS_FIND
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
148 BUILDERS_FIND_RESID
33
9cf8092ec7d3 More improvements on configuration, updated documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 32
diff changeset
149 BUILDERS_FIND_HARDSID
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
150 if test "$builders_available" = no; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
151 AC_MSG_ERROR([No builder modules were found in the sidbuilders directory!]);
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
152 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
153 else
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
154 AC_MSG_ERROR([libSIDPlay2 library and/or headers were not found!])
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
155 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
156 fi
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
157 fi
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
158
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
159
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
160 dnl ***
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
161 dnl *** Check if we have some SIDPlay version
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
162 dnl ***
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
163 if test "$OPT_SIDPLAY1" = no; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
164 if test "$OPT_SIDPLAY2" = no; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
165 AC_MSG_ERROR([Either libSIDPlay1 or libSIDPlay2 is required! Please read INSTALL for more information!])
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
166 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
167 fi
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
168
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
169 dnl ***
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
170 dnl *** Checks for header files, types and functions
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
171 dnl ***
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
172 AC_HEADER_STDC
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
173 AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
174
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
175 AC_HEADER_STDBOOL
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
176 AC_C_CONST
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
177 AC_C_INLINE
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
178 AC_TYPE_SIZE_T
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
179 AC_C_VOLATILE
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
180
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
181 AC_FUNC_MALLOC
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
182 AC_TYPE_SIGNAL
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
183 AC_FUNC_STAT
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
184 AC_CHECK_FUNCS([memset strcasecmp strerror strrchr])
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
185
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
186
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
187 dnl ***
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
188 dnl *** Check XMMS version
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
189 dnl ***
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
190 AM_PATH_XMMS(1.2.0,, [
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
191 AC_MSG_ERROR([*** XMMS >= 1.2.0 not found. You need XMMS v1.2.0 or later to use XMMS-SID plugin.])
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
192 ])
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
193 libdir=$XMMS_INPUT_PLUGIN_DIR
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
194
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
195 XMMS_TEST_VERSION($XMMS_VERSION, 1.2.5, [
33
9cf8092ec7d3 More improvements on configuration, updated documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 32
diff changeset
196 AC_DEFINE(HAVE_XMMSEXTRA)
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
197 OPT_XMMSEXTRA="yes"
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
198 ], [
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
199 OPT_XMMSEXTRA="no"
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
200 ])
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
201
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
202
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
203 dnl ***
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
204 dnl *** And finally, output the all generatable files!
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
205 dnl ***
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
206 AC_CONFIG_FILES([
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
207 Makefile
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
208 src/Makefile
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
209 xmms-sid.spec
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
210 ])
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
211 AC_OUTPUT
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
212
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
213
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
214 dnl ***
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
215 dnl *** Show the result message
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
216 dnl ***
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
217 AC_MSG_RESULT([
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
218 XMMS-SID has been configured successfully:
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
219
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
220 Installation directory : $libdir
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
221 XMMS >= v1.2.5 extra features : $OPT_XMMSEXTRA
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
222 libSIDPlay 1 support : $OPT_SIDPLAY1
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
223 libSIDPlay 2 support : $OPT_SIDPLAY2
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
224 Included builders : $xs_builders
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
225
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
226 ])