cvs: php-src(PHP_5_0) / acinclude.m4 configure.in

From: Date: Wed, 19 Jan 2005 17:36:16 +0000
Subject: cvs: php-src(PHP_5_0) / acinclude.m4 configure.in
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-29988@lists.php.net to get a copy of this message
sniper Wed Jan 19 12:36:16 2005 EDT Modified files: (Branch: PHP_5_0) /php-src configure.in acinclude.m4 Log: MFH: - Fix the pic patch http://cvs.php.net/diff.php/php-src/configure.in?r1=1.514.2.32&r2=1.514.2.33&ty=u Index: php-src/configure.in diff -u php-src/configure.in:1.514.2.32 php-src/configure.in:1.514.2.33 --- php-src/configure.in:1.514.2.32 Sun Jan 9 20:11:26 2005 +++ php-src/configure.in Wed Jan 19 12:36:15 2005 @@ -1,4 +1,4 @@ -dnl ## $Id: configure.in,v 1.514.2.32 2005/01/10 01:11:26 sniper Exp $ -*- sh -*- +dnl ## $Id: configure.in,v 1.514.2.33 2005/01/19 17:36:15 sniper Exp $ -*- sh -*- dnl ## Process this file with autoconf to produce a configure script. divert(1) @@ -207,7 +207,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 @@ -874,9 +874,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 http://cvs.php.net/diff.php/php-src/acinclude.m4?r1=1.271.2.11&r2=1.271.2.12&ty=u Index: php-src/acinclude.m4 diff -u php-src/acinclude.m4:1.271.2.11 php-src/acinclude.m4:1.271.2.12 --- php-src/acinclude.m4:1.271.2.11 Thu Jan 13 12:10:59 2005 +++ php-src/acinclude.m4 Wed Jan 19 12:36:15 2005 @@ -1,4 +1,4 @@ -dnl $Id: acinclude.m4,v 1.271.2.11 2005/01/13 17:10:59 wez Exp $ -*- autoconf -*- +dnl $Id: acinclude.m4,v 1.271.2.12 2005/01/19 17:36:15 sniper Exp $ -*- autoconf -*- dnl dnl This file contains local autoconf functions. @@ -786,12 +786,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

« previous php.cvs (#29988) next »