comparison configure.in @ 1637:9ba366b919c7

Date: Fri, 31 Mar 2006 18:28:55 -0500 From: Mike Frysinger Subject: [SDL] [patch] touchup configure --help output the current output includes a lot of "default=yes" stuff in it ... except that it lacks the [] around it patch attached to fix the situation
author Sam Lantinga <slouken@libsdl.org>
date Fri, 14 Apr 2006 06:03:09 +0000
parents 89e25c25213c
children ebd1aedb1292
comparison
equal deleted inserted replaced
1636:3d0dec74ad01 1637:9ba366b919c7
96 AC_C_INLINE 96 AC_C_INLINE
97 AC_C_VOLATILE 97 AC_C_VOLATILE
98 98
99 dnl See whether we are allowed to use the system C library 99 dnl See whether we are allowed to use the system C library
100 AC_ARG_ENABLE(libc, 100 AC_ARG_ENABLE(libc,
101 AC_HELP_STRING([--enable-libc], [Use the system C library [default=yes]]), 101 AC_HELP_STRING([--enable-libc], [Use the system C library [[default=yes]]]),
102 , enable_libc=yes) 102 , enable_libc=yes)
103 if test x$enable_libc = xyes; then 103 if test x$enable_libc = xyes; then
104 AC_DEFINE(HAVE_LIBC) 104 AC_DEFINE(HAVE_LIBC)
105 105
106 dnl Check for C library headers 106 dnl Check for C library headers
189 SOURCES="$SOURCES $srcdir/src/video/*.c" 189 SOURCES="$SOURCES $srcdir/src/video/*.c"
190 190
191 dnl Enable/disable various subsystems of the SDL library 191 dnl Enable/disable various subsystems of the SDL library
192 192
193 AC_ARG_ENABLE(audio, 193 AC_ARG_ENABLE(audio,
194 AC_HELP_STRING([--enable-audio], [Enable the audio subsystem [default=yes]]), 194 AC_HELP_STRING([--enable-audio], [Enable the audio subsystem [[default=yes]]]),
195 , enable_audio=yes) 195 , enable_audio=yes)
196 if test x$enable_audio != xyes; then 196 if test x$enable_audio != xyes; then
197 AC_DEFINE(SDL_AUDIO_DISABLED) 197 AC_DEFINE(SDL_AUDIO_DISABLED)
198 fi 198 fi
199 AC_ARG_ENABLE(video, 199 AC_ARG_ENABLE(video,
200 AC_HELP_STRING([--enable-video], [Enable the video subsystem [default=yes]]), 200 AC_HELP_STRING([--enable-video], [Enable the video subsystem [[default=yes]]]),
201 , enable_video=yes) 201 , enable_video=yes)
202 if test x$enable_video != xyes; then 202 if test x$enable_video != xyes; then
203 AC_DEFINE(SDL_VIDEO_DISABLED) 203 AC_DEFINE(SDL_VIDEO_DISABLED)
204 fi 204 fi
205 AC_ARG_ENABLE(events, 205 AC_ARG_ENABLE(events,
206 AC_HELP_STRING([--enable-events], [Enable the events subsystem [default=yes]]), 206 AC_HELP_STRING([--enable-events], [Enable the events subsystem [[default=yes]]]),
207 , enable_events=yes) 207 , enable_events=yes)
208 if test x$enable_events != xyes; then 208 if test x$enable_events != xyes; then
209 AC_DEFINE(SDL_EVENTS_DISABLED) 209 AC_DEFINE(SDL_EVENTS_DISABLED)
210 fi 210 fi
211 AC_ARG_ENABLE(joystick, 211 AC_ARG_ENABLE(joystick,
212 AC_HELP_STRING([--enable-joystick], [Enable the joystick subsystem [default=yes]]), 212 AC_HELP_STRING([--enable-joystick], [Enable the joystick subsystem [[default=yes]]]),
213 , enable_joystick=yes) 213 , enable_joystick=yes)
214 if test x$enable_joystick != xyes; then 214 if test x$enable_joystick != xyes; then
215 AC_DEFINE(SDL_JOYSTICK_DISABLED) 215 AC_DEFINE(SDL_JOYSTICK_DISABLED)
216 fi 216 fi
217 AC_ARG_ENABLE(cdrom, 217 AC_ARG_ENABLE(cdrom,
218 AC_HELP_STRING([--enable-cdrom], [Enable the cdrom subsystem [default=yes]]), 218 AC_HELP_STRING([--enable-cdrom], [Enable the cdrom subsystem [[default=yes]]]),
219 , enable_cdrom=yes) 219 , enable_cdrom=yes)
220 if test x$enable_cdrom != xyes; then 220 if test x$enable_cdrom != xyes; then
221 AC_DEFINE(SDL_CDROM_DISABLED) 221 AC_DEFINE(SDL_CDROM_DISABLED)
222 fi 222 fi
223 AC_ARG_ENABLE(threads, 223 AC_ARG_ENABLE(threads,
224 AC_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]]), 224 AC_HELP_STRING([--enable-threads], [Enable the threading subsystem [[default=yes]]]),
225 , enable_threads=yes) 225 , enable_threads=yes)
226 if test x$enable_threads != xyes; then 226 if test x$enable_threads != xyes; then
227 AC_DEFINE(SDL_THREADS_DISABLED) 227 AC_DEFINE(SDL_THREADS_DISABLED)
228 fi 228 fi
229 AC_ARG_ENABLE(timers, 229 AC_ARG_ENABLE(timers,
230 AC_HELP_STRING([--enable-timers], [Enable the timer subsystem [default=yes]]), 230 AC_HELP_STRING([--enable-timers], [Enable the timer subsystem [[default=yes]]]),
231 , enable_timers=yes) 231 , enable_timers=yes)
232 if test x$enable_timers != xyes; then 232 if test x$enable_timers != xyes; then
233 AC_DEFINE(SDL_TIMERS_DISABLED) 233 AC_DEFINE(SDL_TIMERS_DISABLED)
234 fi 234 fi
235 AC_ARG_ENABLE(file, 235 AC_ARG_ENABLE(file,
236 AC_HELP_STRING([--enable-file], [Enable the file subsystem [default=yes]]), 236 AC_HELP_STRING([--enable-file], [Enable the file subsystem [[default=yes]]]),
237 , enable_file=yes) 237 , enable_file=yes)
238 if test x$enable_file != xyes; then 238 if test x$enable_file != xyes; then
239 AC_DEFINE(SDL_FILE_DISABLED) 239 AC_DEFINE(SDL_FILE_DISABLED)
240 fi 240 fi
241 AC_ARG_ENABLE(loadso, 241 AC_ARG_ENABLE(loadso,
242 AC_HELP_STRING([--enable-loadso], [Enable the shared object loading subsystem [default=yes]]), 242 AC_HELP_STRING([--enable-loadso], [Enable the shared object loading subsystem [[default=yes]]]),
243 , enable_loadso=yes) 243 , enable_loadso=yes)
244 if test x$enable_loadso != xyes; then 244 if test x$enable_loadso != xyes; then
245 AC_DEFINE(SDL_LOADSO_DISABLED) 245 AC_DEFINE(SDL_LOADSO_DISABLED)
246 fi 246 fi
247 AC_ARG_ENABLE(cpuinfo, 247 AC_ARG_ENABLE(cpuinfo,
248 AC_HELP_STRING([--enable-cpuinfo], [Enable the cpuinfo subsystem [default=yes]]), 248 AC_HELP_STRING([--enable-cpuinfo], [Enable the cpuinfo subsystem [[default=yes]]]),
249 , enable_cpuinfo=yes) 249 , enable_cpuinfo=yes)
250 if test x$enable_cpuinfo != xyes; then 250 if test x$enable_cpuinfo != xyes; then
251 AC_DEFINE(SDL_CPUINFO_DISABLED) 251 AC_DEFINE(SDL_CPUINFO_DISABLED)
252 fi 252 fi
253 AC_ARG_ENABLE(assembly, 253 AC_ARG_ENABLE(assembly,
254 AC_HELP_STRING([--enable-assembly], [Enable assembly routines [default=yes]]), 254 AC_HELP_STRING([--enable-assembly], [Enable assembly routines [[default=yes]]]),
255 , enable_assembly=yes) 255 , enable_assembly=yes)
256 if test x$enable_assembly = xyes; then 256 if test x$enable_assembly = xyes; then
257 AC_DEFINE(SDL_ASSEMBLY_ROUTINES) 257 AC_DEFINE(SDL_ASSEMBLY_ROUTINES)
258 fi 258 fi
259 259
260 dnl See if the OSS audio interface is supported 260 dnl See if the OSS audio interface is supported
261 CheckOSS() 261 CheckOSS()
262 { 262 {
263 AC_ARG_ENABLE(oss, 263 AC_ARG_ENABLE(oss,
264 AC_HELP_STRING([--enable-oss], [support the OSS audio API [default=yes]]), 264 AC_HELP_STRING([--enable-oss], [support the OSS audio API [[default=yes]]]),
265 , enable_oss=yes) 265 , enable_oss=yes)
266 if test x$enable_audio = xyes -a x$enable_oss = xyes; then 266 if test x$enable_audio = xyes -a x$enable_oss = xyes; then
267 AC_MSG_CHECKING(for OSS audio support) 267 AC_MSG_CHECKING(for OSS audio support)
268 have_oss=no 268 have_oss=no
269 if test x$have_oss != xyes; then 269 if test x$have_oss != xyes; then
303 303
304 dnl See if the ALSA audio interface is supported 304 dnl See if the ALSA audio interface is supported
305 CheckALSA() 305 CheckALSA()
306 { 306 {
307 AC_ARG_ENABLE(alsa, 307 AC_ARG_ENABLE(alsa,
308 AC_HELP_STRING([--enable-alsa], [support the ALSA audio API [default=yes]]), 308 AC_HELP_STRING([--enable-alsa], [support the ALSA audio API [[default=yes]]]),
309 , enable_alsa=yes) 309 , enable_alsa=yes)
310 if test x$enable_audio = xyes -a x$enable_alsa = xyes; then 310 if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
311 AM_PATH_ALSA(0.9.0, have_alsa=yes, have_alsa=no) 311 AM_PATH_ALSA(0.9.0, have_alsa=yes, have_alsa=no)
312 # Restore all flags from before the ALSA detection runs 312 # Restore all flags from before the ALSA detection runs
313 CFLAGS="$alsa_save_CFLAGS" 313 CFLAGS="$alsa_save_CFLAGS"
314 LDFLAGS="$alsa_save_LDFLAGS" 314 LDFLAGS="$alsa_save_LDFLAGS"
315 LIBS="$alsa_save_LIBS" 315 LIBS="$alsa_save_LIBS"
316 if test x$have_alsa = xyes; then 316 if test x$have_alsa = xyes; then
317 AC_ARG_ENABLE(alsa-shared, 317 AC_ARG_ENABLE(alsa-shared,
318 AC_HELP_STRING([--enable-alsa-shared], [dynamically load ALSA audio support [default=yes]]), 318 AC_HELP_STRING([--enable-alsa-shared], [dynamically load ALSA audio support [[default=yes]]]),
319 , enable_alsa_shared=yes) 319 , enable_alsa_shared=yes)
320 if test "x`echo $ALSA_LIBS | grep -- -L`" = "x"; then 320 if test "x`echo $ALSA_LIBS | grep -- -L`" = "x"; then
321 if test "x`ls /lib/libasound.so.* 2> /dev/null`" != "x"; then 321 if test "x`ls /lib/libasound.so.* 2> /dev/null`" != "x"; then
322 ALSA_LIBS="-L/lib $ALSA_LIBS" 322 ALSA_LIBS="-L/lib $ALSA_LIBS"
323 elif test "x`ls /usr/lib/libasound.so.* 2> /dev/null`" != "x"; then 323 elif test "x`ls /usr/lib/libasound.so.* 2> /dev/null`" != "x"; then
412 412
413 dnl Find the ESD includes and libraries 413 dnl Find the ESD includes and libraries
414 CheckESD() 414 CheckESD()
415 { 415 {
416 AC_ARG_ENABLE(esd, 416 AC_ARG_ENABLE(esd,
417 AC_HELP_STRING([--enable-esd], [support the Enlightened Sound Daemon [default=yes]]), 417 AC_HELP_STRING([--enable-esd], [support the Enlightened Sound Daemon [[default=yes]]]),
418 , enable_esd=yes) 418 , enable_esd=yes)
419 if test x$enable_audio = xyes -a x$enable_esd = xyes; then 419 if test x$enable_audio = xyes -a x$enable_esd = xyes; then
420 AM_PATH_ESD(0.2.8, have_esd=yes, have_esd=no) 420 AM_PATH_ESD(0.2.8, have_esd=yes, have_esd=no)
421 if test x$have_esd = xyes; then 421 if test x$have_esd = xyes; then
422 AC_ARG_ENABLE(esd-shared, 422 AC_ARG_ENABLE(esd-shared,
423 AC_HELP_STRING([--enable-esd-shared], [dynamically load ESD audio support [default=yes]]), 423 AC_HELP_STRING([--enable-esd-shared], [dynamically load ESD audio support [[default=yes]]]),
424 , enable_esd_shared=yes) 424 , enable_esd_shared=yes)
425 esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libesd.so.*/'` 425 esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libesd.so.*/'`
426 esd_lib=`ls -- $esd_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` 426 esd_lib=`ls -- $esd_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
427 echo "-- $esd_lib_spec -> $esd_lib" 427 echo "-- $esd_lib_spec -> $esd_lib"
428 428
445 } 445 }
446 446
447 CheckARTSC() 447 CheckARTSC()
448 { 448 {
449 AC_ARG_ENABLE(arts, 449 AC_ARG_ENABLE(arts,
450 AC_HELP_STRING([--enable-arts], [support the Analog Real Time Synthesizer [default=yes]]), 450 AC_HELP_STRING([--enable-arts], [support the Analog Real Time Synthesizer [[default=yes]]]),
451 , enable_arts=yes) 451 , enable_arts=yes)
452 if test x$enable_audio = xyes -a x$enable_arts = xyes; then 452 if test x$enable_audio = xyes -a x$enable_arts = xyes; then
453 AC_PATH_PROG(ARTSCONFIG, artsc-config) 453 AC_PATH_PROG(ARTSCONFIG, artsc-config)
454 if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then 454 if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
455 : # arts isn't installed 455 : # arts isn't installed
470 ]) 470 ])
471 CFLAGS="$save_CFLAGS" 471 CFLAGS="$save_CFLAGS"
472 AC_MSG_RESULT($audio_arts) 472 AC_MSG_RESULT($audio_arts)
473 if test x$audio_arts = xyes; then 473 if test x$audio_arts = xyes; then
474 AC_ARG_ENABLE(arts-shared, 474 AC_ARG_ENABLE(arts-shared,
475 AC_HELP_STRING([--enable-arts-shared], [dynamically load aRts audio support [default=yes]]), 475 AC_HELP_STRING([--enable-arts-shared], [dynamically load aRts audio support [[default=yes]]]),
476 , enable_arts_shared=yes) 476 , enable_arts_shared=yes)
477 arts_lib_spec="$ARTS_PREFIX/lib/libartsc.so.*" 477 arts_lib_spec="$ARTS_PREFIX/lib/libartsc.so.*"
478 arts_lib=`ls -- $arts_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` 478 arts_lib=`ls -- $arts_lib_spec | sed 's/.*\/\(.*\)/\1/; q'`
479 echo "-- $arts_lib_spec -> $arts_lib" 479 echo "-- $arts_lib_spec -> $arts_lib"
480 480
499 499
500 dnl See if the NAS audio interface is supported 500 dnl See if the NAS audio interface is supported
501 CheckNAS() 501 CheckNAS()
502 { 502 {
503 AC_ARG_ENABLE(nas, 503 AC_ARG_ENABLE(nas,
504 AC_HELP_STRING([--enable-nas], [support the NAS audio API [default=yes]]), 504 AC_HELP_STRING([--enable-nas], [support the NAS audio API [[default=yes]]]),
505 , enable_nas=yes) 505 , enable_nas=yes)
506 if test x$enable_audio = xyes -a x$enable_nas = xyes; then 506 if test x$enable_audio = xyes -a x$enable_nas = xyes; then
507 AC_MSG_CHECKING(for NAS audio support) 507 AC_MSG_CHECKING(for NAS audio support)
508 have_nas=no 508 have_nas=no
509 if test -r /usr/X11R6/include/audio/audiolib.h; then 509 if test -r /usr/X11R6/include/audio/audiolib.h; then
531 531
532 dnl rcg07142001 See if the user wants the disk writer audio driver... 532 dnl rcg07142001 See if the user wants the disk writer audio driver...
533 CheckDiskAudio() 533 CheckDiskAudio()
534 { 534 {
535 AC_ARG_ENABLE(diskaudio, 535 AC_ARG_ENABLE(diskaudio,
536 AC_HELP_STRING([--enable-diskaudio], [support the disk writer audio driver [default=yes]]), 536 AC_HELP_STRING([--enable-diskaudio], [support the disk writer audio driver [[default=yes]]]),
537 , enable_diskaudio=yes) 537 , enable_diskaudio=yes)
538 if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then 538 if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
539 AC_DEFINE(SDL_AUDIO_DRIVER_DISK) 539 AC_DEFINE(SDL_AUDIO_DRIVER_DISK)
540 SOURCES="$SOURCES $srcdir/src/audio/disk/*.c" 540 SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
541 fi 541 fi
543 543
544 dnl rcg03142006 See if the user wants the dummy audio driver... 544 dnl rcg03142006 See if the user wants the dummy audio driver...
545 CheckDummyAudio() 545 CheckDummyAudio()
546 { 546 {
547 AC_ARG_ENABLE(dummyaudio, 547 AC_ARG_ENABLE(dummyaudio,
548 AC_HELP_STRING([--enable-dummyaudio], [support the dummy audio driver [default=yes]]), 548 AC_HELP_STRING([--enable-dummyaudio], [support the dummy audio driver [[default=yes]]]),
549 , enable_dummyaudio=yes) 549 , enable_dummyaudio=yes)
550 if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then 550 if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
551 AC_DEFINE(SDL_AUDIO_DRIVER_DUMMY) 551 AC_DEFINE(SDL_AUDIO_DRIVER_DUMMY)
552 SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c" 552 SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
553 fi 553 fi
555 555
556 dnl Set up the Atari Audio driver 556 dnl Set up the Atari Audio driver
557 CheckAtariAudio() 557 CheckAtariAudio()
558 { 558 {
559 AC_ARG_ENABLE(mintaudio, 559 AC_ARG_ENABLE(mintaudio,
560 AC_HELP_STRING([--enable-mintaudio], [support Atari audio driver [default=yes]]), 560 AC_HELP_STRING([--enable-mintaudio], [support Atari audio driver [[default=yes]]]),
561 , enable_mintaudio=yes) 561 , enable_mintaudio=yes)
562 if test x$enable_audio = xyes -a x$enable_mintaudio = xyes; then 562 if test x$enable_audio = xyes -a x$enable_mintaudio = xyes; then
563 mintaudio=no 563 mintaudio=no
564 AC_CHECK_HEADER(mint/falcon.h, have_mint_falcon_hdr=yes) 564 AC_CHECK_HEADER(mint/falcon.h, have_mint_falcon_hdr=yes)
565 if test x$have_mint_falcon_hdr = xyes; then 565 if test x$have_mint_falcon_hdr = xyes; then
585 return 585 return
586 ;; 586 ;;
587 esac 587 esac
588 dnl Check for NASM (for assembly blit routines) 588 dnl Check for NASM (for assembly blit routines)
589 AC_ARG_ENABLE(nasm, 589 AC_ARG_ENABLE(nasm,
590 AC_HELP_STRING([--enable-nasm], [use nasm assembly blitters on x86 [default=yes]]), 590 AC_HELP_STRING([--enable-nasm], [use nasm assembly blitters on x86 [[default=yes]]]),
591 , enable_nasm=yes) 591 , enable_nasm=yes)
592 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_nasm = xyes; then 592 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_nasm = xyes; then
593 AC_PATH_PROG(NASM, nasm) 593 AC_PATH_PROG(NASM, nasm)
594 if test x$NASM != x -a x$NASM != x'"$NASM"'; then 594 if test x$NASM != x -a x$NASM != x'"$NASM"'; then
595 AC_DEFINE(SDL_HERMES_BLITTERS) 595 AC_DEFINE(SDL_HERMES_BLITTERS)
623 623
624 dnl Check for altivec instruction support using gas syntax 624 dnl Check for altivec instruction support using gas syntax
625 CheckAltivec() 625 CheckAltivec()
626 { 626 {
627 AC_ARG_ENABLE(altivec, 627 AC_ARG_ENABLE(altivec,
628 AC_HELP_STRING([--enable-altivec], [use altivec assembly blitters on PPC [default=yes]]), 628 AC_HELP_STRING([--enable-altivec], [use altivec assembly blitters on PPC [[default=yes]]]),
629 , enable_altivec=yes) 629 , enable_altivec=yes)
630 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_altivec = xyes; then 630 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_altivec = xyes; then
631 have_altivec_h_hdr=no 631 have_altivec_h_hdr=no
632 AC_CHECK_HEADER(altivec.h, have_altivec_h_hdr=yes) 632 AC_CHECK_HEADER(altivec.h, have_altivec_h_hdr=yes)
633 633
740 740
741 dnl Find the nanox include and library directories 741 dnl Find the nanox include and library directories
742 CheckNANOX() 742 CheckNANOX()
743 { 743 {
744 AC_ARG_ENABLE(video-nanox, 744 AC_ARG_ENABLE(video-nanox,
745 AC_HELP_STRING([--enable-video-nanox], [use nanox video driver [default=no]]), 745 AC_HELP_STRING([--enable-video-nanox], [use nanox video driver [[default=no]]]),
746 , enable_video_nanox=no) 746 , enable_video_nanox=no)
747 747
748 if test x$enable_video = xyes -a x$enable_video_nanox = xyes; then 748 if test x$enable_video = xyes -a x$enable_video_nanox = xyes; then
749 AC_ARG_ENABLE(nanox-debug, 749 AC_ARG_ENABLE(nanox-debug,
750 AC_HELP_STRING([--enable-nanox-debug], [print debug messages [default=no]]), 750 AC_HELP_STRING([--enable-nanox-debug], [print debug messages [[default=no]]]),
751 , enable_nanox_debug=no) 751 , enable_nanox_debug=no)
752 if test x$enable_nanox_debug = xyes; then 752 if test x$enable_nanox_debug = xyes; then
753 EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DEBUG" 753 EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DEBUG"
754 fi 754 fi
755 755
756 AC_ARG_ENABLE(nanox-share-memory, 756 AC_ARG_ENABLE(nanox-share-memory,
757 AC_HELP_STRING([--enable-nanox-share-memory], [use share memory [default=no]]), 757 AC_HELP_STRING([--enable-nanox-share-memory], [use share memory [[default=no]]]),
758 , enable_nanox_share_memory=no) 758 , enable_nanox_share_memory=no)
759 if test x$enable_nanox_share_memory = xyes; then 759 if test x$enable_nanox_share_memory = xyes; then
760 EXTRA_CFLAGS="$EXTRA_CFLAGS -DNANOX_SHARE_MEMORY" 760 EXTRA_CFLAGS="$EXTRA_CFLAGS -DNANOX_SHARE_MEMORY"
761 fi 761 fi
762 762
763 AC_ARG_ENABLE(nanox_direct_fb, 763 AC_ARG_ENABLE(nanox_direct_fb,
764 AC_HELP_STRING([--enable-nanox-direct-fb], [use direct framebuffer access [default=no]]), 764 AC_HELP_STRING([--enable-nanox-direct-fb], [use direct framebuffer access [[default=no]]]),
765 , enable_nanox_direct_fb=no) 765 , enable_nanox_direct_fb=no)
766 if test x$enable_nanox_direct_fb = xyes; then 766 if test x$enable_nanox_direct_fb = xyes; then
767 EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DIRECT_FB" 767 EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DIRECT_FB"
768 fi 768 fi
769 769
776 776
777 dnl Find the X11 include and library directories 777 dnl Find the X11 include and library directories
778 CheckX11() 778 CheckX11()
779 { 779 {
780 AC_ARG_ENABLE(video-x11, 780 AC_ARG_ENABLE(video-x11,
781 AC_HELP_STRING([--enable-video-x11], [use X11 video driver [default=yes]]), 781 AC_HELP_STRING([--enable-video-x11], [use X11 video driver [[default=yes]]]),
782 , enable_video_x11=yes) 782 , enable_video_x11=yes)
783 if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then 783 if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
784 AC_PATH_X 784 AC_PATH_X
785 AC_PATH_XTRA 785 AC_PATH_XTRA
786 if test x$have_x = xyes; then 786 if test x$have_x = xyes; then
787 AC_ARG_ENABLE(x11-shared, 787 AC_ARG_ENABLE(x11-shared,
788 AC_HELP_STRING([--enable-x11-shared], [dynamically load X11 support [default=yes]]), 788 AC_HELP_STRING([--enable-x11-shared], [dynamically load X11 support [[default=yes]]]),
789 , enable_x11_shared=yes) 789 , enable_x11_shared=yes)
790 790
791 case "$host" in 791 case "$host" in
792 *-*-darwin*) # Latest Mac OS X actually ships with Xrandr/Xrender libs... 792 *-*-darwin*) # Latest Mac OS X actually ships with Xrandr/Xrender libs...
793 x11_lib='/usr/X11R6/lib/libX11.6.dylib' 793 x11_lib='/usr/X11R6/lib/libX11.6.dylib'
845 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext" 845 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
846 fi 846 fi
847 have_video=yes 847 have_video=yes
848 848
849 AC_ARG_ENABLE(dga, 849 AC_ARG_ENABLE(dga,
850 AC_HELP_STRING([--enable-dga], [allow use of X11 DGA code [default=yes]]), 850 AC_HELP_STRING([--enable-dga], [allow use of X11 DGA code [[default=yes]]]),
851 , enable_dga=yes) 851 , enable_dga=yes)
852 if test x$enable_dga = xyes; then 852 if test x$enable_dga = xyes; then
853 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86dga/*.c" 853 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86dga/*.c"
854 fi 854 fi
855 AC_ARG_ENABLE(video-dga, 855 AC_ARG_ENABLE(video-dga,
856 AC_HELP_STRING([--enable-video-dga], [use DGA 2.0 video driver [default=yes]]), 856 AC_HELP_STRING([--enable-video-dga], [use DGA 2.0 video driver [[default=yes]]]),
857 , enable_video_dga=yes) 857 , enable_video_dga=yes)
858 if test x$enable_dga = xyes -a x$enable_video_dga = xyes; then 858 if test x$enable_dga = xyes -a x$enable_video_dga = xyes; then
859 AC_DEFINE(SDL_VIDEO_DRIVER_DGA) 859 AC_DEFINE(SDL_VIDEO_DRIVER_DGA)
860 SOURCES="$SOURCES $srcdir/src/video/dga/*.c" 860 SOURCES="$SOURCES $srcdir/src/video/dga/*.c"
861 fi 861 fi
862 AC_ARG_ENABLE(video-x11-dgamouse, 862 AC_ARG_ENABLE(video-x11-dgamouse,
863 AC_HELP_STRING([--enable-video-x11-dgamouse], [use X11 DGA for mouse events [default=yes]]), 863 AC_HELP_STRING([--enable-video-x11-dgamouse], [use X11 DGA for mouse events [[default=yes]]]),
864 , enable_video_x11_dgamouse=yes) 864 , enable_video_x11_dgamouse=yes)
865 if test x$enable_dga = xyes -a x$enable_video_x11_dgamouse = xyes; then 865 if test x$enable_dga = xyes -a x$enable_video_x11_dgamouse = xyes; then
866 AC_DEFINE(SDL_VIDEO_DRIVER_X11_DGAMOUSE) 866 AC_DEFINE(SDL_VIDEO_DRIVER_X11_DGAMOUSE)
867 fi 867 fi
868 AC_ARG_ENABLE(video-x11-vm, 868 AC_ARG_ENABLE(video-x11-vm,
869 AC_HELP_STRING([--enable-video-x11-vm], [use X11 VM extension for fullscreen [default=yes]]), 869 AC_HELP_STRING([--enable-video-x11-vm], [use X11 VM extension for fullscreen [[default=yes]]]),
870 , enable_video_x11_vm=yes) 870 , enable_video_x11_vm=yes)
871 if test x$enable_video_x11_vm = xyes; then 871 if test x$enable_video_x11_vm = xyes; then
872 AC_DEFINE(SDL_VIDEO_DRIVER_X11_VIDMODE) 872 AC_DEFINE(SDL_VIDEO_DRIVER_X11_VIDMODE)
873 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86vm/*.c" 873 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86vm/*.c"
874 fi 874 fi
875 AC_ARG_ENABLE(video-x11-xv, 875 AC_ARG_ENABLE(video-x11-xv,
876 AC_HELP_STRING([--enable-video-x11-xv], [use X11 XvImage extension for video [default=yes]]), 876 AC_HELP_STRING([--enable-video-x11-xv], [use X11 XvImage extension for video [[default=yes]]]),
877 , enable_video_x11_xv=yes) 877 , enable_video_x11_xv=yes)
878 if test x$enable_video_x11_xv = xyes; then 878 if test x$enable_video_x11_xv = xyes; then
879 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XV) 879 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XV)
880 SOURCES="$SOURCES $srcdir/src/video/Xext/Xv/*.c" 880 SOURCES="$SOURCES $srcdir/src/video/Xext/Xv/*.c"
881 fi 881 fi
882 AC_ARG_ENABLE(video-x11-xinerama, 882 AC_ARG_ENABLE(video-x11-xinerama,
883 AC_HELP_STRING([--enable-video-x11-xinerama], [enable X11 Xinerama support [default=yes]]), 883 AC_HELP_STRING([--enable-video-x11-xinerama], [enable X11 Xinerama support [[default=yes]]]),
884 , enable_video_x11_xinerama=yes) 884 , enable_video_x11_xinerama=yes)
885 if test x$enable_video_x11_xinerama = xyes; then 885 if test x$enable_video_x11_xinerama = xyes; then
886 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINERAMA) 886 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XINERAMA)
887 SOURCES="$SOURCES $srcdir/src/video/Xext/Xinerama/*.c" 887 SOURCES="$SOURCES $srcdir/src/video/Xext/Xinerama/*.c"
888 fi 888 fi
889 AC_ARG_ENABLE(video-x11-xme, 889 AC_ARG_ENABLE(video-x11-xme,
890 AC_HELP_STRING([--enable-video-x11-xme], [enable Xi Graphics XME for fullscreen [default=yes]]), 890 AC_HELP_STRING([--enable-video-x11-xme], [enable Xi Graphics XME for fullscreen [[default=yes]]]),
891 , enable_video_x11_xme=yes) 891 , enable_video_x11_xme=yes)
892 if test x$enable_video_x11_xme = xyes; then 892 if test x$enable_video_x11_xme = xyes; then
893 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XME) 893 AC_DEFINE(SDL_VIDEO_DRIVER_X11_XME)
894 SOURCES="$SOURCES $srcdir/src/video/Xext/XME/*.c" 894 SOURCES="$SOURCES $srcdir/src/video/Xext/XME/*.c"
895 fi 895 fi
896 AC_ARG_ENABLE(video-x11-xrandr, 896 AC_ARG_ENABLE(video-x11-xrandr,
897 AC_HELP_STRING([--enable-video-x11-xrandr], [enable X11 Xrandr extension for fullscreen [default=yes]]), 897 AC_HELP_STRING([--enable-video-x11-xrandr], [enable X11 Xrandr extension for fullscreen [[default=yes]]]),
898 , enable_video_x11_xrandr=yes) 898 , enable_video_x11_xrandr=yes)
899 if test x$enable_video_x11_xrandr = xyes; then 899 if test x$enable_video_x11_xrandr = xyes; then
900 definitely_enable_video_x11_xrandr=no 900 definitely_enable_video_x11_xrandr=no
901 AC_CHECK_HEADER(X11/extensions/Xrandr.h, 901 AC_CHECK_HEADER(X11/extensions/Xrandr.h,
902 have_xrandr_h_hdr=yes, 902 have_xrandr_h_hdr=yes,
930 930
931 dnl Check for QNX photon video driver 931 dnl Check for QNX photon video driver
932 CheckPHOTON() 932 CheckPHOTON()
933 { 933 {
934 AC_ARG_ENABLE(video-photon, 934 AC_ARG_ENABLE(video-photon,
935 AC_HELP_STRING([--enable-video-photon], [use QNX Photon video driver [default=yes]]), 935 AC_HELP_STRING([--enable-video-photon], [use QNX Photon video driver [[default=yes]]]),
936 , enable_video_photon=yes) 936 , enable_video_photon=yes)
937 if test x$enable_video = xyes -a x$enable_video_photon = xyes; then 937 if test x$enable_video = xyes -a x$enable_video_photon = xyes; then
938 AC_MSG_CHECKING(for QNX Photon support) 938 AC_MSG_CHECKING(for QNX Photon support)
939 video_photon=no 939 video_photon=no
940 AC_TRY_COMPILE([ 940 AC_TRY_COMPILE([
971 971
972 dnl Set up the Carbon/QuickDraw video driver for Mac OS X (but not Darwin) 972 dnl Set up the Carbon/QuickDraw video driver for Mac OS X (but not Darwin)
973 CheckCARBON() 973 CheckCARBON()
974 { 974 {
975 AC_ARG_ENABLE(video-carbon, 975 AC_ARG_ENABLE(video-carbon,
976 AC_HELP_STRING([--enable-video-carbon], [use Carbon/QuickDraw video driver [default=no]]), 976 AC_HELP_STRING([--enable-video-carbon], [use Carbon/QuickDraw video driver [[default=no]]]),
977 , enable_video_carbon=no) 977 , enable_video_carbon=no)
978 if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then 978 if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then
979 AC_MSG_CHECKING(for Carbon framework) 979 AC_MSG_CHECKING(for Carbon framework)
980 have_carbon=no 980 have_carbon=no
981 AC_TRY_COMPILE([ 981 AC_TRY_COMPILE([
996 996
997 dnl Set up the Cocoa/Quartz video driver for Mac OS X (but not Darwin) 997 dnl Set up the Cocoa/Quartz video driver for Mac OS X (but not Darwin)
998 CheckCOCOA() 998 CheckCOCOA()
999 { 999 {
1000 AC_ARG_ENABLE(video-cocoa, 1000 AC_ARG_ENABLE(video-cocoa,
1001 AC_HELP_STRING([--enable-video-cocoa], [use Cocoa/Quartz video driver [default=yes]]), 1001 AC_HELP_STRING([--enable-video-cocoa], [use Cocoa/Quartz video driver [[default=yes]]]),
1002 , enable_video_cocoa=yes) 1002 , enable_video_cocoa=yes)
1003 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then 1003 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
1004 save_CFLAGS="$CFLAGS" 1004 save_CFLAGS="$CFLAGS"
1005 dnl work around that we don't have Objective-C support in autoconf 1005 dnl work around that we don't have Objective-C support in autoconf
1006 CFLAGS="$CFLAGS -x objective-c" 1006 CFLAGS="$CFLAGS -x objective-c"
1024 1024
1025 dnl Find the framebuffer console includes 1025 dnl Find the framebuffer console includes
1026 CheckFBCON() 1026 CheckFBCON()
1027 { 1027 {
1028 AC_ARG_ENABLE(video-fbcon, 1028 AC_ARG_ENABLE(video-fbcon,
1029 AC_HELP_STRING([--enable-video-fbcon], [use framebuffer console video driver [default=yes]]), 1029 AC_HELP_STRING([--enable-video-fbcon], [use framebuffer console video driver [[default=yes]]]),
1030 , enable_video_fbcon=yes) 1030 , enable_video_fbcon=yes)
1031 if test x$enable_video = xyes -a x$enable_video_fbcon = xyes; then 1031 if test x$enable_video = xyes -a x$enable_video_fbcon = xyes; then
1032 AC_MSG_CHECKING(for framebuffer console support) 1032 AC_MSG_CHECKING(for framebuffer console support)
1033 video_fbcon=no 1033 video_fbcon=no
1034 AC_TRY_COMPILE([ 1034 AC_TRY_COMPILE([
1050 1050
1051 dnl Find DirectFB 1051 dnl Find DirectFB
1052 CheckDirectFB() 1052 CheckDirectFB()
1053 { 1053 {
1054 AC_ARG_ENABLE(video-directfb, 1054 AC_ARG_ENABLE(video-directfb,
1055 AC_HELP_STRING([--enable-video-directfb], [use DirectFB video driver [default=yes]]), 1055 AC_HELP_STRING([--enable-video-directfb], [use DirectFB video driver [[default=yes]]]),
1056 , enable_video_directfb=yes) 1056 , enable_video_directfb=yes)
1057 if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then 1057 if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
1058 video_directfb=no 1058 video_directfb=no
1059 1059
1060 DIRECTFB_REQUIRED_VERSION=0.9.15 1060 DIRECTFB_REQUIRED_VERSION=0.9.15
1097 1097
1098 dnl See if we're running on PlayStation 2 hardware 1098 dnl See if we're running on PlayStation 2 hardware
1099 CheckPS2GS() 1099 CheckPS2GS()
1100 { 1100 {
1101 AC_ARG_ENABLE(video-ps2gs, 1101 AC_ARG_ENABLE(video-ps2gs,
1102 AC_HELP_STRING([--enable-video-ps2gs], [use PlayStation 2 GS video driver [default=yes]]), 1102 AC_HELP_STRING([--enable-video-ps2gs], [use PlayStation 2 GS video driver [[default=yes]]]),
1103 , enable_video_ps2gs=yes) 1103 , enable_video_ps2gs=yes)
1104 if test x$enable_video = xyes -a x$enable_video_ps2gs = xyes; then 1104 if test x$enable_video = xyes -a x$enable_video_ps2gs = xyes; then
1105 AC_MSG_CHECKING(for PlayStation 2 GS support) 1105 AC_MSG_CHECKING(for PlayStation 2 GS support)
1106 video_ps2gs=no 1106 video_ps2gs=no
1107 AC_TRY_COMPILE([ 1107 AC_TRY_COMPILE([
1122 1122
1123 dnl Find the GGI includes 1123 dnl Find the GGI includes
1124 CheckGGI() 1124 CheckGGI()
1125 { 1125 {
1126 AC_ARG_ENABLE(video-ggi, 1126 AC_ARG_ENABLE(video-ggi,
1127 AC_HELP_STRING([--enable-video-ggi], [use GGI video driver [default=no]]), 1127 AC_HELP_STRING([--enable-video-ggi], [use GGI video driver [[default=no]]]),
1128 , enable_video_ggi=no) 1128 , enable_video_ggi=no)
1129 if test x$enable_video = xyes -a x$enable_video_ggi = xyes; then 1129 if test x$enable_video = xyes -a x$enable_video_ggi = xyes; then
1130 AC_MSG_CHECKING(for GGI support) 1130 AC_MSG_CHECKING(for GGI support)
1131 video_ggi=no 1131 video_ggi=no
1132 AC_TRY_COMPILE([ 1132 AC_TRY_COMPILE([
1148 1148
1149 dnl Find the SVGAlib includes and libraries 1149 dnl Find the SVGAlib includes and libraries
1150 CheckSVGA() 1150 CheckSVGA()
1151 { 1151 {
1152 AC_ARG_ENABLE(video-svga, 1152 AC_ARG_ENABLE(video-svga,
1153 AC_HELP_STRING([--enable-video-svga], [use SVGAlib video driver [default=yes]]), 1153 AC_HELP_STRING([--enable-video-svga], [use SVGAlib video driver [[default=yes]]]),
1154 , enable_video_svga=yes) 1154 , enable_video_svga=yes)
1155 if test x$enable_video = xyes -a x$enable_video_svga = xyes; then 1155 if test x$enable_video = xyes -a x$enable_video_svga = xyes; then
1156 AC_MSG_CHECKING(for SVGAlib (1.4.0+) support) 1156 AC_MSG_CHECKING(for SVGAlib (1.4.0+) support)
1157 video_svga=no 1157 video_svga=no
1158 AC_TRY_COMPILE([ 1158 AC_TRY_COMPILE([
1178 1178
1179 dnl Find the VGL includes and libraries 1179 dnl Find the VGL includes and libraries
1180 CheckVGL() 1180 CheckVGL()
1181 { 1181 {
1182 AC_ARG_ENABLE(video-vgl, 1182 AC_ARG_ENABLE(video-vgl,
1183 AC_HELP_STRING([--enable-video-vgl], [use VGL video driver [default=yes]]), 1183 AC_HELP_STRING([--enable-video-vgl], [use VGL video driver [[default=yes]]]),
1184 , enable_video_vgl=yes) 1184 , enable_video_vgl=yes)
1185 if test x$enable_video = xyes -a x$enable_video_vgl = xyes; then 1185 if test x$enable_video = xyes -a x$enable_video_vgl = xyes; then
1186 AC_MSG_CHECKING(for libVGL support) 1186 AC_MSG_CHECKING(for libVGL support)
1187 video_vgl=no 1187 video_vgl=no
1188 AC_TRY_COMPILE([ 1188 AC_TRY_COMPILE([
1208 1208
1209 dnl Set up the wscons video driver if enabled 1209 dnl Set up the wscons video driver if enabled
1210 CheckWscons() 1210 CheckWscons()
1211 { 1211 {
1212 AC_ARG_ENABLE(video-wscons, 1212 AC_ARG_ENABLE(video-wscons,
1213 AC_HELP_STRING([--enable-video-wscons], [use wscons video driver [default=yes]]), 1213 AC_HELP_STRING([--enable-video-wscons], [use wscons video driver [[default=yes]]]),
1214 , enable_video_wscons=yes) 1214 , enable_video_wscons=yes)
1215 if test x$enable_video = xyes -a x$enable_video_wscons = xyes; then 1215 if test x$enable_video = xyes -a x$enable_video_wscons = xyes; then
1216 AC_MSG_CHECKING(for wscons support) 1216 AC_MSG_CHECKING(for wscons support)
1217 video_wscons=no 1217 video_wscons=no
1218 AC_TRY_COMPILE([ 1218 AC_TRY_COMPILE([
1236 1236
1237 dnl Find the AAlib includes 1237 dnl Find the AAlib includes
1238 CheckAAlib() 1238 CheckAAlib()
1239 { 1239 {
1240 AC_ARG_ENABLE(video-aalib, 1240 AC_ARG_ENABLE(video-aalib,
1241 AC_HELP_STRING([--enable-video-aalib], [use AAlib video driver [default=no]]), 1241 AC_HELP_STRING([--enable-video-aalib], [use AAlib video driver [[default=no]]]),
1242 , enable_video_aalib=no) 1242 , enable_video_aalib=no)
1243 if test x$enable_video = xyes -a x$enable_video_aalib = xyes; then 1243 if test x$enable_video = xyes -a x$enable_video_aalib = xyes; then
1244 AC_MSG_CHECKING(for AAlib support) 1244 AC_MSG_CHECKING(for AAlib support)
1245 video_aalib=no 1245 video_aalib=no
1246 AC_TRY_COMPILE([ 1246 AC_TRY_COMPILE([
1261 1261
1262 dnl Set up the QTopia video driver if enabled 1262 dnl Set up the QTopia video driver if enabled
1263 CheckQtopia() 1263 CheckQtopia()
1264 { 1264 {
1265 AC_ARG_ENABLE(video-qtopia, 1265 AC_ARG_ENABLE(video-qtopia,
1266 AC_HELP_STRING([--enable-video-qtopia], [use Qtopia video driver [default=no]]), 1266 AC_HELP_STRING([--enable-video-qtopia], [use Qtopia video driver [[default=no]]]),
1267 , enable_video_qtopia=no) 1267 , enable_video_qtopia=no)
1268 if test x$enable_video = xyes -a x$enable_video_qtopia = xyes; then 1268 if test x$enable_video = xyes -a x$enable_video_qtopia = xyes; then
1269 AC_MSG_CHECKING(for Qtopia support) 1269 AC_MSG_CHECKING(for Qtopia support)
1270 video_qtopia=no 1270 video_qtopia=no
1271 QTOPIA_FLAGS="-DQT_QWS_EBX -DQT_QWS_CUSTOM -DQWS -I${QPEDIR}/include -I${QTDIR}/include/ -DNO_DEBUG -fno-rtti -fno-exceptions" 1271 QTOPIA_FLAGS="-DQT_QWS_EBX -DQT_QWS_CUSTOM -DQWS -I${QPEDIR}/include -I${QTDIR}/include/ -DNO_DEBUG -fno-rtti -fno-exceptions"
1295 1295
1296 dnl Set up the PicoGUI video driver if enabled 1296 dnl Set up the PicoGUI video driver if enabled
1297 CheckPicoGUI() 1297 CheckPicoGUI()
1298 { 1298 {
1299 AC_ARG_ENABLE(video-picogui, 1299 AC_ARG_ENABLE(video-picogui,
1300 AC_HELP_STRING([--enable-video-picogui], [use PicoGUI video driver [default=no]]), 1300 AC_HELP_STRING([--enable-video-picogui], [use PicoGUI video driver [[default=no]]]),
1301 , enable_video_picogui=no) 1301 , enable_video_picogui=no)
1302 if test x$enable_video = xyes -a x$enable_video_picogui = xyes; then 1302 if test x$enable_video = xyes -a x$enable_video_picogui = xyes; then
1303 AC_MSG_CHECKING(for PicoGUI support) 1303 AC_MSG_CHECKING(for PicoGUI support)
1304 video_picogui=no 1304 video_picogui=no
1305 AC_TRY_COMPILE([ 1305 AC_TRY_COMPILE([
1327 1327
1328 dnl Set up the Atari Xbios driver 1328 dnl Set up the Atari Xbios driver
1329 CheckAtariXbiosVideo() 1329 CheckAtariXbiosVideo()
1330 { 1330 {
1331 AC_ARG_ENABLE(xbios, 1331 AC_ARG_ENABLE(xbios,
1332 AC_HELP_STRING([--enable-video-xbios], [use Atari Xbios video driver [default=yes]]), 1332 AC_HELP_STRING([--enable-video-xbios], [use Atari Xbios video driver [[default=yes]]]),
1333 , enable_video_xbios=yes) 1333 , enable_video_xbios=yes)
1334 video_xbios=no 1334 video_xbios=no
1335 if test x$enable_video = xyes -a x$enable_video_xbios = xyes; then 1335 if test x$enable_video = xyes -a x$enable_video_xbios = xyes; then
1336 video_xbios=yes 1336 video_xbios=yes
1337 AC_DEFINE(SDL_VIDEO_DRIVER_XBIOS) 1337 AC_DEFINE(SDL_VIDEO_DRIVER_XBIOS)
1342 1342
1343 dnl Set up the Atari Gem driver 1343 dnl Set up the Atari Gem driver
1344 CheckAtariGemVideo() 1344 CheckAtariGemVideo()
1345 { 1345 {
1346 AC_ARG_ENABLE(gem, 1346 AC_ARG_ENABLE(gem,
1347 AC_HELP_STRING([--enable-video-gem], [use Atari Gem video driver [default=yes]]), 1347 AC_HELP_STRING([--enable-video-gem], [use Atari Gem video driver [[default=yes]]]),
1348 , enable_video_gem=yes) 1348 , enable_video_gem=yes)
1349 if test x$enable_video = xyes -a x$enable_video_gem = xyes; then 1349 if test x$enable_video = xyes -a x$enable_video_gem = xyes; then
1350 video_gem=no 1350 video_gem=no
1351 AC_CHECK_HEADER(gem.h, have_gem_hdr=yes) 1351 AC_CHECK_HEADER(gem.h, have_gem_hdr=yes)
1352 AC_CHECK_LIB(gem, appl_init, have_gem_lib=yes) 1352 AC_CHECK_LIB(gem, appl_init, have_gem_lib=yes)
1362 1362
1363 dnl rcg04172001 Set up the Null video driver. 1363 dnl rcg04172001 Set up the Null video driver.
1364 CheckDummyVideo() 1364 CheckDummyVideo()
1365 { 1365 {
1366 AC_ARG_ENABLE(video-dummy, 1366 AC_ARG_ENABLE(video-dummy,
1367 AC_HELP_STRING([--enable-video-dummy], [use dummy video driver [default=yes]]), 1367 AC_HELP_STRING([--enable-video-dummy], [use dummy video driver [[default=yes]]]),
1368 , enable_video_dummy=yes) 1368 , enable_video_dummy=yes)
1369 if test x$enable_video_dummy = xyes; then 1369 if test x$enable_video_dummy = xyes; then
1370 AC_DEFINE(SDL_VIDEO_DRIVER_DUMMY) 1370 AC_DEFINE(SDL_VIDEO_DRIVER_DUMMY)
1371 SOURCES="$SOURCES $srcdir/src/video/dummy/*.c" 1371 SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
1372 have_video=yes 1372 have_video=yes
1373 fi 1373 fi
1374 } 1374 }
1375 1375
1376 dnl Check to see if OpenGL support is desired 1376 dnl Check to see if OpenGL support is desired
1377 AC_ARG_ENABLE(video-opengl, 1377 AC_ARG_ENABLE(video-opengl,
1378 AC_HELP_STRING([--enable-video-opengl], [include OpenGL context creation [default=yes]]), 1378 AC_HELP_STRING([--enable-video-opengl], [include OpenGL context creation [[default=yes]]]),
1379 , enable_video_opengl=yes) 1379 , enable_video_opengl=yes)
1380 1380
1381 dnl Find OpenGL 1381 dnl Find OpenGL
1382 CheckOpenGLX11() 1382 CheckOpenGLX11()
1383 { 1383 {
1477 AC_DEFINE(SDL_VIDEO_OPENGL_OSMESA) 1477 AC_DEFINE(SDL_VIDEO_OPENGL_OSMESA)
1478 EXTRA_CFLAGS="$EXTRA_CFLAGS $OSMESA_CFLAGS" 1478 EXTRA_CFLAGS="$EXTRA_CFLAGS $OSMESA_CFLAGS"
1479 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $OSMESA_LIBS" 1479 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $OSMESA_LIBS"
1480 1480
1481 AC_ARG_ENABLE(osmesa-shared, 1481 AC_ARG_ENABLE(osmesa-shared,
1482 AC_HELP_STRING([--enable-osmesa-shared], [dynamically load OSMesa OpenGL support [default=yes]]), 1482 AC_HELP_STRING([--enable-osmesa-shared], [dynamically load OSMesa OpenGL support [[default=yes]]]),
1483 , enable_osmesa_shared=yes) 1483 , enable_osmesa_shared=yes)
1484 if test "x$enable_osmesa_shared" = "xyes" -a "x$enable_atari_ldg" = "xyes"; then 1484 if test "x$enable_osmesa_shared" = "xyes" -a "x$enable_atari_ldg" = "xyes"; then
1485 # Dynamic linking 1485 # Dynamic linking
1486 if test "x$have_osmesa_hdr" = "xyes"; then 1486 if test "x$have_osmesa_hdr" = "xyes"; then
1487 AC_DEFINE(SDL_VIDEO_OPENGL_OSMESA_DYNAMIC) 1487 AC_DEFINE(SDL_VIDEO_OPENGL_OSMESA_DYNAMIC)
1493 dnl See if we can use the new unified event interface in Linux 2.4 1493 dnl See if we can use the new unified event interface in Linux 2.4
1494 CheckInputEvents() 1494 CheckInputEvents()
1495 { 1495 {
1496 dnl Check for Linux 2.4 unified input event interface support 1496 dnl Check for Linux 2.4 unified input event interface support
1497 AC_ARG_ENABLE(input-events, 1497 AC_ARG_ENABLE(input-events,
1498 AC_HELP_STRING([--enable-input-events], [use Linux 2.4 unified input interface [default=yes]]), 1498 AC_HELP_STRING([--enable-input-events], [use Linux 2.4 unified input interface [[default=yes]]]),
1499 , enable_input_events=yes) 1499 , enable_input_events=yes)
1500 if test x$enable_input_events = xyes; then 1500 if test x$enable_input_events = xyes; then
1501 AC_MSG_CHECKING(for Linux 2.4 unified input interface) 1501 AC_MSG_CHECKING(for Linux 2.4 unified input interface)
1502 use_input_events=no 1502 use_input_events=no
1503 AC_TRY_COMPILE([ 1503 AC_TRY_COMPILE([
1518 1518
1519 dnl See if we can use the Touchscreen input library 1519 dnl See if we can use the Touchscreen input library
1520 CheckTslib() 1520 CheckTslib()
1521 { 1521 {
1522 AC_ARG_ENABLE(input-tslib, 1522 AC_ARG_ENABLE(input-tslib,
1523 AC_HELP_STRING([--enable-input-tslib], [use the Touchscreen library for input [default=yes]]), 1523 AC_HELP_STRING([--enable-input-tslib], [use the Touchscreen library for input [[default=yes]]]),
1524 , enable_input_tslib=yes) 1524 , enable_input_tslib=yes)
1525 if test x$enable_input_tslib = xyes; then 1525 if test x$enable_input_tslib = xyes; then
1526 AC_MSG_CHECKING(for Touchscreen library support) 1526 AC_MSG_CHECKING(for Touchscreen library support)
1527 enable_input_tslib=no 1527 enable_input_tslib=no
1528 AC_TRY_COMPILE([ 1528 AC_TRY_COMPILE([
1542 dnl See if we can use GNU pth library for threads 1542 dnl See if we can use GNU pth library for threads
1543 CheckPTH() 1543 CheckPTH()
1544 { 1544 {
1545 dnl Check for pth support 1545 dnl Check for pth support
1546 AC_ARG_ENABLE(pth, 1546 AC_ARG_ENABLE(pth,
1547 AC_HELP_STRING([--enable-pth], [use GNU pth library for multi-threading [default=yes]]), 1547 AC_HELP_STRING([--enable-pth], [use GNU pth library for multi-threading [[default=yes]]]),
1548 , enable_pth=yes) 1548 , enable_pth=yes)
1549 if test x$enable_threads = xyes -a x$enable_pth = xyes; then 1549 if test x$enable_threads = xyes -a x$enable_pth = xyes; then
1550 AC_PATH_PROG(PTH_CONFIG, pth-config, no) 1550 AC_PATH_PROG(PTH_CONFIG, pth-config, no)
1551 if test "$PTH_CONFIG" = "no"; then 1551 if test "$PTH_CONFIG" = "no"; then
1552 use_pth=no 1552 use_pth=no
1569 dnl See what type of thread model to use on Linux and Solaris 1569 dnl See what type of thread model to use on Linux and Solaris
1570 CheckPTHREAD() 1570 CheckPTHREAD()
1571 { 1571 {
1572 dnl Check for pthread support 1572 dnl Check for pthread support
1573 AC_ARG_ENABLE(pthreads, 1573 AC_ARG_ENABLE(pthreads,
1574 AC_HELP_STRING([--enable-pthreads], [use POSIX threads for multi-threading [default=yes]]), 1574 AC_HELP_STRING([--enable-pthreads], [use POSIX threads for multi-threading [[default=yes]]]),
1575 , enable_pthreads=yes) 1575 , enable_pthreads=yes)
1576 dnl This is used on Linux for glibc binary compatibility (Doh!) 1576 dnl This is used on Linux for glibc binary compatibility (Doh!)
1577 AC_ARG_ENABLE(pthread-sem, 1577 AC_ARG_ENABLE(pthread-sem,
1578 AC_HELP_STRING([--enable-pthread-sem], [use pthread semaphores [default=yes]]), 1578 AC_HELP_STRING([--enable-pthread-sem], [use pthread semaphores [[default=yes]]]),
1579 , enable_pthread_sem=yes) 1579 , enable_pthread_sem=yes)
1580 case "$host" in 1580 case "$host" in
1581 *-*-linux*) 1581 *-*-linux*)
1582 pthread_cflags="-D_REENTRANT" 1582 pthread_cflags="-D_REENTRANT"
1583 pthread_lib="-lpthread" 1583 pthread_lib="-lpthread"
1761 ]) 1761 ])
1762 fi 1762 fi
1763 1763
1764 dnl See if the user wants to redirect standard output to files 1764 dnl See if the user wants to redirect standard output to files
1765 AC_ARG_ENABLE(stdio-redirect, 1765 AC_ARG_ENABLE(stdio-redirect,
1766 AC_HELP_STRING([--enable-stdio-redirect], [Redirect STDIO to files on Win32 [default=yes]]), 1766 AC_HELP_STRING([--enable-stdio-redirect], [Redirect STDIO to files on Win32 [[default=yes]]]),
1767 , enable_stdio_redirect=yes) 1767 , enable_stdio_redirect=yes)
1768 if test x$enable_stdio_redirect != xyes; then 1768 if test x$enable_stdio_redirect != xyes; then
1769 EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_STDIO_REDIRECT" 1769 EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_STDIO_REDIRECT"
1770 fi 1770 fi
1771 1771
1779 1779
1780 dnl Find the DirectX includes and libraries 1780 dnl Find the DirectX includes and libraries
1781 CheckDIRECTX() 1781 CheckDIRECTX()
1782 { 1782 {
1783 AC_ARG_ENABLE(directx, 1783 AC_ARG_ENABLE(directx,
1784 AC_HELP_STRING([--enable-directx], [use DirectX for Win32 audio/video [default=yes]]), 1784 AC_HELP_STRING([--enable-directx], [use DirectX for Win32 audio/video [[default=yes]]]),
1785 , enable_directx=yes) 1785 , enable_directx=yes)
1786 if test x$enable_directx = xyes; then 1786 if test x$enable_directx = xyes; then
1787 have_directx=no 1787 have_directx=no
1788 AC_CHECK_HEADER(ddraw.h, have_ddraw=yes) 1788 AC_CHECK_HEADER(ddraw.h, have_ddraw=yes)
1789 AC_CHECK_HEADER(dsound.h, have_dsound=yes) 1789 AC_CHECK_HEADER(dsound.h, have_dsound=yes)
1801 1801
1802 dnl Check for the dlfcn.h interface for dynamically loading objects 1802 dnl Check for the dlfcn.h interface for dynamically loading objects
1803 CheckDLOPEN() 1803 CheckDLOPEN()
1804 { 1804 {
1805 AC_ARG_ENABLE(sdl-dlopen, 1805 AC_ARG_ENABLE(sdl-dlopen,
1806 AC_HELP_STRING([--enable-sdl-dlopen], [use dlopen for shared object loading [default=yes]]), 1806 AC_HELP_STRING([--enable-sdl-dlopen], [use dlopen for shared object loading [[default=yes]]]),
1807 , enable_sdl_dlopen=yes) 1807 , enable_sdl_dlopen=yes)
1808 if test x$enable_sdl_dlopen = xyes; then 1808 if test x$enable_sdl_dlopen = xyes; then
1809 AC_MSG_CHECKING(for dlopen) 1809 AC_MSG_CHECKING(for dlopen)
1810 have_dlopen=no 1810 have_dlopen=no
1811 AC_TRY_COMPILE([ 1811 AC_TRY_COMPILE([
1833 1833
1834 dnl Set up the Atari LDG (shared object loader) 1834 dnl Set up the Atari LDG (shared object loader)
1835 CheckAtariLdg() 1835 CheckAtariLdg()
1836 { 1836 {
1837 AC_ARG_ENABLE(atari-ldg, 1837 AC_ARG_ENABLE(atari-ldg,
1838 AC_HELP_STRING([--enable-atari-ldg], [use Atari LDG for shared object loading [default=yes]]), 1838 AC_HELP_STRING([--enable-atari-ldg], [use Atari LDG for shared object loading [[default=yes]]]),
1839 , enable_atari_ldg=yes) 1839 , enable_atari_ldg=yes)
1840 if test x$video_gem = xyes -a x$enable_atari_ldg = xyes; then 1840 if test x$video_gem = xyes -a x$enable_atari_ldg = xyes; then
1841 AC_CHECK_HEADER(ldg.h, have_ldg_hdr=yes) 1841 AC_CHECK_HEADER(ldg.h, have_ldg_hdr=yes)
1842 AC_CHECK_LIB(ldg, ldg_open, have_ldg_lib=yes, have_ldg_lib=no, -lgem) 1842 AC_CHECK_LIB(ldg, ldg_open, have_ldg_lib=yes, have_ldg_lib=no, -lgem)
1843 if test x$have_ldg_hdr = xyes -a x$have_ldg_lib = xyes; then 1843 if test x$have_ldg_hdr = xyes -a x$have_ldg_lib = xyes; then
1983 1983
1984 dnl Check for clock_gettime() 1984 dnl Check for clock_gettime()
1985 CheckClockGettime() 1985 CheckClockGettime()
1986 { 1986 {
1987 AC_ARG_ENABLE(clock_gettime, 1987 AC_ARG_ENABLE(clock_gettime,
1988 AC_HELP_STRING([--enable-clock_gettime], [use clock_gettime() instead of gettimeofday() on UNIX [default=no]]), 1988 AC_HELP_STRING([--enable-clock_gettime], [use clock_gettime() instead of gettimeofday() on UNIX [[default=no]]]),
1989 , enable_clock_gettime=no) 1989 , enable_clock_gettime=no)
1990 if test x$enable_clock_gettime = xyes; then 1990 if test x$enable_clock_gettime = xyes; then
1991 AC_CHECK_LIB(rt, clock_gettime, have_clock_gettime=yes) 1991 AC_CHECK_LIB(rt, clock_gettime, have_clock_gettime=yes)
1992 if test x$have_clock_gettime = xyes; then 1992 if test x$have_clock_gettime = xyes; then
1993 AC_DEFINE(HAVE_CLOCK_GETTIME) 1993 AC_DEFINE(HAVE_CLOCK_GETTIME)
2007 2007
2008 dnl Check if we want to use RPATH 2008 dnl Check if we want to use RPATH
2009 CheckRPATH() 2009 CheckRPATH()
2010 { 2010 {
2011 AC_ARG_ENABLE(rpath, 2011 AC_ARG_ENABLE(rpath,
2012 AC_HELP_STRING([--enable-rpath], [use an rpath when linking SDL [default=yes]]), 2012 AC_HELP_STRING([--enable-rpath], [use an rpath when linking SDL [[default=yes]]]),
2013 , enable_rpath=yes) 2013 , enable_rpath=yes)
2014 } 2014 }
2015 2015
2016 dnl Set up the configuration based on the host platform! 2016 dnl Set up the configuration based on the host platform!
2017 case "$host" in 2017 case "$host" in