configure.in
changeset 955 d74fbf56f2f6
parent 948 ac488ad4ef1d
child 973 795ac5fbe260
     1.1 --- a/configure.in	Sat Sep 11 18:00:41 2004 +0000
     1.2 +++ b/configure.in	Fri Sep 17 13:20:10 2004 +0000
     1.3 @@ -2605,20 +2605,45 @@
     1.4          ;;
     1.5      *-*-riscos)
     1.6          ARCH=riscos
     1.7 -        JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS riscos"
     1.8 -        JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS riscos/libjoystick_riscos.la"
     1.9 -        COPY_ARCH_SRC(src/timer, riscos, SDL_systimer.c)
    1.10 -        VIDEO_SUBDIRS="$VIDEO_SUBDIRS riscos"
    1.11 -        VIDEO_DRIVERS="$VIDEO_DRIVERS riscos/libvideo_riscos.la"
    1.12 -        AUDIO_SUBDIRS="$AUDIO_SUBDIRS riscos"
    1.13 -        AUDIO_DRIVERS="$AUDIO_DRIVERS riscos/libaudio_riscos.la"
    1.14 -
    1.15 +        # Set up files for the video library
    1.16 +        if test x$enable_video = xyes; then
    1.17 +            VIDEO_SUBDIRS="$VIDEO_SUBDIRS riscos"
    1.18 +            VIDEO_DRIVERS="$VIDEO_DRIVERS riscos/libvideo_riscos.la"
    1.19 +        fi
    1.20 +        # Set up files for the audio library
    1.21 +        if test x$enable_audio = xyes; then
    1.22 +            AUDIO_SUBDIRS="$AUDIO_SUBDIRS riscos"
    1.23 +            AUDIO_DRIVERS="$AUDIO_DRIVERS riscos/libaudio_riscos.la"
    1.24 +        fi
    1.25 +        # Set up files for the joystick library
    1.26 +        if test x$enable_joystick = xyes; then
    1.27 +            JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS riscos"
    1.28 +            JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS riscos/libjoystick_riscos.la"
    1.29 +        fi
    1.30 +        # Set up files for the cdrom library
    1.31          if test x$enable_cdrom = xyes; then
    1.32              CDROM_SUBDIRS="$CDROM_SUBDIRS dummy"
    1.33              CDROM_DRIVERS="$CDROM_DRIVERS dummy/libcdrom_dummy.la"
    1.34          fi
    1.35 +        # Set up files for the thread library
    1.36 +        if test x$enable_threads = xyes; then
    1.37 +            COPY_ARCH_SRC(src/thread, riscos, SDL_systhread.c)
    1.38 +            COPY_ARCH_SRC(src/thread, riscos, SDL_systhread_c.h)
    1.39 +            COPY_ARCH_SRC(src/thread, riscos, SDL_sysmutex.c)
    1.40 +            COPY_ARCH_SRC(src/thread, riscos, SDL_sysmutex_c.h)
    1.41 +            COPY_ARCH_SRC(src/thread, riscos, SDL_syssem.c)
    1.42 +            COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
    1.43 +            COPY_ARCH_SRC(src/thread, riscos, SDL_syscond.c)
    1.44 +            COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
    1.45 +        else
    1.46 +            CFLAGS="$CFLAGS -DDISABLE_THREADS"
    1.47 +        fi
    1.48 +        # Set up files for the timer library
    1.49 +        if test x$enable_timers = xyes; then
    1.50 +            COPY_ARCH_SRC(src/timer, riscos, SDL_systimer.c)
    1.51 +        fi
    1.52  
    1.53 -        CFLAGS="$CFLAGS -DDISABLE_THREADS -DENABLE_RISCOS -DDRENDERER_SUPPORT"
    1.54 +        CFLAGS="$CFLAGS -DENABLE_RISCOS -DDRENDERER_SUPPORT"
    1.55  
    1.56          SYSTEM_LIBS="$SYSTEM_LIBS -ljpeg -ltiff -lpng -lz"
    1.57          ;;