configure.in
changeset 11119 28d3a50e276e
parent 11090 d85832ad10c3
child 11121 a544d3b5a993
     1.1 --- a/configure.in	Sat Jul 01 23:01:57 2017 +0200
     1.2 +++ b/configure.in	Sat Jul 01 17:50:47 2017 -0400
     1.3 @@ -2098,6 +2098,30 @@
     1.4      fi
     1.5  }
     1.6  
     1.7 +dnl Set up the QNX video driver if enabled
     1.8 +CheckQNXVideo()
     1.9 +{
    1.10 +    if test x$enable_video = xyes; then
    1.11 +        AC_DEFINE(SDL_VIDEO_DRIVER_QNX, 1, [ ])
    1.12 +        SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
    1.13 +        have_video=yes
    1.14 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
    1.15 +        SUMMARY_video="${SUMMARY_video} qnx"
    1.16 +    fi
    1.17 +}
    1.18 +
    1.19 +dnl Set up the QNX audio driver if enabled
    1.20 +CheckQNXAudio()
    1.21 +{
    1.22 +    if test x$enable_audio = xyes; then
    1.23 +        AC_DEFINE(SDL_AUDIO_DRIVER_QSA, 1, [ ])
    1.24 +        SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
    1.25 +        have_video=yes
    1.26 +        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
    1.27 +        SUMMARY_audio="${SUMMARY_audio} qsa"
    1.28 +    fi
    1.29 +}
    1.30 +
    1.31  dnl Check to see if OpenGL support is desired
    1.32  AC_ARG_ENABLE(video-opengl,
    1.33  AC_HELP_STRING([--enable-video-opengl], [include OpenGL support [[default=yes]]]),
    1.34 @@ -2573,6 +2597,10 @@
    1.35              pthread_cflags="-D_REENTRANT"
    1.36              pthread_lib=""
    1.37              ;;
    1.38 +        *-*-nto*)
    1.39 +            pthread_cflags="-D_REENTRANT"
    1.40 +            pthread_lib=""
    1.41 +            ;;
    1.42          *)
    1.43              pthread_cflags="-D_REENTRANT"
    1.44              pthread_lib="-lpthread"
    1.45 @@ -3017,7 +3045,7 @@
    1.46  
    1.47  dnl Set up the configuration based on the host platform!
    1.48  case "$host" in
    1.49 -    *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
    1.50 +    *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
    1.51          case "$host" in
    1.52              *-raspberry-linux*)
    1.53                  # Raspberry Pi
    1.54 @@ -3082,6 +3110,9 @@
    1.55              *-*-hpux*)          ARCH=hpux ;;
    1.56              *-*-aix*)           ARCH=aix ;;
    1.57              *-*-minix*)         ARCH=minix ;;
    1.58 +            *-*-nto*)           ARCH=nto
    1.59 +                CheckQNXVideo
    1.60 +                ;;
    1.61          esac
    1.62          CheckVisibilityHidden
    1.63          CheckDeclarationAfterStatement
    1.64 @@ -3123,6 +3154,7 @@
    1.65          CheckLinuxVersion
    1.66          CheckRPATH
    1.67          CheckVivanteVideo
    1.68 +
    1.69          # Set up files for the audio library
    1.70          if test x$enable_audio = xyes; then
    1.71            case $ARCH in
    1.72 @@ -3147,6 +3179,9 @@
    1.73                  SUMMARY_audio="${SUMMARY_audio} android"
    1.74                  have_audio=yes
    1.75              ;;
    1.76 +            nto)
    1.77 +                CheckQNXAudio
    1.78 +            ;;
    1.79            esac
    1.80          fi
    1.81          # Set up files for the joystick library