[Libreoffice-commits] .: configure.in

Michael Meeks mmeeks at kemper.freedesktop.org
Thu Dec 2 03:53:28 PST 2010


 configure.in |   40 +++++++++++++++++-----------------------
 1 file changed, 17 insertions(+), 23 deletions(-)

New commits:
commit 1dba8b0563993f347f315ae45b31ea3b056da3be
Author: Michael Meeks <michael.meeks at novell.com>
Date:   Thu Dec 2 11:53:39 2010 +0000

    default opengl to on, except on Windows & bin obsolste pam pieces

diff --git a/configure.in b/configure.in
index 8652fa6..902365f 100644
--- a/configure.in
+++ b/configure.in
@@ -285,9 +285,9 @@ AC_ARG_ENABLE(cairo,
 ,enable_cairo=yes)
 
 AC_ARG_ENABLE(opengl,
-    AS_HELP_STRING([--enable-opengl],
+    AS_HELP_STRING([--disable-opengl],
         [Determines whether to build the OpenGL 3D slide transitions component.]),
-,enable_opengl=no)
+,enable_opengl=yes)
 
 AC_ARG_ENABLE(dbus,
     AS_HELP_STRING([--enable-dbus],
@@ -369,16 +369,6 @@ AC_ARG_ENABLE(rpath,
         [Disable the use of relative paths in shared libraries.]),
 ,)
 
-AC_ARG_ENABLE(pam,
-    AS_HELP_STRING([--disable-pam],
-        [Disable pam support.]),
-,)
-
-AC_ARG_ENABLE(pam-link,
-    AS_HELP_STRING([--enable-pam-link],
-        [Link with libpam instead of dynamically open it.]),
-,)
-
 AC_ARG_ENABLE(crypt-link,
     AS_HELP_STRING([--disable-crypt-link],
         [Disable linking with libcrypt instead of dynamically open it (needed for
@@ -6501,17 +6491,21 @@ AC_MSG_CHECKING([whether to build the OpenGL Transitions component])
 ENABLE_OPENGL=
 
 if test "x$enable_opengl" != "xno" ; then
-   save_LDFLAGS=$LDFLAGS
-   LDFLAGS="$LDFLAGS -lm"
-   AC_MSG_RESULT([yes])
-   AC_CHECK_HEADER(GL/gl.h, [],
-                   [AC_MSG_ERROR([OpenGL headers not found])], [])
-   AC_CHECK_LIB(GL, main, [],
-     [AC_MSG_ERROR(libGL not installed or functional)], [])
-   AC_CHECK_LIB(GLU, main, [],
-     [AC_MSG_ERROR(libGLU not installed or functional)], [])
-   ENABLE_OPENGL=TRUE
-   LDFLAGS=$save_LDFLAGS
+   if test "$_os" != "WNT"; then
+      save_LDFLAGS=$LDFLAGS
+     LDFLAGS="$LDFLAGS -lm"
+     AC_MSG_RESULT([yes])
+     AC_CHECK_HEADER(GL/gl.h, [],
+                     [AC_MSG_ERROR([OpenGL headers not found])], [])
+     AC_CHECK_LIB(GL, main, [],
+       [AC_MSG_ERROR(libGL not installed or functional)], [])
+     AC_CHECK_LIB(GLU, main, [],
+       [AC_MSG_ERROR(libGLU not installed or functional)], [])
+     ENABLE_OPENGL=TRUE
+     LDFLAGS=$save_LDFLAGS
+   else
+     AC_MSG_RESULT([not on windows])
+   fi
 else
    AC_MSG_RESULT([no])
 fi


More information about the Libreoffice-commits mailing list