[Libreoffice-commits] .: configure.in set_soenv.in

Tor Lillqvist tml at kemper.freedesktop.org
Wed Jun 1 16:40:58 PDT 2011


 configure.in |   37 +++++++------------------------------
 set_soenv.in |    6 ------
 2 files changed, 7 insertions(+), 36 deletions(-)

New commits:
commit e5c1c7fd305536542d7a2c9606e24d29f2083572
Author: Tor Lillqvist <tlillqvist at novell.com>
Date:   Thu Jun 2 02:40:32 2011 +0300

    Simplify zip and unzip checks

diff --git a/configure.in b/configure.in
index 325249f..efaa8de 100755
--- a/configure.in
+++ b/configure.in
@@ -1245,14 +1245,6 @@ AC_ARG_WITH(os-version,
     ],
 ,)
 
-AC_ARG_WITH(zip-home,
-    AS_HELP_STRING([--with-zip-home],
-        [If you use a non standard zip, for example Windows please supply the path for zip.])
-    [
-                          Usage:     --with-zip-home=<path to zip executable>
-    ],
-,)
-
 AC_ARG_WITH(mingw-cross-compiler,
     AS_HELP_STRING([--with-mingw-cross-compiler],
         [Specify the MinGW cross-compiler to use.])
@@ -6333,36 +6325,21 @@ ASM_HOME="$with_asm_home"
 AC_SUBST(ASM_HOME)
 
 dnl ===================================================================
-dnl Zip will be found where you tell me to find it
-dnl ===================================================================
-if test -n "$with_zip_home" ; then
-    if test "$_os" = "WINNT"; then
-        with_zip_home=`cygpath -u "$with_zip_home"`
-    fi
-    ZIP="$with_zip_home/zip"
-    UNZIP="$with_zip_home/unzip"
-    ZIP_HOME="$with_zip_home"
-else
-    AC_PATH_PROG(ZIP, zip)
-    AC_PATH_PROG(UNZIP, unzip)
-    ZIP_HOME=`dirname "$ZIP"`
-fi
-dnl ===================================================================
-dnl Zip must be available or else it is an error, all platforms
+dnl We need zip and unzip
 dnl ===================================================================
-if test -z "$ZIP" -o -z "$UNZIP"; then
-    AC_MSG_ERROR([Zip/Unzip are required to build, please install or use --with-zip-home],,)
-fi
+AC_PATH_PROG(ZIP, zip)
+test -z "$ZIP" && AC_MSG_ERROR([zip is required])
+AC_PATH_PROG(UNZIP, unzip)
+test -z "$ZIP" && AC_MSG_ERROR([unzip is required])
 
 dnl ===================================================================
 dnl Zip must be a specific type for different build types.
 dnl ===================================================================
-if test "$_os" = "WINNT"; then
+if test $build_os = cygwin; then
     if test -n "`$ZIP -h | grep -i WinNT`" ; then
-AC_MSG_ERROR([$ZIP found in the path is not the required Cygwin version of Info-ZIPs zip.exe.])
+        AC_MSG_ERROR([$ZIP is not the required Cygwin version of Info-ZIP's zip.exe.])
     fi
 fi
-AC_SUBST(ZIP_HOME)
 
 dnl ===================================================================
 dnl Test which vclplugs have to be built.
diff --git a/set_soenv.in b/set_soenv.in
index 305c288..037b53e 100755
--- a/set_soenv.in
+++ b/set_soenv.in
@@ -1166,12 +1166,6 @@ elsif ($platform =~ m/cygwin/)
    if ( $ASM_PATH ne "ASM_IN_PATH" )
    {   $PATH          .= $ps.CygFormat($ASM_PATH);
    }
-   # zip.exe / unzip.exe path for Windows users.
-   my $zip_home_path = PathFormat('@ZIP_HOME@');
-   $tmppath = CygFormat($zip_home_path);
-   if ( $PATH !~ /(?:[:]|\A)(?:$tmppath)(?:[:]|\Z)/ ) {
-       $PATH          .= $ps.$tmppath;
-   }
 
    # Possible cygwin paths must follow behind the OOo and MS paths
 


More information about the Libreoffice-commits mailing list