]> granicus.if.org Git - php/commitdiff
MFH: - Fixed bug #29136 (make test - libtool failure on MacOSX)
authorfoobar <sniper@php.net>
Wed, 19 Jan 2005 01:30:34 +0000 (01:30 +0000)
committerfoobar <sniper@php.net>
Wed, 19 Jan 2005 01:30:34 +0000 (01:30 +0000)
run-tests.php

index 488e135261894ba17195d6d628b0a92768a9fa2c..9510121dae257536b70a6b01e6662e23935b23f2 100755 (executable)
@@ -476,7 +476,11 @@ if (!getenv('NO_INTERACTION')) {
                        $autoconf = shell_exec('autoconf --version');
                        /* Always use the generated libtool - Mac OSX uses 'glibtool' */
                        $libtool = shell_exec($_SERVER['PWD'] . '/libtool --version');
-                       $sys_libtool = shell_exec('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 = shell_exec(str_replace("\n", "", $sys_libtool_path) . ' --version');
+
                        /* Try the most common flags for 'version' */
                        $flags = array('-v', '-V', '--version');
                        $cc_status=0;