[Libreoffice-commits] .: autogen.sh

Tor Lillqvist tml at kemper.freedesktop.org
Tue May 31 00:32:58 PDT 2011


 autogen.sh |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit f41a5da6bbfb74f57ecf3421814ba38c7704f04a
Author: Tor Lillqvist <tlillqvist at novell.com>
Date:   Tue May 31 10:32:37 2011 +0300

    We should not look for .exe extensions for Cygwin programs

diff --git a/autogen.sh b/autogen.sh
index ece85b6..4d50370 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -22,12 +22,10 @@ sub sanity_checks($)
        'autoconf'   => "autoconf is required",
        'aclocal'    => "aclocal is required",
       );
-    my $exe_ext = '';
-    $exe_ext = ".exe" if ($system =~ m/CYGWIN/);
 
     for my $elem (@path) {
         for my $app (keys %required) {
-            if (-f "$elem/$app$exe_ext") {
+            if (-f "$elem/$app") {
                 delete $required{$app};
             }
         }
@@ -35,7 +33,7 @@ sub sanity_checks($)
     if ((keys %required) > 0) {
         print ("Various low-level dependencies are missing, please install them:\n");
         for my $app (keys %required) {
-            print "\t $app$exe_ext: " . $required{$app} . "\n";
+            print "\t $app: " . $required{$app} . "\n";
         }
         exit (1);
     }


More information about the Libreoffice-commits mailing list