annotate configure.in @ 186:31a04bd9310c

Lines
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 18 Aug 2004 05:25:02 +0000
parents d75e8051c84e
children bd7375970826
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 dnl ***
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 dnl *** Process this file with autoconf to produce a configure script.
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 dnl ***
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
5 dnl Require autoconf 2.56 or later
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
6 AC_PREREQ(2.56)
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
7
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
8 dnl Initialize
166
1a9628783f23 Updated documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 158
diff changeset
9 AC_INIT([XMMS-SID], [0.8.0beta12], [ccr@tnsp.org])
97
f69fa2496512 - Cleaned changelog, moved to ChangeLog.old
Matti Hamalainen <ccr@tnsp.org>
parents: 93
diff changeset
10 AC_COPYRIGHT([[(C) 2003-2004 Matti 'ccr' Hämäläinen]])
158
2ae878523164 Minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 157
diff changeset
11 AC_CONFIG_SRCDIR([src/xmms-sid.h])
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
12 AM_INIT_AUTOMAKE
158
2ae878523164 Minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 157
diff changeset
13 AC_CONFIG_HEADERS([src/config.h])
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
14
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
15
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
16 dnl ***
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
17 dnl *** Define some templates
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
18 dnl ***
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])
125
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
23 AH_TEMPLATE([HAVE_NANOSID],[Define if you have and want to use libNanoSID])
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
24 AH_TEMPLATE([HAVE_RESID_BUILDER],[Define if you have reSID with libSIDPlay 2])
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
25 AH_TEMPLATE([HAVE_HARDSID_BUILDER],[Define if you have HardSID with libSIDPlay 2])
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
26
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
28 dnl ***
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29 dnl *** Some general checks
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
30 dnl ***
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
31 AC_PREFIX_PROGRAM(xmms)
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
32 AC_DISABLE_STATIC
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
33 AC_LIBTOOL_DLOPEN
148
1075c4d9f112 0.8.0rc1
Matti Hamalainen <ccr@tnsp.org>
parents: 143
diff changeset
34 AC_LIB_RPATH
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
35 AM_PROG_LIBTOOL
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
36
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
37
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
38 dnl ***
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
39 dnl *** Checks for programs
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
40 dnl ***
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
41 AC_PROG_CXX
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
42 AC_PROG_CC
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
43 AC_PROG_CPP
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
44 AC_PROG_INSTALL
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
45
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
46
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
47 dnl ***
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
48 dnl *** Checks for generic libraries
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
49 dnl ***
158
2ae878523164 Minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 157
diff changeset
50 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/)]))
2ae878523164 Minor fixes
Matti Hamalainen <ccr@tnsp.org>
parents: 157
diff changeset
51 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
52
47
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
53
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
54 dnl ***
79
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
55 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
56 dnl ***
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
57 AC_HEADER_STDC
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
58 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
59
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
60 AC_HEADER_STDBOOL
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
61 AC_TYPE_SIZE_T
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
62 AC_C_CONST
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
63 AC_C_INLINE
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
64 AC_C_VOLATILE
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
65 AC_C_BIGENDIAN
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_FUNC_MALLOC
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
68 AC_TYPE_SIGNAL
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
69 AC_FUNC_STAT
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
70 AC_CHECK_FUNCS([memset strcasecmp strerror strrchr])
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
71
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 dnl ***
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
74 dnl *** libSIDPlay 1 options
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
75 dnl ***
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
76 AC_ARG_WITH(sidplay1,
47
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
77 [
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
78 --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
79 [
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
80 if test "$withval" = yes; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
81 xs_sidplay1=yes
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
82 xs_sidplay1_library=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
83 xs_sidplay1_includes=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
84 else
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
85 if test "$withval" = no; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
86 xs_sidplay1=no
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
87 else
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
88 xs_sidplay1=yes
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
89 xs_sidplay1_includes="$withval/include"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
90 xs_sidplay1_library="$withval/lib"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
91 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
92 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
93 ],[
79
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
94 xs_sidplay1=xtry
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
95 xs_sidplay1_library=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
96 xs_sidplay1_includes=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
97 ])
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
98
186
Matti Hamalainen <ccr@tnsp.org>
parents: 180
diff changeset
99
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
100 AC_ARG_WITH(sidplay1-inc,
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
101 [ --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
102 [xs_sidplay1_includes="$withval"],)
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
103
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
104 AC_ARG_WITH(sidplay1-lib,
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
105 [ --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
106 [xs_sidplay1_library="$withval"],)
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
107
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
108
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
109 dnl ***
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
110 dnl *** libSIDPlay 2 options
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
111 dnl ***
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
112 AC_ARG_WITH(sidplay2,
47
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
113 [
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
114 --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
115 [
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
116 if test "$withval" = yes; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
117 xs_sidplay2=yes
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
118 xs_sidplay2_library=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
119 xs_sidplay2_includes=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
120 else
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
121 if test "$withval" = no; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
122 xs_sidplay2=no
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
123 else
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
124 xs_sidplay2=yes
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
125 xs_sidplay2_includes="$withval/include"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
126 xs_sidplay2_library="$withval/lib"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
127 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
128 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
129 ],[
79
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
130 xs_sidplay2=xtry
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
131 xs_sidplay2_library=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
132 xs_sidplay2_includes=""
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
133 ])
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
134
186
Matti Hamalainen <ccr@tnsp.org>
parents: 180
diff changeset
135
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
136 AC_ARG_WITH(sidplay2-inc,
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
137 [ --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
138 [xs_sidplay2_includes="$withval"],)
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
139
186
Matti Hamalainen <ccr@tnsp.org>
parents: 180
diff changeset
140
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
141 AC_ARG_WITH(sidplay2-lib,
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
142 [ --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
143 [xs_sidplay2_library="$withval"],)
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
144
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
145
125
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
146 dnl ***
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
147 dnl *** libNanoSID options
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
148 dnl ***
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
149 AC_ARG_WITH(nanosid,
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
150 [
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
151 --with-nanosid=PREFIX Enable NanoSID with PREFIX],
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
152 [
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
153 if test "$withval" = yes; then
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
154 xs_nanosid=yes
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
155 xs_nanosid_library=""
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
156 xs_nanosid_includes=""
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
157 else
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
158 if test "$withval" = no; then
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
159 xs_nanosid=no
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
160 else
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
161 xs_nanosid=yes
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
162 xs_nanosid_includes="$withval/include"
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
163 xs_nanosid_library="$withval/lib"
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
164 fi
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
165 fi
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
166 ],[
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
167 xs_nanosid=xtry
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
168 xs_nanosid_library=""
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
169 xs_nanosid_includes=""
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
170 ])
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
171
186
Matti Hamalainen <ccr@tnsp.org>
parents: 180
diff changeset
172
125
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
173 AC_ARG_WITH(nanosid-inc,
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
174 [ --with-nanosid-inc=DIR Where the NanoSID headers are located],
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
175 [xs_nanosid_includes="$withval"],)
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
176
186
Matti Hamalainen <ccr@tnsp.org>
parents: 180
diff changeset
177
125
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
178 AC_ARG_WITH(sidplay1-lib,
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
179 [ --with-nanosid-lib=DIR Where the NanoSID library is installed],
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
180 [xs_nanosid_library="$withval"],)
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
181
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
182
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
183 dnl ***
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
184 dnl *** Determine if libraries are wanted and available
125
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
185 dnl ***
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
186 OPT_SIDPLAY1="no"
79
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
187 if test "$xs_sidplay1" = xtry; then
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
188 XS_PATH_LIBSIDPLAY1
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
189 else
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
190 if test "$xs_sidplay1" = yes; then
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
191 XS_PATH_LIBSIDPLAY1
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
192 if test "$xs_have_sidplay1" = no; then
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
193 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
194 fi
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
195 fi
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
196 fi
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
197 if test "$xs_have_sidplay1" = yes; then
79
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
198 AC_DEFINE(HAVE_SIDPLAY1)
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
199 OPT_SIDPLAY1="yes"
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
200 fi
79
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
201
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
202
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
203
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
204 OPT_SIDPLAY2="no"
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
205 LIBSIDPLAY2_REQUIRED_VERSION="2.1.0"
79
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
206 if test "$xs_sidplay2" = xtry; then
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
207 XS_PATH_LIBSIDPLAY2
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
208 else
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
209 if test "$xs_sidplay2" = yes; then
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
210 XS_PATH_LIBSIDPLAY2
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
211 if test "$xs_have_sidplay2" = no; then
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
212 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
213 fi
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
214 fi
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
215 fi
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
216 if test "$xs_have_sidplay2" = yes; then
79
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
217 AC_DEFINE(HAVE_SIDPLAY2)
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
218 OPT_SIDPLAY2="yes"
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
219 BUILDERS_FIND
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
220 BUILDERS_FIND_RESID
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
221 BUILDERS_FIND_HARDSID
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
222 if test "$builders_available" = no; then
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
223 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
224 fi
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
225 fi
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
226
125
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
227
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
228 OPT_NANOSID="no"
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
229 if test "$xs_nanosid" = xtry; then
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
230 XS_PATH_LIBNANOSID
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
231 else
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
232 if test "$xs_nanosid" = yes; then
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
233 XS_PATH_LIBNANOSID
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
234 if test "$xs_have_nanosid" = no; then
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
235 AC_MSG_ERROR([libNanoSID library and/or headers were not found!])
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
236 fi
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
237 fi
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
238 fi
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
239 if test "$xs_have_nanosid" = yes; then
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
240 AC_DEFINE(HAVE_NANOSID)
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
241 OPT_NANOSID="yes"
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
242 fi
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
243
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
244
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
245 dnl ***
47
fd610bb817bc Updated specfile, added new configure options and improved detections
Matti Hamalainen <ccr@tnsp.org>
parents: 43
diff changeset
246 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
247 dnl ***
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
248 if test "$OPT_SIDPLAY1" = no; then
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
249 if test "$OPT_SIDPLAY2" = no; then
125
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
250 if test "$OPT_NANOSID" = no; then
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
251 AC_MSG_ERROR([Either libSIDPlay1, libSIDPlay2 or libNanoSID is required! Please read INSTALL for more information!])
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
252 fi
31
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
253 fi
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
254 fi
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
255
79
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
256
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
257 dnl ***
79
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
258 dnl *** Song position patch check
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
259 dnl ***
79
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
260 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
261 tmp_CPPFLAGS=$CPPFLAGS
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
262 if test -d "$prefix" ;then
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
263 CPPFLAGS="$CPPFLAGS -I${prefix}/include"
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
264 fi
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
265
79
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
266 AC_EGREP_HEADER(set_song_position,xmms/plugin.h,
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
267 [
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
268 OPT_SONGPOS="yes"
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
269 AC_DEFINE(HAVE_SONG_POSITION)
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
270 AC_MSG_RESULT([yes])
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
271 ],[
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
272 OPT_SONGPOS="no"
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
273 AC_MSG_RESULT([no])
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
274 ])
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
275
79
b3e17bb32b21 Re-added support for detection of song-position patch,
Matti Hamalainen <ccr@tnsp.org>
parents: 47
diff changeset
276 CPPFLAGS=$tmp_CPPFLAGS
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
277
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
278
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
279 dnl ***
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
280 dnl *** Check XMMS version
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
281 dnl ***
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
282 AM_PATH_XMMS(1.2.0,, [
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
283 AC_MSG_ERROR([*** XMMS >= 1.2.0 not found. You need XMMS v1.2.0 or later to use XMMS-SID plugin.])
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
284 ])
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
285 libdir=$XMMS_INPUT_PLUGIN_DIR
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
286
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
287 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
288 AC_DEFINE(HAVE_XMMSEXTRA)
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
289 OPT_XMMSEXTRA="yes"
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
290 ], [
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
291 OPT_XMMSEXTRA="no"
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
292 ])
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
293
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
294
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
295 dnl ***
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
296 dnl *** And finally, output the all generatable files!
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
297 dnl ***
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
298 AC_CONFIG_FILES([
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
299 Makefile
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
300 xmms-sid.spec
1
183e7cbc1036 Initial revision
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
301 ])
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
302 AC_OUTPUT
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
303
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
304
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
305 dnl ***
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
306 dnl *** Show the result message
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
307 dnl ***
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
308 AC_MSG_RESULT([
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
309 XMMS-SID has been configured successfully:
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
310
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
311 Installation directory : $libdir
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
312 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
313 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
314 libSIDPlay 1 support : $OPT_SIDPLAY1
ca6dab6c4ead Re-wrote configuration scripts and libsidplay 1/2 detection.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
315 libSIDPlay 2 support : $OPT_SIDPLAY2
35
3fcc147b253a Updates towards 0.8beta0
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
316 Included builders : $xs_builders
125
532ec0ad5e59 Added support/detection for libNanoSID.
Matti Hamalainen <ccr@tnsp.org>
parents: 114
diff changeset
317 libNanoSID support : $OPT_NANOSID
10
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
318
364fe4a69c2b Updating ...
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
319 ])