configure.in
changeset 955 d74fbf56f2f6
parent 948 ac488ad4ef1d
child 973 795ac5fbe260
--- a/configure.in	Sat Sep 11 18:00:41 2004 +0000
+++ b/configure.in	Fri Sep 17 13:20:10 2004 +0000
@@ -2605,20 +2605,45 @@
         ;;
     *-*-riscos)
         ARCH=riscos
-        JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS riscos"
-        JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS riscos/libjoystick_riscos.la"
-        COPY_ARCH_SRC(src/timer, riscos, SDL_systimer.c)
-        VIDEO_SUBDIRS="$VIDEO_SUBDIRS riscos"
-        VIDEO_DRIVERS="$VIDEO_DRIVERS riscos/libvideo_riscos.la"
-        AUDIO_SUBDIRS="$AUDIO_SUBDIRS riscos"
-        AUDIO_DRIVERS="$AUDIO_DRIVERS riscos/libaudio_riscos.la"
-
+        # Set up files for the video library
+        if test x$enable_video = xyes; then
+            VIDEO_SUBDIRS="$VIDEO_SUBDIRS riscos"
+            VIDEO_DRIVERS="$VIDEO_DRIVERS riscos/libvideo_riscos.la"
+        fi
+        # Set up files for the audio library
+        if test x$enable_audio = xyes; then
+            AUDIO_SUBDIRS="$AUDIO_SUBDIRS riscos"
+            AUDIO_DRIVERS="$AUDIO_DRIVERS riscos/libaudio_riscos.la"
+        fi
+        # Set up files for the joystick library
+        if test x$enable_joystick = xyes; then
+            JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS riscos"
+            JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS riscos/libjoystick_riscos.la"
+        fi
+        # Set up files for the cdrom library
         if test x$enable_cdrom = xyes; then
             CDROM_SUBDIRS="$CDROM_SUBDIRS dummy"
             CDROM_DRIVERS="$CDROM_DRIVERS dummy/libcdrom_dummy.la"
         fi
+        # Set up files for the thread library
+        if test x$enable_threads = xyes; then
+            COPY_ARCH_SRC(src/thread, riscos, SDL_systhread.c)
+            COPY_ARCH_SRC(src/thread, riscos, SDL_systhread_c.h)
+            COPY_ARCH_SRC(src/thread, riscos, SDL_sysmutex.c)
+            COPY_ARCH_SRC(src/thread, riscos, SDL_sysmutex_c.h)
+            COPY_ARCH_SRC(src/thread, riscos, SDL_syssem.c)
+            COPY_ARCH_SRC(src/thread, generic, SDL_syssem_c.h)
+            COPY_ARCH_SRC(src/thread, riscos, SDL_syscond.c)
+            COPY_ARCH_SRC(src/thread, generic, SDL_syscond_c.h)
+        else
+            CFLAGS="$CFLAGS -DDISABLE_THREADS"
+        fi
+        # Set up files for the timer library
+        if test x$enable_timers = xyes; then
+            COPY_ARCH_SRC(src/timer, riscos, SDL_systimer.c)
+        fi
 
-        CFLAGS="$CFLAGS -DDISABLE_THREADS -DENABLE_RISCOS -DDRENDERER_SUPPORT"
+        CFLAGS="$CFLAGS -DENABLE_RISCOS -DDRENDERER_SUPPORT"
 
         SYSTEM_LIBS="$SYSTEM_LIBS -ljpeg -ltiff -lpng -lz"
         ;;