summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/libsdl
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-09-01 19:09:11 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-01 19:09:57 +0100
commitd62ee7eaf2ba025c3f64b2d4e10dc7cec4637612 (patch)
treef36fe3008f36ff75cbdd31b630f8f13f1f205ebb /meta/recipes-graphics/libsdl
parentcaab7fc509bf27706ff3248689f6afd04225cfda (diff)
downloadpoky-d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612.tar.gz
packages: Separate out most of the remaining packages into recipes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-graphics/libsdl')
-rw-r--r--meta/recipes-graphics/libsdl/files/acinclude.m4189
-rw-r--r--meta/recipes-graphics/libsdl/files/configure_tweak.patch1167
-rw-r--r--meta/recipes-graphics/libsdl/files/directfb_obsolete_calls.patch33
-rw-r--r--meta/recipes-graphics/libsdl/files/extra-keys.patch53
-rw-r--r--meta/recipes-graphics/libsdl/files/kernel-asm-page.patch13
-rw-r--r--meta/recipes-graphics/libsdl/libsdl-nativesdk_1.2.11.bb31
6 files changed, 1486 insertions, 0 deletions
diff --git a/meta/recipes-graphics/libsdl/files/acinclude.m4 b/meta/recipes-graphics/libsdl/files/acinclude.m4
new file mode 100644
index 0000000000..ca2df9d5e5
--- /dev/null
+++ b/meta/recipes-graphics/libsdl/files/acinclude.m4
@@ -0,0 +1,189 @@
1# Local macros for the SDL configure.in script
2
3dnl Function to link an architecture specific file
4dnl LINK_ARCH_SRC(source_dir, arch, source_file)
5AC_DEFUN([COPY_ARCH_SRC],
6[
7 old="$srcdir/$1/$2/$3"
8 new="$1/$3"
9 if test ! -d $1; then
10 echo "Creating directory $1"
11 mkdir -p $1
12 fi
13 echo "Copying $old -> $new"
14 cat >$new <<__EOF__
15/* WARNING: This file was automatically generated!
16 * Original: $old
17 */
18__EOF__
19 cat >>$new <$old
20])
21
22#
23# --- esd.m4 ---
24#
25# Configure paths for ESD
26# Manish Singh 98-9-30
27# stolen back from Frank Belew
28# stolen from Manish Singh
29# Shamelessly stolen from Owen Taylor
30
31dnl AM_PATH_ESD([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
32dnl Test for ESD, and define ESD_CFLAGS and ESD_LIBS
33dnl
34AC_DEFUN([AM_PATH_ESD],
35[dnl
36dnl Get the cflags and libraries from the esd-config script
37dnl
38AC_ARG_WITH(esd-prefix,[ --with-esd-prefix=PFX Prefix where ESD is installed (optional)],
39 esd_prefix="$withval", esd_prefix="")
40AC_ARG_WITH(esd-exec-prefix,[ --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)],
41 esd_exec_prefix="$withval", esd_exec_prefix="")
42AC_ARG_ENABLE(esdtest, [ --disable-esdtest Do not try to compile and run a test ESD program],
43 , enable_esdtest=yes)
44
45 if test x$esd_exec_prefix != x ; then
46 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
47 if test x${ESD_CONFIG+set} != xset ; then
48 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
49 fi
50 fi
51 if test x$esd_prefix != x ; then
52 esd_args="$esd_args --prefix=$esd_prefix"
53 if test x${ESD_CONFIG+set} != xset ; then
54 ESD_CONFIG=$esd_prefix/bin/esd-config
55 fi
56 fi
57
58 AC_PATH_PROG(ESD_CONFIG, esd-config, no)
59 min_esd_version=ifelse([$1], ,0.2.7,$1)
60 AC_MSG_CHECKING(for ESD - version >= $min_esd_version)
61 no_esd=""
62 if test "$ESD_CONFIG" = "no" ; then
63 no_esd=yes
64 else
65 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
66 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
67
68 esd_major_version=`$ESD_CONFIG $esd_args --version | \
69 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
70 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
71 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
72 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
73 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
74 if test "x$enable_esdtest" = "xyes" ; then
75 ac_save_CFLAGS="$CFLAGS"
76 ac_save_LIBS="$LIBS"
77 CFLAGS="$CFLAGS $ESD_CFLAGS"
78 LIBS="$LIBS $ESD_LIBS"
79dnl
80dnl Now check if the installed ESD is sufficiently new. (Also sanity
81dnl checks the results of esd-config to some extent
82dnl
83 rm -f conf.esdtest
84 AC_TRY_RUN([
85#include <stdio.h>
86#include <stdlib.h>
87#include <string.h>
88#include <esd.h>
89
90char*
91my_strdup (char *str)
92{
93 char *new_str;
94
95 if (str)
96 {
97 new_str = malloc ((strlen (str) + 1) * sizeof(char));
98 strcpy (new_str, str);
99 }
100 else
101 new_str = NULL;
102
103 return new_str;
104}
105
106int main ()
107{
108 int major, minor, micro;
109 char *tmp_version;
110
111 system ("touch conf.esdtest");
112
113 /* HP/UX 9 (%@#!) writes to sscanf strings */
114 tmp_version = my_strdup("$min_esd_version");
115 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
116 printf("%s, bad version string\n", "$min_esd_version");
117 exit(1);
118 }
119
120 if (($esd_major_version > major) ||
121 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
122 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
123 {
124 return 0;
125 }
126 else
127 {
128 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
129 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
130 printf("*** best to upgrade to the required version.\n");
131 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
132 printf("*** to point to the correct copy of esd-config, and remove the file\n");
133 printf("*** config.cache before re-running configure\n");
134 return 1;
135 }
136}
137
138],, no_esd=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
139 CFLAGS="$ac_save_CFLAGS"
140 LIBS="$ac_save_LIBS"
141 fi
142 fi
143 if test "x$no_esd" = x ; then
144 AC_MSG_RESULT(yes)
145 ifelse([$2], , :, [$2])
146 else
147 AC_MSG_RESULT(no)
148 if test "$ESD_CONFIG" = "no" ; then
149 echo "*** The esd-config script installed by ESD could not be found"
150 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
151 echo "*** your path, or set the ESD_CONFIG environment variable to the"
152 echo "*** full path to esd-config."
153 else
154 if test -f conf.esdtest ; then
155 :
156 else
157 echo "*** Could not run ESD test program, checking why..."
158 CFLAGS="$CFLAGS $ESD_CFLAGS"
159 LIBS="$LIBS $ESD_LIBS"
160 AC_TRY_LINK([
161#include <stdio.h>
162#include <esd.h>
163], [ return 0; ],
164 [ echo "*** The test program compiled, but did not run. This usually means"
165 echo "*** that the run-time linker is not finding ESD or finding the wrong"
166 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
167 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
168 echo "*** to the installed location Also, make sure you have run ldconfig if that"
169 echo "*** is required on your system"
170 echo "***"
171 echo "*** If you have an old version installed, it is best to remove it, although"
172 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
173 [ echo "*** The test program failed to compile or link. See the file config.log for the"
174 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
175 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
176 echo "*** may want to edit the esd-config script: $ESD_CONFIG" ])
177 CFLAGS="$ac_save_CFLAGS"
178 LIBS="$ac_save_LIBS"
179 fi
180 fi
181 ESD_CFLAGS=""
182 ESD_LIBS=""
183 ifelse([$3], , :, [$3])
184 fi
185 AC_SUBST(ESD_CFLAGS)
186 AC_SUBST(ESD_LIBS)
187 rm -f conf.esdtest
188])
189
diff --git a/meta/recipes-graphics/libsdl/files/configure_tweak.patch b/meta/recipes-graphics/libsdl/files/configure_tweak.patch
new file mode 100644
index 0000000000..90a2888e57
--- /dev/null
+++ b/meta/recipes-graphics/libsdl/files/configure_tweak.patch
@@ -0,0 +1,1167 @@
1Index: SDL-1.2.11/configure.in
2===================================================================
3--- SDL-1.2.11.orig/configure.in 2006-06-27 05:48:33.000000000 +0100
4+++ SDL-1.2.11/configure.in 2008-02-21 19:48:47.000000000 +0000
5@@ -40,13 +40,13 @@
6 AC_SUBST(LT_AGE)
7
8 dnl Detect the canonical build and host environments
9-AC_CONFIG_AUX_DIRS($srcdir/build-scripts)
10+AC_CONFIG_AUX_DIR(./build-scripts)
11 AC_CANONICAL_HOST
12 AC_C_BIGENDIAN
13 if test x$ac_cv_c_bigendian = xyes; then
14- AC_DEFINE(SDL_BYTEORDER, 4321)
15+ AC_DEFINE(SDL_BYTEORDER, 4321, "Byte Order")
16 else
17- AC_DEFINE(SDL_BYTEORDER, 1234)
18+ AC_DEFINE(SDL_BYTEORDER, 1234, "Byte Order")
19 fi
20
21 dnl Set up the compiler and linker flags
22@@ -107,7 +107,7 @@
23 AC_HELP_STRING([--enable-libc], [Use the system C library [[default=yes]]]),
24 , enable_libc=yes)
25 if test x$enable_libc = xyes; then
26- AC_DEFINE(HAVE_LIBC)
27+ AC_DEFINE(HAVE_LIBC,1,"")
28
29 dnl Check for C library headers
30 AC_HEADER_STDC
31@@ -118,7 +118,7 @@
32 if test x$ac_cv_header_inttypes_h = xyes -o x$ac_cv_header_stdint_h = xyes; then
33 AC_CHECK_TYPE(int64_t)
34 if test x$ac_cv_type_int64_t = xyes; then
35- AC_DEFINE(SDL_HAS_64BIT_TYPE)
36+ AC_DEFINE(SDL_HAS_64BIT_TYPE,1,"")
37 fi
38 have_inttypes=yes
39 fi
40@@ -127,11 +127,11 @@
41 AC_FUNC_ALLOCA
42 AC_FUNC_MEMCMP
43 if test x$ac_cv_func_memcmp_working = xyes; then
44- AC_DEFINE(HAVE_MEMCMP)
45+ AC_DEFINE(HAVE_MEMCMP,1,"")
46 fi
47 AC_FUNC_STRTOD
48 if test x$ac_cv_func_strtod = xyes; then
49- AC_DEFINE(HAVE_STRTOD)
50+ AC_DEFINE(HAVE_STRTOD,1,"")
51 fi
52 AC_CHECK_FUNCS(malloc calloc realloc free getenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp sscanf snprintf vsnprintf iconv sigaction setjmp nanosleep)
53
54@@ -146,40 +146,40 @@
55 AC_CHECK_SIZEOF(long, 4)
56 AC_CHECK_SIZEOF(long long, 8)
57 if test x$ac_cv_sizeof_char = x1; then
58- AC_DEFINE(int8_t, signed char)
59- AC_DEFINE(uint8_t, unsigned char)
60+ AC_DEFINE(int8_t, signed char,"")
61+ AC_DEFINE(uint8_t, unsigned char,"")
62 fi
63 if test x$ac_cv_sizeof_short = x2; then
64- AC_DEFINE(int16_t, signed short)
65- AC_DEFINE(uint16_t, unsigned short)
66+ AC_DEFINE(int16_t, signed short,"")
67+ AC_DEFINE(uint16_t, unsigned short,"")
68 else
69 if test x$ac_cv_sizeof_int = x2; then
70- AC_DEFINE(int16_t, signed int)
71- AC_DEFINE(uint16_t, unsigned int)
72+ AC_DEFINE(int16_t, signed int,"")
73+ AC_DEFINE(uint16_t, unsigned int,"")
74 fi
75 fi
76 if test x$ac_cv_sizeof_int = x4; then
77- AC_DEFINE(int32_t, signed int)
78- AC_DEFINE(uint32_t, unsigned int)
79+ AC_DEFINE(int32_t, signed int,"")
80+ AC_DEFINE(uint32_t, unsigned int,"")
81 else
82 if test x$ac_cv_sizeof_long = x4; then
83- AC_DEFINE(int32_t, signed long)
84- AC_DEFINE(uint32_t, unsigned long)
85+ AC_DEFINE(int32_t, signed long,"")
86+ AC_DEFINE(uint32_t, unsigned long,"")
87 fi
88 fi
89 if test x$ac_cv_sizeof_long = x8; then
90- AC_DEFINE(int64_t, signed long)
91- AC_DEFINE(uint64_t, unsigned long)
92- AC_DEFINE(SDL_HAS_64BIT_TYPE)
93+ AC_DEFINE(int64_t, signed long,"")
94+ AC_DEFINE(uint64_t, unsigned long,"")
95+ AC_DEFINE(SDL_HAS_64BIT_TYPE,"")
96 else
97 if test x$ac_cv_sizeof_long_long = x8; then
98- AC_DEFINE(int64_t, signed long long)
99- AC_DEFINE(uint64_t, unsigned long long)
100- AC_DEFINE(SDL_HAS_64BIT_TYPE)
101+ AC_DEFINE(int64_t, signed long long,"")
102+ AC_DEFINE(uint64_t, unsigned long long,"")
103+ AC_DEFINE(SDL_HAS_64BIT_TYPE,"")
104 fi
105 fi
106- AC_DEFINE(size_t, unsigned int)
107- AC_DEFINE(uintptr_t, unsigned long)
108+ AC_DEFINE(size_t, unsigned int,"")
109+ AC_DEFINE(uintptr_t, unsigned long,"")
110 fi
111
112 # Standard C sources
113@@ -201,67 +201,67 @@
114 AC_HELP_STRING([--enable-audio], [Enable the audio subsystem [[default=yes]]]),
115 , enable_audio=yes)
116 if test x$enable_audio != xyes; then
117- AC_DEFINE(SDL_AUDIO_DISABLED)
118+ AC_DEFINE(SDL_AUDIO_DISABLED,1,"")
119 fi
120 AC_ARG_ENABLE(video,
121 AC_HELP_STRING([--enable-video], [Enable the video subsystem [[default=yes]]]),
122 , enable_video=yes)
123 if test x$enable_video != xyes; then
124- AC_DEFINE(SDL_VIDEO_DISABLED)
125+ AC_DEFINE(SDL_VIDEO_DISABLED,1,"")
126 fi
127 AC_ARG_ENABLE(events,
128 AC_HELP_STRING([--enable-events], [Enable the events subsystem [[default=yes]]]),
129 , enable_events=yes)
130 if test x$enable_events != xyes; then
131- AC_DEFINE(SDL_EVENTS_DISABLED)
132+ AC_DEFINE(SDL_EVENTS_DISABLED,1,"")
133 fi
134 AC_ARG_ENABLE(joystick,
135 AC_HELP_STRING([--enable-joystick], [Enable the joystick subsystem [[default=yes]]]),
136 , enable_joystick=yes)
137 if test x$enable_joystick != xyes; then
138- AC_DEFINE(SDL_JOYSTICK_DISABLED)
139+ AC_DEFINE(SDL_JOYSTICK_DISABLED,1,"")
140 fi
141 AC_ARG_ENABLE(cdrom,
142 AC_HELP_STRING([--enable-cdrom], [Enable the cdrom subsystem [[default=yes]]]),
143 , enable_cdrom=yes)
144 if test x$enable_cdrom != xyes; then
145- AC_DEFINE(SDL_CDROM_DISABLED)
146+ AC_DEFINE(SDL_CDROM_DISABLED,1,"")
147 fi
148 AC_ARG_ENABLE(threads,
149 AC_HELP_STRING([--enable-threads], [Enable the threading subsystem [[default=yes]]]),
150 , enable_threads=yes)
151 if test x$enable_threads != xyes; then
152- AC_DEFINE(SDL_THREADS_DISABLED)
153+ AC_DEFINE(SDL_THREADS_DISABLED,1,"")
154 fi
155 AC_ARG_ENABLE(timers,
156 AC_HELP_STRING([--enable-timers], [Enable the timer subsystem [[default=yes]]]),
157 , enable_timers=yes)
158 if test x$enable_timers != xyes; then
159- AC_DEFINE(SDL_TIMERS_DISABLED)
160+ AC_DEFINE(SDL_TIMERS_DISABLED,1,"")
161 fi
162 AC_ARG_ENABLE(file,
163 AC_HELP_STRING([--enable-file], [Enable the file subsystem [[default=yes]]]),
164 , enable_file=yes)
165 if test x$enable_file != xyes; then
166- AC_DEFINE(SDL_FILE_DISABLED)
167+ AC_DEFINE(SDL_FILE_DISABLED,1,"")
168 fi
169 AC_ARG_ENABLE(loadso,
170 AC_HELP_STRING([--enable-loadso], [Enable the shared object loading subsystem [[default=yes]]]),
171 , enable_loadso=yes)
172 if test x$enable_loadso != xyes; then
173- AC_DEFINE(SDL_LOADSO_DISABLED)
174+ AC_DEFINE(SDL_LOADSO_DISABLED,1,"")
175 fi
176 AC_ARG_ENABLE(cpuinfo,
177 AC_HELP_STRING([--enable-cpuinfo], [Enable the cpuinfo subsystem [[default=yes]]]),
178 , enable_cpuinfo=yes)
179 if test x$enable_cpuinfo != xyes; then
180- AC_DEFINE(SDL_CPUINFO_DISABLED)
181+ AC_DEFINE(SDL_CPUINFO_DISABLED,1,"")
182 fi
183 AC_ARG_ENABLE(assembly,
184 AC_HELP_STRING([--enable-assembly], [Enable assembly routines [[default=yes]]]),
185 , enable_assembly=yes)
186 if test x$enable_assembly = xyes; then
187- AC_DEFINE(SDL_ASSEMBLY_ROUTINES)
188+ AC_DEFINE(SDL_ASSEMBLY_ROUTINES,1,"")
189 fi
190
191 dnl See if the OSS audio interface is supported
192@@ -289,12 +289,12 @@
193 int arg = SNDCTL_DSP_SETFRAGMENT;
194 ],[
195 have_oss=yes
196- AC_DEFINE(SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H)
197+ AC_DEFINE(SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H,1,"")
198 ])
199 fi
200 AC_MSG_RESULT($have_oss)
201 if test x$have_oss = xyes; then
202- AC_DEFINE(SDL_AUDIO_DRIVER_OSS)
203+ AC_DEFINE(SDL_AUDIO_DRIVER_OSS,1,"")
204 SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
205 SOURCES="$SOURCES $srcdir/src/audio/dma/*.c"
206 have_audio=yes
207@@ -314,45 +314,7 @@
208 AC_ARG_ENABLE(alsa,
209 AC_HELP_STRING([--enable-alsa], [support the ALSA audio API [[default=yes]]]),
210 , enable_alsa=yes)
211- if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
212- AM_PATH_ALSA(0.9.0, have_alsa=yes, have_alsa=no)
213- # Restore all flags from before the ALSA detection runs
214- CFLAGS="$alsa_save_CFLAGS"
215- LDFLAGS="$alsa_save_LDFLAGS"
216- LIBS="$alsa_save_LIBS"
217- if test x$have_alsa = xyes; then
218- AC_ARG_ENABLE(alsa-shared,
219-AC_HELP_STRING([--enable-alsa-shared], [dynamically load ALSA audio support [[default=yes]]]),
220- , enable_alsa_shared=yes)
221- if test "x`echo $ALSA_LIBS | grep -- -L`" = "x"; then
222- if test "x`ls /lib/libasound.so.* 2> /dev/null`" != "x"; then
223- ALSA_LIBS="-L/lib $ALSA_LIBS"
224- elif test "x`ls /usr/lib/libasound.so.* 2> /dev/null`" != "x"; then
225- ALSA_LIBS="-L/usr/lib $ALSA_LIBS"
226- elif test "x`ls /usr/local/lib/libasound.so.* 2> /dev/null`" != "x"; then
227- ALSA_LIBS="-L/usr/local/lib $ALSA_LIBS"
228- fi
229- fi
230- alsa_lib_spec=`echo $ALSA_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libasound.so.*/'`
231- alsa_lib=`ls -- $alsa_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
232- echo "-- $alsa_lib_spec -> $alsa_lib"
233-
234- AC_DEFINE(SDL_AUDIO_DRIVER_ALSA)
235- SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
236- EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
237- if test x$have_loadso != xyes && \
238- test x$enable_alsa_shared = xyes; then
239- AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic ALSA loading])
240- fi
241- if test x$have_loadso = xyes && \
242- test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
243- AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ALSA_DYNAMIC, "$alsa_lib")
244- else
245- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
246- fi
247- have_audio=yes
248- fi
249- fi
250+ enable_alsa=no
251 }
252
253 dnl Check whether we want to use IRIX 6.5+ native audio or not
254@@ -371,7 +333,7 @@
255 AC_MSG_RESULT($have_dmedia)
256 # Set up files for the audio library
257 if test x$have_dmedia = xyes; then
258- AC_DEFINE(SDL_AUDIO_DRIVER_DMEDIA)
259+ AC_DEFINE(SDL_AUDIO_DRIVER_DMEDIA,1,"")
260 SOURCES="$SOURCES $srcdir/src/audio/dmedia/*.c"
261 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -laudio"
262 have_audio=yes
263@@ -408,7 +370,7 @@
264 AC_MSG_RESULT($have_mme)
265 # Set up files for the audio library
266 if test x$have_mme = xyes; then
267- AC_DEFINE(SDL_AUDIO_DRIVER_MMEAUDIO)
268+ AC_DEFINE(SDL_AUDIO_DRIVER_MMEAUDIO,1,"")
269 SOURCES="$SOURCES $srcdir/src/audio/mme/*.c"
270 EXTRA_CFLAGS="$EXTRA_CFLAGS $MME_CFLAGS"
271 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MME_LIBS"
272@@ -433,7 +395,7 @@
273 esd_lib=`ls -- $esd_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
274 echo "-- $esd_lib_spec -> $esd_lib"
275
276- AC_DEFINE(SDL_AUDIO_DRIVER_ESD)
277+ AC_DEFINE(SDL_AUDIO_DRIVER_ESD,1,"")
278 SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
279 EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
280 if test x$have_loadso != xyes && \
281@@ -442,7 +404,7 @@
282 fi
283 if test x$have_loadso = xyes && \
284 test x$enable_esd_shared = xyes && test x$esd_lib != x; then
285- AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ESD_DYNAMIC, "$esd_lib")
286+ AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ESD_DYNAMIC, "$esd_lib", "")
287 else
288 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
289 fi
290@@ -485,7 +447,7 @@
291 arts_lib=`ls -- $arts_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
292 echo "-- $arts_lib_spec -> $arts_lib"
293
294- AC_DEFINE(SDL_AUDIO_DRIVER_ARTS)
295+ AC_DEFINE(SDL_AUDIO_DRIVER_ARTS,, "")
296 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
297 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
298 if test x$have_loadso != xyes && \
299@@ -494,7 +456,7 @@
300 fi
301 if test x$have_loadso = xyes && \
302 test x$enable_arts_shared = xyes && test x$arts_lib != x; then
303- AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ARTS_DYNAMIC, "$arts_lib")
304+ AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ARTS_DYNAMIC, "$arts_lib",1,"")
305 else
306 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
307 fi
308@@ -527,7 +489,7 @@
309 fi
310 AC_MSG_RESULT($have_nas)
311 if test x$have_nas = xyes; then
312- AC_DEFINE(SDL_AUDIO_DRIVER_NAS)
313+ AC_DEFINE(SDL_AUDIO_DRIVER_NAS,1,"")
314 SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
315 EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
316 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
317@@ -543,7 +505,7 @@
318 AC_HELP_STRING([--enable-diskaudio], [support the disk writer audio driver [[default=yes]]]),
319 , enable_diskaudio=yes)
320 if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
321- AC_DEFINE(SDL_AUDIO_DRIVER_DISK)
322+ AC_DEFINE(SDL_AUDIO_DRIVER_DISK,1,"")
323 SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
324 fi
325 }
326@@ -555,7 +517,7 @@
327 AC_HELP_STRING([--enable-dummyaudio], [support the dummy audio driver [[default=yes]]]),
328 , enable_dummyaudio=yes)
329 if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
330- AC_DEFINE(SDL_AUDIO_DRIVER_DUMMY)
331+ AC_DEFINE(SDL_AUDIO_DRIVER_DUMMY,1,"")
332 SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
333 fi
334 }
335@@ -571,7 +533,7 @@
336 AC_CHECK_HEADER(mint/falcon.h, have_mint_falcon_hdr=yes)
337 if test x$have_mint_falcon_hdr = xyes; then
338 mintaudio=yes
339- AC_DEFINE(SDL_AUDIO_DRIVER_MINT)
340+ AC_DEFINE(SDL_AUDIO_DRIVER_MINT,1,"")
341 SOURCES="$SOURCES $srcdir/src/audio/mint/*.c"
342 SOURCES="$SOURCES $srcdir/src/audio/mint/*.S"
343 have_audio=yes
344@@ -602,7 +564,7 @@
345 AC_PATH_PROG(NASM, nasm)
346 fi
347 if test "x$NASM" != x -a "x$NASM" != x'"$NASM"'; then
348- AC_DEFINE(SDL_HERMES_BLITTERS)
349+ AC_DEFINE(SDL_HERMES_BLITTERS,1,"")
350 SOURCES="$SOURCES $srcdir/src/hermes/*.asm"
351 if test x"$NASMFLAGS" = x; then
352 case $ARCH in
353@@ -713,9 +675,9 @@
354 CFLAGS="$save_CFLAGS"
355
356 if test x$have_gcc_altivec = xyes; then
357- AC_DEFINE(SDL_ALTIVEC_BLITTERS)
358+ AC_DEFINE(SDL_ALTIVEC_BLITTERS,1,"")
359 if test x$have_altivec_h_hdr = xyes; then
360- AC_DEFINE(HAVE_ALTIVEC_H)
361+ AC_DEFINE(HAVE_ALTIVEC_H,1,"")
362 fi
363 EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
364 fi
365@@ -758,7 +720,7 @@
366
367 if test x$enable_ipod = xyes; then
368 EXTRA_CFLAGS="$EXTRA_CFLAGS -DIPOD"
369- AC_DEFINE(SDL_VIDEO_DRIVER_IPOD)
370+ AC_DEFINE(SDL_VIDEO_DRIVER_IPOD,1,"")
371 SOURCES="$SOURCES $srcdir/src/video/ipod/*.c"
372 fi
373 }
374@@ -792,7 +754,7 @@
375 EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DIRECT_FB"
376 fi
377
378- AC_DEFINE(SDL_VIDEO_DRIVER_NANOX)
379+ AC_DEFINE(SDL_VIDEO_DRIVER_NANOX,1,"")
380 SOURCES="$SOURCES $srcdir/src/video/nanox/*.c"
381 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lnano-X"
382 have_video=yes
383@@ -881,7 +843,7 @@
384 CFLAGS="$CFLAGS $X_CFLAGS"
385 LDFLAGS="$LDFLAGS $X_LIBS"
386
387- AC_DEFINE(SDL_VIDEO_DRIVER_X11)
388+ AC_DEFINE(SDL_VIDEO_DRIVER_X11,1,"")
389 SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
390 EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
391
392@@ -903,8 +865,8 @@
393 test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
394 echo "-- dynamic libX11 -> $x11_lib"
395 echo "-- dynamic libX11ext -> $x11ext_lib"
396- AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC, "$x11_lib")
397- AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT, "$x11ext_lib")
398+ AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC, "$x11_lib","")
399+ AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT, "$x11ext_lib","")
400 else
401 enable_x11_shared=no
402 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
403@@ -921,20 +883,20 @@
404 AC_HELP_STRING([--enable-video-dga], [use DGA 2.0 video driver [[default=yes]]]),
405 , enable_video_dga=yes)
406 if test x$enable_dga = xyes -a x$enable_video_dga = xyes; then
407- AC_DEFINE(SDL_VIDEO_DRIVER_DGA)
408+ AC_DEFINE(SDL_VIDEO_DRIVER_DGA,1,"")
409 SOURCES="$SOURCES $srcdir/src/video/dga/*.c"
410 fi
411 AC_ARG_ENABLE(video-x11-dgamouse,
412 AC_HELP_STRING([--enable-video-x11-dgamouse], [use X11 DGA for mouse events [[default=yes]]]),
413 , enable_video_x11_dgamouse=yes)
414 if test x$enable_dga = xyes -a x$enable_video_x11_dgamouse = xyes; then
415- AC_DEFINE(SDL_VIDEO_DRIVER_X11_DGAMOUSE)
416+ AC_DEFINE(SDL_VIDEO_DRIVER_X11_DGAMOUSE,1,"")
417 fi
418 AC_ARG_ENABLE(video-x11-vm,
419 AC_HELP_STRING([--enable-video-x11-vm], [use X11 VM extension for fullscreen [[default=yes]]]),
420 , enable_video_x11_vm=yes)
421 if test x$enable_video_x11_vm = xyes; then
422- AC_DEFINE(SDL_VIDEO_DRIVER_X11_VIDMODE)
423+ AC_DEFINE(SDL_VIDEO_DRIVER_X11_VIDMODE,1,"")
424 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86vm/*.c"
425 fi
426 AC_ARG_ENABLE(video-x11-xv,
427@@ -948,14 +910,14 @@
428 AC_HELP_STRING([--enable-video-x11-xinerama], [enable X11 Xinerama support [[default=yes]]]),
429 , enable_video_x11_xinerama=yes)
430 if test x$enable_video_x11_xinerama = xyes; then
431- AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINERAMA)
432+ AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINERAMA,1,"")
433 SOURCES="$SOURCES $srcdir/src/video/Xext/Xinerama/*.c"
434 fi
435 AC_ARG_ENABLE(video-x11-xme,
436 AC_HELP_STRING([--enable-video-x11-xme], [enable Xi Graphics XME for fullscreen [[default=yes]]]),
437 , enable_video_x11_xme=yes)
438 if test x$enable_video_x11_xme = xyes; then
439- AC_DEFINE(SDL_VIDEO_DRIVER_X11_XME)
440+ AC_DEFINE(SDL_VIDEO_DRIVER_X11_XME,1,"")
441 SOURCES="$SOURCES $srcdir/src/video/Xext/XME/*.c"
442 fi
443 AC_ARG_ENABLE(video-x11-xrandr,
444@@ -972,8 +934,8 @@
445 if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
446 echo "-- dynamic libXrender -> $xrender_lib"
447 echo "-- dynamic libXrandr -> $xrandr_lib"
448- AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER, "$xrender_lib")
449- AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR, "$xrandr_lib")
450+ AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER, "$xrender_lib","")
451+ AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR, "$xrandr_lib","")
452 definitely_enable_video_x11_xrandr=yes
453 else
454 AC_CHECK_LIB(Xrender, XRenderQueryExtension, have_xrender_lib=yes)
455@@ -986,7 +948,7 @@
456 fi
457 fi
458 if test x$definitely_enable_video_x11_xrandr = xyes; then
459- AC_DEFINE(SDL_VIDEO_DRIVER_X11_XRANDR)
460+ AC_DEFINE(SDL_VIDEO_DRIVER_X11_XRANDR,1,"")
461 fi
462 AC_ARG_ENABLE(video-x11-dpms,
463 AC_HELP_STRING([--enable-video-x11-dpms], [enable X11 DPMS extension [[default=yes]]]),
464@@ -998,7 +960,7 @@
465 [#include <X11/Xlib.h>
466 ])
467 if test x$have_dpms_h_hdr = xyes; then
468- AC_DEFINE(SDL_VIDEO_DRIVER_X11_DPMS)
469+ AC_DEFINE(SDL_VIDEO_DRIVER_X11_DPMS,1,"")
470 fi
471 fi
472 fi
473@@ -1026,7 +988,7 @@
474 ])
475 AC_MSG_RESULT($video_photon)
476 if test x$video_photon = xyes; then
477- AC_DEFINE(SDL_VIDEO_DRIVER_PHOTON)
478+ AC_DEFINE(SDL_VIDEO_DRIVER_PHOTON,1,"")
479 SOURCES="$SOURCES $srcdir/src/video/photon/*.c"
480 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lph"
481 have_video=yes
482@@ -1040,7 +1002,7 @@
483 CheckBWINDOW()
484 {
485 if test x$enable_video = xyes; then
486- AC_DEFINE(SDL_VIDEO_DRIVER_BWINDOW)
487+ AC_DEFINE(SDL_VIDEO_DRIVER_BWINDOW,1,"")
488 SOURCES="$SOURCES $srcdir/src/video/bwindow/*.cc"
489 have_video=yes
490 fi
491@@ -1063,7 +1025,7 @@
492 ])
493 AC_MSG_RESULT($have_carbon)
494 if test x$have_carbon = xyes; then
495- AC_DEFINE(SDL_VIDEO_DRIVER_TOOLBOX)
496+ AC_DEFINE(SDL_VIDEO_DRIVER_TOOLBOX,1,"")
497 SOURCES="$SOURCES $srcdir/src/video/maccommon/*.c"
498 SOURCES="$SOURCES $srcdir/src/video/macrom/*.c"
499 have_video=yes
500@@ -1092,7 +1054,7 @@
501 AC_MSG_RESULT($have_cocoa)
502 CFLAGS="$save_CFLAGS"
503 if test x$have_cocoa = xyes; then
504- AC_DEFINE(SDL_VIDEO_DRIVER_QUARTZ)
505+ AC_DEFINE(SDL_VIDEO_DRIVER_QUARTZ,1,"")
506 SOURCES="$SOURCES $srcdir/src/video/quartz/*.m"
507 have_video=yes
508 fi
509@@ -1118,7 +1080,7 @@
510 ])
511 AC_MSG_RESULT($video_fbcon)
512 if test x$video_fbcon = xyes; then
513- AC_DEFINE(SDL_VIDEO_DRIVER_FBCON)
514+ AC_DEFINE(SDL_VIDEO_DRIVER_FBCON,1,"")
515 SOURCES="$SOURCES $srcdir/src/video/fbcon/*.c"
516 have_video=yes
517 fi
518@@ -1163,7 +1125,7 @@
519 fi
520
521 if test x$video_directfb = xyes; then
522- AC_DEFINE(SDL_VIDEO_DRIVER_DIRECTFB)
523+ AC_DEFINE(SDL_VIDEO_DRIVER_DIRECTFB,1,"")
524 SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
525 EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
526 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
527@@ -1190,7 +1152,7 @@
528 ])
529 AC_MSG_RESULT($video_ps2gs)
530 if test x$video_ps2gs = xyes; then
531- AC_DEFINE(SDL_VIDEO_DRIVER_PS2GS)
532+ AC_DEFINE(SDL_VIDEO_DRIVER_PS2GS,1,"")
533 SOURCES="$SOURCES $srcdir/src/video/ps2gs/*.c"
534 have_video=yes
535 fi
536@@ -1215,7 +1177,7 @@
537 ])
538 AC_MSG_RESULT($video_ggi)
539 if test x$video_ggi = xyes; then
540- AC_DEFINE(SDL_VIDEO_DRIVER_GGI)
541+ AC_DEFINE(SDL_VIDEO_DRIVER_GGI,1,"")
542 SOURCES="$SOURCES $srcdir/src/video/ggi/*.c"
543 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lggi -lgii -lgg"
544 have_video=yes
545@@ -1245,7 +1207,7 @@
546 ])
547 AC_MSG_RESULT($video_svga)
548 if test x$video_svga = xyes; then
549- AC_DEFINE(SDL_VIDEO_DRIVER_SVGALIB)
550+ AC_DEFINE(SDL_VIDEO_DRIVER_SVGALIB,1,"")
551 SOURCES="$SOURCES $srcdir/src/video/svga/*.c"
552 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvga"
553 have_video=yes
554@@ -1277,7 +1239,7 @@
555 ])
556 AC_MSG_RESULT($video_vgl)
557 if test x$video_vgl = xyes; then
558- AC_DEFINE(SDL_VIDEO_DRIVER_VGL)
559+ AC_DEFINE(SDL_VIDEO_DRIVER_VGL,1,"")
560 SOURCES="$SOURCES $srcdir/src/video/vgl/*.c"
561 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvgl"
562 have_video=yes
563@@ -1305,7 +1267,7 @@
564 ])
565 AC_MSG_RESULT($video_wscons)
566 if test x$video_wscons = xyes; then
567- AC_DEFINE(SDL_VIDEO_DRIVER_WSCONS)
568+ AC_DEFINE(SDL_VIDEO_DRIVER_WSCONS,1,"")
569 SOURCES="$SOURCES $srcdir/src/video/wscons/*.c"
570 have_video=yes
571 fi
572@@ -1330,7 +1292,7 @@
573 ])
574 AC_MSG_RESULT($video_aalib)
575 if test x$video_aalib = xyes; then
576- AC_DEFINE(SDL_VIDEO_DRIVER_AALIB)
577+ AC_DEFINE(SDL_VIDEO_DRIVER_AALIB,1,"")
578 SOURCES="$SOURCES $srcdir/src/video/aalib/*.c"
579 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -laa"
580 have_video=yes
581@@ -1360,7 +1322,7 @@
582 CXXFLAGS="$OLD_CXX"
583 AC_MSG_RESULT($video_qtopia)
584 if test x$video_qtopia = xyes; then
585- AC_DEFINE(SDL_VIDEO_DRIVER_QTOPIA)
586+ AC_DEFINE(SDL_VIDEO_DRIVER_QTOPIA,1,"")
587 SOURCES="$SOURCES $srcdir/src/video/qtopia/*.cc"
588 SDLMAIN_SOURCES="$srcdir/src/main/qtopia/*.cc"
589 EXTRA_CFLAGS="$EXTRA_CFLAGS $QTOPIA_FLAGS"
590@@ -1389,7 +1351,7 @@
591 ])
592 AC_MSG_RESULT($video_picogui)
593 if test x$video_picogui = xyes; then
594- AC_DEFINE(SDL_VIDEO_DRIVER_PICOGUI)
595+ AC_DEFINE(SDL_VIDEO_DRIVER_PICOGUI,1,"")
596 SOURCES="$SOURCES $srcdir/src/video/picogui/*.c"
597 SDL_LIBS="$SDL_LIBS -lpgui"
598 have_video=yes
599@@ -1413,7 +1375,7 @@
600 video_xbios=no
601 if test x$enable_video = xyes -a x$enable_video_xbios = xyes; then
602 video_xbios=yes
603- AC_DEFINE(SDL_VIDEO_DRIVER_XBIOS)
604+ AC_DEFINE(SDL_VIDEO_DRIVER_XBIOS,1,"")
605 SOURCES="$SOURCES $srcdir/src/video/xbios/*.c"
606 have_video=yes
607 fi
608@@ -1431,7 +1393,7 @@
609 AC_CHECK_LIB(gem, appl_init, have_gem_lib=yes)
610 if test x$have_gem_hdr = xyes -a x$have_gem_lib = xyes; then
611 video_gem=yes
612- AC_DEFINE(SDL_VIDEO_DRIVER_GEM)
613+ AC_DEFINE(SDL_VIDEO_DRIVER_GEM,1,"")
614 SOURCES="$SOURCES $srcdir/src/video/gem/*.c"
615 SDL_LIBS="$SDL_LIBS -lgem"
616 have_video=yes
617@@ -1446,7 +1408,7 @@
618 AC_HELP_STRING([--enable-video-dummy], [use dummy video driver [[default=yes]]]),
619 , enable_video_dummy=yes)
620 if test x$enable_video_dummy = xyes; then
621- AC_DEFINE(SDL_VIDEO_DRIVER_DUMMY)
622+ AC_DEFINE(SDL_VIDEO_DRIVER_DUMMY,1,"")
623 SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
624 have_video=yes
625 fi
626@@ -1472,8 +1434,8 @@
627 ])
628 AC_MSG_RESULT($video_opengl)
629 if test x$video_opengl = xyes; then
630- AC_DEFINE(SDL_VIDEO_OPENGL)
631- AC_DEFINE(SDL_VIDEO_OPENGL_GLX)
632+ AC_DEFINE(SDL_VIDEO_OPENGL,1,"")
633+ AC_DEFINE(SDL_VIDEO_OPENGL_GLX,1,"")
634 fi
635 fi
636 }
637@@ -1492,7 +1454,7 @@
638 ])
639 AC_MSG_RESULT($video_opengl)
640 if test x$video_opengl = xyes; then
641- AC_DEFINE(SDL_VIDEO_OPENGL)
642+ AC_DEFINE(SDL_VIDEO_OPENGL,1,"")
643 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
644 fi
645 fi
646@@ -1502,8 +1464,8 @@
647 CheckWIN32GL()
648 {
649 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
650- AC_DEFINE(SDL_VIDEO_OPENGL)
651- AC_DEFINE(SDL_VIDEO_OPENGL_WGL)
652+ AC_DEFINE(SDL_VIDEO_OPENGL,1,"")
653+ AC_DEFINE(SDL_VIDEO_OPENGL_WGL,1,"")
654 fi
655 }
656
657@@ -1511,7 +1473,7 @@
658 CheckBeGL()
659 {
660 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
661- AC_DEFINE(SDL_VIDEO_OPENGL)
662+ AC_DEFINE(SDL_VIDEO_OPENGL,1,"")
663 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
664 fi
665 }
666@@ -1520,7 +1482,7 @@
667 CheckMacGL()
668 {
669 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
670- AC_DEFINE(SDL_VIDEO_OPENGL)
671+ AC_DEFINE(SDL_VIDEO_OPENGL,1,"")
672 case "$host" in
673 *-*-darwin*)
674 if test x$enable_video_cocoa = xyes; then
675@@ -1552,8 +1514,8 @@
676 OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags`
677 OSMESA_LIBS=`$OSMESA_CONFIG --libs`
678 fi
679- AC_DEFINE(SDL_VIDEO_OPENGL)
680- AC_DEFINE(SDL_VIDEO_OPENGL_OSMESA)
681+ AC_DEFINE(SDL_VIDEO_OPENGL,1,"")
682+ AC_DEFINE(SDL_VIDEO_OPENGL_OSMESA,1,"")
683 SDL_CFLAGS="$SDL_CFLAGS $OSMESA_CFLAGS"
684 SDL_LIBS="$SDL_LIBS $OSMESA_LIBS"
685
686@@ -1563,7 +1525,7 @@
687 if test "x$enable_osmesa_shared" = "xyes" -a "x$enable_atari_ldg" = "xyes"; then
688 # Dynamic linking
689 if test "x$have_osmesa_hdr" = "xyes"; then
690- AC_DEFINE(SDL_VIDEO_OPENGL_OSMESA_DYNAMIC)
691+ AC_DEFINE(SDL_VIDEO_OPENGL_OSMESA_DYNAMIC,1,"")
692 fi
693 fi
694 fi
695@@ -1590,7 +1552,7 @@
696 ])
697 AC_MSG_RESULT($use_input_events)
698 if test x$use_input_events = xyes; then
699- AC_DEFINE(SDL_INPUT_LINUXEV)
700+ AC_DEFINE(SDL_INPUT_LINUXEV,1,"")
701 fi
702 fi
703 }
704@@ -1612,7 +1574,7 @@
705 ])
706 AC_MSG_RESULT($enable_input_tslib)
707 if test x$enable_input_tslib = xyes; then
708- AC_DEFINE(SDL_INPUT_TSLIB)
709+ AC_DEFINE(SDL_INPUT_TSLIB,1,"")
710 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
711 fi
712 fi
713@@ -1635,7 +1597,7 @@
714 AC_MSG_CHECKING(pth)
715 AC_MSG_RESULT($use_pth)
716 if test "x$use_pth" = xyes; then
717- AC_DEFINE(SDL_THREAD_PTH)
718+ AC_DEFINE(SDL_THREAD_PTH,1,"")
719 SOURCES="$SOURCES $srcdir/src/thread/pth/*.c"
720 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
721 SDL_CFLAGS="$SDL_CFLAGS `$PTH_CONFIG --cflags`"
722@@ -1741,7 +1703,7 @@
723
724 # Do futher testing if we have pthread support...
725 if test x$use_pthreads = xyes; then
726- AC_DEFINE(SDL_THREAD_PTHREAD)
727+ AC_DEFINE(SDL_THREAD_PTHREAD,1,"")
728 EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
729 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
730 SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
731@@ -1763,7 +1725,7 @@
732 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
733 ],[
734 has_recursive_mutexes=yes
735- AC_DEFINE(SDL_THREAD_PTHREAD_RECURSIVE_MUTEX)
736+ AC_DEFINE(SDL_THREAD_PTHREAD_RECURSIVE_MUTEX,1,"")
737 ])
738 fi
739 if test x$has_recursive_mutexes = xno; then
740@@ -1774,7 +1736,7 @@
741 pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
742 ],[
743 has_recursive_mutexes=yes
744- AC_DEFINE(SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP)
745+ AC_DEFINE(SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP,1,"")
746 ])
747 fi
748 AC_MSG_RESULT($has_recursive_mutexes)
749@@ -1849,7 +1811,7 @@
750 fi
751
752 if test x$enable_video = xyes; then
753- AC_DEFINE(SDL_VIDEO_DRIVER_WINDIB)
754+ AC_DEFINE(SDL_VIDEO_DRIVER_WINDIB,1,"")
755 SOURCES="$SOURCES $srcdir/src/video/wincommon/*.c"
756 SOURCES="$SOURCES $srcdir/src/video/windib/*.c"
757 have_video=yes
758@@ -1871,7 +1833,7 @@
759 have_directx=yes
760 fi
761 if test x$enable_video = xyes -a x$have_directx = xyes; then
762- AC_DEFINE(SDL_VIDEO_DRIVER_DDRAW)
763+ AC_DEFINE(SDL_VIDEO_DRIVER_DDRAW,1,"")
764 SOURCES="$SOURCES $srcdir/src/video/windx5/*.c"
765 have_video=yes
766 fi
767@@ -1904,9 +1866,9 @@
768 AC_CHECK_LIB(ltdl, dlopen, EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl")))
769 AC_CHECK_LIB(dl, dlvsym, have_dlvsym=yes)
770 if test x$have_dlvsym = xyes; then
771- AC_DEFINE(HAVE_DLVSYM)
772+ AC_DEFINE(HAVE_DLVSYM,1,"")
773 fi
774- AC_DEFINE(SDL_LOADSO_DLOPEN)
775+ AC_DEFINE(SDL_LOADSO_DLOPEN,1,"")
776 SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
777 have_loadso=yes
778 fi
779@@ -1923,7 +1885,7 @@
780 AC_CHECK_HEADER(ldg.h, have_ldg_hdr=yes)
781 AC_CHECK_LIB(ldg, ldg_open, have_ldg_lib=yes, have_ldg_lib=no, -lgem)
782 if test x$have_ldg_hdr = xyes -a x$have_ldg_lib = xyes; then
783- AC_DEFINE(SDL_LOADSO_LDG)
784+ AC_DEFINE(SDL_LOADSO_LDG,1,"")
785 SOURCES="$SOURCES $srcdir/src/loadso/mint/*.c"
786 SDL_LIBS="$SDL_LIBS -lldg -lgem"
787 have_loadso=yes
788@@ -2049,11 +2011,11 @@
789 have_machine_joystick=yes
790 ])
791 if test x$have_machine_joystick = xyes; then
792- AC_DEFINE(SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H)
793+ AC_DEFINE(SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H,1,"")
794 fi
795 AC_MSG_RESULT($have_machine_joystick)
796
797- AC_DEFINE(SDL_JOYSTICK_USBHID)
798+ AC_DEFINE(SDL_JOYSTICK_USBHID,1,"")
799 SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
800 EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
801 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
802@@ -2072,7 +2034,7 @@
803 if test x$enable_clock_gettime = xyes; then
804 AC_CHECK_LIB(rt, clock_gettime, have_clock_gettime=yes)
805 if test x$have_clock_gettime = xyes; then
806- AC_DEFINE(HAVE_CLOCK_GETTIME)
807+ AC_DEFINE(HAVE_CLOCK_GETTIME,1,"")
808 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
809 fi
810 fi
811@@ -2103,7 +2065,7 @@
812 CheckIPod
813 # Set up files for the timer library
814 if test x$enable_timers = xyes; then
815- AC_DEFINE(SDL_TIMER_UNIX)
816+ AC_DEFINE(SDL_TIMER_UNIX,1,"")
817 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
818 have_timers=yes
819 fi
820@@ -2166,17 +2128,17 @@
821 if test x$enable_audio = xyes; then
822 case $ARCH in
823 sysv5|solaris|hpux)
824- AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO)
825+ AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO,1,"")
826 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
827 have_audio=yes
828 ;;
829 netbsd|openbsd)
830- AC_DEFINE(SDL_AUDIO_DRIVER_BSD)
831+ AC_DEFINE(SDL_AUDIO_DRIVER_BSD,1,"")
832 SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
833 have_audio=yes
834 ;;
835 aix)
836- AC_DEFINE(SDL_AUDIO_DRIVER_PAUD)
837+ AC_DEFINE(SDL_AUDIO_DRIVER_PAUD,1,"")
838 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
839 have_audio=yes
840 ;;
841@@ -2186,7 +2148,7 @@
842 if test x$enable_joystick = xyes; then
843 case $ARCH in
844 linux)
845- AC_DEFINE(SDL_JOYSTICK_LINUX)
846+ AC_DEFINE(SDL_JOYSTICK_LINUX,1,"")
847 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
848 have_joystick=yes
849 ;;
850@@ -2196,32 +2158,32 @@
851 if test x$enable_cdrom = xyes; then
852 case $ARCH in
853 linux|solaris)
854- AC_DEFINE(SDL_CDROM_LINUX)
855+ AC_DEFINE(SDL_CDROM_LINUX,1,"")
856 SOURCES="$SOURCES $srcdir/src/cdrom/linux/*.c"
857 have_cdrom=yes
858 ;;
859 *freebsd*)
860- AC_DEFINE(SDL_CDROM_FREEBSD)
861+ AC_DEFINE(SDL_CDROM_FREEBSD,1,"")
862 SOURCES="$SOURCES $srcdir/src/cdrom/freebsd/*.c"
863 have_cdrom=yes
864 ;;
865 *openbsd*|*netbsd*)
866- AC_DEFINE(SDL_CDROM_OPENBSD)
867+ AC_DEFINE(SDL_CDROM_OPENBSD,1,"")
868 SOURCES="$SOURCES $srcdir/src/cdrom/openbsd/*.c"
869 have_cdrom=yes
870 ;;
871 bsdi)
872- AC_DEFINE(SDL_CDROM_BSDI)
873+ AC_DEFINE(SDL_CDROM_BSDI,1,"")
874 SOURCES="$SOURCES $srcdir/src/cdrom/bsdi/*.c"
875 have_cdrom=yes
876 ;;
877 aix)
878- AC_DEFINE(SDL_CDROM_AIX)
879+ AC_DEFINE(SDL_CDROM_AIX,1,"")
880 SOURCES="$SOURCES $srcdir/src/cdrom/aix/*.c"
881 have_cdrom=yes
882 ;;
883 osf)
884- AC_DEFINE(SDL_CDROM_OSF)
885+ AC_DEFINE(SDL_CDROM_OSF,1,"")
886 SOURCES="$SOURCES $srcdir/src/cdrom/osf/*.c"
887 have_cdrom=yes
888 ;;
889@@ -2229,7 +2191,7 @@
890 fi
891 # Set up files for the thread library
892 if test x$enable_threads = xyes -a x$use_pthreads != xyes -a x$use_pth != xyes -a x$ARCH = xirix; then
893- AC_DEFINE(SDL_THREAD_SPROC)
894+ AC_DEFINE(SDL_THREAD_SPROC,1,"")
895 SOURCES="$SOURCES $srcdir/src/thread/irix/*.c"
896 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
897 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
898@@ -2237,7 +2199,7 @@
899 fi
900 # Set up files for the timer library
901 if test x$enable_timers = xyes; then
902- AC_DEFINE(SDL_TIMER_UNIX)
903+ AC_DEFINE(SDL_TIMER_UNIX,1,"")
904 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
905 have_timers=yes
906 fi
907@@ -2256,20 +2218,20 @@
908 CheckPTHREAD
909 # Set up files for the audio library
910 if test x$enable_audio = xyes; then
911- AC_DEFINE(SDL_AUDIO_DRIVER_QNXNTO)
912+ AC_DEFINE(SDL_AUDIO_DRIVER_QNXNTO,1,"")
913 SOURCES="$SOURCES $srcdir/src/audio/nto/*.c"
914 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
915 have_audio=yes
916 fi
917 # Set up files for the cdrom library
918 if test x$enable_cdrom = xyes; then
919- AC_DEFINE(SDL_CDROM_QNX)
920+ AC_DEFINE(SDL_CDROM_QNX,1,"")
921 SOURCES="$SOURCES $srcdir/src/cdrom/qnx/*.c"
922 have_cdrom=yes
923 fi
924 # Set up files for the timer library
925 if test x$enable_timers = xyes; then
926- AC_DEFINE(SDL_TIMER_UNIX)
927+ AC_DEFINE(SDL_TIMER_UNIX,1,"")
928 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
929 have_timers=yes
930 fi
931@@ -2294,29 +2256,29 @@
932 CheckNASM
933 # Set up files for the audio library
934 if test x$enable_audio = xyes; then
935- AC_DEFINE(SDL_AUDIO_DRIVER_WAVEOUT)
936+ AC_DEFINE(SDL_AUDIO_DRIVER_WAVEOUT,1,"")
937 SOURCES="$SOURCES $srcdir/src/audio/windib/*.c"
938 if test x$have_directx = xyes; then
939- AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND)
940+ AC_DEFINE(SDL_AUDIO_DRIVER_DSOUND,1,"")
941 SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c"
942 fi
943 have_audio=yes
944 fi
945 # Set up files for the joystick library
946 if test x$enable_joystick = xyes; then
947- AC_DEFINE(SDL_JOYSTICK_WINMM)
948+ AC_DEFINE(SDL_JOYSTICK_WINMM,1,"")
949 SOURCES="$SOURCES $srcdir/src/joystick/win32/*.c"
950 have_joystick=yes
951 fi
952 # Set up files for the cdrom library
953 if test x$enable_cdrom = xyes; then
954- AC_DEFINE(SDL_CDROM_WIN32)
955+ AC_DEFINE(SDL_CDROM_WIN32,1,"")
956 SOURCES="$SOURCES $srcdir/src/cdrom/win32/*.c"
957 have_cdrom=yes
958 fi
959 # Set up files for the thread library
960 if test x$enable_threads = xyes; then
961- AC_DEFINE(SDL_THREAD_WIN32)
962+ AC_DEFINE(SDL_THREAD_WIN32,1,"")
963 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c"
964 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c"
965 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c"
966@@ -2325,13 +2287,13 @@
967 fi
968 # Set up files for the timer library
969 if test x$enable_timers = xyes; then
970- AC_DEFINE(SDL_TIMER_WIN32)
971+ AC_DEFINE(SDL_TIMER_WIN32,1,"")
972 SOURCES="$SOURCES $srcdir/src/timer/win32/*.c"
973 have_timers=yes
974 fi
975 # Set up files for the shared object loading library
976 if test x$enable_loadso = xyes; then
977- AC_DEFINE(SDL_LOADSO_WIN32)
978+ AC_DEFINE(SDL_LOADSO_WIN32,1,"")
979 SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c"
980 have_loadso=yes
981 fi
982@@ -2356,25 +2318,25 @@
983 CheckBeGL
984 # Set up files for the audio library
985 if test x$enable_audio = xyes; then
986- AC_DEFINE(SDL_AUDIO_DRIVER_BAUDIO)
987+ AC_DEFINE(SDL_AUDIO_DRIVER_BAUDIO,1,"")
988 SOURCES="$SOURCES $srcdir/src/audio/baudio/*.cc"
989 have_audio=yes
990 fi
991 # Set up files for the joystick library
992 if test x$enable_joystick = xyes; then
993- AC_DEFINE(SDL_JOYSTICK_BEOS)
994+ AC_DEFINE(SDL_JOYSTICK_BEOS,1,"")
995 SOURCES="$SOURCES $srcdir/src/joystick/beos/*.cc"
996 have_joystick=yes
997 fi
998 # Set up files for the cdrom library
999 if test x$enable_cdrom = xyes; then
1000- AC_DEFINE(SDL_CDROM_BEOS)
1001+ AC_DEFINE(SDL_CDROM_BEOS,1,"")
1002 SOURCES="$SOURCES $srcdir/src/cdrom/beos/*.cc"
1003 have_cdrom=yes
1004 fi
1005 # Set up files for the thread library
1006 if test x$enable_threads = xyes; then
1007- AC_DEFINE(SDL_THREAD_BEOS)
1008+ AC_DEFINE(SDL_THREAD_BEOS,1,"")
1009 SOURCES="$SOURCES $srcdir/src/thread/beos/*.c"
1010 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
1011 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
1012@@ -2382,13 +2344,13 @@
1013 fi
1014 # Set up files for the timer library
1015 if test x$enable_timers = xyes; then
1016- AC_DEFINE(SDL_TIMER_BEOS)
1017+ AC_DEFINE(SDL_TIMER_BEOS,1,"")
1018 SOURCES="$SOURCES $srcdir/src/timer/beos/*.c"
1019 have_timers=yes
1020 fi
1021 # Set up files for the shared object loading library
1022 if test x$enable_loadso = xyes; then
1023- AC_DEFINE(SDL_LOADSO_BEOS)
1024+ AC_DEFINE(SDL_LOADSO_BEOS,1,"")
1025 SOURCES="$SOURCES $srcdir/src/loadso/beos/*.c"
1026 have_loadso=yes
1027 fi
1028@@ -2425,7 +2387,7 @@
1029 # Set up files for the shared object loading library
1030 # (this needs to be done before the dynamic X11 check)
1031 if test x$enable_loadso = xyes -a x$have_dlopen != xyes; then
1032- AC_DEFINE(SDL_LOADSO_DLCOMPAT)
1033+ AC_DEFINE(SDL_LOADSO_DLCOMPAT,1,"")
1034 SOURCES="$SOURCES $srcdir/src/loadso/macosx/*.c"
1035 have_loadso=yes
1036 fi
1037@@ -2443,28 +2405,28 @@
1038
1039 # Set up files for the audio library
1040 if test x$enable_audio = xyes; then
1041- AC_DEFINE(SDL_AUDIO_DRIVER_COREAUDIO)
1042+ AC_DEFINE(SDL_AUDIO_DRIVER_COREAUDIO,1,"")
1043 SOURCES="$SOURCES $srcdir/src/audio/macosx/*.c"
1044- AC_DEFINE(SDL_AUDIO_DRIVER_SNDMGR)
1045+ AC_DEFINE(SDL_AUDIO_DRIVER_SNDMGR,1,"")
1046 SOURCES="$SOURCES $srcdir/src/audio/macrom/*.c"
1047 have_audio=yes
1048 fi
1049 # Set up files for the joystick library
1050 if test x$enable_joystick = xyes; then
1051- AC_DEFINE(SDL_JOYSTICK_IOKIT)
1052+ AC_DEFINE(SDL_JOYSTICK_IOKIT,1,"")
1053 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
1054 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
1055 have_joystick=yes
1056 fi
1057 # Set up files for the cdrom library
1058 if test x$enable_cdrom = xyes; then
1059- AC_DEFINE(SDL_CDROM_MACOSX)
1060+ AC_DEFINE(SDL_CDROM_MACOSX,1,"")
1061 SOURCES="$SOURCES $srcdir/src/cdrom/macosx/*.c"
1062 have_cdrom=yes
1063 fi
1064 # Set up files for the timer library
1065 if test x$enable_timers = xyes; then
1066- AC_DEFINE(SDL_TIMER_UNIX)
1067+ AC_DEFINE(SDL_TIMER_UNIX,1,"")
1068 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
1069 have_timers=yes
1070 fi
1071@@ -2500,30 +2462,30 @@
1072 # Set up files for the audio library
1073 if test x$enable_threads = xyes -a x$enable_pth = xyes; then
1074 if test x$enable_audio = xyes; then
1075- AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO)
1076+ AC_DEFINE(SDL_AUDIO_DRIVER_SUNAUDIO,1,"")
1077 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
1078 have_audio=yes
1079 fi
1080 fi
1081 # Set up files for the joystick library
1082 if test x$enable_joystick = xyes; then
1083- AC_DEFINE(SDL_JOYSTICK_MINT)
1084+ AC_DEFINE(SDL_JOYSTICK_MINT,1,"")
1085 SOURCES="$SOURCES $srcdir/src/joystick/mint/*.c"
1086 have_joystick=yes
1087 fi
1088 # Set up files for the cdrom library
1089 if test x$enable_cdrom = xyes; then
1090- AC_DEFINE(SDL_CDROM_MINT)
1091+ AC_DEFINE(SDL_CDROM_MINT,1,"")
1092 SOURCES="$SOURCES $srcdir/src/cdrom/mint/*.c"
1093 have_cdrom=yes
1094 fi
1095 # Set up files for the timer library
1096 if test x$enable_timers = xyes; then
1097 if test x$enable_threads = xyes -a x$enable_pth = xyes; then
1098- AC_DEFINE(SDL_TIMER_UNIX)
1099+ AC_DEFINE(SDL_TIMER_UNIX,1,"")
1100 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
1101 else
1102- AC_DEFINE(SDL_TIMER_MINT)
1103+ AC_DEFINE(SDL_TIMER_MIN,1,""T)
1104 SOURCES="$SOURCES $srcdir/src/timer/mint/*.c"
1105 SOURCES="$SOURCES $srcdir/src/timer/mint/*.S"
1106 fi
1107@@ -2536,20 +2498,20 @@
1108 CheckPTHREAD
1109 # Set up files for the video library
1110 if test x$enable_video = xyes; then
1111- AC_DEFINE(SDL_VIDEO_DRIVER_RISCOS)
1112+ AC_DEFINE(SDL_VIDEO_DRIVER_RISCOS,1,"")
1113 SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
1114 SOURCES="$SOURCES $srcdir/src/video/riscos/*.S"
1115 have_video=yes
1116 fi
1117 # Set up files for the joystick library
1118 if test x$enable_joystick = xyes; then
1119- AC_DEFINE(SDL_JOYSTICK_RISCOS)
1120+ AC_DEFINE(SDL_JOYSTICK_RISCOS,1,"")
1121 SOURCES="$SOURCES $srcdir/src/joystick/riscos/*.c"
1122 have_joystick=yes
1123 fi
1124 # Set up files for the timer library
1125 if test x$enable_timers = xyes; then
1126- AC_DEFINE(SDL_TIMER_RISCOS)
1127+ AC_DEFINE(SDL_TIMER_RISCOS,1,"")
1128 SOURCES="$SOURCES $srcdir/src/timer/riscos/*.c"
1129 have_timers=yes
1130 fi
1131@@ -2566,31 +2528,31 @@
1132 # Verify that we have all the platform specific files we need
1133 if test x$have_joystick != xyes; then
1134 if test x$enable_joystick = xyes; then
1135- AC_DEFINE(SDL_JOYSTICK_DISABLED)
1136+ AC_DEFINE(SDL_JOYSTICK_DISABLED,1,"")
1137 fi
1138 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
1139 fi
1140 if test x$have_cdrom != xyes; then
1141 if test x$enable_cdrom = xyes; then
1142- AC_DEFINE(SDL_CDROM_DISABLED)
1143+ AC_DEFINE(SDL_CDROM_DISABLED,1,"")
1144 fi
1145 SOURCES="$SOURCES $srcdir/src/cdrom/dummy/*.c"
1146 fi
1147 if test x$have_threads != xyes; then
1148 if test x$enable_threads = xyes; then
1149- AC_DEFINE(SDL_THREADS_DISABLED)
1150+ AC_DEFINE(SDL_THREADS_DISABLED,1,"")
1151 fi
1152 SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
1153 fi
1154 if test x$have_timers != xyes; then
1155 if test x$enable_timers = xyes; then
1156- AC_DEFINE(SDL_TIMERS_DISABLED)
1157+ AC_DEFINE(SDL_TIMERS_DISABLED,1,"")
1158 fi
1159 SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
1160 fi
1161 if test x$have_loadso != xyes; then
1162 if test x$enable_loadso = xyes; then
1163- AC_DEFINE(SDL_LOADSO_DISABLED)
1164+ AC_DEFINE(SDL_LOADSO_DISABLED,1,"")
1165 fi
1166 SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
1167 fi
diff --git a/meta/recipes-graphics/libsdl/files/directfb_obsolete_calls.patch b/meta/recipes-graphics/libsdl/files/directfb_obsolete_calls.patch
new file mode 100644
index 0000000000..f3f422cde3
--- /dev/null
+++ b/meta/recipes-graphics/libsdl/files/directfb_obsolete_calls.patch
@@ -0,0 +1,33 @@
1--- tmp/work/armv5te-angstrom-linux-gnueabi/libsdl-directfb-1.2.9-r1/SDL-1.2.9/src/video/directfb/SDL_DirectFB_video.c 2007-02-18 11:40:38.000000000 -0500
2+++ SDL/src/video/directfb/SDL_DirectFB_video.c 2007-02-18 11:00:07.000000000 -0500
3@@ -376,7 +376,7 @@
4 {
5 int i;
6 DFBResult ret;
7- DFBCardCapabilities caps;
8+ DFBGraphicsDeviceDescription caps;
9 DFBDisplayLayerConfig dlc;
10 struct DirectFBEnumRect *rect;
11 IDirectFB *dfb = NULL;
12@@ -448,7 +448,7 @@
13
14
15 /* Query card capabilities to get the video memory size */
16- dfb->GetCardCapabilities (dfb, &caps);
17+ dfb->GetDeviceDescription (dfb, &caps);
18
19 this->info.wm_available = 1;
20 this->info.hw_available = 1;
21diff -u'rNF^function' tmp/work/armv5te-angstrom-linux-gnueabi/libsdl-directfb-1.2.9-r1/SDL-1.2.9/src/video/directfb/SDL_Direct
22/SDL_DirectFB_events.c
23--- tmp/work/armv5te-angstrom-linux-gnueabi/libsdl-directfb-1.2.9-r1/SDL-1.2.9/src/video/directfb/SDL_DirectFB_events.c 2004-0
24+++ SDL/src/video/directfb/SDL_DirectFB_events.c 2007-02-18 11:00:07.000000000 -0500
25@@ -161,7 +161,7 @@
26 keymap[DIKI_SHIFT_L - DIKI_UNKNOWN] = SDLK_LSHIFT;
27 keymap[DIKI_SHIFT_R - DIKI_UNKNOWN] = SDLK_RSHIFT;
28 keymap[DIKI_ALT_L - DIKI_UNKNOWN] = SDLK_LALT;
29- keymap[DIKI_ALTGR - DIKI_UNKNOWN] = SDLK_RALT;
30+ keymap[DIKI_ALT_R - DIKI_UNKNOWN] = SDLK_RALT;
31 keymap[DIKI_TAB - DIKI_UNKNOWN] = SDLK_TAB;
32 keymap[DIKI_ENTER - DIKI_UNKNOWN] = SDLK_RETURN;
33 keymap[DIKI_SPACE - DIKI_UNKNOWN] = SDLK_SPACE;
diff --git a/meta/recipes-graphics/libsdl/files/extra-keys.patch b/meta/recipes-graphics/libsdl/files/extra-keys.patch
new file mode 100644
index 0000000000..f12f0c7efb
--- /dev/null
+++ b/meta/recipes-graphics/libsdl/files/extra-keys.patch
@@ -0,0 +1,53 @@
1diff -upr --exclude=configure --exclude=Makefile --exclude=Makefile.in libsdl1.2-1.2.4/include/SDL_keysym.h libsdl1.2-1.2.4-arm/include/SDL_keysym.h
2--- libsdl1.2-1.2.4/include/SDL_keysym.h 2002-03-06 11:23:01.000000000 +0000
3+++ libsdl1.2-1.2.4-arm/include/SDL_keysym.h 2002-11-08 20:43:09.000000000 +0000
4@@ -286,6 +286,12 @@ typedef enum {
5 SDLK_EURO = 321, /* Some european keyboards */
6 SDLK_UNDO = 322, /* Atari keyboard has Undo */
7
8+ SDLK_RECORD = 322,
9+ SDLK_CALENDAR = 323,
10+ SDLK_TELEPHONE = 324,
11+ SDLK_MAIL = 325,
12+ SDLK_START = 326,
13+
14 /* Add any other keys here */
15
16 SDLK_LAST
17diff -upr --exclude=configure --exclude=Makefile --exclude=Makefile.in libsdl1.2-1.2.4/src/video/x11/SDL_x11events.c libsdl1.2-1.2.4-arm/src/video/x11/SDL_x11events.c
18--- libsdl1.2-1.2.4/src/video/x11/SDL_x11events.c 2002-03-06 11:23:08.000000000 +0000
19+++ libsdl1.2-1.2.4-arm/src/video/x11/SDL_x11events.c 2002-11-08 21:01:41.000000000 +0000
20@@ -34,6 +34,7 @@ static char rcsid =
21 #include <X11/Xlib.h>
22 #include <X11/Xutil.h>
23 #include <X11/keysym.h>
24+#include <X11/XF86keysym.h>
25 #ifdef __SVR4
26 #include <X11/Sunkeysym.h>
27 #endif
28@@ -655,6 +656,25 @@ SDL_keysym *X11_TranslateKey(Display *di
29 case 0xFF:
30 keysym->sym = MISC_keymap[xsym&0xFF];
31 break;
32+ case 0x1008ff:
33+ switch (xsym) {
34+ case XF86XK_AudioRecord:
35+ keysym->sym = SDLK_RECORD;
36+ break;
37+ case XF86XK_PowerDown:
38+ keysym->sym = SDLK_POWER;
39+ break;
40+ case XF86XK_Calendar:
41+ keysym->sym = SDLK_CALENDAR;
42+ break;
43+ case XF86XK_Mail:
44+ keysym->sym = SDLK_MAIL;
45+ break;
46+ case XF86XK_Start:
47+ keysym->sym = SDLK_START;
48+ break;
49+ }
50+ break;
51 default:
52 fprintf(stderr,
53 "X11: Unknown xsym, sym = 0x%04x\n",
diff --git a/meta/recipes-graphics/libsdl/files/kernel-asm-page.patch b/meta/recipes-graphics/libsdl/files/kernel-asm-page.patch
new file mode 100644
index 0000000000..42bceadfdc
--- /dev/null
+++ b/meta/recipes-graphics/libsdl/files/kernel-asm-page.patch
@@ -0,0 +1,13 @@
1diff --git a/src/video/Xext/Xxf86dga/XF86DGA.c b/src/video/Xext/Xxf86dga/XF86DGA.c
2index 4e3d662..de38a3c 100644
3--- a/src/video/Xext/Xxf86dga/XF86DGA.c
4+++ b/src/video/Xext/Xxf86dga/XF86DGA.c
5@@ -18,7 +18,7 @@ Copyright (c) 1995,1996 The XFree86 Project, Inc
6 #define HAS_MMAP_ANON
7 #include <sys/types.h>
8 #include <sys/mman.h>
9-#include <asm/page.h> /* PAGE_SIZE */
10+#include <unistd.h>
11 #define HAS_SC_PAGESIZE /* _SC_PAGESIZE may be an enum for Linux */
12 #define HAS_GETPAGESIZE
13 #endif /* linux */
diff --git a/meta/recipes-graphics/libsdl/libsdl-nativesdk_1.2.11.bb b/meta/recipes-graphics/libsdl/libsdl-nativesdk_1.2.11.bb
new file mode 100644
index 0000000000..633a4c284b
--- /dev/null
+++ b/meta/recipes-graphics/libsdl/libsdl-nativesdk_1.2.11.bb
@@ -0,0 +1,31 @@
1DESCRIPTION = "Simple DirectMedia Layer - native Edition"
2HOMEPAGE = "http://www.libsdl.org"
3SECTION = "libs"
4LICENSE = "LGPL"
5DEPENDS = "libx11-nativesdk libxext-nativesdk libxrandr-nativesdk libxrender-nativesdk"
6RDEPENDS = "libx11-nativesdk libxrandr-nativesdk libxrender-nativesdk libxext-nativesdk"
7PR = "r4"
8
9SRC_URI = "http://www.libsdl.org/release/SDL-${PV}.tar.gz \
10 file://acinclude.m4 \
11 file://configure_tweak.patch;patch=1 \
12 file://kernel-asm-page.patch;patch=1 "
13S = "${WORKDIR}/SDL-${PV}"
14
15inherit autotools binconfig pkgconfig nativesdk
16
17EXTRA_OECONF = "--disable-static --disable-debug --disable-cdrom --enable-threads --enable-timers --enable-endian \
18 --enable-file --disable-oss --disable-alsa --disable-esd --disable-arts \
19 --disable-diskaudio --disable-nas --disable-esd-shared --disable-esdtest \
20 --disable-mintaudio --disable-nasm --enable-video-x11 --disable-video-dga \
21 --disable-video-fbcon --disable-video-directfb --disable-video-ps2gs \
22 --disable-video-xbios --disable-video-gem --disable-video-dummy \
23 --disable-video-opengl --enable-input-events --enable-pthreads \
24 --disable-video-svga \
25 --disable-video-picogui --disable-video-qtopia --enable-dlopen"
26
27PARALLEL_MAKE = ""
28
29do_configure_prepend() {
30 cp ${WORKDIR}/acinclude.m4 ${S}/acinclude.m4
31}