$NetBSD: patch-aa,v 1.6 2005/03/24 09:52:28 adam Exp $

--- configure.orig	2001-08-25 13:05:33.000000000 +0000
+++ configure
@@ -12748,7 +12748,7 @@ echo "${ECHO_T}$have_GL" >&6
 
 echo "$as_me:12749: checking Mesa" >&5
 echo $ECHO_N "checking Mesa... $ECHO_C" >&6
-LIBS="$saved_LIBS $GTK_LIBS $GL_LDOPTS -lMesaGL"
+LIBS="$saved_LIBS $GTK_LIBS $GL_LDOPTS -lGL"
 cat >conftest.$ac_ext <<_ACEOF
 #line 12753 "configure"
 #include "confdefs.h"
@@ -12786,7 +12786,7 @@ echo "${ECHO_T}$have_MesaGL" >&6
 if test "x$have_MesaGL" = "xno"; then
  echo "$as_me:12787: checking Mesa with pthreads" >&5
 echo $ECHO_N "checking Mesa with pthreads... $ECHO_C" >&6
- LIBS="$saved_LIBS $GTK_LIBS $GL_LDOPTS -lMesaGL -lpthread"
+ LIBS="$saved_LIBS $GTK_LIBS $GL_LDOPTS -lGL -lpthread"
  cat >conftest.$ac_ext <<_ACEOF
 #line 12791 "configure"
 #include "confdefs.h"
@@ -12837,9 +12837,9 @@ echo "$as_me: error: Missing GL library"
 elif test "x$with_lib_MesaGL" = "xyes"; then
 
  if test "x$have_MesaGL" = "xyes"; then
-  GL_LIBS="$GL_LDOPTS -lMesaGLU -lMesaGL"
+  GL_LIBS="$GL_LDOPTS -lGLU -lGL"
  elif test "x$have_MesaGL_pthread" = "xyes"; then
-  GL_LIBS="$GL_LDOPTS -lMesaGLU -lMesaGL -lpthread"
+  GL_LIBS="$GL_LDOPTS -lGLU -lGL -lpthread"
  else
   { { echo "$as_me:12844: error: Missing MesaGL library" >&5
 echo "$as_me: error: Missing MesaGL library" >&2;}
@@ -12851,9 +12851,9 @@ else
  if test "x$have_GL" = "xyes"; then
   GL_LIBS="$GL_LDOPTS -lGLU -lGL"
  elif test "x$have_MesaGL" = "xyes"; then
-  GL_LIBS="$GL_LDOPTS -lMesaGLU -lMesaGL"
+  GL_LIBS="$GL_LDOPTS -lGLU -lGL"
  elif test "x$have_MesaGL_pthread" = "xyes"; then
-  GL_LIBS="$GL_LDOPTS -lMesaGLU -lMesaGL -lpthread"
+  GL_LIBS="$GL_LDOPTS -lGLU -lGL -lpthread"
  else
   { { echo "$as_me:12858: error: You need GL or MesaGL libraries" >&5
 echo "$as_me: error: You need GL or MesaGL libraries" >&2;}
