Mercurial > hg > xmms-sid
annotate configure.in @ 429:a991d1fe7e94
Bugfixes
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 01 Jan 2007 08:09:00 +0000 |
parents | 4ba6416227e2 |
children | a5ebf8595154 |
rev | line source |
---|---|
1 | 1 dnl *** |
2 dnl *** Process this file with autoconf to produce a configure script. | |
3 dnl *** | |
4 | |
35 | 5 dnl Require autoconf 2.56 or later |
248
a66c634b222a
Macro quotation cleanup to satisfy Automake 1.8 and friends.
Matti Hamalainen <ccr@tnsp.org>
parents:
247
diff
changeset
|
6 AC_PREREQ([2.56]) |
10 | 7 |
8 dnl Initialize | |
381 | 9 AC_INIT([XMMS-SID], [0.8.0beta16], [ccr@tnsp.org]) |
386 | 10 AC_COPYRIGHT([[(C) 2003-2006 Matti 'ccr' Hämäläinen]]) |
158 | 11 AC_CONFIG_SRCDIR([src/xmms-sid.h]) |
10 | 12 AM_INIT_AUTOMAKE |
158 | 13 AC_CONFIG_HEADERS([src/config.h]) |
35 | 14 |
15 | |
16 dnl *** | |
17 dnl *** Define some templates | |
18 dnl *** | |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
19 AH_TEMPLATE([HAVE_SONG_POSITION],[Define if you have XMMS patched with the songpos patch.]) |
47
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
20 AH_TEMPLATE([HAVE_XMMSEXTRA],[Define if you have XMMS version 1.2.5 or later and you want XMMS-SID to support some extra features.]) |
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
21 AH_TEMPLATE([HAVE_SIDPLAY1],[Define if you have and want to use libSIDPlay 1]) |
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
22 AH_TEMPLATE([HAVE_SIDPLAY2],[Define if you have and want to use libSIDPlay 2]) |
35 | 23 AH_TEMPLATE([HAVE_RESID_BUILDER],[Define if you have reSID with libSIDPlay 2]) |
24 AH_TEMPLATE([HAVE_HARDSID_BUILDER],[Define if you have HardSID with libSIDPlay 2]) | |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
25 AH_TEMPLATE([HAVE_THEMETUNE],[Define if you want to build code to play XMMS-SID theme SID-tune. The tune needs to be installed too, though.]) |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
26 AH_TEMPLATE([THEMETUNE_FILE],[Path and filename of the XMMS-SID theme song]) |
10 | 27 |
1 | 28 |
29 dnl *** | |
30 dnl *** Some general checks | |
31 dnl *** | |
248
a66c634b222a
Macro quotation cleanup to satisfy Automake 1.8 and friends.
Matti Hamalainen <ccr@tnsp.org>
parents:
247
diff
changeset
|
32 AC_PREFIX_PROGRAM([xmms]) |
1 | 33 AC_DISABLE_STATIC |
34 AC_LIBTOOL_DLOPEN | |
148 | 35 AC_LIB_RPATH |
1 | 36 AM_PROG_LIBTOOL |
397
c4e5604a8257
Largefile support additions.
Matti Hamalainen <ccr@tnsp.org>
parents:
386
diff
changeset
|
37 AC_SYS_LARGEFILE |
c4e5604a8257
Largefile support additions.
Matti Hamalainen <ccr@tnsp.org>
parents:
386
diff
changeset
|
38 AC_TYPE_OFF_T |
c4e5604a8257
Largefile support additions.
Matti Hamalainen <ccr@tnsp.org>
parents:
386
diff
changeset
|
39 AC_FUNC_FSEEKO |
1 | 40 |
41 | |
42 dnl *** | |
43 dnl *** Checks for programs | |
44 dnl *** | |
45 AC_PROG_CC | |
35 | 46 AC_PROG_CPP |
303
e161aa3ba0c3
Fix order of CC/CXX macro calling, add check for CXXCPP
Matti Hamalainen <ccr@tnsp.org>
parents:
269
diff
changeset
|
47 AC_PROG_CXX |
e161aa3ba0c3
Fix order of CC/CXX macro calling, add check for CXXCPP
Matti Hamalainen <ccr@tnsp.org>
parents:
269
diff
changeset
|
48 AC_PROG_CXXCPP |
1 | 49 AC_PROG_INSTALL |
50 | |
31
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 *** Checks for generic libraries |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
54 dnl *** |
247 | 55 AC_CHECK_HEADER([pthread.h],,AC_MSG_ERROR([[*** POSIX thread support not found. Strange, maybe you don't have some development packages installed?]])) |
56 AM_PATH_GLIB([1.2.5],,AC_MSG_ERROR([[*** GLib >= 1.2.5 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/)]])) | |
57 AM_PATH_GTK([1.2.5],,AC_MSG_ERROR([[*** Gtk+ >= 1.2.5 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) | |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
58 |
47
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
59 |
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
60 dnl *** |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
61 dnl *** Checks for header files, types and functions |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
62 dnl *** |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
63 AC_HEADER_STDC |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
64 AC_CHECK_HEADERS([stdlib.h string.h unistd.h]) |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
65 |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
66 AC_HEADER_STDBOOL |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
67 AC_TYPE_SIZE_T |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
68 AC_C_CONST |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
69 AC_C_INLINE |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
70 AC_C_VOLATILE |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
71 AC_C_BIGENDIAN |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
72 |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
73 AC_FUNC_MALLOC |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
74 AC_TYPE_SIGNAL |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
75 AC_FUNC_STAT |
216
e776df0ee706
0.8.0beta13 development tag, not working version.
Matti Hamalainen <ccr@tnsp.org>
parents:
200
diff
changeset
|
76 AC_CHECK_FUNCS([memset strcasecmp strerror]) |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
77 |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
78 |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
79 dnl *** |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
80 dnl *** Enable or disable themetune support/installation |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
81 dnl *** |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
82 AC_ARG_ENABLE(themetune, |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
83 [ |
261
5b107e78c7c0
Improve '--disable-themetune' option indentation.
Matti Hamalainen <ccr@tnsp.org>
parents:
254
diff
changeset
|
84 --disable-themetune Disable XMMS-SID theme song-related code and |
5b107e78c7c0
Improve '--disable-themetune' option indentation.
Matti Hamalainen <ccr@tnsp.org>
parents:
254
diff
changeset
|
85 installation of the SID-tune file. The tune is |
5b107e78c7c0
Improve '--disable-themetune' option indentation.
Matti Hamalainen <ccr@tnsp.org>
parents:
254
diff
changeset
|
86 not under GNU GPL, refer to README for license. |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
87 ], |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
88 [ |
410 | 89 if test "x$enableval" = "xyes"; then |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
90 OPT_THEMETUNE=yes |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
91 else |
410 | 92 if test "x$enableval" = "xno"; then |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
93 OPT_THEMETUNE=no |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
94 else |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
95 OPT_THEMETUNE=no |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
96 fi |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
97 fi |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
98 ],[ |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
99 OPT_THEMETUNE=yes |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
100 ]) |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
101 |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
102 dnl *** Bits and pieces stolen from Glade generated configure.in |
410 | 103 if test "x$OPT_THEMETUNE" = "xyes"; then |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
104 THEMETUNE_FILE="Kummatti_City.sid" |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
105 |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
106 if test "x${datadir}" = 'x${prefix}/share'; then |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
107 if test "x${prefix}" = "xNONE"; then |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
108 AC_DEFINE_UNQUOTED([THEMETUNE_FILE], "${ac_default_prefix}/share/${PACKAGE}/${THEMETUNE_FILE}") |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
109 else |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
110 AC_DEFINE_UNQUOTED([THEMETUNE_FILE], "${prefix}/share/${PACKAGE}/${THEMETUNE_FILE}") |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
111 fi |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
112 else |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
113 AC_DEFINE_UNQUOTED([THEMETUNE_FILE], "${datadir}/${PACKAGE}/${THEMETUNE_FILE}") |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
114 fi |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
115 |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
116 AC_DEFINE([HAVE_THEMETUNE]) |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
117 else |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
118 THEMETUNE_FILE="" |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
119 fi |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
120 AC_SUBST([THEMETUNE_FILE]) |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
121 |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
122 |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
123 dnl *** |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
124 dnl *** libSIDPlay 1 options |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
125 dnl *** |
35 | 126 AC_ARG_WITH(sidplay1, |
47
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
127 [ |
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
128 --with-sidplay1=PREFIX Enable SIDPlay1 with install-PREFIX], |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
129 [ |
410 | 130 if test "x$withval" = "xyes"; then |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
131 xs_sidplay1=yes |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
132 xs_sidplay1_library="" |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
133 xs_sidplay1_includes="" |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
134 else |
410 | 135 if test "x$withval" = "xno"; then |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
136 xs_sidplay1=no |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
137 else |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
138 xs_sidplay1=yes |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
139 xs_sidplay1_includes="$withval/include" |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
140 xs_sidplay1_library="$withval/lib" |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
141 fi |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
142 fi |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
143 ],[ |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
144 xs_sidplay1=try |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
145 xs_sidplay1_library="" |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
146 xs_sidplay1_includes="" |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
147 ]) |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
148 |
186 | 149 |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
150 AC_ARG_WITH(sidplay1-inc, |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
151 [ --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
|
152 [xs_sidplay1_includes="$withval"],) |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
153 |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
154 AC_ARG_WITH(sidplay1-lib, |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
155 [ --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
|
156 [xs_sidplay1_library="$withval"],) |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
157 |
1 | 158 |
10 | 159 dnl *** |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
160 dnl *** libSIDPlay 2 options |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
161 dnl *** |
35 | 162 AC_ARG_WITH(sidplay2, |
47
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
163 [ |
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
164 --with-sidplay2=PREFIX Enable SIDPlay2 with install-PREFIX], |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
165 [ |
410 | 166 if test "x$withval" = "xyes"; then |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
167 xs_sidplay2=yes |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
168 xs_sidplay2_library="" |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
169 xs_sidplay2_includes="" |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
170 else |
410 | 171 if test "x$withval" = "xno"; then |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
172 xs_sidplay2=no |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
173 else |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
174 xs_sidplay2=yes |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
175 xs_sidplay2_includes="$withval/include" |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
176 xs_sidplay2_library="$withval/lib" |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
177 fi |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
178 fi |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
179 ],[ |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
180 xs_sidplay2=try |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
181 xs_sidplay2_library="" |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
182 xs_sidplay2_includes="" |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
183 ]) |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
184 |
186 | 185 |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
186 AC_ARG_WITH(sidplay2-inc, |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
187 [ --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
|
188 [xs_sidplay2_includes="$withval"],) |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
189 |
186 | 190 |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
191 AC_ARG_WITH(sidplay2-lib, |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
192 [ --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
|
193 [xs_sidplay2_library="$withval"],) |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
194 |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
195 |
125
532ec0ad5e59
Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents:
114
diff
changeset
|
196 dnl *** |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
197 dnl *** Determine if libraries are wanted and available |
125
532ec0ad5e59
Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents:
114
diff
changeset
|
198 dnl *** |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
199 OPT_SIDPLAY1="no" |
410 | 200 if test "x$xs_sidplay1" = "xtry"; then |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
201 XS_PATH_LIBSIDPLAY1 |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
202 else |
410 | 203 if test "x$xs_sidplay1" = "xyes"; then |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
204 XS_PATH_LIBSIDPLAY1 |
410 | 205 if test "x$xs_have_sidplay1" = "xno"; then |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
206 AC_MSG_ERROR([libSIDPlay1 library and/or headers were not found!]) |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
207 fi |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
208 fi |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
209 fi |
410 | 210 if test "x$xs_have_sidplay1" = "xyes"; then |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
211 AC_DEFINE([HAVE_SIDPLAY1]) |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
212 OPT_SIDPLAY1="yes" |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
213 fi |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
214 |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
215 |
1 | 216 |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
217 OPT_SIDPLAY2="no" |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
218 LIBSIDPLAY2_REQUIRED_VERSION="2.1.0" |
410 | 219 if test "x$xs_sidplay2" = "xtry"; then |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
220 XS_PATH_LIBSIDPLAY2 |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
221 else |
410 | 222 if test "x$xs_sidplay2" = "xyes"; then |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
223 XS_PATH_LIBSIDPLAY2 |
410 | 224 if test "x$xs_have_sidplay2" = "xno"; then |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
225 AC_MSG_ERROR([libSIDPlay2 library and/or headers were not found!]) |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
226 fi |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
227 fi |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
228 fi |
410 | 229 if test "x$xs_have_sidplay2" = "xyes"; then |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
230 AC_DEFINE([HAVE_SIDPLAY2]) |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
231 OPT_SIDPLAY2="yes" |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
232 BUILDERS_FIND |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
233 BUILDERS_FIND_RESID |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
234 BUILDERS_FIND_HARDSID |
410 | 235 if test "x$builders_available" = "xno"; then |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
236 AC_MSG_ERROR([No builder modules were found in the sidbuilders directory!]); |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
237 fi |
35 | 238 fi |
10 | 239 |
125
532ec0ad5e59
Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents:
114
diff
changeset
|
240 |
532ec0ad5e59
Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents:
114
diff
changeset
|
241 dnl *** |
47
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
242 dnl *** Check if we have some emulator library available? |
125
532ec0ad5e59
Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents:
114
diff
changeset
|
243 dnl *** |
410 | 244 if test "x$OPT_SIDPLAY1" = "xno"; then |
245 if test "x$OPT_SIDPLAY2" = "xno"; then | |
200
ec8b735f5418
Support for libNanoSID dropped.
Matti Hamalainen <ccr@tnsp.org>
parents:
196
diff
changeset
|
246 AC_MSG_ERROR([Either libSIDPlay1 or libSIDPlay2 is required! Please read INSTALL for more information!]) |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
247 fi |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
248 fi |
1 | 249 |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
250 |
35 | 251 dnl *** |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
252 dnl *** Song position patch check |
35 | 253 dnl *** |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
254 AC_MSG_CHECKING([for song position patch]) |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
255 tmp_CPPFLAGS=$CPPFLAGS |
410 | 256 if test -d "$prefix"; then |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
257 CPPFLAGS="$CPPFLAGS -I${prefix}/include" |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
258 fi |
35 | 259 |
410 | 260 AC_EGREP_HEADER([set_song_position],[xmms/plugin.h],[ |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
261 OPT_SONGPOS="yes" |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
262 AC_DEFINE(HAVE_SONG_POSITION) |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
263 AC_MSG_RESULT([yes]) |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
264 ],[ |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
265 OPT_SONGPOS="no" |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
266 AC_MSG_RESULT([no]) |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
267 ]) |
35 | 268 |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
269 CPPFLAGS=$tmp_CPPFLAGS |
35 | 270 |
1 | 271 |
272 dnl *** | |
10 | 273 dnl *** Check XMMS version |
1 | 274 dnl *** |
338
550a5d5811f8
Update copyright to 2005; Don't enclose some values in m4 quotes, automake
Matti Hamalainen <ccr@tnsp.org>
parents:
314
diff
changeset
|
275 AM_PATH_XMMS(1.2.0,, [ |
10 | 276 AC_MSG_ERROR([*** XMMS >= 1.2.0 not found. You need XMMS v1.2.0 or later to use XMMS-SID plugin.]) |
277 ]) | |
278 libdir=$XMMS_INPUT_PLUGIN_DIR | |
1 | 279 |
10 | 280 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
|
281 AC_DEFINE(HAVE_XMMSEXTRA) |
10 | 282 OPT_XMMSEXTRA="yes" |
283 ], [ | |
284 OPT_XMMSEXTRA="no" | |
285 ]) | |
1 | 286 |
287 | |
288 dnl *** | |
289 dnl *** And finally, output the all generatable files! | |
290 dnl *** | |
10 | 291 AC_CONFIG_FILES([ |
1 | 292 Makefile |
10 | 293 xmms-sid.spec |
1 | 294 ]) |
10 | 295 AC_OUTPUT |
296 | |
297 | |
298 dnl *** | |
299 dnl *** Show the result message | |
300 dnl *** | |
301 AC_MSG_RESULT([ | |
302 XMMS-SID has been configured successfully: | |
303 | |
304 Installation directory : $libdir | |
305 XMMS >= v1.2.5 extra features : $OPT_XMMSEXTRA | |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
306 Song-position patch : $OPT_SONGPOS |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
307 libSIDPlay 1 support : $OPT_SIDPLAY1 |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
308 libSIDPlay 2 support : $OPT_SIDPLAY2 |
35 | 309 Included builders : $xs_builders |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
310 XMMS-SID theme SID-tune : $OPT_THEMETUNE |
10 | 311 ]) |