Use GCC's --print-libgcc-file-name flag to find libgcc's path.

Obtained from: mod_ssl
This commit is contained in:
Sascha Schumann 2000-05-01 18:32:09 +00:00
parent 5da6bf51a4
commit 113b87736b

View File

@ -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,[