From: Richard Levitte Date: Tue, 13 Feb 2018 18:46:10 +0000 (+0100) Subject: Configure: if a file is generated, never assume it's in the source dir X-Git-Tag: OpenSSL_1_1_1-pre2~161 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9b7e82f8d939ca6894f941268b219da55f069b26;p=oweals%2Fopenssl.git Configure: if a file is generated, never assume it's in the source dir Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/5355) --- diff --git a/Configure b/Configure index e3d8d70c00..2389e52588 100755 --- a/Configure +++ b/Configure @@ -1929,7 +1929,7 @@ EOF # If it isn't in the source tree, we assume it's generated # in the build tree - if (! -f $s) { + if (! -f $s || $generate{$_}) { $s = cleanfile($buildd, $_, $blddir); } # We recognise C++, C and asm files @@ -1957,7 +1957,7 @@ EOF # If it isn't in the source tree, we assume it's generated # in the build tree - if (! -f $s) { + if (! -f $s || $generate{$_}) { $s = cleanfile($buildd, $_, $blddir); }