From: Ilia Alshanetsky Date: Sun, 20 Mar 2005 19:47:24 +0000 (+0000) Subject: MFH: Detect shtool properly when build-dir != php source dir. X-Git-Tag: php-5.0.4RC2~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=296b11c9fb2407ef69d0933e1f6ea67f9fa88491;p=php MFH: Detect shtool properly when build-dir != php source dir. --- diff --git a/run-tests.php b/run-tests.php index 61455b0027..b2475cda66 100755 --- a/run-tests.php +++ b/run-tests.php @@ -478,7 +478,7 @@ if (!getenv('NO_INTERACTION')) { $libtool = shell_exec($_SERVER['PWD'] . '/libtool --version'); /* Use shtool to find out if there is glibtool present (MacOSX) */ - $sys_libtool_path = shell_exec("{$_SERVER['PWD']}/build/shtool path glibtool libtool"); + $sys_libtool_path = shell_exec(dirname(__FILE__) . "/build/shtool path glibtool libtool"); $sys_libtool = shell_exec(str_replace("\n", "", $sys_libtool_path) . ' --version'); /* Try the most common flags for 'version' */