[openssl-commits] [openssl] master update

Andy Polyakov appro at openssl.org
Fri Mar 11 14:27:43 UTC 2016


The branch master has been updated
       via  d0db7ee0b1dfc72a5e7c105040b8580ee57e99eb (commit)
      from  680ddc996b603c5f064f8047e05cf5cc0d61b735 (commit)


- Log -----------------------------------------------------------------
commit d0db7ee0b1dfc72a5e7c105040b8580ee57e99eb
Author: Andy Polyakov <appro at openssl.org>
Date:   Fri Mar 11 12:33:59 2016 +0100

    Configure: remove dependency on 'head'.
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 Configure | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/Configure b/Configure
index eeae03e..413efb0 100755
--- a/Configure
+++ b/Configure
@@ -1101,8 +1101,8 @@ if ($^O ne "VMS" && !$disabled{makedepend}) {
     # Is the compiler gcc or clang?  $ecc is used below to see if
     # error-checking can be turned on.
     my $ccpcc = "$config{cross_compile_prefix}$target{cc}";
-    $config{makedepprog} = which('makedepend');
-    open(PIPE, "$ccpcc --version 2>&1 | head -2 |");
+    open(PIPE, "$ccpcc --version 2>&1 |");
+    my $lines = 2;
     while ( <PIPE> ) {
         # Find the version number and save the major.
         m|(?:.*)\b(\d+)\.\d+\.\d+\b(?:.*)|;
@@ -1110,12 +1110,14 @@ if ($^O ne "VMS" && !$disabled{makedepend}) {
         # We know that GNU C version 3 and up as well as all clang
         # versions support dependency generation
         $config{makedepprog} = $ccpcc
-            if /clang/ || (/gcc/ && $compiler_major > 3);
+            if (/clang/ || (/gcc/ && $compiler_major > 3));
         $ecc = "clang" if /clang/;
         $ecc = "gcc" if /gcc/;
+        last if ($config{makedepprog} || !$lines--);
     }
     close(PIPE);
 
+    $config{makedepprog} = which('makedepend') unless $config{makedepprog};
     $disabled{makedepend} = "unavailable" unless $config{makedepprog};
 }
 


More information about the openssl-commits mailing list