summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/libsdl/libsdl-1.2.14
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2011-11-09 16:23:55 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-29 13:46:28 +0000
commitee58c9e7092234f496ba96f09adc2eb78a742c58 (patch)
treef42373f4036506da460e56f1e45f4ec0525b1153 /meta/recipes-graphics/libsdl/libsdl-1.2.14
parent93ca5851a05dfee367e8ef02c19a8c3a57e58320 (diff)
downloadpoky-ee58c9e7092234f496ba96f09adc2eb78a742c58.tar.gz
libsdl: rename files dir to libsdl-1.2.14 for faster lookup
(From OE-Core rev: 7bbf48e86b468d31480738e09215b785d6a529a4) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/libsdl/libsdl-1.2.14')
-rw-r--r--meta/recipes-graphics/libsdl/libsdl-1.2.14/configure_tweak.patch1144
1 files changed, 1144 insertions, 0 deletions
diff --git a/meta/recipes-graphics/libsdl/libsdl-1.2.14/configure_tweak.patch b/meta/recipes-graphics/libsdl/libsdl-1.2.14/configure_tweak.patch
new file mode 100644
index 0000000000..55d203a43c
--- /dev/null
+++ b/meta/recipes-graphics/libsdl/libsdl-1.2.14/configure_tweak.patch
@@ -0,0 +1,1144 @@
1--- SDL-1.2.14/configure.in.orig 2011-10-18 14:51:32.044167004 +0800
2+++ SDL-1.2.14/configure.in 2011-10-18 14:51:42.374167009 +0800
3@@ -48,9 +48,9 @@
4 dnl AC_CANONICAL_HOST
5 AC_C_BIGENDIAN
6 if test x$ac_cv_c_bigendian = xyes; then
7- AC_DEFINE(SDL_BYTEORDER, 4321)
8+ AC_DEFINE(SDL_BYTEORDER, 4321, "Byte Order")
9 else
10- AC_DEFINE(SDL_BYTEORDER, 1234)
11+ AC_DEFINE(SDL_BYTEORDER, 1234, "Byte Order")
12 fi
13
14 dnl Check for tools
15@@ -139,7 +139,7 @@
16 AC_HELP_STRING([--enable-libc], [Use the system C library [[default=yes]]]),
17 , enable_libc=yes)
18 if test x$enable_libc = xyes; then
19- AC_DEFINE(HAVE_LIBC)
20+ AC_DEFINE(HAVE_LIBC,1,"")
21
22 dnl Check for C library headers
23 AC_HEADER_STDC
24@@ -150,7 +150,7 @@
25 if test x$ac_cv_header_inttypes_h = xyes -o x$ac_cv_header_stdint_h = xyes; then
26 AC_CHECK_TYPE(int64_t)
27 if test x$ac_cv_type_int64_t = xyes; then
28- AC_DEFINE(SDL_HAS_64BIT_TYPE)
29+ AC_DEFINE(SDL_HAS_64BIT_TYPE,1,"")
30 fi
31 have_inttypes=yes
32 fi
33@@ -166,11 +166,11 @@
34
35 AC_FUNC_MEMCMP
36 if test x$ac_cv_func_memcmp_working = xyes; then
37- AC_DEFINE(HAVE_MEMCMP)
38+ AC_DEFINE(HAVE_MEMCMP,1,"")
39 fi
40 AC_FUNC_STRTOD
41 if test x$ac_cv_func_strtod = xyes; then
42- AC_DEFINE(HAVE_STRTOD)
43+ AC_DEFINE(HAVE_STRTOD,1,"")
44 fi
45 AC_CHECK_FUNC(mprotect,
46 AC_TRY_COMPILE([
47@@ -194,40 +194,40 @@
48 AC_CHECK_SIZEOF(long, 4)
49 AC_CHECK_SIZEOF(long long, 8)
50 if test x$ac_cv_sizeof_char = x1; then
51- AC_DEFINE(int8_t, signed char)
52- AC_DEFINE(uint8_t, unsigned char)
53+ AC_DEFINE(int8_t, signed char,"")
54+ AC_DEFINE(uint8_t, unsigned char,"")
55 fi
56 if test x$ac_cv_sizeof_short = x2; then
57- AC_DEFINE(int16_t, signed short)
58- AC_DEFINE(uint16_t, unsigned short)
59+ AC_DEFINE(int16_t, signed short,"")
60+ AC_DEFINE(uint16_t, unsigned short,"")
61 else
62 if test x$ac_cv_sizeof_int = x2; then
63- AC_DEFINE(int16_t, signed int)
64- AC_DEFINE(uint16_t, unsigned int)
65+ AC_DEFINE(int16_t, signed int,"")
66+ AC_DEFINE(uint16_t, unsigned int,"")
67 fi
68 fi
69 if test x$ac_cv_sizeof_int = x4; then
70- AC_DEFINE(int32_t, signed int)
71- AC_DEFINE(uint32_t, unsigned int)
72+ AC_DEFINE(int32_t, signed int,"")
73+ AC_DEFINE(uint32_t, unsigned int,"")
74 else
75 if test x$ac_cv_sizeof_long = x4; then
76- AC_DEFINE(int32_t, signed long)
77- AC_DEFINE(uint32_t, unsigned long)
78+ AC_DEFINE(int32_t, signed long,"")
79+ AC_DEFINE(uint32_t, unsigned long,"")
80 fi
81 fi
82 if test x$ac_cv_sizeof_long = x8; then
83- AC_DEFINE(int64_t, signed long)
84- AC_DEFINE(uint64_t, unsigned long)
85- AC_DEFINE(SDL_HAS_64BIT_TYPE)
86+ AC_DEFINE(int64_t, signed long,"")
87+ AC_DEFINE(uint64_t, unsigned long,"")
88+ AC_DEFINE(SDL_HAS_64BIT_TYPE,"")
89 else
90 if test x$ac_cv_sizeof_long_long = x8; then
91- AC_DEFINE(int64_t, signed long long)
92- AC_DEFINE(uint64_t, unsigned long long)
93- AC_DEFINE(SDL_HAS_64BIT_TYPE)
94+ AC_DEFINE(int64_t, signed long long,"")
95+ AC_DEFINE(uint64_t, unsigned long long,"")
96+ AC_DEFINE(SDL_HAS_64BIT_TYPE,"")
97 fi
98 fi
99- AC_DEFINE(size_t, unsigned int)
100- AC_DEFINE(uintptr_t, unsigned long)
101+ AC_DEFINE(size_t, unsigned int,"")
102+ AC_DEFINE(uintptr_t, unsigned long,"")
103 fi
104
105 # Standard C sources
106@@ -248,25 +248,25 @@
107 AC_HELP_STRING([--enable-audio], [Enable the audio subsystem [[default=yes]]]),
108 , enable_audio=yes)
109 if test x$enable_audio != xyes; then
110- AC_DEFINE(SDL_AUDIO_DISABLED)
111+ AC_DEFINE(SDL_AUDIO_DISABLED,1,"")
112 fi
113 AC_ARG_ENABLE(video,
114 AC_HELP_STRING([--enable-video], [Enable the video subsystem [[default=yes]]]),
115 , enable_video=yes)
116 if test x$enable_video != xyes; then
117- AC_DEFINE(SDL_VIDEO_DISABLED)
118+ AC_DEFINE(SDL_VIDEO_DISABLED,1,"")
119 fi
120 AC_ARG_ENABLE(events,
121 AC_HELP_STRING([--enable-events], [Enable the events subsystem [[default=yes]]]),
122 , enable_events=yes)
123 if test x$enable_events != xyes; then
124- AC_DEFINE(SDL_EVENTS_DISABLED)
125+ AC_DEFINE(SDL_EVENTS_DISABLED,1,"")
126 fi
127 AC_ARG_ENABLE(joystick,
128 AC_HELP_STRING([--enable-joystick], [Enable the joystick subsystem [[default=yes]]]),
129 , enable_joystick=yes)
130 if test x$enable_joystick != xyes; then
131- AC_DEFINE(SDL_JOYSTICK_DISABLED)
132+ AC_DEFINE(SDL_JOYSTICK_DISABLED,1,"")
133 else
134 SOURCES="$SOURCES $srcdir/src/joystick/*.c"
135 fi
136@@ -274,43 +274,43 @@
137 AC_HELP_STRING([--enable-cdrom], [Enable the cdrom subsystem [[default=yes]]]),
138 , enable_cdrom=yes)
139 if test x$enable_cdrom != xyes; then
140- AC_DEFINE(SDL_CDROM_DISABLED)
141+ AC_DEFINE(SDL_CDROM_DISABLED,1,"")
142 fi
143 AC_ARG_ENABLE(threads,
144 AC_HELP_STRING([--enable-threads], [Enable the threading subsystem [[default=yes]]]),
145 , enable_threads=yes)
146 if test x$enable_threads != xyes; then
147- AC_DEFINE(SDL_THREADS_DISABLED)
148+ AC_DEFINE(SDL_THREADS_DISABLED,1,"")
149 fi
150 AC_ARG_ENABLE(timers,
151 AC_HELP_STRING([--enable-timers], [Enable the timer subsystem [[default=yes]]]),
152 , enable_timers=yes)
153 if test x$enable_timers != xyes; then
154- AC_DEFINE(SDL_TIMERS_DISABLED)
155+ AC_DEFINE(SDL_TIMERS_DISABLED,1,"")
156 fi
157 AC_ARG_ENABLE(file,
158 AC_HELP_STRING([--enable-file], [Enable the file subsystem [[default=yes]]]),
159 , enable_file=yes)
160 if test x$enable_file != xyes; then
161- AC_DEFINE(SDL_FILE_DISABLED)
162+ AC_DEFINE(SDL_FILE_DISABLED,1,"")
163 fi
164 AC_ARG_ENABLE(loadso,
165 AC_HELP_STRING([--enable-loadso], [Enable the shared object loading subsystem [[default=yes]]]),
166 , enable_loadso=yes)
167 if test x$enable_loadso != xyes; then
168- AC_DEFINE(SDL_LOADSO_DISABLED)
169+ AC_DEFINE(SDL_LOADSO_DISABLED,1,"")
170 fi
171 AC_ARG_ENABLE(cpuinfo,
172 AC_HELP_STRING([--enable-cpuinfo], [Enable the cpuinfo subsystem [[default=yes]]]),
173 , enable_cpuinfo=yes)
174 if test x$enable_cpuinfo != xyes; then
175- AC_DEFINE(SDL_CPUINFO_DISABLED)
176+ AC_DEFINE(SDL_CPUINFO_DISABLED,1,"")
177 fi
178 AC_ARG_ENABLE(assembly,
179 AC_HELP_STRING([--enable-assembly], [Enable assembly routines [[default=yes]]]),
180 , enable_assembly=yes)
181 if test x$enable_assembly = xyes; then
182- AC_DEFINE(SDL_ASSEMBLY_ROUTINES)
183+ AC_DEFINE(SDL_ASSEMBLY_ROUTINES,1,"")
184 fi
185
186 dnl See if the OSS audio interface is supported
187@@ -338,12 +338,12 @@
188 int arg = SNDCTL_DSP_SETFRAGMENT;
189 ],[
190 have_oss=yes
191- AC_DEFINE(SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H)
192+ AC_DEFINE(SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H,1,"")
193 ])
194 fi
195 AC_MSG_RESULT($have_oss)
196 if test x$have_oss = xyes; then
197- AC_DEFINE(SDL_AUDIO_DRIVER_OSS)
198+ AC_DEFINE(SDL_AUDIO_DRIVER_OSS,1,"")
199 SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
200 SOURCES="$SOURCES $srcdir/src/audio/dma/*.c"
201 have_audio=yes
202@@ -363,35 +363,7 @@
203 AC_ARG_ENABLE(alsa,
204 AC_HELP_STRING([--enable-alsa], [support the ALSA audio API [[default=yes]]]),
205 , enable_alsa=yes)
206- if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
207- AM_PATH_ALSA(0.9.0, have_alsa=yes, have_alsa=no)
208- # Restore all flags from before the ALSA detection runs
209- CFLAGS="$alsa_save_CFLAGS"
210- LDFLAGS="$alsa_save_LDFLAGS"
211- LIBS="$alsa_save_LIBS"
212- if test x$have_alsa = xyes; then
213- AC_ARG_ENABLE(alsa-shared,
214-AC_HELP_STRING([--enable-alsa-shared], [dynamically load ALSA audio support [[default=yes]]]),
215- , enable_alsa_shared=yes)
216- alsa_lib=[`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`]
217-
218- AC_DEFINE(SDL_AUDIO_DRIVER_ALSA)
219- SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
220- EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
221- if test x$have_loadso != xyes && \
222- test x$enable_alsa_shared = xyes; then
223- AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic ALSA loading])
224- fi
225- if test x$have_loadso = xyes && \
226- test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
227- echo "-- dynamic libasound -> $alsa_lib"
228- AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ALSA_DYNAMIC, "$alsa_lib")
229- else
230- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
231- fi
232- have_audio=yes
233- fi
234- fi
235+ enable_alsa=no
236 }
237
238 dnl Check whether we want to use IRIX 6.5+ native audio or not
239@@ -410,7 +382,7 @@
240 AC_MSG_RESULT($have_dmedia)
241 # Set up files for the audio library
242 if test x$have_dmedia = xyes; then
243- AC_DEFINE(SDL_AUDIO_DRIVER_DMEDIA)
244+ AC_DEFINE(SDL_AUDIO_DRIVER_DMEDIA,1,"")
245 SOURCES="$SOURCES $srcdir/src/audio/dmedia/*.c"
246 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -laudio"
247 have_audio=yes
248@@ -447,7 +419,7 @@
249 AC_MSG_RESULT($have_mme)
250 # Set up files for the audio library
251 if test x$have_mme = xyes; then
252- AC_DEFINE(SDL_AUDIO_DRIVER_MMEAUDIO)
253+ AC_DEFINE(SDL_AUDIO_DRIVER_MMEAUDIO,1,"")
254 SOURCES="$SOURCES $srcdir/src/audio/mme/*.c"
255 EXTRA_CFLAGS="$EXTRA_CFLAGS $MME_CFLAGS"
256 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MME_LIBS"
257@@ -470,7 +442,7 @@
258 , enable_esd_shared=yes)
259 esd_lib=[`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`]
260
261- AC_DEFINE(SDL_AUDIO_DRIVER_ESD)
262+ AC_DEFINE(SDL_AUDIO_DRIVER_ESD,1,"")
263 SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
264 EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
265 if test x$have_loadso != xyes && \
266@@ -480,7 +452,7 @@
267 if test x$have_loadso = xyes && \
268 test x$enable_esd_shared = xyes && test x$esd_lib != x; then
269 echo "-- dynamic libesd -> $esd_lib"
270- AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ESD_DYNAMIC, "$esd_lib")
271+ AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ESD_DYNAMIC, "$esd_lib", "")
272 else
273 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
274 fi
275@@ -567,7 +539,7 @@
276 , enable_arts_shared=yes)
277 arts_lib=[`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`]
278
279- AC_DEFINE(SDL_AUDIO_DRIVER_ARTS)
280+ AC_DEFINE(SDL_AUDIO_DRIVER_ARTS,, "")
281 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
282 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
283 if test x$have_loadso != xyes && \
284@@ -577,7 +549,7 @@
285 if test x$have_loadso = xyes && \
286 test x$enable_arts_shared = xyes && test x$arts_lib != x; then
287 echo "-- dynamic libartsc -> $arts_lib"
288- AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ARTS_DYNAMIC, "$arts_lib")
289+ AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ARTS_DYNAMIC, "$arts_lib",1,"")
290 else
291 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
292 fi
293@@ -637,7 +609,7 @@
294 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
295 fi
296
297- AC_DEFINE(SDL_AUDIO_DRIVER_NAS)
298+ AC_DEFINE(SDL_AUDIO_DRIVER_NAS,1,"")
299 SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
300 EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
301 have_audio=yes
302@@ -652,7 +624,7 @@
303 AC_HELP_STRING([--enable-diskaudio], [support the disk writer audio driver [[default=yes]]]),
304 , enable_diskaudio=yes)
305 if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
306- AC_DEFINE(SDL_AUDIO_DRIVER_DISK)
307+ AC_DEFINE(SDL_AUDIO_DRIVER_DISK,1,"")
308 SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
309 fi
310 }
311@@ -664,7 +636,7 @@
312 AC_HELP_STRING([--enable-dummyaudio], [support the dummy audio driver [[default=yes]]]),
313 , enable_dummyaudio=yes)
314 if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
315- AC_DEFINE(SDL_AUDIO_DRIVER_DUMMY)
316+ AC_DEFINE(SDL_AUDIO_DRIVER_DUMMY,1,"")
317 SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
318 fi
319 }
320@@ -680,7 +652,7 @@
321 AC_CHECK_HEADER(mint/falcon.h, have_mint_falcon_hdr=yes)
322 if test x$have_mint_falcon_hdr = xyes; then
323 mintaudio=yes
324- AC_DEFINE(SDL_AUDIO_DRIVER_MINT)
325+ AC_DEFINE(SDL_AUDIO_DRIVER_MINT,1,"")
326 SOURCES="$SOURCES $srcdir/src/audio/mint/*.c"
327 SOURCES="$SOURCES $srcdir/src/audio/mint/*.S"
328 have_audio=yes
329@@ -756,7 +728,7 @@
330 AC_PATH_PROG(NASM, nasm)
331 fi
332 if test "x$NASM" != x -a "x$NASM" != x'"$NASM"'; then
333- AC_DEFINE(SDL_HERMES_BLITTERS)
334+ AC_DEFINE(SDL_HERMES_BLITTERS,1,"")
335 SOURCES="$SOURCES $srcdir/src/hermes/*.asm"
336 NASMFLAGS="$NASMFLAGS -I $srcdir/src/hermes/"
337
338@@ -850,9 +822,9 @@
339 CFLAGS="$save_CFLAGS"
340
341 if test x$have_gcc_altivec = xyes; then
342- AC_DEFINE(SDL_ALTIVEC_BLITTERS)
343+ AC_DEFINE(SDL_ALTIVEC_BLITTERS,1,"")
344 if test x$have_altivec_h_hdr = xyes; then
345- AC_DEFINE(HAVE_ALTIVEC_H)
346+ AC_DEFINE(HAVE_ALTIVEC_H,1,"")
347 fi
348 EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
349 fi
350@@ -895,7 +867,7 @@
351
352 if test x$enable_ipod = xyes; then
353 EXTRA_CFLAGS="$EXTRA_CFLAGS -DIPOD"
354- AC_DEFINE(SDL_VIDEO_DRIVER_IPOD)
355+ AC_DEFINE(SDL_VIDEO_DRIVER_IPOD,1,"")
356 SOURCES="$SOURCES $srcdir/src/video/ipod/*.c"
357 fi
358 }
359@@ -929,7 +901,7 @@
360 EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DIRECT_FB"
361 fi
362
363- AC_DEFINE(SDL_VIDEO_DRIVER_NANOX)
364+ AC_DEFINE(SDL_VIDEO_DRIVER_NANOX,1,"")
365 SOURCES="$SOURCES $srcdir/src/video/nanox/*.c"
366 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lnano-X"
367 have_video=yes
368@@ -995,7 +967,7 @@
369 CFLAGS="$CFLAGS $X_CFLAGS"
370 LDFLAGS="$LDFLAGS $X_LIBS"
371
372- AC_DEFINE(SDL_VIDEO_DRIVER_X11)
373+ AC_DEFINE(SDL_VIDEO_DRIVER_X11,1,"")
374 SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
375 EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
376
377@@ -1017,8 +989,8 @@
378 test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
379 echo "-- dynamic libX11 -> $x11_lib"
380 echo "-- dynamic libX11ext -> $x11ext_lib"
381- AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC, "$x11_lib")
382- AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT, "$x11ext_lib")
383+ AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC, "$x11_lib","")
384+ AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT, "$x11ext_lib","")
385 else
386 enable_x11_shared=no
387 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
388@@ -1035,20 +1007,20 @@
389 AC_HELP_STRING([--enable-video-dga], [use DGA 2.0 video driver [[default=yes]]]),
390 , enable_video_dga=yes)
391 if test x$enable_dga = xyes -a x$enable_video_dga = xyes; then
392- AC_DEFINE(SDL_VIDEO_DRIVER_DGA)
393+ AC_DEFINE(SDL_VIDEO_DRIVER_DGA,1,"")
394 SOURCES="$SOURCES $srcdir/src/video/dga/*.c"
395 fi
396 AC_ARG_ENABLE(video-x11-dgamouse,
397 AC_HELP_STRING([--enable-video-x11-dgamouse], [use X11 DGA for mouse events [[default=yes]]]),
398 , enable_video_x11_dgamouse=yes)
399 if test x$enable_dga = xyes -a x$enable_video_x11_dgamouse = xyes; then
400- AC_DEFINE(SDL_VIDEO_DRIVER_X11_DGAMOUSE)
401+ AC_DEFINE(SDL_VIDEO_DRIVER_X11_DGAMOUSE,1,"")
402 fi
403 AC_ARG_ENABLE(video-x11-vm,
404 AC_HELP_STRING([--enable-video-x11-vm], [use X11 VM extension for fullscreen [[default=yes]]]),
405 , enable_video_x11_vm=yes)
406 if test x$enable_video_x11_vm = xyes; then
407- AC_DEFINE(SDL_VIDEO_DRIVER_X11_VIDMODE)
408+ AC_DEFINE(SDL_VIDEO_DRIVER_X11_VIDMODE,1,"")
409 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86vm/*.c"
410 fi
411 AC_ARG_ENABLE(video-x11-xv,
412@@ -1062,14 +1034,14 @@
413 AC_HELP_STRING([--enable-video-x11-xinerama], [enable X11 Xinerama support [[default=yes]]]),
414 , enable_video_x11_xinerama=yes)
415 if test x$enable_video_x11_xinerama = xyes; then
416- AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINERAMA)
417+ AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINERAMA,1,"")
418 SOURCES="$SOURCES $srcdir/src/video/Xext/Xinerama/*.c"
419 fi
420 AC_ARG_ENABLE(video-x11-xme,
421 AC_HELP_STRING([--enable-video-x11-xme], [enable Xi Graphics XME for fullscreen [[default=yes]]]),
422 , enable_video_x11_xme=yes)
423 if test x$enable_video_x11_xme = xyes; then
424- AC_DEFINE(SDL_VIDEO_DRIVER_X11_XME)
425+ AC_DEFINE(SDL_VIDEO_DRIVER_X11_XME,1,"")
426 SOURCES="$SOURCES $srcdir/src/video/Xext/XME/*.c"
427 fi
428 AC_ARG_ENABLE(video-x11-xrandr,
429@@ -1086,8 +1058,8 @@
430 if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
431 echo "-- dynamic libXrender -> $xrender_lib"
432 echo "-- dynamic libXrandr -> $xrandr_lib"
433- AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER, "$xrender_lib")
434- AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR, "$xrandr_lib")
435+ AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER, "$xrender_lib","")
436+ AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR, "$xrandr_lib","")
437 definitely_enable_video_x11_xrandr=yes
438 else
439 AC_CHECK_LIB(Xrender, XRenderQueryExtension, have_xrender_lib=yes)
440@@ -1100,7 +1072,7 @@
441 fi
442 fi
443 if test x$definitely_enable_video_x11_xrandr = xyes; then
444- AC_DEFINE(SDL_VIDEO_DRIVER_X11_XRANDR)
445+ AC_DEFINE(SDL_VIDEO_DRIVER_X11_XRANDR,1,"")
446 fi
447 fi
448 fi
449@@ -1127,7 +1099,7 @@
450 ])
451 AC_MSG_RESULT($video_photon)
452 if test x$video_photon = xyes; then
453- AC_DEFINE(SDL_VIDEO_DRIVER_PHOTON)
454+ AC_DEFINE(SDL_VIDEO_DRIVER_PHOTON,1,"")
455 SOURCES="$SOURCES $srcdir/src/video/photon/*.c"
456 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lph"
457 have_video=yes
458@@ -1141,7 +1113,7 @@
459 CheckBWINDOW()
460 {
461 if test x$enable_video = xyes; then
462- AC_DEFINE(SDL_VIDEO_DRIVER_BWINDOW)
463+ AC_DEFINE(SDL_VIDEO_DRIVER_BWINDOW,1,"")
464 SOURCES="$SOURCES $srcdir/src/video/bwindow/*.cc"
465 have_video=yes
466 fi
467@@ -1164,7 +1136,7 @@
468 ])
469 AC_MSG_RESULT($have_carbon)
470 if test x$have_carbon = xyes; then
471- AC_DEFINE(SDL_VIDEO_DRIVER_TOOLBOX)
472+ AC_DEFINE(SDL_VIDEO_DRIVER_TOOLBOX,1,"")
473 SOURCES="$SOURCES $srcdir/src/video/maccommon/*.c"
474 SOURCES="$SOURCES $srcdir/src/video/macrom/*.c"
475 have_video=yes
476@@ -1193,7 +1165,7 @@
477 AC_MSG_RESULT($have_cocoa)
478 CFLAGS="$save_CFLAGS"
479 if test x$have_cocoa = xyes; then
480- AC_DEFINE(SDL_VIDEO_DRIVER_QUARTZ)
481+ AC_DEFINE(SDL_VIDEO_DRIVER_QUARTZ,1,"")
482 SOURCES="$SOURCES $srcdir/src/video/quartz/*.m"
483 have_video=yes
484 fi
485@@ -1220,7 +1192,7 @@
486 AC_MSG_RESULT($video_fbcon)
487 if test x$video_fbcon = xyes; then
488 AC_CHECK_FUNCS(getpagesize)
489- AC_DEFINE(SDL_VIDEO_DRIVER_FBCON)
490+ AC_DEFINE(SDL_VIDEO_DRIVER_FBCON,1,"")
491 SOURCES="$SOURCES $srcdir/src/video/fbcon/*.c"
492 have_video=yes
493 fi
494@@ -1271,7 +1243,7 @@
495 AC_MSG_RESULT($video_directfb)
496
497 if test x$video_directfb = xyes; then
498- AC_DEFINE(SDL_VIDEO_DRIVER_DIRECTFB)
499+ AC_DEFINE(SDL_VIDEO_DRIVER_DIRECTFB,1,"")
500 SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
501 EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
502 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
503@@ -1298,7 +1270,7 @@
504 ])
505 AC_MSG_RESULT($video_ps2gs)
506 if test x$video_ps2gs = xyes; then
507- AC_DEFINE(SDL_VIDEO_DRIVER_PS2GS)
508+ AC_DEFINE(SDL_VIDEO_DRIVER_PS2GS,1,"")
509 SOURCES="$SOURCES $srcdir/src/video/ps2gs/*.c"
510 have_video=yes
511 fi
512@@ -1350,7 +1322,7 @@
513 ])
514 AC_MSG_RESULT($video_ggi)
515 if test x$video_ggi = xyes; then
516- AC_DEFINE(SDL_VIDEO_DRIVER_GGI)
517+ AC_DEFINE(SDL_VIDEO_DRIVER_GGI,1,"")
518 SOURCES="$SOURCES $srcdir/src/video/ggi/*.c"
519 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lggi -lgii -lgg"
520 have_video=yes
521@@ -1380,7 +1352,7 @@
522 ])
523 AC_MSG_RESULT($video_svga)
524 if test x$video_svga = xyes; then
525- AC_DEFINE(SDL_VIDEO_DRIVER_SVGALIB)
526+ AC_DEFINE(SDL_VIDEO_DRIVER_SVGALIB,1,"")
527 SOURCES="$SOURCES $srcdir/src/video/svga/*.c"
528 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvga"
529 have_video=yes
530@@ -1412,7 +1384,7 @@
531 ])
532 AC_MSG_RESULT($video_vgl)
533 if test x$video_vgl = xyes; then
534- AC_DEFINE(SDL_VIDEO_DRIVER_VGL)
535+ AC_DEFINE(SDL_VIDEO_DRIVER_VGL,1,"")
536 SOURCES="$SOURCES $srcdir/src/video/vgl/*.c"
537 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvgl"
538 have_video=yes
539@@ -1440,7 +1412,7 @@
540 ])
541 AC_MSG_RESULT($video_wscons)
542 if test x$video_wscons = xyes; then
543- AC_DEFINE(SDL_VIDEO_DRIVER_WSCONS)
544+ AC_DEFINE(SDL_VIDEO_DRIVER_WSCONS,1,"")
545 SOURCES="$SOURCES $srcdir/src/video/wscons/*.c"
546 have_video=yes
547 fi
548@@ -1465,7 +1437,7 @@
549 ])
550 AC_MSG_RESULT($video_aalib)
551 if test x$video_aalib = xyes; then
552- AC_DEFINE(SDL_VIDEO_DRIVER_AALIB)
553+ AC_DEFINE(SDL_VIDEO_DRIVER_AALIB,1,"")
554 SOURCES="$SOURCES $srcdir/src/video/aalib/*.c"
555 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -laa"
556 have_video=yes
557@@ -1527,7 +1499,7 @@
558 CXXFLAGS="$OLD_CXX"
559 AC_MSG_RESULT($video_qtopia)
560 if test x$video_qtopia = xyes; then
561- AC_DEFINE(SDL_VIDEO_DRIVER_QTOPIA)
562+ AC_DEFINE(SDL_VIDEO_DRIVER_QTOPIA,1,"")
563 SOURCES="$SOURCES $srcdir/src/video/qtopia/*.cc"
564 SDLMAIN_SOURCES="$srcdir/src/main/qtopia/*.cc"
565 EXTRA_CFLAGS="$EXTRA_CFLAGS $QTOPIA_FLAGS"
566@@ -1556,7 +1528,7 @@
567 ])
568 AC_MSG_RESULT($video_picogui)
569 if test x$video_picogui = xyes; then
570- AC_DEFINE(SDL_VIDEO_DRIVER_PICOGUI)
571+ AC_DEFINE(SDL_VIDEO_DRIVER_PICOGUI,1,"")
572 SOURCES="$SOURCES $srcdir/src/video/picogui/*.c"
573 SDL_LIBS="$SDL_LIBS -lpgui"
574 have_video=yes
575@@ -1580,7 +1552,7 @@
576 video_xbios=no
577 if test x$enable_video = xyes -a x$enable_video_xbios = xyes; then
578 video_xbios=yes
579- AC_DEFINE(SDL_VIDEO_DRIVER_XBIOS)
580+ AC_DEFINE(SDL_VIDEO_DRIVER_XBIOS,1,"")
581 SOURCES="$SOURCES $srcdir/src/video/xbios/*.c"
582 have_video=yes
583 fi
584@@ -1598,7 +1570,7 @@
585 AC_CHECK_LIB(gem, appl_init, have_gem_lib=yes)
586 if test x$have_gem_hdr = xyes -a x$have_gem_lib = xyes; then
587 video_gem=yes
588- AC_DEFINE(SDL_VIDEO_DRIVER_GEM)
589+ AC_DEFINE(SDL_VIDEO_DRIVER_GEM,1,"")
590 SOURCES="$SOURCES $srcdir/src/video/gem/*.c"
591 SDL_LIBS="$SDL_LIBS -lgem"
592 have_video=yes
593@@ -1613,7 +1585,7 @@
594 AC_HELP_STRING([--enable-video-dummy], [use dummy video driver [[default=yes]]]),
595 , enable_video_dummy=yes)
596 if test x$enable_video_dummy = xyes; then
597- AC_DEFINE(SDL_VIDEO_DRIVER_DUMMY)
598+ AC_DEFINE(SDL_VIDEO_DRIVER_DUMMY,1,"")
599 SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
600 have_video=yes
601 fi
602@@ -1640,8 +1612,8 @@
603 ])
604 AC_MSG_RESULT($video_opengl)
605 if test x$video_opengl = xyes; then
606- AC_DEFINE(SDL_VIDEO_OPENGL)
607- AC_DEFINE(SDL_VIDEO_OPENGL_GLX)
608+ AC_DEFINE(SDL_VIDEO_OPENGL,1,"")
609+ AC_DEFINE(SDL_VIDEO_OPENGL_GLX,1,"")
610 fi
611 fi
612 }
613@@ -1660,7 +1632,7 @@
614 ])
615 AC_MSG_RESULT($video_opengl)
616 if test x$video_opengl = xyes; then
617- AC_DEFINE(SDL_VIDEO_OPENGL)
618+ AC_DEFINE(SDL_VIDEO_OPENGL,1,"")
619 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
620 fi
621 fi
622@@ -1670,8 +1642,8 @@
623 CheckWIN32GL()
624 {
625 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
626- AC_DEFINE(SDL_VIDEO_OPENGL)
627- AC_DEFINE(SDL_VIDEO_OPENGL_WGL)
628+ AC_DEFINE(SDL_VIDEO_OPENGL,1,"")
629+ AC_DEFINE(SDL_VIDEO_OPENGL_WGL,1,"")
630 fi
631 }
632
633@@ -1679,7 +1651,7 @@
634 CheckBeGL()
635 {
636 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
637- AC_DEFINE(SDL_VIDEO_OPENGL)
638+ AC_DEFINE(SDL_VIDEO_OPENGL,1,"")
639 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
640 fi
641 }
642@@ -1688,7 +1660,7 @@
643 CheckMacGL()
644 {
645 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
646- AC_DEFINE(SDL_VIDEO_OPENGL)
647+ AC_DEFINE(SDL_VIDEO_OPENGL,1,"")
648 case "$host" in
649 *-*-darwin*)
650 if test x$enable_video_cocoa = xyes; then
651@@ -1720,8 +1692,8 @@
652 OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags`
653 OSMESA_LIBS=`$OSMESA_CONFIG --libs`
654 fi
655- AC_DEFINE(SDL_VIDEO_OPENGL)
656- AC_DEFINE(SDL_VIDEO_OPENGL_OSMESA)
657+ AC_DEFINE(SDL_VIDEO_OPENGL,1,"")
658+ AC_DEFINE(SDL_VIDEO_OPENGL_OSMESA,1,"")
659 SDL_CFLAGS="$SDL_CFLAGS $OSMESA_CFLAGS"
660 SDL_LIBS="$SDL_LIBS $OSMESA_LIBS"
661
662@@ -1731,7 +1703,7 @@
663 if test "x$enable_osmesa_shared" = "xyes" -a "x$enable_atari_ldg" = "xyes"; then
664 # Dynamic linking
665 if test "x$have_osmesa_hdr" = "xyes"; then
666- AC_DEFINE(SDL_VIDEO_OPENGL_OSMESA_DYNAMIC)
667+ AC_DEFINE(SDL_VIDEO_OPENGL_OSMESA_DYNAMIC,1,"")
668 fi
669 fi
670 fi
671@@ -1765,7 +1737,7 @@
672 ])
673 AC_MSG_RESULT($use_input_events)
674 if test x$use_input_events = xyes; then
675- AC_DEFINE(SDL_INPUT_LINUXEV)
676+ AC_DEFINE(SDL_INPUT_LINUXEV,1,"")
677 fi
678 fi
679 }
680@@ -1787,7 +1759,7 @@
681 ])
682 AC_MSG_RESULT($enable_input_tslib)
683 if test x$enable_input_tslib = xyes; then
684- AC_DEFINE(SDL_INPUT_TSLIB)
685+ AC_DEFINE(SDL_INPUT_TSLIB,1,"")
686 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
687 fi
688 fi
689@@ -1810,7 +1782,7 @@
690 AC_MSG_CHECKING(pth)
691 AC_MSG_RESULT($use_pth)
692 if test "x$use_pth" = xyes; then
693- AC_DEFINE(SDL_THREAD_PTH)
694+ AC_DEFINE(SDL_THREAD_PTH,1,"")
695 SOURCES="$SOURCES $srcdir/src/thread/pth/*.c"
696 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
697 SDL_CFLAGS="$SDL_CFLAGS `$PTH_CONFIG --cflags`"
698@@ -1916,7 +1888,7 @@
699
700 # Do futher testing if we have pthread support...
701 if test x$use_pthreads = xyes; then
702- AC_DEFINE(SDL_THREAD_PTHREAD)
703+ AC_DEFINE(SDL_THREAD_PTHREAD,1,"")
704 EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
705 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
706 SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
707@@ -1938,7 +1910,7 @@
708 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
709 ],[
710 has_recursive_mutexes=yes
711- AC_DEFINE(SDL_THREAD_PTHREAD_RECURSIVE_MUTEX)
712+ AC_DEFINE(SDL_THREAD_PTHREAD_RECURSIVE_MUTEX,1,"")
713 ])
714 fi
715 if test x$has_recursive_mutexes = xno; then
716@@ -1949,7 +1921,7 @@
717 pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
718 ],[
719 has_recursive_mutexes=yes
720- AC_DEFINE(SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP)
721+ AC_DEFINE(SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP,1,"")
722 ])
723 fi
724 AC_MSG_RESULT($has_recursive_mutexes)
725@@ -2024,7 +1996,7 @@
726 fi
727
728 if test x$enable_video = xyes; then
729- AC_DEFINE(SDL_VIDEO_DRIVER_WINDIB)
730+ AC_DEFINE(SDL_VIDEO_DRIVER_WINDIB,1,"")
731 SOURCES="$SOURCES $srcdir/src/video/wincommon/*.c"
732 SOURCES="$SOURCES $srcdir/src/video/windib/*.c"
733 have_video=yes
734@@ -2046,7 +2018,7 @@
735 have_directx=yes
736 fi
737 if test x$enable_video = xyes -a x$have_directx = xyes; then
738- AC_DEFINE(SDL_VIDEO_DRIVER_DDRAW)
739+ AC_DEFINE(SDL_VIDEO_DRIVER_DDRAW,1,"")
740 SOURCES="$SOURCES $srcdir/src/video/windx5/*.c"
741 have_video=yes
742 fi
743@@ -2077,7 +2049,7 @@
744 AC_CHECK_LIB(c, dlopen, EXTRA_LDFLAGS="$EXTRA_LDFLAGS",
745 AC_CHECK_LIB(dl, dlopen, EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl",
746 AC_CHECK_LIB(ltdl, dlopen, EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl")))
747- AC_DEFINE(SDL_LOADSO_DLOPEN)
748+ AC_DEFINE(SDL_LOADSO_DLOPEN,1,"")
749 SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
750 have_loadso=yes
751 fi
752@@ -2094,7 +2066,7 @@
753 AC_CHECK_HEADER(ldg.h, have_ldg_hdr=yes)
754 AC_CHECK_LIB(ldg, ldg_open, have_ldg_lib=yes, have_ldg_lib=no, -lgem)
755 if test x$have_ldg_hdr = xyes -a x$have_ldg_lib = xyes; then
756- AC_DEFINE(SDL_LOADSO_LDG)
757+ AC_DEFINE(SDL_LOADSO_LDG,1,"")
758 SOURCES="$SOURCES $srcdir/src/loadso/mint/*.c"
759 SDL_LIBS="$SDL_LIBS -lldg -lgem"
760 have_loadso=yes
761@@ -2225,11 +2197,11 @@
762 have_machine_joystick=yes
763 ])
764 if test x$have_machine_joystick = xyes; then
765- AC_DEFINE(SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H)
766+ AC_DEFINE(SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H,1,"")
767 fi
768 AC_MSG_RESULT($have_machine_joystick)
769
770- AC_DEFINE(SDL_JOYSTICK_USBHID)
771+ AC_DEFINE(SDL_JOYSTICK_USBHID,1,"")
772 SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
773 EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
774 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
775@@ -2248,7 +2220,7 @@
776 if test x$enable_clock_gettime = xyes; then
777 AC_CHECK_LIB(rt, clock_gettime, have_clock_gettime=yes)
778 if test x$have_clock_gettime = xyes; then
779- AC_DEFINE(HAVE_CLOCK_GETTIME)
780+ AC_DEFINE(HAVE_CLOCK_GETTIME,1,"")
781 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
782 fi
783 fi
784@@ -2279,7 +2251,7 @@
785 CheckIPod
786 # Set up files for the timer library
787 if test x$enable_timers = xyes; then
788- AC_DEFINE(SDL_TIMER_UNIX)
789+ AC_DEFINE(SDL_TIMER_UNIX,1,"")
790 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
791 have_timers=yes
792 fi
793@@ -2345,17 +2317,17 @@
794 if test x$enable_audio = xyes; then
795 case $ARCH in
796 sysv5|solaris|hpux)
797- AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO)
798+ AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO,1,"")
799 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
800 have_audio=yes
801 ;;
802 netbsd|openbsd)
803- AC_DEFINE(SDL_AUDIO_DRIVER_BSD)
804+ AC_DEFINE(SDL_AUDIO_DRIVER_BSD,1,"")
805 SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
806 have_audio=yes
807 ;;
808 aix)
809- AC_DEFINE(SDL_AUDIO_DRIVER_PAUD)
810+ AC_DEFINE(SDL_AUDIO_DRIVER_PAUD,1,"")
811 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
812 have_audio=yes
813 ;;
814@@ -2365,7 +2337,7 @@
815 if test x$enable_joystick = xyes; then
816 case $ARCH in
817 linux)
818- AC_DEFINE(SDL_JOYSTICK_LINUX)
819+ AC_DEFINE(SDL_JOYSTICK_LINUX,1,"")
820 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
821 have_joystick=yes
822 ;;
823@@ -2375,32 +2347,32 @@
824 if test x$enable_cdrom = xyes; then
825 case $ARCH in
826 linux|solaris)
827- AC_DEFINE(SDL_CDROM_LINUX)
828+ AC_DEFINE(SDL_CDROM_LINUX,1,"")
829 SOURCES="$SOURCES $srcdir/src/cdrom/linux/*.c"
830 have_cdrom=yes
831 ;;
832 *freebsd*)
833- AC_DEFINE(SDL_CDROM_FREEBSD)
834+ AC_DEFINE(SDL_CDROM_FREEBSD,1,"")
835 SOURCES="$SOURCES $srcdir/src/cdrom/freebsd/*.c"
836 have_cdrom=yes
837 ;;
838 *openbsd*|*netbsd*)
839- AC_DEFINE(SDL_CDROM_OPENBSD)
840+ AC_DEFINE(SDL_CDROM_OPENBSD,1,"")
841 SOURCES="$SOURCES $srcdir/src/cdrom/openbsd/*.c"
842 have_cdrom=yes
843 ;;
844 bsdi)
845- AC_DEFINE(SDL_CDROM_BSDI)
846+ AC_DEFINE(SDL_CDROM_BSDI,1,"")
847 SOURCES="$SOURCES $srcdir/src/cdrom/bsdi/*.c"
848 have_cdrom=yes
849 ;;
850 aix)
851- AC_DEFINE(SDL_CDROM_AIX)
852+ AC_DEFINE(SDL_CDROM_AIX,1,"")
853 SOURCES="$SOURCES $srcdir/src/cdrom/aix/*.c"
854 have_cdrom=yes
855 ;;
856 osf)
857- AC_DEFINE(SDL_CDROM_OSF)
858+ AC_DEFINE(SDL_CDROM_OSF,1,"")
859 SOURCES="$SOURCES $srcdir/src/cdrom/osf/*.c"
860 have_cdrom=yes
861 ;;
862@@ -2408,7 +2380,7 @@
863 fi
864 # Set up files for the thread library
865 if test x$enable_threads = xyes -a x$use_pthreads != xyes -a x$use_pth != xyes -a x$ARCH = xirix; then
866- AC_DEFINE(SDL_THREAD_SPROC)
867+ AC_DEFINE(SDL_THREAD_SPROC,1,"")
868 SOURCES="$SOURCES $srcdir/src/thread/irix/*.c"
869 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
870 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
871@@ -2416,7 +2388,7 @@
872 fi
873 # Set up files for the timer library
874 if test x$enable_timers = xyes; then
875- AC_DEFINE(SDL_TIMER_UNIX)
876+ AC_DEFINE(SDL_TIMER_UNIX,1,"")
877 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
878 have_timers=yes
879 fi
880@@ -2435,20 +2407,20 @@
881 CheckPTHREAD
882 # Set up files for the audio library
883 if test x$enable_audio = xyes; then
884- AC_DEFINE(SDL_AUDIO_DRIVER_QNXNTO)
885+ AC_DEFINE(SDL_AUDIO_DRIVER_QNXNTO,1,"")
886 SOURCES="$SOURCES $srcdir/src/audio/nto/*.c"
887 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
888 have_audio=yes
889 fi
890 # Set up files for the cdrom library
891 if test x$enable_cdrom = xyes; then
892- AC_DEFINE(SDL_CDROM_QNX)
893+ AC_DEFINE(SDL_CDROM_QNX,1,"")
894 SOURCES="$SOURCES $srcdir/src/cdrom/qnx/*.c"
895 have_cdrom=yes
896 fi
897 # Set up files for the timer library
898 if test x$enable_timers = xyes; then
899- AC_DEFINE(SDL_TIMER_UNIX)
900+ AC_DEFINE(SDL_TIMER_UNIX,1,"")
901 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
902 have_timers=yes
903 fi
904@@ -2473,29 +2445,29 @@
905 CheckNASM
906 # Set up files for the audio library
907 if test x$enable_audio = xyes; then
908- AC_DEFINE(SDL_AUDIO_DRIVER_WAVEOUT)
909+ AC_DEFINE(SDL_AUDIO_DRIVER_WAVEOUT,1,"")
910 SOURCES="$SOURCES $srcdir/src/audio/windib/*.c"
911 if test x$have_directx = xyes; then
912- AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND)
913+ AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND,1,"")
914 SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c"
915 fi
916 have_audio=yes
917 fi
918 # Set up files for the joystick library
919 if test x$enable_joystick = xyes; then
920- AC_DEFINE(SDL_JOYSTICK_WINMM)
921+ AC_DEFINE(SDL_JOYSTICK_WINMM,1,"")
922 SOURCES="$SOURCES $srcdir/src/joystick/win32/*.c"
923 have_joystick=yes
924 fi
925 # Set up files for the cdrom library
926 if test x$enable_cdrom = xyes; then
927- AC_DEFINE(SDL_CDROM_WIN32)
928+ AC_DEFINE(SDL_CDROM_WIN32,1,"")
929 SOURCES="$SOURCES $srcdir/src/cdrom/win32/*.c"
930 have_cdrom=yes
931 fi
932 # Set up files for the thread library
933 if test x$enable_threads = xyes; then
934- AC_DEFINE(SDL_THREAD_WIN32)
935+ AC_DEFINE(SDL_THREAD_WIN32,1,"")
936 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c"
937 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c"
938 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c"
939@@ -2504,13 +2476,13 @@
940 fi
941 # Set up files for the timer library
942 if test x$enable_timers = xyes; then
943- AC_DEFINE(SDL_TIMER_WIN32)
944+ AC_DEFINE(SDL_TIMER_WIN32,1,"")
945 SOURCES="$SOURCES $srcdir/src/timer/win32/*.c"
946 have_timers=yes
947 fi
948 # Set up files for the shared object loading library
949 if test x$enable_loadso = xyes; then
950- AC_DEFINE(SDL_LOADSO_WIN32)
951+ AC_DEFINE(SDL_LOADSO_WIN32,1,"")
952 SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c"
953 have_loadso=yes
954 fi
955@@ -2579,25 +2551,25 @@
956 CheckBeGL
957 # Set up files for the audio library
958 if test x$enable_audio = xyes; then
959- AC_DEFINE(SDL_AUDIO_DRIVER_BAUDIO)
960+ AC_DEFINE(SDL_AUDIO_DRIVER_BAUDIO,1,"")
961 SOURCES="$SOURCES $srcdir/src/audio/baudio/*.cc"
962 have_audio=yes
963 fi
964 # Set up files for the joystick library
965 if test x$enable_joystick = xyes; then
966- AC_DEFINE(SDL_JOYSTICK_BEOS)
967+ AC_DEFINE(SDL_JOYSTICK_BEOS,1,"")
968 SOURCES="$SOURCES $srcdir/src/joystick/beos/*.cc"
969 have_joystick=yes
970 fi
971 # Set up files for the cdrom library
972 if test x$enable_cdrom = xyes; then
973- AC_DEFINE(SDL_CDROM_BEOS)
974+ AC_DEFINE(SDL_CDROM_BEOS,1,"")
975 SOURCES="$SOURCES $srcdir/src/cdrom/beos/*.cc"
976 have_cdrom=yes
977 fi
978 # Set up files for the thread library
979 if test x$enable_threads = xyes; then
980- AC_DEFINE(SDL_THREAD_BEOS)
981+ AC_DEFINE(SDL_THREAD_BEOS,1,"")
982 SOURCES="$SOURCES $srcdir/src/thread/beos/*.c"
983 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
984 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
985@@ -2605,7 +2577,7 @@
986 fi
987 # Set up files for the timer library
988 if test x$enable_timers = xyes; then
989- AC_DEFINE(SDL_TIMER_BEOS)
990+ AC_DEFINE(SDL_TIMER_BEOS,1,"")
991 SOURCES="$SOURCES $srcdir/src/timer/beos/*.c"
992 have_timers=yes
993 fi
994@@ -2613,11 +2585,11 @@
995 if test x$enable_loadso = xyes; then
996 case "$host" in
997 *-*-beos*)
998- AC_DEFINE(SDL_LOADSO_BEOS)
999+ AC_DEFINE(SDL_LOADSO_BEOS,1,"")
1000 SOURCES="$SOURCES $srcdir/src/loadso/beos/*.c"
1001 ;;
1002 *-*-haiku*)
1003- AC_DEFINE(SDL_LOADSO_DLOPEN)
1004+ AC_DEFINE(SDL_LOADSO_DLOPEN,1,"")
1005 SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
1006 ;;
1007 esac
1008@@ -2653,7 +2625,7 @@
1009 # Set up files for the shared object loading library
1010 # (this needs to be done before the dynamic X11 check)
1011 if test x$enable_loadso = xyes -a x$have_dlopen != xyes; then
1012- AC_DEFINE(SDL_LOADSO_DLCOMPAT)
1013+ AC_DEFINE(SDL_LOADSO_DLCOMPAT,1,"")
1014 SOURCES="$SOURCES $srcdir/src/loadso/macosx/*.c"
1015 have_loadso=yes
1016 fi
1017@@ -2671,26 +2643,26 @@
1018
1019 # Set up files for the audio library
1020 if test x$enable_audio = xyes; then
1021- AC_DEFINE(SDL_AUDIO_DRIVER_COREAUDIO)
1022+ AC_DEFINE(SDL_AUDIO_DRIVER_COREAUDIO,1,"")
1023 SOURCES="$SOURCES $srcdir/src/audio/macosx/*.c"
1024 have_audio=yes
1025 fi
1026 # Set up files for the joystick library
1027 if test x$enable_joystick = xyes; then
1028- AC_DEFINE(SDL_JOYSTICK_IOKIT)
1029+ AC_DEFINE(SDL_JOYSTICK_IOKIT,1,"")
1030 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
1031 have_joystick=yes
1032 need_iokit_framework=yes
1033 fi
1034 # Set up files for the cdrom library
1035 if test x$enable_cdrom = xyes; then
1036- AC_DEFINE(SDL_CDROM_MACOSX)
1037+ AC_DEFINE(SDL_CDROM_MACOSX,1,"")
1038 SOURCES="$SOURCES $srcdir/src/cdrom/macosx/*.c"
1039 have_cdrom=yes
1040 fi
1041 # Set up files for the timer library
1042 if test x$enable_timers = xyes; then
1043- AC_DEFINE(SDL_TIMER_UNIX)
1044+ AC_DEFINE(SDL_TIMER_UNIX,1,"")
1045 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
1046 have_timers=yes
1047 fi
1048@@ -2731,30 +2703,30 @@
1049 # Set up files for the audio library
1050 if test x$enable_threads = xyes -a x$enable_pth = xyes; then
1051 if test x$enable_audio = xyes; then
1052- AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO)
1053+ AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO,1,"")
1054 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
1055 have_audio=yes
1056 fi
1057 fi
1058 # Set up files for the joystick library
1059 if test x$enable_joystick = xyes; then
1060- AC_DEFINE(SDL_JOYSTICK_MINT)
1061+ AC_DEFINE(SDL_JOYSTICK_MINT,1,"")
1062 SOURCES="$SOURCES $srcdir/src/joystick/mint/*.c"
1063 have_joystick=yes
1064 fi
1065 # Set up files for the cdrom library
1066 if test x$enable_cdrom = xyes; then
1067- AC_DEFINE(SDL_CDROM_MINT)
1068+ AC_DEFINE(SDL_CDROM_MINT,1,"")
1069 SOURCES="$SOURCES $srcdir/src/cdrom/mint/*.c"
1070 have_cdrom=yes
1071 fi
1072 # Set up files for the timer library
1073 if test x$enable_timers = xyes; then
1074 if test x$enable_threads = xyes -a x$enable_pth = xyes; then
1075- AC_DEFINE(SDL_TIMER_UNIX)
1076+ AC_DEFINE(SDL_TIMER_UNIX,1,"")
1077 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
1078 else
1079- AC_DEFINE(SDL_TIMER_MINT)
1080+ AC_DEFINE(SDL_TIMER_MIN,1,""T)
1081 SOURCES="$SOURCES $srcdir/src/timer/mint/*.c"
1082 SOURCES="$SOURCES $srcdir/src/timer/mint/*.S"
1083 fi
1084@@ -2767,20 +2739,20 @@
1085 CheckPTHREAD
1086 # Set up files for the video library
1087 if test x$enable_video = xyes; then
1088- AC_DEFINE(SDL_VIDEO_DRIVER_RISCOS)
1089+ AC_DEFINE(SDL_VIDEO_DRIVER_RISCOS,1,"")
1090 SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
1091 SOURCES="$SOURCES $srcdir/src/video/riscos/*.S"
1092 have_video=yes
1093 fi
1094 # Set up files for the joystick library
1095 if test x$enable_joystick = xyes; then
1096- AC_DEFINE(SDL_JOYSTICK_RISCOS)
1097+ AC_DEFINE(SDL_JOYSTICK_RISCOS,1,"")
1098 SOURCES="$SOURCES $srcdir/src/joystick/riscos/*.c"
1099 have_joystick=yes
1100 fi
1101 # Set up files for the timer library
1102 if test x$enable_timers = xyes; then
1103- AC_DEFINE(SDL_TIMER_RISCOS)
1104+ AC_DEFINE(SDL_TIMER_RISCOS,1,"")
1105 SOURCES="$SOURCES $srcdir/src/timer/riscos/*.c"
1106 have_timers=yes
1107 fi
1108@@ -2799,31 +2771,31 @@
1109 if test x$enable_joystick = xyes; then
1110 if test x$have_joystick != xyes; then
1111 # Wants joystick subsystem, but doesn't have a platform-specific backend...
1112- AC_DEFINE(SDL_JOYSTICK_DUMMY)
1113+ AC_DEFINE(SDL_JOYSTICK_DUMMY,1,"")
1114 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
1115 fi
1116 fi
1117 if test x$have_cdrom != xyes; then
1118 if test x$enable_cdrom = xyes; then
1119- AC_DEFINE(SDL_CDROM_DISABLED)
1120+ AC_DEFINE(SDL_CDROM_DISABLED,1,"")
1121 fi
1122 SOURCES="$SOURCES $srcdir/src/cdrom/dummy/*.c"
1123 fi
1124 if test x$have_threads != xyes; then
1125 if test x$enable_threads = xyes; then
1126- AC_DEFINE(SDL_THREADS_DISABLED)
1127+ AC_DEFINE(SDL_THREADS_DISABLED,1,"")
1128 fi
1129 SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
1130 fi
1131 if test x$have_timers != xyes; then
1132 if test x$enable_timers = xyes; then
1133- AC_DEFINE(SDL_TIMERS_DISABLED)
1134+ AC_DEFINE(SDL_TIMERS_DISABLED,1,"")
1135 fi
1136 SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
1137 fi
1138 if test x$have_loadso != xyes; then
1139 if test x$enable_loadso = xyes; then
1140- AC_DEFINE(SDL_LOADSO_DISABLED)
1141+ AC_DEFINE(SDL_LOADSO_DISABLED,1,"")
1142 fi
1143 SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
1144 fi