configure.in
changeset 651 35ff0890ac4e
parent 648 12a21d82a060
child 654 e92bcf2573cb
     1.1 --- a/configure.in	Sat Jul 12 13:30:30 2003 +0000
     1.2 +++ b/configure.in	Wed Jul 16 11:54:13 2003 +0000
     1.3 @@ -380,7 +380,7 @@
     1.4              AC_MSG_RESULT($audio_arts)
     1.5              if test x$audio_arts = xyes; then
     1.6                  AC_ARG_ENABLE(arts-shared,
     1.7 -[  --enable-arts-shared     dynamically load aRts audio support [default=no]],
     1.8 +[  --enable-arts-shared    dynamically load aRts audio support [default=no]],
     1.9                                , enable_arts_shared=no)
    1.10                  arts_lib_spec=`echo $ARTSC_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libartsc.so.*/'`
    1.11                  arts_lib=`ls $arts_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'`
    1.12 @@ -408,7 +408,7 @@
    1.13  CheckNAS()
    1.14  {
    1.15      AC_ARG_ENABLE(nas,
    1.16 -[  --enable-nas                  support the NAS audio API [default=yes]],
    1.17 +[  --enable-nas            support the NAS audio API [default=yes]],
    1.18                    , enable_nas=yes)
    1.19      if test x$enable_audio = xyes -a x$enable_nas = xyes; then
    1.20          AC_MSG_CHECKING(for NAS audio support)
    1.21 @@ -438,7 +438,7 @@
    1.22  CheckDiskAudio()
    1.23  {
    1.24      AC_ARG_ENABLE(diskaudio,
    1.25 -[  --enable-diskaudio            support the disk writer audio driver [default=yes]],
    1.26 +[  --enable-diskaudio      support the disk writer audio driver [default=yes]],
    1.27                    , enable_diskaudio=yes)
    1.28      if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
    1.29          CFLAGS="$CFLAGS -DDISKAUD_SUPPORT"
    1.30 @@ -776,7 +776,7 @@
    1.31  CheckDirectFB()
    1.32  {
    1.33      AC_ARG_ENABLE(video-directfb,
    1.34 -[  --enable-video-directfb    use DirectFB video driver [default=yes]],
    1.35 +[  --enable-video-directfb use DirectFB video driver [default=yes]],
    1.36                    , enable_video_directfb=yes)
    1.37      if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
    1.38          video_directfb=no
    1.39 @@ -899,7 +899,7 @@
    1.40  CheckVGL()
    1.41  {
    1.42      AC_ARG_ENABLE(video-vgl,
    1.43 -[  --enable-video-vgl     use VGL video driver [default=no]],
    1.44 +[  --enable-video-vgl      use VGL video driver [default=no]],
    1.45                    , enable_video_vgl=no)
    1.46      if test x$enable_video = xyes -a x$enable_video_vgl = xyes; then
    1.47          AC_MSG_CHECKING(for libVGL support)
    1.48 @@ -1577,6 +1577,22 @@
    1.49      fi
    1.50  }
    1.51  
    1.52 +dnl Set up the Atari LDG (shared object loader)
    1.53 +CheckAtariLdg()
    1.54 +{
    1.55 +    AC_ARG_ENABLE(atari-ldg,
    1.56 +[  --enable-atari-ldg      use Atari LDG for shared object loading [default=yes]],
    1.57 +                  , enable_atari_ldg=yes)
    1.58 +    if test x$video_gem = xyes -a x$enable_atari_ldg = xyes; then
    1.59 +        AC_CHECK_HEADER(ldg.h, have_ldg_hdr=yes)
    1.60 +        AC_CHECK_LIB(ldg, ldg_open, have_ldg_lib=yes, have_ldg_lib=no, -lgem)
    1.61 +        if test x$have_ldg_hdr = xyes -a x$have_ldg_lib = xyes; then
    1.62 +            CFLAGS="$CFLAGS -DENABLE_LDG"
    1.63 +            SYSTEM_LIBS="$SYSTEM_LIBS -lldg"
    1.64 +        fi
    1.65 +    fi
    1.66 +}
    1.67 +
    1.68  dnl Check for the usbhid(3) library on *BSD
    1.69  CheckUSBHID()
    1.70  {
    1.71 @@ -2429,6 +2445,7 @@
    1.72          CheckAtariXbiosVideo
    1.73          CheckAtariGemVideo
    1.74          CheckAtariAudio
    1.75 +        CheckAtariLdg
    1.76          CheckPTH
    1.77          # Set up files for the main() stub
    1.78          COPY_ARCH_SRC(src/main, linux, SDL_main.c)