comparison configure.in @ 377:cbb15ecf423a

WinCE (PocketPC) patches from Tyler.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 02 Jul 2002 03:58:24 +0000
parents 5a72981b8cba
children 5b06e23d934e
comparison
equal deleted inserted replaced
376:51883cd1193e 377:cbb15ecf423a
52 dnl --------------------------------------------------------------------- 52 dnl ---------------------------------------------------------------------
53 53
54 AC_PROG_CC 54 AC_PROG_CC
55 AC_PROG_INSTALL 55 AC_PROG_INSTALL
56 AC_PROG_LN_S 56 AC_PROG_LN_S
57 AC_PROG_LIBTOOL 57 AM_PROG_LIBTOOL
58 58
59 59
60 dnl --------------------------------------------------------------------- 60 dnl ---------------------------------------------------------------------
61 dnl Debug mode? 61 dnl Debug mode?
62 dnl --------------------------------------------------------------------- 62 dnl ---------------------------------------------------------------------
84 84
85 dnl Check for SDL 85 dnl Check for SDL
86 SDL_VERSION=1.2.0 86 SDL_VERSION=1.2.0
87 AM_PATH_SDL($SDL_VERSION, 87 AM_PATH_SDL($SDL_VERSION,
88 :, 88 :,
89 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) 89 AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
90 ) 90 )
91 CFLAGS="$CFLAGS $SDL_CFLAGS" 91 CFLAGS="$CFLAGS $SDL_CFLAGS"
92 LIBS="$LIBS $SDL_LIBS" 92 LIBS="$LIBS $SDL_LIBS"
93 93
94 dnl Check for voc decoder inclusion... 94 dnl Check for voc decoder inclusion...
148 , enable_midi=yes) 148 , enable_midi=yes)
149 if test x$enable_midi = xyes; then 149 if test x$enable_midi = xyes; then
150 AC_DEFINE(SOUND_SUPPORTS_MIDI) 150 AC_DEFINE(SOUND_SUPPORTS_MIDI)
151 fi 151 fi
152 152
153 dnl Hooray for shitty autoconf bugs!
154 x="C__stream_decoder_new"
155 flcsym="FLA$x"
153 dnl Check for libFLAC 156 dnl Check for libFLAC
154 AC_ARG_ENABLE(flac, 157 AC_ARG_ENABLE(flac,
155 [ --enable-flac enable FLAC decoding via libFLAC [default=yes]], 158 [ --enable-flac enable FLAC decoding via libFLAC [default=yes]],
156 , enable_flac=yes) 159 , enable_flac=yes)
157 if test x$enable_flac = xyes; then 160 if test x$enable_flac = xyes; then
158 AC_CHECK_HEADER(FLAC/stream_decoder.h, have_flac_hdr=yes) 161 AC_CHECK_HEADER(FLAC/stream_decoder.h, have_flac_hdr=yes)
159 AC_CHECK_LIB(FLAC, FLAC__stream_decoder_new, have_flac_lib=yes) 162 AC_CHECK_LIB(FLAC, $flcsym, have_flac_lib=yes)
160 if test x$have_flac_hdr = xyes -a x$have_flac_lib = xyes; then 163 if test x$have_flac_hdr = xyes -a x$have_flac_lib = xyes; then
161 LIBS="$LIBS -lFLAC" 164 LIBS="$LIBS -lFLAC"
162 AC_DEFINE(SOUND_SUPPORTS_FLAC) 165 AC_DEFINE(SOUND_SUPPORTS_FLAC)
163 fi 166 fi
164 fi 167 fi
165 168
169 dnl Hooray for shitty autoconf bugs!
170 x="C__seekable_stream_decoder_new"
171 flcsym="FLA$x"
166 dnl Check if libFLAC is recent enough for a seekable decoder 172 dnl Check if libFLAC is recent enough for a seekable decoder
167 AC_ARG_ENABLE(seekable-flac, 173 AC_ARG_ENABLE(seekable-flac,
168 [ --enable-seekable-flac enable the seekable decoder [default=yes]], 174 [ --enable-seekable-flac enable the seekable decoder [default=yes]],
169 , enable_seekable_flac=yes) 175 , enable_seekable_flac=yes)
170 if test x$enable_seekable_flac = xyes; then 176 if test x$enable_seekable_flac = xyes; then
171 AC_CHECK_LIB(FLAC, FLAC__seekable_stream_decoder_new, have_seekable_flac_lib=yes) 177 AC_CHECK_LIB(FLAC, $flcsym, have_seekable_flac_lib=yes)
172 if test x$have_flac_hdr = xyes -a x$have_seekable_flac_lib = xyes; then 178 if test x$have_flac_hdr = xyes -a x$have_seekable_flac_lib = xyes; then
173 AC_DEFINE(SOUND_SUPPORTS_SEEKABLE_FLAC) 179 AC_DEFINE(SOUND_SUPPORTS_SEEKABLE_FLAC)
174 fi 180 fi
175 fi 181 fi
176 182
268 dnl LIBS="$LIBS /usr/lib/libefence.a" 274 dnl LIBS="$LIBS /usr/lib/libefence.a"
269 dnl fi 275 dnl fi
270 276
271 # Checks for header files. 277 # Checks for header files.
272 AC_HEADER_STDC 278 AC_HEADER_STDC
273 AC_CHECK_HEADERS([stdlib.h string.h]) 279 AC_CHECK_HEADERS([stdlib.h string.h signal.h assert.h])
274 280
275 # Checks for typedefs, structures, and compiler characteristics. 281 # Checks for typedefs, structures, and compiler characteristics.
276 AC_C_CONST 282 AC_C_CONST
277 AC_TYPE_SIZE_T 283 AC_TYPE_SIZE_T
278 284
279 # Checks for library functions. 285 # Checks for library functions.
280 286
281 # This is only in the bleeding edge autoconf distro... 287 # This is only in the bleeding edge autoconf distro...
282 #AC_FUNC_MALLOC 288 #AC_FUNC_MALLOC
283 289
290
284 AC_FUNC_MEMCMP 291 AC_FUNC_MEMCMP
285 AC_CHECK_FUNCS([memset strrchr]) 292 AC_CHECK_FUNCS([memset strrchr setbuf])
286 293
287 dnl Add Makefile conditionals 294 dnl Add Makefile conditionals
288 AM_CONDITIONAL(USE_TIMIDITY, test x$enable_midi = xyes) 295 AM_CONDITIONAL(USE_TIMIDITY, test x$enable_midi = xyes)
289 AM_CONDITIONAL(USE_MPGLIB, test x$enable_mpglib = xyes) 296 AM_CONDITIONAL(USE_MPGLIB, test x$enable_mpglib = xyes)
290 AM_CONDITIONAL(USE_PHYSICSFS, test x$enable_physfs = xyes) 297 AM_CONDITIONAL(USE_PHYSICSFS, test x$enable_physfs = xyes)