stratagus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Stratagus-CVS] stratagus configure.in


From: address@hidden
Subject: [Stratagus-CVS] stratagus configure.in
Date: 16 Jan 2004 05:02:52 +1100

CVSROOT:        /home/strat
Module name:    stratagus
Changes by:      <address@hidden>       04/01/16 05:02:51

Modified files:
        .              : configure.in 

Log message:
        yet another autoconf fix.

Patches:
Index: stratagus/configure.in
diff -u stratagus/configure.in:1.37 stratagus/configure.in:1.38
--- stratagus/configure.in:1.37 Fri Jan 16 04:44:02 2004
+++ stratagus/configure.in      Fri Jan 16 05:02:50 2004
@@ -110,21 +110,18 @@
     [  --with-opengl             [Use opengl (default: no)]],, 
with_opengl="no")
 if test "$with_opengl" != "no"; then
        VIDEO_CFLAGS="$VIDEO_CFLAGS -DUSE_OPENGL"
-       case "$target" in
-               *-*-cygwin* | *-*-mingw32*)
-                       VIDEO_LIBS="$VIDEO_LIBS -lopengl32"
-                       ;;
-               *)
-                       AC_PATH_X
-                       AC_PATH_XTRA
-                       if test x$have_x = xyes; then
-                               VIDEO_CFLAGS="$VIDEO_CFLAGS $X_CFLAGS"
-                               VIDEO_LIBS="$VIDEO_LIBS $X_LIBS -lGL"
-                       else
-                               VIDEO_LIBS="$VIDEO_LIBS -lGL"
-                       fi
-                       ;;
-       esac
+       if test "`uname -a | grep -is cygwin`" -o "`uname -a | grep -is 
mingw`"; then
+               VIDEO_LIBS="$VIDEO_LIBS -lopengl32"
+       else
+               AC_PATH_X
+               AC_PATH_XTRA
+               if test x$have_x = xyes; then
+                       VIDEO_CFLAGS="$VIDEO_CFLAGS $X_CFLAGS"
+                       VIDEO_LIBS="$VIDEO_LIBS $X_LIBS -lGL"
+               else
+                       VIDEO_LIBS="$VIDEO_LIBS -lGL"
+               fi
+       fi
 fi
 AC_SUBST(VIDEO_CFLAGS)
 AC_SUBST(VIDEO_LIBS)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]