summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-01-19 17:35:55 (GMT)
committerfoobar <sniper@php.net>2005-01-19 17:35:55 (GMT)
commit6faa433d580a1b0f3750f833dea820b584941b77 (patch)
tree26de69c5c3ed445361591364ca1c080bc1dcdfa3 /configure.in
parente28d2c8032dd225dad200b290818819b4b69966a (diff)
downloadphp-6faa433d580a1b0f3750f833dea820b584941b77.tar.gz
- Fix the pic patch
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in9
1 files changed, 5 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index 1405baf..ea135eb 100644
--- a/configure.in
+++ b/configure.in
@@ -237,7 +237,7 @@ esac
AC_MSG_CHECKING([whether to force non-PIC code in shared modules])
case $host_alias in
i?86-*-linux*|i?86-*-freebsd*)
- if test "${with_pic+set}" != "set"; then
+ if test "${with_pic+set}" != "set" || test "$with_pic" = "no"; then
with_pic=no
AC_MSG_RESULT(yes)
else
@@ -906,9 +906,10 @@ program|static)
;;
shared)
enable_static=no
- if test "${with_pic+set}" != "set"; then
- standard_libtool_flag='-prefer-pic'
- fi
+ case $with_pic in
+ yes) standard_libtool_flag='-prefer-pic';;
+ no) standard_libtool_flag='-prefer-non-pic';;
+ esac
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -avoid-version -module"
;;
esac