Re: Changing build configuration acinclude.m4
| From: | Jani Taskinen | Date: | Wed, 11 Mar 2009 14:56:50 +0000 |
| Subject: | Re: Changing build configuration acinclude.m4 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-43305@lists.php.net to get a copy of this message | ||
Christopher Jones wrote:
Does anyone (where's Jani?) want to comment on updating (*) the definition of PHP_SHLIB_SUFFIX_NAMES in acinclude.m4?I don't want to comment on stuff I don't use.. :) (I don't do HP-UX)
The PHP_SHLIB_SUFFIX_NAMES macro is very simplistic in setting the SHLIB_SUFFIX_NAME shared lib file extension. In comparison, the AC_LIBTOOL_SYS_DYNAMIC_LINKER macro in build/libtool.m4 is more finegrained, in particular in differentiating between HP-UX Itanium and HP-UX PA RISC. The base problem was reported for the OCI8 extension in http://pecl.php.net/bugs/bug.php?id=15016 An untested patch for acinclude.m4 is:Try it? If it works, commit.--- acinclude.m4.orig 2008-12-03 13:55:53.000000000 -0800 +++ acinclude.m4 2009-03-10 13:57:10.000000000 -0700@@ -1975,8 +1975,16 @@ SHLIB_DL_SUFFIX_NAME=$SHLIB_SUFFIX_NAME case $host_alias in *hpux*[)] - SHLIB_SUFFIX_NAME=sl - SHLIB_DL_SUFFIX_NAME=sl + case $host_cpu in+ ia64*[)] + SHLIB_SUFFIX_NAME=so + SHLIB_DL_SUFFIX_NAME=so + ;; + *[)] + SHLIB_SUFFIX_NAME=sl + SHLIB_DL_SUFFIX_NAME=sl + ;;+ esac;;*darwin*[)]SHLIB_SUFFIX_NAME=dylibIs $host_cpu appropriately set at this point of configuration?
Is there a reason why PHP_SHLIB_SUFFIX_NAMES doesn't use AC_LIBTOOL_SYS_DYNAMIC_LINKER?Because nobody knew that exists? :) --Jani