Mike Gorchak added some QNX tweaks, including OpenGL support

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40280
This commit is contained in:
Sam Lantinga 2002-02-14 02:15:15 +00:00
parent 7dffe66c0f
commit e7866b627d
4 changed files with 95 additions and 88 deletions

View file

@ -647,6 +647,7 @@ CheckX11()
fi
fi
}
CheckPHOTON()
{
AC_ARG_ENABLE(video-photon,
@ -671,6 +672,7 @@ CheckPHOTON()
SYSTEM_LIBS="$SYSTEM_LIBS -lph"
VIDEO_SUBDIRS="$VIDEO_SUBDIRS photon"
VIDEO_DRIVERS="$VIDEO_DRIVERS photon/libvideo_photon.la"
CheckOpenGLQNX
fi
fi
}
@ -947,6 +949,26 @@ CheckOpenGL()
fi
}
dnl Find QNX RtP OpenGL
CheckOpenGLQNX()
{
if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
AC_MSG_CHECKING(for OpenGL (Photon) support)
video_opengl=no
AC_TRY_COMPILE([
#include <GL/gl.h>
],[
],[
video_opengl=yes
])
AC_MSG_RESULT($video_opengl)
if test x$video_opengl = xyes; then
CFLAGS="$CFLAGS -DHAVE_OPENGL"
SYSTEM_LIBS="$SYSTEM_LIBS -lGL"
fi
fi
}
dnl Check for BeOS OpenGL
CheckBeGL()
{
@ -2162,6 +2184,7 @@ AM_CONDITIONAL(TARGET_WIN32, test $ARCH = win32)
AM_CONDITIONAL(TARGET_BEOS, test $ARCH = beos)
AM_CONDITIONAL(TARGET_MACOS, test $ARCH = macos)
AM_CONDITIONAL(TARGET_MACOSX, test $ARCH = macosx)
AM_CONDITIONAL(TARGET_QNX, test $ARCH = qnx)
# Set conditional variables for shared and static library selection.
# These are not used in any Makefile.am but in sdl-config.in.