configure.in
changeset 279 04351f59b051
parent 278 dcd9f7b50a1c
child 281 c5010ab8ba35
     1.1 --- a/configure.in	Thu Feb 14 01:24:08 2002 +0000
     1.2 +++ b/configure.in	Thu Feb 14 02:15:15 2002 +0000
     1.3 @@ -647,6 +647,7 @@
     1.4          fi
     1.5      fi
     1.6  }
     1.7 +
     1.8  CheckPHOTON()
     1.9  {
    1.10      AC_ARG_ENABLE(video-photon,
    1.11 @@ -671,6 +672,7 @@
    1.12              SYSTEM_LIBS="$SYSTEM_LIBS -lph"
    1.13              VIDEO_SUBDIRS="$VIDEO_SUBDIRS photon"
    1.14              VIDEO_DRIVERS="$VIDEO_DRIVERS photon/libvideo_photon.la"
    1.15 +            CheckOpenGLQNX
    1.16          fi
    1.17      fi
    1.18  }
    1.19 @@ -947,6 +949,26 @@
    1.20      fi
    1.21  }
    1.22  
    1.23 +dnl Find QNX RtP OpenGL
    1.24 +CheckOpenGLQNX()
    1.25 +{
    1.26 +    if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
    1.27 +        AC_MSG_CHECKING(for OpenGL (Photon) support)
    1.28 +        video_opengl=no
    1.29 +        AC_TRY_COMPILE([
    1.30 +         #include <GL/gl.h>
    1.31 +        ],[
    1.32 +        ],[
    1.33 +        video_opengl=yes
    1.34 +        ])
    1.35 +        AC_MSG_RESULT($video_opengl)
    1.36 +        if test x$video_opengl = xyes; then
    1.37 +            CFLAGS="$CFLAGS -DHAVE_OPENGL"
    1.38 +            SYSTEM_LIBS="$SYSTEM_LIBS -lGL"
    1.39 +        fi
    1.40 +    fi
    1.41 +}
    1.42 +
    1.43  dnl Check for BeOS OpenGL
    1.44  CheckBeGL()
    1.45  {
    1.46 @@ -2162,6 +2184,7 @@
    1.47  AM_CONDITIONAL(TARGET_BEOS, test $ARCH = beos)
    1.48  AM_CONDITIONAL(TARGET_MACOS, test $ARCH = macos)
    1.49  AM_CONDITIONAL(TARGET_MACOSX, test $ARCH = macosx)
    1.50 +AM_CONDITIONAL(TARGET_QNX, test $ARCH = qnx)
    1.51  
    1.52  # Set conditional variables for shared and static library selection.
    1.53  # These are not used in any Makefile.am but in sdl-config.in.