Mercurial > hg > xmms-sid
comparison configure.in @ 35:3fcc147b253a
Updates towards 0.8beta0
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 19 Jun 2003 20:13:00 +0000 |
parents | 9cf8092ec7d3 |
children | 3c609b6d5a02 |
comparison
equal
deleted
inserted
replaced
34:0e1189b94a7f | 35:3fcc147b253a |
---|---|
1 dnl *** | 1 dnl *** |
2 dnl *** Process this file with autoconf to produce a configure script. | 2 dnl *** Process this file with autoconf to produce a configure script. |
3 dnl *** | 3 dnl *** |
4 | 4 |
5 dnl Require autoconf 2.54 or later | 5 dnl Require autoconf 2.56 or later |
6 AC_PREREQ(2.54) | 6 AC_PREREQ(2.56) |
7 | 7 |
8 dnl Initialize | 8 dnl Initialize |
9 AC_INIT(XMMS-SID, 0.8.0beta1, ccr@tnsp.org) | 9 AC_INIT(XMMS-SID, 0.8.0beta1, ccr@tnsp.org) |
10 AC_COPYRIGHT([[(C) 2002-2003 Matti 'ccr' Hämäläinen]]) | 10 AC_COPYRIGHT([[(C) 2002-2003 Matti 'ccr' Hämäläinen]]) |
11 AC_CONFIG_SRCDIR(src/xmms-sid.h) | 11 AC_CONFIG_SRCDIR(src/xmms-sid.h) |
12 AM_INIT_AUTOMAKE | 12 AM_INIT_AUTOMAKE |
13 AC_CONFIG_HEADERS(config.h) | 13 AC_CONFIG_HEADERS(src/config.h) |
14 | |
15 | |
16 dnl *** | |
17 dnl *** Define some templates | |
18 dnl *** | |
19 AH_TEMPLATE([HAVE_XMMSEXTRA],[Define if you have XMMS version 1.2.5 or later]) | |
20 AH_TEMPLATE([HAVE_SIDPLAY1],[Define if you want to use libSIDPlay 1]) | |
21 AH_TEMPLATE([HAVE_SIDPLAY2],[Define if you want to use libSIDPlay 2]) | |
22 AH_TEMPLATE([HAVE_RESID_BUILDER],[Define if you have reSID with libSIDPlay 2]) | |
23 AH_TEMPLATE([HAVE_HARDSID_BUILDER],[Define if you have HardSID with libSIDPlay 2]) | |
14 | 24 |
15 | 25 |
16 dnl *** | 26 dnl *** |
17 dnl *** Some general checks | 27 dnl *** Some general checks |
18 dnl *** | 28 dnl *** |
29 AC_PREFIX_PROGRAM(xmms) | |
19 AC_DISABLE_STATIC | 30 AC_DISABLE_STATIC |
20 AC_LIBTOOL_DLOPEN | 31 AC_LIBTOOL_DLOPEN |
21 AM_PROG_LIBTOOL | 32 AM_PROG_LIBTOOL |
22 | 33 |
23 | 34 |
24 dnl *** | 35 dnl *** |
25 dnl *** Checks for programs | 36 dnl *** Checks for programs |
26 dnl *** | 37 dnl *** |
38 AC_PROG_CXX | |
27 AC_PROG_CC | 39 AC_PROG_CC |
28 AC_PROG_CXX | 40 AC_PROG_CPP |
29 dnl AC_PROG_CPP | |
30 AC_PROG_INSTALL | 41 AC_PROG_INSTALL |
31 AC_HEADER_STDC | 42 |
32 | |
33 AC_PREFIX_PROGRAM(xmms) | |
34 | 43 |
35 dnl *** | 44 dnl *** |
36 dnl *** Checks for generic libraries | 45 dnl *** Checks for generic libraries |
37 dnl *** | 46 dnl *** |
38 AM_PATH_GLIB(1.2.8,,AC_MSG_ERROR([*** GLib >= 1.2.8 not found. You either don't have GLib at all or your GLib is too old. Latest GLib can be found from Gtk+ homepages (http://www.gtk.org/)])) | 47 AM_PATH_GLIB(1.2.8,,AC_MSG_ERROR([*** GLib >= 1.2.8 not found. You either don't have GLib at all or your GLib is too old. Latest GLib can be found from Gtk+ homepages (http://www.gtk.org/)])) |
41 | 50 |
42 | 51 |
43 dnl *** | 52 dnl *** |
44 dnl *** libSIDPlay 1 options | 53 dnl *** libSIDPlay 1 options |
45 dnl *** | 54 dnl *** |
46 AC_ARG_WITH(libsidplay1, | 55 AC_ARG_WITH(sidplay1, |
47 [ --with-libsidplay1=PREFIX Enable SIDPlay1 with install-PREFIX is], | 56 [ --with-sidplay1=PREFIX Enable SIDPlay1 with install-PREFIX is], |
48 [ | 57 [ |
49 if test "$withval" = yes; then | 58 if test "$withval" = yes; then |
50 xs_sidplay1=yes | 59 xs_sidplay1=yes |
51 xs_sidplay1_library="" | 60 xs_sidplay1_library="" |
52 xs_sidplay1_includes="" | 61 xs_sidplay1_includes="" |
75 | 84 |
76 | 85 |
77 dnl *** | 86 dnl *** |
78 dnl *** libSIDPlay 2 options | 87 dnl *** libSIDPlay 2 options |
79 dnl *** | 88 dnl *** |
80 AC_ARG_WITH(libsidplay2, | 89 AC_ARG_WITH(sidplay2, |
81 [ --with-libsidplay2=PREFIX Enable SIDPlay1 with install-PREFIX is], | 90 [ --with-sidplay2=PREFIX Enable SIDPlay1 with install-PREFIX is], |
82 [ | 91 [ |
83 if test "$withval" = yes; then | 92 if test "$withval" = yes; then |
93 xs_sidplay1=no | |
84 xs_sidplay2=yes | 94 xs_sidplay2=yes |
85 xs_sidplay2_library="" | 95 xs_sidplay2_library="" |
86 xs_sidplay2_includes="" | 96 xs_sidplay2_includes="" |
87 else | 97 else |
88 if test "$withval" = no; then | 98 if test "$withval" = no; then |
89 xs_sidplay2=no | 99 xs_sidplay2=no |
90 else | 100 else |
91 xs_sidplay2=yes | 101 xs_sidplay2=yes |
102 xs_sidplay1=no | |
92 xs_sidplay2_includes="$withval/include" | 103 xs_sidplay2_includes="$withval/include" |
93 xs_sidplay2_library="$withval/lib" | 104 xs_sidplay2_library="$withval/lib" |
94 fi | 105 fi |
95 fi | 106 fi |
96 ],[ | 107 ],[ |
122 fi | 133 fi |
123 fi | 134 fi |
124 | 135 |
125 | 136 |
126 OPT_SIDPLAY2="no" | 137 OPT_SIDPLAY2="no" |
138 if test "$OPT_SIDPLAY1" = no; then | |
127 if test "$xs_sidplay2" = yes; then | 139 if test "$xs_sidplay2" = yes; then |
128 LIBSIDPLAY2_REQUIRED_VERSION="2.1.0" | 140 LIBSIDPLAY2_REQUIRED_VERSION="2.1.0" |
129 XS_PATH_LIBSIDPLAY2 | 141 XS_PATH_LIBSIDPLAY2 |
130 if test "$xs_have_sidplay2" = yes; then | 142 if test "$xs_have_sidplay2" = yes; then |
131 AC_DEFINE(HAVE_SIDPLAY2) | 143 AC_DEFINE(HAVE_SIDPLAY2) |
138 fi | 150 fi |
139 else | 151 else |
140 AC_MSG_ERROR([libSIDPlay2 library and/or headers were not found!]) | 152 AC_MSG_ERROR([libSIDPlay2 library and/or headers were not found!]) |
141 fi | 153 fi |
142 fi | 154 fi |
155 fi | |
143 | 156 |
144 | 157 |
145 dnl *** | 158 dnl *** |
146 dnl *** Check if we have some SIDPlay version | 159 dnl *** Check if we have some SIDPlay version |
147 dnl *** | 160 dnl *** |
148 if test "$OPT_SIDPLAY1" = no; then | 161 if test "$OPT_SIDPLAY1" = no; then |
149 if test "$OPT_SIDPLAY2" = no; then | 162 if test "$OPT_SIDPLAY2" = no; then |
150 AC_MSG_ERROR([Either libSIDPlay1 or libSIDPlay2 is required! Please read INSTALL for more information!]) | 163 AC_MSG_ERROR([Either libSIDPlay1 or libSIDPlay2 is required! Please read INSTALL for more information!]) |
151 fi | 164 fi |
152 fi | 165 fi |
166 | |
167 dnl *** | |
168 dnl *** Checks for header files, types and functions | |
169 dnl *** | |
170 AC_HEADER_STDC | |
171 AC_CHECK_HEADERS([stdlib.h string.h unistd.h]) | |
172 | |
173 AC_HEADER_STDBOOL | |
174 AC_C_CONST | |
175 AC_C_INLINE | |
176 AC_TYPE_SIZE_T | |
177 AC_C_VOLATILE | |
178 | |
179 AC_FUNC_MALLOC | |
180 AC_TYPE_SIGNAL | |
181 AC_FUNC_STAT | |
182 AC_CHECK_FUNCS([memset strcasecmp strerror strrchr]) | |
153 | 183 |
154 | 184 |
155 dnl *** | 185 dnl *** |
156 dnl *** Check XMMS version | 186 dnl *** Check XMMS version |
157 dnl *** | 187 dnl *** |
167 OPT_XMMSEXTRA="no" | 197 OPT_XMMSEXTRA="no" |
168 ]) | 198 ]) |
169 | 199 |
170 | 200 |
171 dnl *** | 201 dnl *** |
172 dnl *** Define some templates | |
173 dnl *** | |
174 AC_DEFINE(HAVE_XMMSEXTRA, 0, Define to 1 if you have XMMS version 1.2.5 or later) | |
175 AC_DEFINE(HAVE_SIDPLAY1, 0, Define to 1 if you want to use libSIDPlay 1) | |
176 AC_DEFINE(HAVE_SIDPLAY2, 0, Define to 1 if you want to use libSIDPlay 2) | |
177 AC_DEFINE(HAVE_RESID_BUILDER, 0, Define to 1 if you have reSID with libSIDPlay 2) | |
178 AC_DEFINE(HAVE_HARDSID_BUILDER, 0, Define to 1 if you have HardSID with libSIDPlay 2) | |
179 | |
180 | |
181 dnl *** | |
182 dnl *** And finally, output the all generatable files! | 202 dnl *** And finally, output the all generatable files! |
183 dnl *** | 203 dnl *** |
184 AC_CONFIG_FILES([ | 204 AC_CONFIG_FILES([ |
185 Makefile | 205 Makefile |
186 src/Makefile | 206 src/Makefile |
197 | 217 |
198 Installation directory : $libdir | 218 Installation directory : $libdir |
199 XMMS >= v1.2.5 extra features : $OPT_XMMSEXTRA | 219 XMMS >= v1.2.5 extra features : $OPT_XMMSEXTRA |
200 libSIDPlay 1 support : $OPT_SIDPLAY1 | 220 libSIDPlay 1 support : $OPT_SIDPLAY1 |
201 libSIDPlay 2 support : $OPT_SIDPLAY2 | 221 libSIDPlay 2 support : $OPT_SIDPLAY2 |
202 | 222 Included builders : $xs_builders |
203 ]) | 223 |
224 ]) |