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 "x$gl_driver" = xauto -o "x$gl_driver" = xyes; then
if test "$SYSTYPE" = WIN32; then if test "$SYSTYPE" = WIN32; then
gl_driver="OPENGL32.DLL" gl_driver="OPENGL32.DLL"
elif test "$SYSTYPE" = OPENBSD; then
gl_driver="libGL.so"
else else
gl_driver="libGL.so.1" gl_driver="libGL.so.1"
fi fi

View file

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