configure.in
changeset 7977 5272ae8fccd7
parent 7811 9dfcc6bad831
child 7981 6d538bc1b395
     1.1 --- a/configure.in	Wed Nov 13 21:50:59 2013 -0800
     1.2 +++ b/configure.in	Wed Nov 13 22:35:26 2013 -0500
     1.3 @@ -1940,6 +1940,10 @@
     1.4              pthread_cflags="-D_REENTRANT"
     1.5              pthread_lib="-L/usr/lib -lpthread"
     1.6              ;;
     1.7 +        *-*-haiku*)
     1.8 +            pthread_cflags="-D_REENTRANT"
     1.9 +            pthread_lib=""
    1.10 +            ;;
    1.11          *)
    1.12              pthread_cflags="-D_REENTRANT"
    1.13              pthread_lib="-lpthread"
    1.14 @@ -2613,7 +2617,11 @@
    1.15              SDL_LIBS="-lcygwin $SDL_LIBS"
    1.16          fi
    1.17          ;;
    1.18 -    *-*-beos* | *-*-haiku*)
    1.19 +
    1.20 +    dnl BeOS support removed after SDL 2.0.1. Haiku still works.  --ryan.
    1.21 +    dnl *-*-beos*)
    1.22 +
    1.23 +    *-*-haiku*)
    1.24          ARCH=beos
    1.25          ac_default_prefix=/boot/common
    1.26          CheckDummyVideo
    1.27 @@ -2621,6 +2629,7 @@
    1.28          CheckDummyAudio
    1.29          CheckBWINDOW
    1.30          CheckBeGL
    1.31 +        CheckPTHREAD
    1.32          # Set up files for the audio library
    1.33          if test x$enable_audio = xyes; then
    1.34              AC_DEFINE(SDL_AUDIO_DRIVER_BEOSAUDIO, 1, [ ])
    1.35 @@ -2633,14 +2642,6 @@
    1.36              SOURCES="$SOURCES $srcdir/src/joystick/beos/*.cc"
    1.37              have_joystick=yes
    1.38          fi
    1.39 -        # Set up files for the thread library
    1.40 -        if test x$enable_threads = xyes; then
    1.41 -            AC_DEFINE(SDL_THREAD_BEOS, 1, [ ])
    1.42 -            SOURCES="$SOURCES $srcdir/src/thread/beos/*.c"
    1.43 -            SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
    1.44 -            SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
    1.45 -            have_threads=yes
    1.46 -        fi
    1.47          # Set up files for the timer library
    1.48          if test x$enable_timers = xyes; then
    1.49              AC_DEFINE(SDL_TIMER_BEOS, 1, [ ])