Mercurial > sdl-ios-xcode
comparison configure.in @ 3933:3b5c90889156 SDL-1.2
Don't compile the joystick code if --disable-joystick is specified at
./configure time, and define SDL_JOYSTICK_DUMMY if the subsystem is wanted
but there aren't any drivers available for the platform.
Fixes Bugzilla #403.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 04 Apr 2007 10:28:14 +0000 |
parents | 8a3a0f1179f3 |
children | f8cc7c7ccf95 |
comparison
equal
deleted
inserted
replaced
3932:cd5b5c52a37e | 3933:3b5c90889156 |
---|---|
194 SOURCES="$SOURCES $srcdir/src/audio/*.c" | 194 SOURCES="$SOURCES $srcdir/src/audio/*.c" |
195 SOURCES="$SOURCES $srcdir/src/cdrom/*.c" | 195 SOURCES="$SOURCES $srcdir/src/cdrom/*.c" |
196 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c" | 196 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c" |
197 SOURCES="$SOURCES $srcdir/src/events/*.c" | 197 SOURCES="$SOURCES $srcdir/src/events/*.c" |
198 SOURCES="$SOURCES $srcdir/src/file/*.c" | 198 SOURCES="$SOURCES $srcdir/src/file/*.c" |
199 SOURCES="$SOURCES $srcdir/src/joystick/*.c" | |
200 SOURCES="$SOURCES $srcdir/src/stdlib/*.c" | 199 SOURCES="$SOURCES $srcdir/src/stdlib/*.c" |
201 SOURCES="$SOURCES $srcdir/src/thread/*.c" | 200 SOURCES="$SOURCES $srcdir/src/thread/*.c" |
202 SOURCES="$SOURCES $srcdir/src/timer/*.c" | 201 SOURCES="$SOURCES $srcdir/src/timer/*.c" |
203 SOURCES="$SOURCES $srcdir/src/video/*.c" | 202 SOURCES="$SOURCES $srcdir/src/video/*.c" |
204 | 203 |
213 AC_ARG_ENABLE(video, | 212 AC_ARG_ENABLE(video, |
214 AC_HELP_STRING([--enable-video], [Enable the video subsystem [[default=yes]]]), | 213 AC_HELP_STRING([--enable-video], [Enable the video subsystem [[default=yes]]]), |
215 , enable_video=yes) | 214 , enable_video=yes) |
216 if test x$enable_video != xyes; then | 215 if test x$enable_video != xyes; then |
217 AC_DEFINE(SDL_VIDEO_DISABLED) | 216 AC_DEFINE(SDL_VIDEO_DISABLED) |
217 else | |
218 SOURCES="$SOURCES $srcdir/src/joystick/*.c" | |
218 fi | 219 fi |
219 AC_ARG_ENABLE(events, | 220 AC_ARG_ENABLE(events, |
220 AC_HELP_STRING([--enable-events], [Enable the events subsystem [[default=yes]]]), | 221 AC_HELP_STRING([--enable-events], [Enable the events subsystem [[default=yes]]]), |
221 , enable_events=yes) | 222 , enable_events=yes) |
222 if test x$enable_events != xyes; then | 223 if test x$enable_events != xyes; then |
2574 # Verify that we have all the platform specific files we need | 2575 # Verify that we have all the platform specific files we need |
2575 | 2576 |
2576 if test x$enable_joystick = xyes; then | 2577 if test x$enable_joystick = xyes; then |
2577 if test x$have_joystick != xyes; then | 2578 if test x$have_joystick != xyes; then |
2578 # Wants joystick subsystem, but doesn't have a platform-specific backend... | 2579 # Wants joystick subsystem, but doesn't have a platform-specific backend... |
2580 AC_DEFINE(SDL_JOYSTICK_DUMMY) | |
2579 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c" | 2581 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c" |
2580 fi | 2582 fi |
2581 fi | 2583 fi |
2582 if test x$have_cdrom != xyes; then | 2584 if test x$have_cdrom != xyes; then |
2583 if test x$enable_cdrom = xyes; then | 2585 if test x$enable_cdrom = xyes; then |