add -lm before checking for -lGL

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-11-09 00:00:04 +00:00
parent e2762ff06a
commit fb56368aa0

View File

@@ -2313,6 +2313,11 @@ if test "$wxUSE_OPENGL" = "yes"; then
if test "$wxUSE_MAC" = 1; then
OPENGL_LIBS="-framework OpenGL -framework AGL"
else
dnl -lGL requires -lm with soem OpenGL versions - although it would, of
dnl course, be cleaner to test first without -lm and then with it, I don't
dnl have time for this now so just always add -lm
LIBS="$LIBS -lm"
dnl check for OpenGL libs availability first
AC_CHECK_HEADER(GL/gl.h, [
AC_CHECK_LIB(GL, glFlush, [