]> granicus.if.org Git - php/commitdiff
MFH: Detect shtool properly when build-dir != php source dir.
authorIlia Alshanetsky <iliaa@php.net>
Sun, 20 Mar 2005 19:47:24 +0000 (19:47 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 20 Mar 2005 19:47:24 +0000 (19:47 +0000)
run-tests.php

index 61455b0027e9100f8772e086732e112229f71f53..b2475cda664617be6eef1b7143b7d1d32aba36dd 100755 (executable)
@@ -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' */