[Libreoffice-commits] .: configure.in

Robert Nagy rnagy at kemper.freedesktop.org
Thu Nov 18 11:21:00 PST 2010


 configure.in |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 35872508a17fa19c6f978617ec6c5461e929723d
Author: Robert Nagy <robert at openbsd.org>
Date:   Thu Nov 18 20:20:30 2010 +0100

    libGLU needs libm so make sure it gets linked

diff --git a/configure.in b/configure.in
index a2829d6..5812d6b 100644
--- a/configure.in
+++ b/configure.in
@@ -6531,6 +6531,8 @@ 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])], [])
@@ -6539,6 +6541,7 @@ if test "x$enable_opengl" != "xno" ; then
    AC_CHECK_LIB(GLU, main, [],
      [AC_MSG_ERROR(libGLU not installed or functional)], [])
    ENABLE_OPENGL=TRUE
+   LDFLAGS=$save_LDFLAGS
 else
    AC_MSG_RESULT([no])
 fi


More information about the Libreoffice-commits mailing list