[Libreoffice-commits] .: configure.ac external/Package_mingw_dlls.mk m4/mingw.m4

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Jan 2 08:05:31 PST 2013


 configure.ac                   |   14 +++++++-------
 external/Package_mingw_dlls.mk |    2 +-
 m4/mingw.m4                    |    2 +-
 3 files changed, 9 insertions(+), 9 deletions(-)

New commits:
commit dc277bc6a1c357fe725db2c567d3e1cf16fb7806
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Wed Jan 2 17:04:34 2013 +0100

    use MINGW_SYSROOT consistently
    
    Restore all cases to expect /mingw/ included in the path.

diff --git a/configure.ac b/configure.ac
index 1e6327a..59e20c0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5315,8 +5315,8 @@ dnl ===================================================================
 if test "$WITH_MINGW" = "yes"; then
     AC_MSG_CHECKING([for MinGW sysroot])
     sysroot=`$CC -print-sysroot`
-    AS_IF([test -d "$sysroot"],
-          [MINGW_SYSROOT="$sysroot"
+    AS_IF([test -d "$sysroot"/mingw],
+          [MINGW_SYSROOT="$sysroot"/mingw
            AC_MSG_RESULT([$MINGW_SYSROOT])],
           [AC_MSG_RESULT([not found])
            AC_MSG_ERROR([cannot determine MinGW sysroot])])
@@ -7529,12 +7529,12 @@ if test $enable_python = system; then
         dnl How to find out the cross-compilation Python installation path?
         dnl Let's hardocode what we know for different distributions for now...
         for python_version in 2.6; do
-            if test -f ${MINGW_SYSROOT}/mingw/include/python${python_version}/Python.h; then
-                PYTHON_CFLAGS="-I${MINGW_SYSROOT}/mingw/include/python$python_version"
-                PYTHON_LIBS="-L${MINGW_SYSROOT}/mingw/lib -lpython$python_version $python_libs"
+            if test -f ${MINGW_SYSROOT}/include/python${python_version}/Python.h; then
+                PYTHON_CFLAGS="-I${MINGW_SYSROOT}/include/python$python_version"
+                PYTHON_LIBS="-L${MINGW_SYSROOT}/lib -lpython$python_version $python_libs"
                 AC_MSG_CHECKING([for python.exe])
-                AS_IF([test -f "$MINGW_SYSROOT/mingw/bin/python.exe"],
-                      [AC_MSG_RESULT([$MINGW_SYSROOT/mingw/bin/python.exe])
+                AS_IF([test -f "$MINGW_SYSROOT/bin/python.exe"],
+                      [AC_MSG_RESULT([$MINGW_SYSROOT/bin/python.exe])
                        MINGW_PYTHON_EXE=python.exe],
                       [AC_MSG_RESULT([not found])
                        AC_MSG_ERROR([could not find python.exe])])
diff --git a/external/Package_mingw_dlls.mk b/external/Package_mingw_dlls.mk
index 6b613d1..50a8cda 100644
--- a/external/Package_mingw_dlls.mk
+++ b/external/Package_mingw_dlls.mk
@@ -7,7 +7,7 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 #
 
-$(eval $(call gb_Package_Package,mingw_dlls,$(MINGW_SYSROOT)/mingw/bin))
+$(eval $(call gb_Package_Package,mingw_dlls,$(MINGW_SYSROOT)/bin))
 
 $(eval $(call gb_Package_add_files,mingw_dlls,bin,\
     $(MINGW_BOOST_DATE_TIME_DLL) \
diff --git a/m4/mingw.m4 b/m4/mingw.m4
index eb2dadb..d7aecbd 100644
--- a/m4/mingw.m4
+++ b/m4/mingw.m4
@@ -47,7 +47,7 @@ AC_DEFUN([libo_MINGW_CHECK_DLL],
 [AC_ARG_VAR([MINGW_][$1][_DLL],[output variable containing the found dll name])dnl
 
 if test -n "$WITH_MINGW"; then
-    _libo_mingw_dlldir="[$MINGW_SYSROOT]"/mingw/bin
+    _libo_mingw_dlldir="[$MINGW_SYSROOT]"/bin
     _libo_mingw_dllname=
     AC_MSG_CHECKING([for $2 dll])
 


More information about the Libreoffice-commits mailing list