Fix check of what makedepprog should be
authorRichard Levitte <levitte@openssl.org>
Wed, 27 Jan 2016 18:03:13 +0000 (19:03 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 27 Jan 2016 18:03:13 +0000 (19:03 +0100)
A mistake was made and the setting of this config variable got
reverted to an older behavior.  This restores the latest.

Reviewed-by: Emilia Käsper <emilia@openssl.org>
Configure

index feb4cc9a609b62c8a03aa7325ad31b87098c17b6..e52eecd52272721bbabf8440ab3f8cdf9db4d95a 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -1142,10 +1142,11 @@ if (!$no_asm) {
     }
 }
 
-$config{makedepprog} = "makedepend";
-if ($target{cc} eq "gcc" || ($target{cc} eq 'cc' && $config{target} =~ /darwin/)) {
-    $config{makedepprog} = $target{cc};
-}
+my $ecc = $target{cc};
+$ecc = "clang" if `$target{cc} --version 2>&1` =~ /clang/;
+
+$config{makedepprog} =
+    $ecc eq "gcc" || $ecc eq "clang" ? $target{cc} : "makedepend";
 $config{depflags} =~ s/^\s*//;
 
 
@@ -1216,9 +1217,6 @@ if (defined($config{api})) {
     $config{cflags} .= " $apiflag";
 }
 
-my $ecc = $target{cc};
-$ecc = "clang" if `$target{cc} --version 2>&1` =~ /clang/;
-
 if ($strict_warnings)
        {
        my $wopt;