configure.in
changeset 281 c5010ab8ba35
parent 279 04351f59b051
child 286 3ea69fd0b095
     1.1 --- a/configure.in	Thu Feb 14 21:26:42 2002 +0000
     1.2 +++ b/configure.in	Sun Feb 17 19:54:28 2002 +0000
     1.3 @@ -909,6 +909,49 @@
     1.4      fi
     1.5  }
     1.6  
     1.7 +dnl Set up the Atari Xbios driver
     1.8 +CheckAtariXbiosVideo()
     1.9 +{
    1.10 +    AC_ARG_ENABLE(xbios,
    1.11 +[  --enable-video-xbios    use Atari Xbios video driver [default=yes]],
    1.12 +                  , enable_video_xbios=yes)
    1.13 +    video_xbios=no
    1.14 +    if test x$enable_video = xyes -a x$enable_video_xbios = xyes; then
    1.15 +        video_xbios=yes
    1.16 +        CFLAGS="$CFLAGS -DENABLE_XBIOS"
    1.17 +        VIDEO_SUBDIRS="$VIDEO_SUBDIRS xbios"
    1.18 +        VIDEO_DRIVERS="$VIDEO_DRIVERS xbios/libvideo_xbios.la"
    1.19 +    fi
    1.20 +}
    1.21 +
    1.22 +dnl Set up the Atari Gem driver
    1.23 +CheckAtariGemVideo()
    1.24 +{
    1.25 +    AC_ARG_ENABLE(gem,
    1.26 +[  --enable-video-gem      use Atari Gem video driver [default=yes]],
    1.27 +                  , enable_video_gem=yes)
    1.28 +    if test x$enable_video = xyes -a x$enable_video_gem = xyes; then
    1.29 +        video_gem=no
    1.30 +        AC_CHECK_HEADER(gem.h, have_gem_hdr=yes)
    1.31 +        AC_CHECK_LIB(gem, appl_init, have_gem_lib=yes)
    1.32 +        if test x$have_gem_hdr = xyes -a x$have_gem_lib = xyes; then
    1.33 +            video_gem=yes
    1.34 +            CFLAGS="$CFLAGS -DENABLE_GEM"
    1.35 +            SYSTEM_LIBS="$SYSTEM_LIBS -lgem"
    1.36 +            VIDEO_SUBDIRS="$VIDEO_SUBDIRS gem"
    1.37 +            VIDEO_DRIVERS="$VIDEO_DRIVERS gem/libvideo_gem.la"
    1.38 +        fi
    1.39 +    fi
    1.40 +}
    1.41 +
    1.42 +dnl Set up the Atari Bios keyboard driver
    1.43 +CheckAtariBiosEvent()
    1.44 +{
    1.45 +    CFLAGS="$CFLAGS -I\$(top_srcdir)/src/video/ataricommon"
    1.46 +    VIDEO_SUBDIRS="$VIDEO_SUBDIRS ataricommon"
    1.47 +    VIDEO_DRIVERS="$VIDEO_DRIVERS ataricommon/libvideo_ataricommon.la"
    1.48 +}
    1.49 +
    1.50  dnl rcg04172001 Set up the Null video driver.
    1.51  CheckDummyVideo()
    1.52  {
    1.53 @@ -2165,6 +2208,57 @@
    1.54          SDL_CFLAGS="$SDL_CFLAGS -F/System/Library/Frameworks/Carbon.framework -F/System/Library/Frameworks/Cocoa.framework"
    1.55          SDL_LIBS="-lSDLmain $SDL_LIBS -framework Carbon -framework Cocoa"
    1.56          ;;
    1.57 +    *-*-mint*)
    1.58 +        ARCH=mint
    1.59 +        CheckDummyVideo
    1.60 +        CheckDiskAudio
    1.61 +        CheckAtariBiosEvent
    1.62 +        CheckAtariXbiosVideo
    1.63 +        CheckAtariGemVideo
    1.64 +        CheckPTH
    1.65 +        # Set up files for the main() stub
    1.66 +        COPY_ARCH_SRC(src/main, linux, SDL_main.c)
    1.67 +        # Set up files for the audio library
    1.68 +        if test x$enable_audio = xyes; then
    1.69 +            AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
    1.70 +            AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
    1.71 +        fi
    1.72 +        # Set up files for the joystick library
    1.73 +        # (No joystick support yet)
    1.74 +        if test x$enable_joystick = xyes; then
    1.75 +            JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy"
    1.76 +            JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la"
    1.77 +        fi
    1.78 +        # Set up files for the cdrom library
    1.79 +        if test x$enable_cdrom = xyes; then
    1.80 +            CDROM_SUBDIRS="$CDROM_SUBDIRS dummy"
    1.81 +            CDROM_DRIVERS="$CDROM_DRIVERS dummy/libcdrom_dummy.la"
    1.82 +        fi
    1.83 +        # Set up files for the thread library
    1.84 +        if test x$enable_threads = xyes; then
    1.85 +            if test x$enable_pth = xyes; then
    1.86 +                COPY_ARCH_SRC(src/thread, pth, SDL_systhread.c)
    1.87 +                COPY_ARCH_SRC(src/thread, pth, SDL_systhread_c.h)
    1.88 +            else
    1.89 +                COPY_ARCH_SRC(src/thread, generic, SDL_systhread.c)
    1.90 +                COPY_ARCH_SRC(src/thread, generic, SDL_systhread_c.h)
    1.91 +            fi
    1.92 +            COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex.c)
    1.93 +            COPY_ARCH_SRC(src/thread, generic, SDL_sysmutex_c.h)
    1.94 +            COPY_ARCH_SRC(src/thread, linux, SDL_syssem.c)
    1.95 +            COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
    1.96 +            COPY_ARCH_SRC(src/thread, generic, SDL_syscond.c)
    1.97 +            COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
    1.98 +        fi
    1.99 +        # Set up files for the timer library
   1.100 +        if test x$enable_timers = xyes; then
   1.101 +            COPY_ARCH_SRC(src/timer, mint, SDL_systimer.c)
   1.102 +            COPY_ARCH_SRC(src/timer, mint, SDL_vbltimer.S)
   1.103 +            COPY_ARCH_SRC(src/timer, mint, SDL_vbltimer_s.h)
   1.104 +        fi
   1.105 +        # MiNT does not define "unix"
   1.106 +        CFLAGS="$CFLAGS -Dunix"
   1.107 +        ;;
   1.108      *)
   1.109          AC_MSG_ERROR(Unsupported target:  Please add to configure.in)
   1.110          ;;
   1.111 @@ -2185,6 +2279,7 @@
   1.112  AM_CONDITIONAL(TARGET_MACOS, test $ARCH = macos)
   1.113  AM_CONDITIONAL(TARGET_MACOSX, test $ARCH = macosx)
   1.114  AM_CONDITIONAL(TARGET_QNX, test $ARCH = qnx)
   1.115 +AM_CONDITIONAL(TARGET_MINT, test $ARCH = mint)
   1.116  
   1.117  # Set conditional variables for shared and static library selection.
   1.118  # These are not used in any Makefile.am but in sdl-config.in.
   1.119 @@ -2318,10 +2413,14 @@
   1.120  src/video/photon/Makefile
   1.121  src/video/epoc/Makefile
   1.122  src/video/dummy/Makefile
   1.123 +src/video/ataricommon/Makefile
   1.124 +src/video/xbios/Makefile
   1.125 +src/video/gem/Makefile
   1.126  src/events/Makefile
   1.127  src/joystick/Makefile
   1.128  src/joystick/amigaos/Makefile
   1.129  src/joystick/beos/Makefile
   1.130 +src/joystick/bsd/Makefile
   1.131  src/joystick/darwin/Makefile
   1.132  src/joystick/dummy/Makefile
   1.133  src/joystick/linux/Makefile