summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-05-01 18:32:09 +0000
committerSascha Schumann <sas@php.net>2000-05-01 18:32:09 +0000
commit113b87736b5b0107ac256cdfb60dface45889973 (patch)
treed0f8c50b5f291a33b4a14c2c01c64b67cf02252d /acinclude.m4
parent5da6bf51a4b52b5ebaa60168e3ad71f70d7e66e1 (diff)
downloadphp-git-113b87736b5b0107ac256cdfb60dface45889973.tar.gz
Use GCC's --print-libgcc-file-name flag to find libgcc's path.
Obtained from: mod_ssl
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 8abbc2f629..f14c07d2ca 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -9,8 +9,9 @@ dnl PHP_LIBGCC_LIBPATH(gcc)
dnl Stores the location of libgcc in libgcc_libpath
dnl
AC_DEFUN(PHP_LIBGCC_LIBPATH,[
- ac_data="`$1 -v 2>&1|grep specs|sed 's/Reading specs from //'`"
- libgcc_libpath="`dirname $ac_data`"
+ changequote({,})
+ libgcc_libpath="`$1 --print-libgcc-file-name|sed 's%[^/][^/]*$%%'`"
+ changequote([,])
])
AC_DEFUN(PHP_ARG_ANALYZE,[