Mercurial > hg > xmms-sid
annotate configure.ac @ 1006:450b1cc45aa6
Update pots.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 09 Jan 2014 23:46:02 +0200 |
parents | 355bffec44ac |
children | 2832987bdce9 |
rev | line source |
---|---|
1 | 1 dnl *** |
2 dnl *** Process this file with autoconf to produce a configure script. | |
3 dnl *** | |
4 | |
829
2531396c2718
Bump up autoconf version requirement.
Matti Hamalainen <ccr@tnsp.org>
parents:
828
diff
changeset
|
5 dnl Require autoconf 2.65 or later |
2531396c2718
Bump up autoconf version requirement.
Matti Hamalainen <ccr@tnsp.org>
parents:
828
diff
changeset
|
6 AC_PREREQ([2.65]) |
10 | 7 |
8 dnl Initialize | |
1004 | 9 AC_INIT([XMMS-SID], [0.9.2], [ccr@tnsp.org]) |
1005 | 10 AC_COPYRIGHT([[(C) 2003-2014 Matti 'ccr' Hamalainen]]) |
158 | 11 AC_CONFIG_SRCDIR([src/xmms-sid.h]) |
1000 | 12 AM_INIT_AUTOMAKE([foreign]) |
13 AM_SILENT_RULES([yes]) | |
158 | 14 AC_CONFIG_HEADERS([src/config.h]) |
806 | 15 AM_GNU_GETTEXT_VERSION([0.18.1]) |
433 | 16 AM_GNU_GETTEXT([external]) |
35 | 17 |
18 | |
19 dnl *** | |
20 dnl *** Define some templates | |
21 dnl *** | |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
22 AH_TEMPLATE([HAVE_SONG_POSITION], [Define if you have XMMS patched with the songpos patch.]) |
810
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
23 AH_TEMPLATE([HAVE_SIDPLAY1], [Define if you have and want to use libSIDPlay 1.]) |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
24 AH_TEMPLATE([HAVE_SIDPLAY2], [Define if you have and want to use libSIDPlay 2.]) |
996
9feda7db56d7
s/libSIDPlay2-FP/libSIDPlayFP/g.
Matti Hamalainen <ccr@tnsp.org>
parents:
991
diff
changeset
|
25 AH_TEMPLATE([HAVE_SIDPLAYFP], [Define if you have and want to use libSIDPlayFP http://sourceforge.net/projects/sidplay-residfp/]) |
9feda7db56d7
s/libSIDPlay2-FP/libSIDPlayFP/g.
Matti Hamalainen <ccr@tnsp.org>
parents:
991
diff
changeset
|
26 AH_TEMPLATE([HAVE_SIDPLAYFP_V10], [Define if you are using v1.0.x API of libSIDPlayFP.]) |
9feda7db56d7
s/libSIDPlay2-FP/libSIDPlayFP/g.
Matti Hamalainen <ccr@tnsp.org>
parents:
991
diff
changeset
|
27 AH_TEMPLATE([HAVE_SIDPLAYFP_V11], [Define if you are using v1.1.x API of libSIDPlayFP.]) |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
28 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.]) |
810
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
29 AH_TEMPLATE([DEBUG], [Define if you wish to enable debug output to terminal.]) |
10 | 30 |
1 | 31 |
32 dnl *** | |
33 dnl *** Some general checks | |
34 dnl *** | |
248
a66c634b222a
Macro quotation cleanup to satisfy Automake 1.8 and friends.
Matti Hamalainen <ccr@tnsp.org>
parents:
247
diff
changeset
|
35 AC_PREFIX_PROGRAM([xmms]) |
1 | 36 AC_DISABLE_STATIC |
148 | 37 AC_LIB_RPATH |
1 | 38 AM_PROG_LIBTOOL |
397
c4e5604a8257
Largefile support additions.
Matti Hamalainen <ccr@tnsp.org>
parents:
386
diff
changeset
|
39 AC_SYS_LARGEFILE |
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?]])) |
734
60c449d7e3b4
Update Gtk+1 version requirement to the last release.
Matti Hamalainen <ccr@tnsp.org>
parents:
733
diff
changeset
|
56 AM_PATH_GLIB([1.2.10],,AC_MSG_ERROR([[*** GLib >= 1.2.10 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/)]])) |
60c449d7e3b4
Update Gtk+1 version requirement to the last release.
Matti Hamalainen <ccr@tnsp.org>
parents:
733
diff
changeset
|
57 AM_PATH_GTK([1.2.10],,AC_MSG_ERROR([[*** Gtk+ >= 1.2.10 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 |
933
6820177eb6da
Properly check for things like off_t and size_t and few libc functions, just to
Matti Hamalainen <ccr@tnsp.org>
parents:
929
diff
changeset
|
64 AC_C_INLINE |
6820177eb6da
Properly check for things like off_t and size_t and few libc functions, just to
Matti Hamalainen <ccr@tnsp.org>
parents:
929
diff
changeset
|
65 AC_C_CONST |
946
f8e1de328ac1
Fix various compilation related issues, make includes more POSIX compliant,
Matti Hamalainen <ccr@tnsp.org>
parents:
934
diff
changeset
|
66 AC_CHECK_HEADERS([stdlib.h string.h unistd.h stdarg.h]) |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
67 |
933
6820177eb6da
Properly check for things like off_t and size_t and few libc functions, just to
Matti Hamalainen <ccr@tnsp.org>
parents:
929
diff
changeset
|
68 AC_TYPE_OFF_T |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
69 AC_TYPE_SIZE_T |
933
6820177eb6da
Properly check for things like off_t and size_t and few libc functions, just to
Matti Hamalainen <ccr@tnsp.org>
parents:
929
diff
changeset
|
70 AC_FUNC_FSEEKO |
6820177eb6da
Properly check for things like off_t and size_t and few libc functions, just to
Matti Hamalainen <ccr@tnsp.org>
parents:
929
diff
changeset
|
71 dnl XS_CHECK_FEATURE([ac_cv_sys_largefile_source], [fseeko/ftello]) |
6820177eb6da
Properly check for things like off_t and size_t and few libc functions, just to
Matti Hamalainen <ccr@tnsp.org>
parents:
929
diff
changeset
|
72 AC_CHECK_FUNCS([memset]) |
6820177eb6da
Properly check for things like off_t and size_t and few libc functions, just to
Matti Hamalainen <ccr@tnsp.org>
parents:
929
diff
changeset
|
73 XS_CHECK_FEATURE([ac_cv_func_memset], [memset]) |
6820177eb6da
Properly check for things like off_t and size_t and few libc functions, just to
Matti Hamalainen <ccr@tnsp.org>
parents:
929
diff
changeset
|
74 AC_CHECK_FUNCS([bsearch]) |
6820177eb6da
Properly check for things like off_t and size_t and few libc functions, just to
Matti Hamalainen <ccr@tnsp.org>
parents:
929
diff
changeset
|
75 XS_CHECK_FEATURE([ac_cv_func_bsearch], [bsearch]) |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
76 |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
77 |
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
78 dnl *** |
810
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
79 dnl *** Enable debugging |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
80 dnl *** |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
81 AC_ARG_ENABLE([debug], |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
82 [AS_HELP_STRING([--enable-debug], [Enable debug output to terminal/console.])], |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
83 [ |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
84 if test "x$enableval" = "xyes"; then |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
85 xs_enable_debug=yes |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
86 else |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
87 xs_enable_debug=no |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
88 fi |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
89 ], [xs_enable_debug=no]) |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
90 if test "x$xs_enable_debug" = "xyes"; then |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
91 AC_DEFINE([DEBUG]) |
823
6f7fada39665
Add -fstack-protector-all to debug mode CC options.
Matti Hamalainen <ccr@tnsp.org>
parents:
818
diff
changeset
|
92 CFLAGS="$CFLAGS -fstack-protector-all" |
6f7fada39665
Add -fstack-protector-all to debug mode CC options.
Matti Hamalainen <ccr@tnsp.org>
parents:
818
diff
changeset
|
93 CXXFLAGS="$CXXFLAGS -fstack-protector-all" |
810
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
94 fi |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
95 |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
96 |
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
97 dnl *** |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
98 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
|
99 dnl *** |
443 | 100 AC_ARG_ENABLE([themetune], |
707 | 101 [AS_HELP_STRING([--disable-themetune], |
102 [Disable XMMS-SID theme song-related code and installation of the SID-tune file. The tune is not under GNU GPL, refer to README for license.]) | |
103 ], [ | |
410 | 104 if test "x$enableval" = "xyes"; then |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
105 xs_have_themetune=yes |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
106 else |
443 | 107 if test "x$enableval" = "xno"; then |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
108 xs_have_themetune=no |
254
d3a4d35f2a8f
Themetune, at least temporarily. Haven't asked Agemixer yet for permission.
Matti Hamalainen <ccr@tnsp.org>
parents:
248
diff
changeset
|
109 else |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
110 xs_have_themetune=no |
254
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 fi |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
113 ], [xs_have_themetune=yes]) |
724 | 114 if test "x$xs_have_themetune" = "xyes"; then |
115 AC_DEFINE([HAVE_THEMETUNE]) | |
116 fi | |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
117 |
1 | 118 |
10 | 119 dnl *** |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
120 dnl *** libSIDPlay1/2 options |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
121 dnl *** |
854
9313d991957a
libSIDPlay2 and libSIDPlayFP don't play together due to symbol conflicts, so
Matti Hamalainen <ccr@tnsp.org>
parents:
841
diff
changeset
|
122 xs_have_sidplay1=no |
9313d991957a
libSIDPlay2 and libSIDPlayFP don't play together due to symbol conflicts, so
Matti Hamalainen <ccr@tnsp.org>
parents:
841
diff
changeset
|
123 xs_have_sidplay2=no |
9313d991957a
libSIDPlay2 and libSIDPlayFP don't play together due to symbol conflicts, so
Matti Hamalainen <ccr@tnsp.org>
parents:
841
diff
changeset
|
124 xs_have_sidplayfp=no |
9313d991957a
libSIDPlay2 and libSIDPlayFP don't play together due to symbol conflicts, so
Matti Hamalainen <ccr@tnsp.org>
parents:
841
diff
changeset
|
125 |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
126 XS_ARG_WITH([sidplay1], [libSIDPlay1], [XS_PATH_LIBSIDPLAY1]) |
410 | 127 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
|
128 AC_DEFINE([HAVE_SIDPLAY1]) |
31
ca6dab6c4ead
Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
23
diff
changeset
|
129 fi |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
130 |
744
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
131 |
800
1fe6005ed58c
Make it so that both libSIDPlay2 and libSIDPlay-FP can co-exist, though not
Matti Hamalainen <ccr@tnsp.org>
parents:
795
diff
changeset
|
132 XS_ARG_WITH([sidplayfp], [libSIDPlayFP], [XS_PATH_LIBSIDPLAYFP]) |
744
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
133 |
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
134 if test "x$xs_have_sidplayfp" = "xyes"; then |
838
ae1f6418d093
libSIDPlay2-FP backend interface is now in a separate module. Configuration
Matti Hamalainen <ccr@tnsp.org>
parents:
829
diff
changeset
|
135 AC_DEFINE([HAVE_SIDPLAYFP]) |
744
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
136 AC_DEFINE([HAVE_HARDSID_BUILDER]) |
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
137 AC_DEFINE([HAVE_RESID_BUILDER]) |
795
3e305ce076e8
Make old libSIDPlay2 support work again, the one available in most distros, such as Debian.
Matti Hamalainen <ccr@tnsp.org>
parents:
747
diff
changeset
|
138 AC_DEFINE([HAVE_RESID_FP_BUILDER]) |
991
34259889b2b1
Add support for libSIDPlay-FP v1.1.x.
Matti Hamalainen <ccr@tnsp.org>
parents:
986
diff
changeset
|
139 if test "x$xs_pkg_sidplayfp_v10" = "xyes"; then |
34259889b2b1
Add support for libSIDPlay-FP v1.1.x.
Matti Hamalainen <ccr@tnsp.org>
parents:
986
diff
changeset
|
140 AC_DEFINE([HAVE_SIDPLAYFP_V10]) |
34259889b2b1
Add support for libSIDPlay-FP v1.1.x.
Matti Hamalainen <ccr@tnsp.org>
parents:
986
diff
changeset
|
141 fi |
34259889b2b1
Add support for libSIDPlay-FP v1.1.x.
Matti Hamalainen <ccr@tnsp.org>
parents:
986
diff
changeset
|
142 if test "x$xs_pkg_sidplayfp_v11" = "xyes"; then |
34259889b2b1
Add support for libSIDPlay-FP v1.1.x.
Matti Hamalainen <ccr@tnsp.org>
parents:
986
diff
changeset
|
143 AC_DEFINE([HAVE_SIDPLAYFP_V11]) |
839
29f3c3f29c0d
Finalize libSIDPlay2 vs FP configuration stuff.
Matti Hamalainen <ccr@tnsp.org>
parents:
838
diff
changeset
|
144 fi |
854
9313d991957a
libSIDPlay2 and libSIDPlayFP don't play together due to symbol conflicts, so
Matti Hamalainen <ccr@tnsp.org>
parents:
841
diff
changeset
|
145 dnl fi |
9313d991957a
libSIDPlay2 and libSIDPlayFP don't play together due to symbol conflicts, so
Matti Hamalainen <ccr@tnsp.org>
parents:
841
diff
changeset
|
146 else |
838
ae1f6418d093
libSIDPlay2-FP backend interface is now in a separate module. Configuration
Matti Hamalainen <ccr@tnsp.org>
parents:
829
diff
changeset
|
147 xs_have_sidplay2_api="" |
800
1fe6005ed58c
Make it so that both libSIDPlay2 and libSIDPlay-FP can co-exist, though not
Matti Hamalainen <ccr@tnsp.org>
parents:
795
diff
changeset
|
148 XS_ARG_WITH([sidplay2], [libSIDPlay2], [XS_PATH_LIBSIDPLAY2]) |
1fe6005ed58c
Make it so that both libSIDPlay2 and libSIDPlay-FP can co-exist, though not
Matti Hamalainen <ccr@tnsp.org>
parents:
795
diff
changeset
|
149 if test "x$xs_have_sidplay2" = "xyes"; then |
838
ae1f6418d093
libSIDPlay2-FP backend interface is now in a separate module. Configuration
Matti Hamalainen <ccr@tnsp.org>
parents:
829
diff
changeset
|
150 xs_have_sidplay2_api="(old non-COMI)" |
744
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
151 AC_DEFINE([HAVE_SIDPLAY2]) |
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
152 |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
153 AC_LANG_PUSH([C++]) |
690
5066bced5160
Fixes in distortion patch and libsidplay2 COM API detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
689
diff
changeset
|
154 |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
155 XS_BUILDERS_CHECK |
729
92c284766c49
Synchronize changes from Audacious port.
Matti Hamalainen <ccr@tnsp.org>
parents:
728
diff
changeset
|
156 xs_builders_available="no" |
838
ae1f6418d093
libSIDPlay2-FP backend interface is now in a separate module. Configuration
Matti Hamalainen <ccr@tnsp.org>
parents:
829
diff
changeset
|
157 dnl This is a faux check, to satisfy things |
795
3e305ce076e8
Make old libSIDPlay2 support work again, the one available in most distros, such as Debian.
Matti Hamalainen <ccr@tnsp.org>
parents:
747
diff
changeset
|
158 XS_BUILDERS_FIND([reSID_FP], [residfp-builder], [residfp.h], [ReSIDfpBuilder]) |
838
ae1f6418d093
libSIDPlay2-FP backend interface is now in a separate module. Configuration
Matti Hamalainen <ccr@tnsp.org>
parents:
829
diff
changeset
|
159 dnl These checks are real |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
160 XS_BUILDERS_FIND([reSID], [resid-builder], [resid.h], [ReSIDBuilder]) |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
161 XS_BUILDERS_FIND([HardSID], [hardsid-builder], [hardsid.h], [HardSID]) |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
162 if test "x$xs_builders_available" = "xno"; then |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
163 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
|
164 fi |
744
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
165 |
690
5066bced5160
Fixes in distortion patch and libsidplay2 COM API detection.
Matti Hamalainen <ccr@tnsp.org>
parents:
689
diff
changeset
|
166 AC_LANG_POP([C++]) |
35 | 167 fi |
854
9313d991957a
libSIDPlay2 and libSIDPlayFP don't play together due to symbol conflicts, so
Matti Hamalainen <ccr@tnsp.org>
parents:
841
diff
changeset
|
168 fi |
125
532ec0ad5e59
Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents:
114
diff
changeset
|
169 |
532ec0ad5e59
Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents:
114
diff
changeset
|
170 dnl *** |
47
fd610bb817bc
Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents:
43
diff
changeset
|
171 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
|
172 dnl *** |
744
c7fa50576c70
Initial implementation for supporting libSIDPlay2-FP (or libSIDPlay-FP, as
Matti Hamalainen <ccr@tnsp.org>
parents:
743
diff
changeset
|
173 if test "x$xs_have_sidplay1" != "xyes" -a "x$xs_have_sidplay2" != "xyes" -a "x$xs_have_sidplayfp" != "xyes"; then |
996
9feda7db56d7
s/libSIDPlay2-FP/libSIDPlayFP/g.
Matti Hamalainen <ccr@tnsp.org>
parents:
991
diff
changeset
|
174 AC_MSG_ERROR([Either libSIDPlay1, libSIDPlay2 or libSIDPlayFP 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
|
175 fi |
1 | 176 |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
177 |
35 | 178 dnl *** |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
179 dnl *** Song position patch check |
35 | 180 dnl *** |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
181 AC_MSG_CHECKING([for song position patch]) |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
182 tmp_CPPFLAGS="$CPPFLAGS" |
410 | 183 if test -d "$prefix"; then |
446
3119716480ad
Added m4 quoting; Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
443
diff
changeset
|
184 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
|
185 fi |
35 | 186 |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
187 AC_EGREP_HEADER([set_song_position], [xmms/plugin.h], [ |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
188 xs_have_songpos="yes" |
446
3119716480ad
Added m4 quoting; Indentation cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents:
443
diff
changeset
|
189 AC_DEFINE([HAVE_SONG_POSITION]) |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
190 ],[ |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
191 xs_have_songpos="no" |
79
b3e17bb32b21
Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents:
47
diff
changeset
|
192 ]) |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
193 AC_MSG_RESULT([$xs_have_songpos]) |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
194 CPPFLAGS="$tmp_CPPFLAGS" |
35 | 195 |
1 | 196 |
197 dnl *** | |
10 | 198 dnl *** Check XMMS version |
1 | 199 dnl *** |
745
9dc5378cc806
Remove XMMS_EXTRA stuff, as we require XMMS 1.2.10+ now.
Matti Hamalainen <ccr@tnsp.org>
parents:
744
diff
changeset
|
200 AM_PATH_XMMS([1.2.10],, [ |
9dc5378cc806
Remove XMMS_EXTRA stuff, as we require XMMS 1.2.10+ now.
Matti Hamalainen <ccr@tnsp.org>
parents:
744
diff
changeset
|
201 AC_MSG_ERROR([*** XMMS >= 1.2.10 not found. You need XMMS v1.2.10 or later to use XMMS-SID plugin.]) |
10 | 202 ]) |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
203 libdir="$XMMS_INPUT_PLUGIN_DIR" |
1 | 204 |
205 | |
206 dnl *** | |
207 dnl *** And finally, output the all generatable files! | |
208 dnl *** | |
10 | 209 AC_CONFIG_FILES([ |
1 | 210 Makefile |
10 | 211 xmms-sid.spec |
431 | 212 po/Makefile.in |
1 | 213 ]) |
10 | 214 AC_OUTPUT |
215 | |
216 | |
217 dnl *** | |
218 dnl *** Show the result message | |
219 dnl *** | |
220 AC_MSG_RESULT([ | |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
221 $PACKAGE_STRING has been configured successfully: |
10 | 222 |
807
9372ea9efcf1
Add installation prefix to the configure informational output.
Matti Hamalainen <ccr@tnsp.org>
parents:
806
diff
changeset
|
223 Prefix : $prefix |
9372ea9efcf1
Add installation prefix to the configure informational output.
Matti Hamalainen <ccr@tnsp.org>
parents:
806
diff
changeset
|
224 Plugin installation directory : $libdir |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
225 Song-position patch : $xs_have_songpos |
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
226 libSIDPlay 1 support : $xs_have_sidplay1 |
838
ae1f6418d093
libSIDPlay2-FP backend interface is now in a separate module. Configuration
Matti Hamalainen <ccr@tnsp.org>
parents:
829
diff
changeset
|
227 libSIDPlay 2 support : $xs_have_sidplay2 $xs_have_sidplay2_api |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
228 Included builders : $xs_builders |
838
ae1f6418d093
libSIDPlay2-FP backend interface is now in a separate module. Configuration
Matti Hamalainen <ccr@tnsp.org>
parents:
829
diff
changeset
|
229 libSIDPlay 2-FP support : $xs_have_sidplayfp |
677
0e879fb48b48
Use the improved m4 macros; Some additional configure cleanups done; Added
Matti Hamalainen <ccr@tnsp.org>
parents:
674
diff
changeset
|
230 XMMS-SID theme SID-tune : $xs_have_themetune |
472 | 231 Translations (i18n/nls) : $USE_NLS |
810
0c2f8ee6be42
Make debug output compile-time configurable via --enable-debug. Disabled by
Matti Hamalainen <ccr@tnsp.org>
parents:
807
diff
changeset
|
232 Debugging enabled : $xs_enable_debug |
10 | 233 ]) |