Mercurial > sdl-ios-xcode
comparison configure.in @ 651:35ff0890ac4e
pmandin: Added Atari LDG shared object loader
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Wed, 16 Jul 2003 11:54:13 +0000 |
parents | 12a21d82a060 |
children | e92bcf2573cb |
comparison
equal
deleted
inserted
replaced
650:fe445b59d307 | 651:35ff0890ac4e |
---|---|
378 ]) | 378 ]) |
379 CFLAGS="$save_CFLAGS" | 379 CFLAGS="$save_CFLAGS" |
380 AC_MSG_RESULT($audio_arts) | 380 AC_MSG_RESULT($audio_arts) |
381 if test x$audio_arts = xyes; then | 381 if test x$audio_arts = xyes; then |
382 AC_ARG_ENABLE(arts-shared, | 382 AC_ARG_ENABLE(arts-shared, |
383 [ --enable-arts-shared dynamically load aRts audio support [default=no]], | 383 [ --enable-arts-shared dynamically load aRts audio support [default=no]], |
384 , enable_arts_shared=no) | 384 , enable_arts_shared=no) |
385 arts_lib_spec=`echo $ARTSC_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libartsc.so.*/'` | 385 arts_lib_spec=`echo $ARTSC_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libartsc.so.*/'` |
386 arts_lib=`ls $arts_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'` | 386 arts_lib=`ls $arts_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'` |
387 echo "-- $arts_lib_spec -> $arts_lib" | 387 echo "-- $arts_lib_spec -> $arts_lib" |
388 if test x$enable_dlopen != xyes && \ | 388 if test x$enable_dlopen != xyes && \ |
406 | 406 |
407 dnl See if the NAS audio interface is supported | 407 dnl See if the NAS audio interface is supported |
408 CheckNAS() | 408 CheckNAS() |
409 { | 409 { |
410 AC_ARG_ENABLE(nas, | 410 AC_ARG_ENABLE(nas, |
411 [ --enable-nas support the NAS audio API [default=yes]], | 411 [ --enable-nas support the NAS audio API [default=yes]], |
412 , enable_nas=yes) | 412 , enable_nas=yes) |
413 if test x$enable_audio = xyes -a x$enable_nas = xyes; then | 413 if test x$enable_audio = xyes -a x$enable_nas = xyes; then |
414 AC_MSG_CHECKING(for NAS audio support) | 414 AC_MSG_CHECKING(for NAS audio support) |
415 have_nas=no | 415 have_nas=no |
416 if test -r /usr/X11R6/include/audio/audiolib.h; then | 416 if test -r /usr/X11R6/include/audio/audiolib.h; then |
436 | 436 |
437 dnl rcg07142001 See if the user wants the disk writer audio driver... | 437 dnl rcg07142001 See if the user wants the disk writer audio driver... |
438 CheckDiskAudio() | 438 CheckDiskAudio() |
439 { | 439 { |
440 AC_ARG_ENABLE(diskaudio, | 440 AC_ARG_ENABLE(diskaudio, |
441 [ --enable-diskaudio support the disk writer audio driver [default=yes]], | 441 [ --enable-diskaudio support the disk writer audio driver [default=yes]], |
442 , enable_diskaudio=yes) | 442 , enable_diskaudio=yes) |
443 if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then | 443 if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then |
444 CFLAGS="$CFLAGS -DDISKAUD_SUPPORT" | 444 CFLAGS="$CFLAGS -DDISKAUD_SUPPORT" |
445 AUDIO_SUBDIRS="$AUDIO_SUBDIRS disk" | 445 AUDIO_SUBDIRS="$AUDIO_SUBDIRS disk" |
446 AUDIO_DRIVERS="$AUDIO_DRIVERS disk/libaudio_disk.la" | 446 AUDIO_DRIVERS="$AUDIO_DRIVERS disk/libaudio_disk.la" |
774 | 774 |
775 dnl Find DirectFB | 775 dnl Find DirectFB |
776 CheckDirectFB() | 776 CheckDirectFB() |
777 { | 777 { |
778 AC_ARG_ENABLE(video-directfb, | 778 AC_ARG_ENABLE(video-directfb, |
779 [ --enable-video-directfb use DirectFB video driver [default=yes]], | 779 [ --enable-video-directfb use DirectFB video driver [default=yes]], |
780 , enable_video_directfb=yes) | 780 , enable_video_directfb=yes) |
781 if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then | 781 if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then |
782 video_directfb=no | 782 video_directfb=no |
783 | 783 |
784 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) | 784 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
897 | 897 |
898 dnl Find the VGL includes and libraries | 898 dnl Find the VGL includes and libraries |
899 CheckVGL() | 899 CheckVGL() |
900 { | 900 { |
901 AC_ARG_ENABLE(video-vgl, | 901 AC_ARG_ENABLE(video-vgl, |
902 [ --enable-video-vgl use VGL video driver [default=no]], | 902 [ --enable-video-vgl use VGL video driver [default=no]], |
903 , enable_video_vgl=no) | 903 , enable_video_vgl=no) |
904 if test x$enable_video = xyes -a x$enable_video_vgl = xyes; then | 904 if test x$enable_video = xyes -a x$enable_video_vgl = xyes; then |
905 AC_MSG_CHECKING(for libVGL support) | 905 AC_MSG_CHECKING(for libVGL support) |
906 video_vgl=no | 906 video_vgl=no |
907 AC_TRY_COMPILE([ | 907 AC_TRY_COMPILE([ |
1575 AC_CHECK_LIB(dl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -ldl", AC_CHECK_LIB(ltdl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -lltdl")) | 1575 AC_CHECK_LIB(dl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -ldl", AC_CHECK_LIB(ltdl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -lltdl")) |
1576 fi | 1576 fi |
1577 fi | 1577 fi |
1578 } | 1578 } |
1579 | 1579 |
1580 dnl Set up the Atari LDG (shared object loader) | |
1581 CheckAtariLdg() | |
1582 { | |
1583 AC_ARG_ENABLE(atari-ldg, | |
1584 [ --enable-atari-ldg use Atari LDG for shared object loading [default=yes]], | |
1585 , enable_atari_ldg=yes) | |
1586 if test x$video_gem = xyes -a x$enable_atari_ldg = xyes; then | |
1587 AC_CHECK_HEADER(ldg.h, have_ldg_hdr=yes) | |
1588 AC_CHECK_LIB(ldg, ldg_open, have_ldg_lib=yes, have_ldg_lib=no, -lgem) | |
1589 if test x$have_ldg_hdr = xyes -a x$have_ldg_lib = xyes; then | |
1590 CFLAGS="$CFLAGS -DENABLE_LDG" | |
1591 SYSTEM_LIBS="$SYSTEM_LIBS -lldg" | |
1592 fi | |
1593 fi | |
1594 } | |
1595 | |
1580 dnl Check for the usbhid(3) library on *BSD | 1596 dnl Check for the usbhid(3) library on *BSD |
1581 CheckUSBHID() | 1597 CheckUSBHID() |
1582 { | 1598 { |
1583 if test x$enable_joystick = xyes; then | 1599 if test x$enable_joystick = xyes; then |
1584 have_libusbhid=no | 1600 have_libusbhid=no |
2427 CheckDiskAudio | 2443 CheckDiskAudio |
2428 CheckAtariBiosEvent | 2444 CheckAtariBiosEvent |
2429 CheckAtariXbiosVideo | 2445 CheckAtariXbiosVideo |
2430 CheckAtariGemVideo | 2446 CheckAtariGemVideo |
2431 CheckAtariAudio | 2447 CheckAtariAudio |
2448 CheckAtariLdg | |
2432 CheckPTH | 2449 CheckPTH |
2433 # Set up files for the main() stub | 2450 # Set up files for the main() stub |
2434 COPY_ARCH_SRC(src/main, linux, SDL_main.c) | 2451 COPY_ARCH_SRC(src/main, linux, SDL_main.c) |
2435 # Set up files for the audio library | 2452 # Set up files for the audio library |
2436 if test x$enable_threads = xyes -a x$enable_pth = xyes; then | 2453 if test x$enable_threads = xyes -a x$enable_pth = xyes; then |