From: Jon Parise Date: Mon, 11 Jul 2005 06:32:02 +0000 (+0000) Subject: Removing the automake-related output. The build no longer uses automake. X-Git-Tag: php-5.1.0b3~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f1261c70cc6e31f1a615bf67beeaff5cd529ee7;p=php Removing the automake-related output. The build no longer uses automake. While I'm here, rewrite the PHP_AUTOCONF-related code to more closely match the conventions used elsewhere in this section. The result should be functionally the same as before. --- diff --git a/run-tests.php b/run-tests.php index 34bb1632c1..31bea0c522 100755 --- a/run-tests.php +++ b/run-tests.php @@ -497,16 +497,15 @@ if (!getenv('NO_INTERACTION')) { $failed_tests_data .= "\n" . $sep . 'BUILD ENVIRONMENT' . $sep; $failed_tests_data .= "OS:\n" . PHP_OS . " - " . php_uname() . "\n\n"; - $ldd = $automake = $autoconf = $sys_libtool = $libtool = $compiler = 'N/A'; + $ldd = $autoconf = $sys_libtool = $libtool = $compiler = 'N/A'; if (substr(PHP_OS, 0, 3) != "WIN") { - /* Determine the names of the autotools executables. */ - $automake = (!empty($_ENV['PHP_AUTOMAKE'])) ? $_ENV['PHP_AUTOMAKE'] : 'automake'; - $autoconf = (!empty($_ENV['PHP_AUTOCONF'])) ? $_ENV['PHP_AUTOCONF'] : 'autoconf'; - - /* Extract the tools' versions (overwriting our local variables). */ - $automake = shell_exec("$automake --version"); - $autoconf = shell_exec("$autoconf --version"); + /* If PHP_AUTOCONF is set, use it; otherwise, use 'autoconf'. */ + if (!empty($_ENV['PHP_AUTOCONF'])) { + $autoconf = shell_exec($_ENV['PHP_AUTOCONF'] . ' --version'); + } else { + $autoconf = shell_exec('autoconf --version'); + } /* Always use the generated libtool - Mac OSX uses 'glibtool' */ $libtool = shell_exec($CUR_DIR . '/libtool --version'); @@ -527,7 +526,6 @@ if (!getenv('NO_INTERACTION')) { } $ldd = shell_exec("ldd $php 2>/dev/null"); } - $failed_tests_data .= "Automake:\n$automake\n"; $failed_tests_data .= "Autoconf:\n$autoconf\n"; $failed_tests_data .= "Bundled Libtool:\n$libtool\n"; $failed_tests_data .= "System Libtool:\n$sys_libtool\n";