Mercurial > hg > xmms-sid
comparison configure.in @ 47:fd610bb817bc
Updated specfile, added new configure options and improved detections
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 21 Jun 2003 20:50:02 +0000 |
parents | 3c609b6d5a02 |
children | b3e17bb32b21 |
comparison
equal
deleted
inserted
replaced
46:ffb606e17bec | 47:fd610bb817bc |
---|---|
14 | 14 |
15 | 15 |
16 dnl *** | 16 dnl *** |
17 dnl *** Define some templates | 17 dnl *** Define some templates |
18 dnl *** | 18 dnl *** |
19 AH_TEMPLATE([HAVE_XMMSEXTRA],[Define if you have XMMS version 1.2.5 or later]) | 19 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.]) |
20 AH_TEMPLATE([HAVE_SIDPLAY1],[Define if you want to use libSIDPlay 1]) | 20 AH_TEMPLATE([HAVE_UNSIGNEDPCM],[Define if your audiodevice supports _ONLY_ UNSIGNED PCM samples, otherwise leave undefined.]) |
21 AH_TEMPLATE([HAVE_SIDPLAY2],[Define if you want to use libSIDPlay 2]) | 21 AH_TEMPLATE([HAVE_SIDPLAY1],[Define if you have and want to use libSIDPlay 1]) |
22 AH_TEMPLATE([HAVE_SIDPLAY2],[Define if you have and want to use libSIDPlay 2]) | |
22 AH_TEMPLATE([HAVE_RESID_BUILDER],[Define if you have reSID with libSIDPlay 2]) | 23 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]) | 24 AH_TEMPLATE([HAVE_HARDSID_BUILDER],[Define if you have HardSID with libSIDPlay 2]) |
24 | 25 |
25 | 26 |
26 dnl *** | 27 dnl *** |
43 | 44 |
44 dnl *** | 45 dnl *** |
45 dnl *** Checks for generic libraries | 46 dnl *** Checks for generic libraries |
46 dnl *** | 47 dnl *** |
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/)])) | 48 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/)])) |
48 | |
49 AM_PATH_GTK(1.2.8,,AC_MSG_ERROR([*** Gtk+ >= 1.2.8 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) | 49 AM_PATH_GTK(1.2.8,,AC_MSG_ERROR([*** Gtk+ >= 1.2.8 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) |
50 | 50 |
51 | 51 |
52 dnl *** | 52 dnl *** |
53 dnl *** Check some options | |
54 dnl *** | |
55 AC_ARG_WITH(unsigned-pcm, | |
56 [ | |
57 --with-unsigned-pcm Prefer UNsigned PCM format for audio. Use | |
58 this option if your audio hardware does not | |
59 support signed format PCM samples.], | |
60 [ | |
61 AC_DEFINE(HAVE_UNSIGNEDPCM) | |
62 ],[]) | |
63 | |
64 | |
65 dnl *** | |
53 dnl *** libSIDPlay 1 options | 66 dnl *** libSIDPlay 1 options |
54 dnl *** | 67 dnl *** |
55 AC_ARG_WITH(sidplay1, | 68 AC_ARG_WITH(sidplay1, |
56 [ --with-sidplay1=PREFIX Enable SIDPlay1 with install-PREFIX is], | 69 [ |
70 --with-sidplay1=PREFIX Enable SIDPlay1 with install-PREFIX], | |
57 [ | 71 [ |
58 if test "$withval" = yes; then | 72 if test "$withval" = yes; then |
59 xs_sidplay1=yes | 73 xs_sidplay1=yes |
60 xs_sidplay1_library="" | 74 xs_sidplay1_library="" |
61 xs_sidplay1_includes="" | 75 xs_sidplay1_includes="" |
85 | 99 |
86 dnl *** | 100 dnl *** |
87 dnl *** libSIDPlay 2 options | 101 dnl *** libSIDPlay 2 options |
88 dnl *** | 102 dnl *** |
89 AC_ARG_WITH(sidplay2, | 103 AC_ARG_WITH(sidplay2, |
90 [ --with-sidplay2=PREFIX Enable SIDPlay1 with install-PREFIX is], | 104 [ |
105 --with-sidplay2=PREFIX Enable SIDPlay2 with install-PREFIX], | |
91 [ | 106 [ |
92 if test "$withval" = yes; then | 107 if test "$withval" = yes; then |
93 xs_sidplay1=no | 108 xs_sidplay1=no |
94 xs_sidplay2=yes | 109 xs_sidplay2=yes |
95 xs_sidplay2_library="" | 110 xs_sidplay2_library="" |
117 AC_ARG_WITH(sidplay2-lib, | 132 AC_ARG_WITH(sidplay2-lib, |
118 [ --with-sidplay2-lib=DIR Where the SIDPlay2 library is installed], | 133 [ --with-sidplay2-lib=DIR Where the SIDPlay2 library is installed], |
119 [xs_sidplay2_library="$withval"],) | 134 [xs_sidplay2_library="$withval"],) |
120 | 135 |
121 | 136 |
122 dnl *** | |
123 dnl *** Determine if libraries are wanted and available | 137 dnl *** Determine if libraries are wanted and available |
124 dnl *** | |
125 OPT_SIDPLAY1="no" | 138 OPT_SIDPLAY1="no" |
126 if test "$xs_sidplay1" = yes; then | 139 if test "$xs_sidplay1" = yes; then |
127 XS_PATH_LIBSIDPLAY1 | 140 XS_PATH_LIBSIDPLAY1 |
128 if test "$xs_have_sidplay1" = yes; then | 141 if test "$xs_have_sidplay1" = yes; then |
129 AC_DEFINE(HAVE_SIDPLAY1) | 142 AC_DEFINE(HAVE_SIDPLAY1) |
155 fi | 168 fi |
156 fi | 169 fi |
157 fi | 170 fi |
158 | 171 |
159 | 172 |
160 dnl *** | 173 dnl *** Check if we have some emulator library available? |
161 dnl *** Check if we have some SIDPlay version | |
162 dnl *** | |
163 if test "$OPT_SIDPLAY1" = no; then | 174 if test "$OPT_SIDPLAY1" = no; then |
164 if test "$OPT_SIDPLAY2" = no; then | 175 if test "$OPT_SIDPLAY2" = no; then |
165 AC_MSG_ERROR([Either libSIDPlay1 or libSIDPlay2 is required! Please read INSTALL for more information!]) | 176 AC_MSG_ERROR([Either libSIDPlay1 or libSIDPlay2 is required! Please read INSTALL for more information!]) |
166 fi | 177 fi |
167 fi | 178 fi |
171 dnl *** | 182 dnl *** |
172 AC_HEADER_STDC | 183 AC_HEADER_STDC |
173 AC_CHECK_HEADERS([stdlib.h string.h unistd.h]) | 184 AC_CHECK_HEADERS([stdlib.h string.h unistd.h]) |
174 | 185 |
175 AC_HEADER_STDBOOL | 186 AC_HEADER_STDBOOL |
187 AC_TYPE_SIZE_T | |
176 AC_C_CONST | 188 AC_C_CONST |
177 AC_C_INLINE | 189 AC_C_INLINE |
178 AC_TYPE_SIZE_T | |
179 AC_C_VOLATILE | 190 AC_C_VOLATILE |
191 AC_C_BIGENDIAN | |
180 | 192 |
181 AC_FUNC_MALLOC | 193 AC_FUNC_MALLOC |
182 AC_TYPE_SIGNAL | 194 AC_TYPE_SIGNAL |
183 AC_FUNC_STAT | 195 AC_FUNC_STAT |
184 AC_CHECK_FUNCS([memset strcasecmp strerror strrchr]) | 196 AC_CHECK_FUNCS([memset strcasecmp strerror strrchr]) |