[Libreoffice-commits] .: configure.in

David Tardon dtardon at kemper.freedesktop.org
Tue Oct 25 01:17:22 PDT 2011


 configure.in |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 83a61ecc45682adaedc061374ddc2874d79af82f
Author: David Tardon <dtardon at redhat.com>
Date:   Tue Oct 25 10:07:00 2011 +0200

    do not hardcode mingw sysroot path

diff --git a/configure.in b/configure.in
index 9ed2979..5468787 100644
--- a/configure.in
+++ b/configure.in
@@ -9543,12 +9543,13 @@ AC_SUBST(BUILD_TYPE)
 if test "$WITH_MINGW" != "yes" ; then
     MINGW_EXTERNAL_DLLS=
 else
+    mingw_dlldir=`$CC -print-sysroot`/mingw/bin
     for DLL in $MINGW_EXTERNAL_DLLS ; do
         AC_MSG_CHECKING([for $DLL])
-        if ! test -f "/usr/i686-w64-mingw32/sys-root/mingw/bin/$DLL" ; then
+        if ! test -f "$mingw_dlldir/$DLL" ; then
             AC_MSG_ERROR([Could not find $DLL, install the appropriate mingw32-<package>, not only mingw32-<package>-devel.])
         fi
-        AC_MSG_RESULT([/usr/i686-w64-mingw32/sys-root/mingw/bin/$DLL])
+        AC_MSG_RESULT([$mingw_dlldir/$DLL])
     done
 fi
 AC_SUBST(MINGW_EXTERNAL_DLLS)


More information about the Libreoffice-commits mailing list