AC_EXPAND_PATH($1, ai_p)
AC_PHP_ONCE(LIBPATH, $ai_p, [
EXTRA_LIBS="$EXTRA_LIBS -L$ai_p"
+ if test -n "$rpath_raw" ; then
+ RPATHS="$RPATHS ${raw_runpath_switch}$ai_p"
if test -n "$APXS" ; then
RPATHS="$RPATHS ${apxs_runpath_switch}$ai_p'"
else
AC_MSG_RESULT($php_cv_cc_dashr)
if test $php_cv_cc_dashr = "yes"; then
ld_runpath_switch="-R"
+ raw_runpath_switch="-R"
apxs_runpath_switch="-Wl,-R'"
else
AC_MSG_CHECKING([if compiler supports -Wl,-rpath,])
AC_MSG_RESULT($php_cv_cc_rpath)
if test $php_cv_cc_rpath = "yes"; then
ld_runpath_switch="-Wl,-rpath,"
+ raw_runpath_switch="-rpath "
apxs_runpath_switch="-Wl,'-rpath "
else
dnl something innocuous
ld_runpath_switch="-L"
+ raw_runpath_switch="-L"
apxs_runpath_switch="-L'"
fi
fi
withval=/usr/local/etc/httpd
fi
if test "$withval" != "no"; then
+ rpath_raw=yes
if test -f $withval/src/include/httpd.h; then
AC_EXPAND_PATH($withval, withval)
APACHE_INCLUDE="-I$withval/src/include -I$withval/src/os/unix"
withval=/usr/local/etc/httpd
fi
if test "$withval" != "no"; then
+ rpath_raw=yes
# For Apache 1.2.x
AC_EXPAND_PATH($withval, withval)
if test -f $withval/src/httpd.h; then
Name: php4_module
ConfigStart
RULE_WANTHSREGEX=@HSREGEX@
+ LDFLAGS_SHLIB="@RPATHS@ $LDFLAGS_SHLIB"
LIBS="@PHP_LIBS@ @EXTRA_LIBS@ @LIBS@ @RDYNAMIC_LFLAGS@ $LIBS"
RULE_HIDE=yes
CFLAGS="$CFLAGS -I@abs_srcdir@ -I@abs_srcdir@/libzend -I@abs_builddir@/libzend -I@abs_builddir@"