From 6e1f0ed78a48359bc65bc4d35973d61999e6f33c Mon Sep 17 00:00:00 2001 From: panne Date: Thu, 18 Dec 2003 21:34:31 +0000 Subject: [PATCH] [project @ 2003-12-18 21:34:31 by panne] Synched with latest changes in Hugs' aclocal.m4 (wglGetProcAddress fiddling) --- aclocal.m4 | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/aclocal.m4 b/aclocal.m4 index 5e5d4c9..ab6ec27 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -999,16 +999,19 @@ else FP_CHECK_GL_HELPER([GL], [-lGL -lopengl32], [@%:@include ], [glEnd()]) - # Ugly: To get wglGetProcAddress on Windows, we have to link with - # opengl32.dll, too, even when we are using Cygwin with X11. - case "$GL_LIBS" in - *-lopengl32*|*opengl32.lib*) ;; - *) fp_save_LIBS="$LIBS" - LIBS="$LIBS -lopengl32" - AC_TRY_LINK([@%:@include ], [glEnd()], [GL_LIBS="$GL_LIBS -lopengl32"]) - LIBS="$fp_save_LIBS" - ;; - esac + if test x"$no_GL" != xyes; then + # Ugly: To get wglGetProcAddress on Windows, we have to link with + # opengl32.dll, too, even when we are using Cygwin with X11. + case "$GL_LIBS" in + *-lopengl32*|*opengl32.lib*) ;; + *) fp_save_LIBS="$LIBS" + LIBS="$LIBS -lopengl32" + AC_TRY_LINK([@%:@include ], [glEnd()], + [GL_LIBS="$GL_LIBS -lopengl32"; GL_LIBS0="$GL_LIBS0 -lopengl32"]) + LIBS="$fp_save_LIBS" + ;; + esac + fi fi fi -- 1.7.10.4