cvs: php-src / acinclude.m4 configure.in
| From: | Jani Taskinen | Date: | Wed, 19 Jan 2005 17:35:56 +0000 |
| Subject: | cvs: php-src / acinclude.m4 configure.in | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-29987@lists.php.net to get a copy of this message | ||
sniper Wed Jan 19 12:35:56 2005 EDT
Modified files:
/php-src acinclude.m4 configure.in
Log:
- Fix the pic patch
http://cvs.php.net/diff.php/php-src/acinclude.m4?r1=1.287&r2=1.288&ty=u
Index: php-src/acinclude.m4
diff -u php-src/acinclude.m4:1.287 php-src/acinclude.m4:1.288
--- php-src/acinclude.m4:1.287 Fri Jan 7 11:57:23 2005
+++ php-src/acinclude.m4 Wed Jan 19 12:35:55 2005
@@ -1,4 +1,4 @@
-dnl $Id: acinclude.m4,v 1.287 2005/01/07 16:57:23 tony2001 Exp $
+dnl $Id: acinclude.m4,v 1.288 2005/01/19 17:35:55 sniper Exp $
dnl
dnl This file contains local autoconf functions.
@@ -784,12 +784,17 @@
php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
php_cxx_post=' && echo > $[@]'
php_lo=o
-
+
+ case $with_pic in
+ yes) pic_setting='-prefer-pic';;
+ no) pic_setting='-prefer-non-pic';;
+ esac
+
shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -prefer-pic'
+ shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
shared_c_post=
shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -prefer-pic'
+ shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
shared_cxx_post=
shared_lo=lo
http://cvs.php.net/diff.php/php-src/configure.in?r1=1.536&r2=1.537&ty=u
Index: php-src/configure.in
diff -u php-src/configure.in:1.536 php-src/configure.in:1.537
--- php-src/configure.in:1.536 Sun Jan 9 20:11:09 2005
+++ php-src/configure.in Wed Jan 19 12:35:55 2005
@@ -1,4 +1,4 @@
-dnl ## $Id: configure.in,v 1.536 2005/01/10 01:11:09 sniper Exp $ -*- autoconf -*-
+dnl ## $Id: configure.in,v 1.537 2005/01/19 17:35:55 sniper Exp $ -*- autoconf -*-
dnl ## Process this file with autoconf to produce a configure script.
divert(1)
@@ -237,7 +237,7 @@
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 @@
;;
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