Mercurial > hg > xmms-sid
annotate configure.in @ 511:e2c7ee8998da
reSID sampling options in GUI. Not yet used, because libSIDPlay2 API does
not have abstraction layer for handling those.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 29 Jan 2007 03:03:05 +0000 |
parents | 2b56b953fcad |
children | 52a6c114e505 |
rev | line source |
---|---|
1 | 1 dnl *** |
2 dnl *** Process this file with autoconf to produce a configure script. | |
3 dnl *** | |
4 | |
472 | 5 dnl Require autoconf 2.60 or later |
6 AC_PREREQ([2.60]) | |
10 | 7 |
8 dnl Initialize | |
510 | 9 AC_INIT([XMMS-SID], [0.8.0beta18], [ccr@tnsp.org]) |
443 | 10 AC_COPYRIGHT([[(C) 2003-2007 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]) |
488
ffc508cefbef
Use gettext v0.16.1, fixes some compat problems with automake 1.10
Matti Hamalainen <ccr@tnsp.org>
parents:
475
diff
changeset
|
14 AM_GNU_GETTEXT_VERSION([0.16.1]) |
433 | 15 AM_GNU_GETTEXT([external]) |
35 | 16 |
17 | |
18 dnl *** | |
19 dnl *** Define some templates | |
20 dnl *** | |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
21 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
|
22 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
|
23 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
|
24 AH_TEMPLATE([HAVE_SIDPLAY2],[Define if you have and want to use libSIDPlay 2]) |
35 | 25 AH_TEMPLATE([HAVE_RESID_BUILDER],[Define if you have reSID with libSIDPlay 2]) |
26 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
|
27 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.]) |
10 | 28 |
1 | 29 |
30 dnl *** | |
31 dnl *** Some general checks | |
32 dnl *** | |
248
a66c634b222a
Macro quotation cleanup to satisfy Automake 1.8 and friends.
Matti Hamalainen <ccr@tnsp.org>
parents:
247
diff
changeset
|
33 AC_PREFIX_PROGRAM([xmms]) |
1 | 34 AC_DISABLE_STATIC |
35 AC_LIBTOOL_DLOPEN | |
148 | 36 AC_LIB_RPATH |
1 | 37 AM_PROG_LIBTOOL |
397
c4e5604a8257
Largefile support additions.
Matti Hamalainen <ccr@tnsp.org>
parents:
386
diff
changeset
|
38 AC_SYS_LARGEFILE |
c4e5604a8257
Largefile support additions.
Matti Hamalainen <ccr@tnsp.org>
parents:
386
diff
changeset
|
39 AC_TYPE_OFF_T |
c4e5604a8257
Largefile support additions.
Matti Hamalainen <ccr@tnsp.org>
parents:
386
diff
changeset
|
40 AC_FUNC_FSEEKO |
1 | 41 |
42 | |
43 dnl *** | |
44 dnl *** Checks for programs | |
45 dnl *** | |
46 AC_PROG_CC | |
35 | 47 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
|
48 AC_PROG_CXX |
e161aa3ba0c3
Fix order of CC/CXX macro calling, add check for CXXCPP
Matti Hamalainen <ccr@tnsp.org>
parents:
269
diff
changeset
|
49 AC_PROG_CXXCPP |
1 | 50 AC_PROG_INSTALL |
51 | |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
52 |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
53 dnl *** |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
54 dnl *** Checks for generic libraries |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
55 dnl *** |
247 | 56 AC_CHECK_HEADER([pthread.h],,AC_MSG_ERROR([[*** POSIX thread support not found. Strange, maybe you don't have some development packages installed?]])) |
57 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/)]])) | |
58 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
|
59 |
47
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
60 |
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
61 dnl *** |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
62 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
|
63 dnl *** |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
64 AC_HEADER_STDC |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
65 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
|
66 |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
67 AC_HEADER_STDBOOL |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
68 AC_TYPE_SIZE_T |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
69 AC_C_CONST |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
70 AC_C_INLINE |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
71 AC_C_VOLATILE |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
72 AC_C_BIGENDIAN |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
73 |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
74 AC_FUNC_MALLOC |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
75 AC_TYPE_SIGNAL |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
76 AC_FUNC_STAT |
216
e776df0ee706
0.8.0beta13 development tag, not working version.
Matti Hamalainen <ccr@tnsp.org>
parents:
200
diff
changeset
|
77 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
|
78 |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
79 |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
80 dnl *** |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
81 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
|
82 dnl *** |
443 | 83 AC_ARG_ENABLE([themetune], |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
84 [ |
261
5b107e78c7c0
Improve '--disable-themetune' option indentation.
Matti Hamalainen <ccr@tnsp.org>
parents:
254
diff
changeset
|
85 --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
|
86 installation of the SID-tune file. The tune is |
5b107e78c7c0
Improve '--disable-themetune' option indentation.
Matti Hamalainen <ccr@tnsp.org>
parents:
254
diff
changeset
|
87 not under GNU GPL, refer to README for license. |
443 | 88 ],[ |
410 | 89 if test "x$enableval" = "xyes"; then |
443 | 90 OPT_THEMETUNE=yes |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
91 else |
443 | 92 if test "x$enableval" = "xno"; then |
93 OPT_THEMETUNE=no | |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
94 else |
443 | 95 OPT_THEMETUNE=no |
254
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 |
472 | 98 ],[OPT_THEMETUNE=yes]) |
99 AC_DEFINE([HAVE_THEMETUNE],[test "x$OPT_THEMETUNE" = "xyes"]) | |
254
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 |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
102 dnl *** |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
103 dnl *** libSIDPlay 1 options |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
104 dnl *** |
446
3119716480ad
Added m4 quoting; Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
443
diff
changeset
|
105 AC_ARG_WITH([sidplay1], |
47
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
106 [ |
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
107 --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
|
108 [ |
410 | 109 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
|
110 xs_sidplay1=yes |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
111 xs_sidplay1_library="" |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
112 xs_sidplay1_includes="" |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
113 else |
443 | 114 if test "x$withval" = "xno"; then |
115 xs_sidplay1=no | |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
116 else |
443 | 117 xs_sidplay1=yes |
118 xs_sidplay1_includes="$withval/include" | |
119 xs_sidplay1_library="$withval/lib" | |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
120 fi |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
121 fi |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
122 ],[ |
443 | 123 xs_sidplay1=try |
124 xs_sidplay1_library="" | |
125 xs_sidplay1_includes="" | |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
126 ]) |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
127 |
186 | 128 |
446
3119716480ad
Added m4 quoting; Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
443
diff
changeset
|
129 AC_ARG_WITH([sidplay1-inc], |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
130 [ --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
|
131 [xs_sidplay1_includes="$withval"],) |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
132 |
447 | 133 AC_ARG_WITH([sidplay1-lib], |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
134 [ --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
|
135 [xs_sidplay1_library="$withval"],) |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
136 |
1 | 137 |
10 | 138 dnl *** |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
139 dnl *** libSIDPlay 2 options |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
140 dnl *** |
446
3119716480ad
Added m4 quoting; Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
443
diff
changeset
|
141 AC_ARG_WITH([sidplay2], |
47
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
142 [ |
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
143 --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
|
144 [ |
410 | 145 if test "x$withval" = "xyes"; then |
443 | 146 xs_sidplay2=yes |
147 xs_sidplay2_library="" | |
148 xs_sidplay2_includes="" | |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
149 else |
443 | 150 if test "x$withval" = "xno"; then |
151 xs_sidplay2=no | |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
152 else |
443 | 153 xs_sidplay2=yes |
154 xs_sidplay2_includes="$withval/include" | |
155 xs_sidplay2_library="$withval/lib" | |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
156 fi |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
157 fi |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
158 ],[ |
443 | 159 xs_sidplay2=try |
160 xs_sidplay2_library="" | |
161 xs_sidplay2_includes="" | |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
162 ]) |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
163 |
186 | 164 |
446
3119716480ad
Added m4 quoting; Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
443
diff
changeset
|
165 AC_ARG_WITH([sidplay2-inc], |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
166 [ --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
|
167 [xs_sidplay2_includes="$withval"],) |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
168 |
186 | 169 |
446
3119716480ad
Added m4 quoting; Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
443
diff
changeset
|
170 AC_ARG_WITH([sidplay2-lib], |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
171 [ --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
|
172 [xs_sidplay2_library="$withval"],) |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
173 |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
174 |
125
532ec0ad5e59
Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents:
114
diff
changeset
|
175 dnl *** |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
176 dnl *** Determine if libraries are wanted and available |
125
532ec0ad5e59
Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents:
114
diff
changeset
|
177 dnl *** |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
178 OPT_SIDPLAY1="no" |
410 | 179 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
|
180 XS_PATH_LIBSIDPLAY1 |
443 | 181 else |
410 | 182 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
|
183 XS_PATH_LIBSIDPLAY1 |
410 | 184 if test "x$xs_have_sidplay1" = "xno"; then |
443 | 185 AC_MSG_ERROR([libSIDPlay1 library and/or headers were not found!]) |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
186 fi |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
187 fi |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
188 fi |
410 | 189 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
|
190 AC_DEFINE([HAVE_SIDPLAY1]) |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
191 OPT_SIDPLAY1="yes" |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
192 fi |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
193 |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
194 |
1 | 195 |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
196 OPT_SIDPLAY2="no" |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
197 LIBSIDPLAY2_REQUIRED_VERSION="2.1.0" |
410 | 198 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
|
199 XS_PATH_LIBSIDPLAY2 |
443 | 200 else |
410 | 201 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
|
202 XS_PATH_LIBSIDPLAY2 |
410 | 203 if test "x$xs_have_sidplay2" = "xno"; then |
443 | 204 AC_MSG_ERROR([libSIDPlay2 library and/or headers were not found!]) |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
205 fi |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
206 fi |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
207 fi |
410 | 208 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
|
209 AC_DEFINE([HAVE_SIDPLAY2]) |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
210 OPT_SIDPLAY2="yes" |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
211 BUILDERS_FIND |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
212 BUILDERS_FIND_RESID |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
213 BUILDERS_FIND_HARDSID |
410 | 214 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
|
215 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
|
216 fi |
35 | 217 fi |
10 | 218 |
125
532ec0ad5e59
Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents:
114
diff
changeset
|
219 |
532ec0ad5e59
Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents:
114
diff
changeset
|
220 dnl *** |
47
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
221 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
|
222 dnl *** |
410 | 223 if test "x$OPT_SIDPLAY1" = "xno"; then |
224 if test "x$OPT_SIDPLAY2" = "xno"; then | |
443 | 225 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
|
226 fi |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
227 fi |
1 | 228 |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
229 |
35 | 230 dnl *** |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
231 dnl *** Song position patch check |
35 | 232 dnl *** |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
233 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
|
234 tmp_CPPFLAGS=$CPPFLAGS |
410 | 235 if test -d "$prefix"; then |
446
3119716480ad
Added m4 quoting; Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
443
diff
changeset
|
236 CPPFLAGS="$CPPFLAGS -I${prefix}/include" |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
237 fi |
35 | 238 |
410 | 239 AC_EGREP_HEADER([set_song_position],[xmms/plugin.h],[ |
446
3119716480ad
Added m4 quoting; Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
443
diff
changeset
|
240 OPT_SONGPOS="yes" |
3119716480ad
Added m4 quoting; Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
443
diff
changeset
|
241 AC_DEFINE([HAVE_SONG_POSITION]) |
3119716480ad
Added m4 quoting; Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
443
diff
changeset
|
242 AC_MSG_RESULT([yes]) |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
243 ],[ |
446
3119716480ad
Added m4 quoting; Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
443
diff
changeset
|
244 OPT_SONGPOS="no" |
3119716480ad
Added m4 quoting; Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
443
diff
changeset
|
245 AC_MSG_RESULT([no]) |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
246 ]) |
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
247 CPPFLAGS=$tmp_CPPFLAGS |
35 | 248 |
1 | 249 |
250 dnl *** | |
10 | 251 dnl *** Check XMMS version |
1 | 252 dnl *** |
443 | 253 AM_PATH_XMMS([1.2.0],, [ |
10 | 254 AC_MSG_ERROR([*** XMMS >= 1.2.0 not found. You need XMMS v1.2.0 or later to use XMMS-SID plugin.]) |
255 ]) | |
256 libdir=$XMMS_INPUT_PLUGIN_DIR | |
1 | 257 |
443 | 258 XMMS_TEST_VERSION([$XMMS_VERSION], [1.2.5], [ |
259 AC_DEFINE([HAVE_XMMSEXTRA]) | |
260 OPT_XMMSEXTRA="yes" | |
10 | 261 ], [ |
443 | 262 OPT_XMMSEXTRA="no" |
10 | 263 ]) |
1 | 264 |
265 | |
266 dnl *** | |
267 dnl *** And finally, output the all generatable files! | |
268 dnl *** | |
10 | 269 AC_CONFIG_FILES([ |
1 | 270 Makefile |
10 | 271 xmms-sid.spec |
431 | 272 po/Makefile.in |
1 | 273 ]) |
10 | 274 AC_OUTPUT |
275 | |
276 | |
277 dnl *** | |
278 dnl *** Show the result message | |
279 dnl *** | |
280 AC_MSG_RESULT([ | |
281 XMMS-SID has been configured successfully: | |
282 | |
283 Installation directory : $libdir | |
284 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
|
285 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
|
286 libSIDPlay 1 support : $OPT_SIDPLAY1 |
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
287 libSIDPlay 2 support : $OPT_SIDPLAY2 |
35 | 288 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
|
289 XMMS-SID theme SID-tune : $OPT_THEMETUNE |
472 | 290 Translations (i18n/nls) : $USE_NLS |
10 | 291 ]) |