configure
changeset 11134 e22ab7022677
parent 11090 d85832ad10c3
child 11138 c936a84f05ba
equal deleted inserted replaced
11133:f35f1d3141f8 11134:e22ab7022677
 21326         have_video=yes
 21326         have_video=yes
 21327         SUMMARY_video="${SUMMARY_video} dummy"
 21327         SUMMARY_video="${SUMMARY_video} dummy"
 21328     fi
 21328     fi
 21329 }
 21329 }
 21330 
 21330 
       
 21331 CheckQNXVideo()
       
 21332 {
       
 21333     if test x$enable_video = xyes; then
       
 21334 
       
 21335 $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
       
 21336 
       
 21337         SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
       
 21338         have_video=yes
       
 21339         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
       
 21340         SUMMARY_video="${SUMMARY_video} qnx"
       
 21341     fi
       
 21342 }
       
 21343 
       
 21344 CheckQNXAudio()
       
 21345 {
       
 21346     if test x$enable_audio = xyes; then
       
 21347 
       
 21348 $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
       
 21349 
       
 21350         SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
       
 21351         have_audio=yes
       
 21352         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
       
 21353         SUMMARY_audio="${SUMMARY_audio} qsa"
       
 21354     fi
       
 21355 }
       
 21356 
 21331 # Check whether --enable-video-opengl was given.
 21357 # Check whether --enable-video-opengl was given.
 21332 if test "${enable_video_opengl+set}" = set; then :
 21358 if test "${enable_video_opengl+set}" = set; then :
 21333   enableval=$enable_video_opengl;
 21359   enableval=$enable_video_opengl;
 21334 else
 21360 else
 21335   enable_video_opengl=yes
 21361   enable_video_opengl=yes
 22225             ;;
 22251             ;;
 22226         *-*-haiku*)
 22252         *-*-haiku*)
 22227             pthread_cflags="-D_REENTRANT"
 22253             pthread_cflags="-D_REENTRANT"
 22228             pthread_lib=""
 22254             pthread_lib=""
 22229             ;;
 22255             ;;
       
 22256         *-*-nto*)
       
 22257             pthread_cflags="-D_REENTRANT"
       
 22258             pthread_lib=""
       
 22259             ;;
 22230         *)
 22260         *)
 22231             pthread_cflags="-D_REENTRANT"
 22261             pthread_cflags="-D_REENTRANT"
 22232             pthread_lib="-lpthread"
 22262             pthread_lib="-lpthread"
 22233             ;;
 22263             ;;
 22234     esac
 22264     esac
 23304 }
 23334 }
 23305 
 23335 
 23306 CheckWarnAll
 23336 CheckWarnAll
 23307 
 23337 
 23308 case "$host" in
 23338 case "$host" in
 23309     *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
 23339     *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
 23310         case "$host" in
 23340         case "$host" in
 23311             *-raspberry-linux*)
 23341             *-raspberry-linux*)
 23312                 # Raspberry Pi
 23342                 # Raspberry Pi
 23313                 ARCH=linux
 23343                 ARCH=linux
 23314                 RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
 23344                 RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
 23369             *-*-sysv5*)         ARCH=sysv5 ;;
 23399             *-*-sysv5*)         ARCH=sysv5 ;;
 23370             *-*-solaris*)       ARCH=solaris ;;
 23400             *-*-solaris*)       ARCH=solaris ;;
 23371             *-*-hpux*)          ARCH=hpux ;;
 23401             *-*-hpux*)          ARCH=hpux ;;
 23372             *-*-aix*)           ARCH=aix ;;
 23402             *-*-aix*)           ARCH=aix ;;
 23373             *-*-minix*)         ARCH=minix ;;
 23403             *-*-minix*)         ARCH=minix ;;
       
 23404             *-*-nto*)           ARCH=nto
       
 23405                 CheckQNXVideo
       
 23406                 ;;
 23374         esac
 23407         esac
 23375         CheckVisibilityHidden
 23408         CheckVisibilityHidden
 23376         CheckDeclarationAfterStatement
 23409         CheckDeclarationAfterStatement
 23377         CheckDummyVideo
 23410         CheckDummyVideo
 23378         CheckDiskAudio
 23411         CheckDiskAudio
 23410         CheckPTHREAD
 23443         CheckPTHREAD
 23411         CheckClockGettime
 23444         CheckClockGettime
 23412         CheckLinuxVersion
 23445         CheckLinuxVersion
 23413         CheckRPATH
 23446         CheckRPATH
 23414         CheckVivanteVideo
 23447         CheckVivanteVideo
       
 23448 
 23415         # Set up files for the audio library
 23449         # Set up files for the audio library
 23416         if test x$enable_audio = xyes; then
 23450         if test x$enable_audio = xyes; then
 23417           case $ARCH in
 23451           case $ARCH in
 23418             sysv5|solaris|hpux)
 23452             sysv5|solaris|hpux)
 23419 
 23453 
 23420 $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
 23454 $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
 23421 
 23455 
 23422                 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
 23456                 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
       
 23457                 SUMMARY_audio="${SUMMARY_audio} sun"
 23423                 have_audio=yes
 23458                 have_audio=yes
 23424             ;;
 23459             ;;
 23425             netbsd)  # Don't use this on OpenBSD, it's busted.
 23460             netbsd)  # Don't use this on OpenBSD, it's busted.
 23426 
 23461 
 23427 $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
 23462 $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
 23428 
 23463 
 23429                 SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
 23464                 SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
       
 23465                 SUMMARY_audio="${SUMMARY_audio} netbsd"
 23430                 have_audio=yes
 23466                 have_audio=yes
 23431             ;;
 23467             ;;
 23432             aix)
 23468             aix)
 23433 
 23469 
 23434 $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
 23470 $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
 23435 
 23471 
 23436                 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
 23472                 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
       
 23473                 SUMMARY_audio="${SUMMARY_audio} paudio"
 23437                 have_audio=yes
 23474                 have_audio=yes
 23438             ;;
 23475             ;;
 23439             android)
 23476             android)
 23440 
 23477 
 23441 $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
 23478 $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
 23442 
 23479 
 23443                 SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
 23480                 SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
 23444                 SUMMARY_audio="${SUMMARY_audio} android"
 23481                 SUMMARY_audio="${SUMMARY_audio} android"
 23445                 have_audio=yes
 23482                 have_audio=yes
       
 23483             ;;
       
 23484             nto)
       
 23485                 CheckQNXAudio
 23446             ;;
 23486             ;;
 23447           esac
 23487           esac
 23448         fi
 23488         fi
 23449         # Set up files for the joystick library
 23489         # Set up files for the joystick library
 23450         if test x$enable_joystick = xyes; then
 23490         if test x$enable_joystick = xyes; then
 23756         if test x$enable_audio = xyes; then
 23796         if test x$enable_audio = xyes; then
 23757 
 23797 
 23758 $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
 23798 $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
 23759 
 23799 
 23760             SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
 23800             SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
       
 23801             SUMMARY_audio="${SUMMARY_audio} haiku"
 23761             have_audio=yes
 23802             have_audio=yes
 23762         fi
 23803         fi
 23763         # Set up files for the joystick library
 23804         # Set up files for the joystick library
 23764         if test x$enable_joystick = xyes; then
 23805         if test x$enable_joystick = xyes; then
 23765 
 23806