Use correct name for OpenGL library on OpenBSD by default.

This commit is contained in:
Antti Harri 2012-03-03 13:46:13 +02:00 committed by Bill Currie
parent 5e330890fc
commit bb1a342629
2 changed files with 7 additions and 0 deletions

View File

@ -106,6 +106,8 @@ AC_ARG_WITH(gl-driver,
if test "x$gl_driver" = xauto -o "x$gl_driver" = xyes; then
if test "$SYSTYPE" = WIN32; then
gl_driver="OPENGL32.DLL"
elif test "$SYSTYPE" = OPENBSD; then
gl_driver="libGL.so"
else
gl_driver="libGL.so.1"
fi

View File

@ -93,6 +93,11 @@ case "${host}" in
AC_MSG_RESULT([Win32 driver])
WIN32_LIBS=' $(NET_LIBS)'
;;
*-openbsd*)
SYSTYPE=OPENBSD
AC_MSG_RESULT([OpenBSD driver])
WIN32_LIBS=''
;;
*)
SYSTYPE=POSIX
AC_MSG_RESULT([default POSIX driver])