summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2001-06-15 12:53:20 +0000
committerSascha Schumann <sas@php.net>2001-06-15 12:53:20 +0000
commite843e8c5f0330e01fc672d9f0e33999c03f9c97a (patch)
tree33adc7cd37dcd59623b9b2e4a987b44907502f6e /acinclude.m4
parent35f8d4cb449c8f3c4dc33b693361b5137ff21cac (diff)
downloadphp-git-e843e8c5f0330e01fc672d9f0e33999c03f9c97a.tar.gz
Move PHP_TARGET_RDYNAMIC check to global acinclude.m4 and use it
in thttpd's config.m4.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m420
1 files changed, 20 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index a5906108af..d56f3f10d3 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -4,6 +4,26 @@ dnl This file contains local autoconf functions.
sinclude(dynlib.m4)
+dnl
+dnl PHP_TARGET_RDYNAMIC
+dnl
+dnl Checks whether -rdynamic is supported by the compiler. This
+dnl is necessary for some targets to populate the global symbol
+dnl table. Otherwise, dynamic modules would not be able to resolve
+dnl PHP-related symbols.
+dnl
+dnl If successful, adds -rdynamic to PHP_LDFLAGS.
+dnl
+AC_DEFUN(PHP_TARGET_RDYNAMIC,[
+ if test -n "$GCC"; then
+ dnl we should use a PHP-specific macro here
+ TSRM_CHECK_GCC_ARG(-rdynamic, gcc_rdynamic=yes)
+ if test "$gcc_rdynamic" = "yes"; then
+ PHP_LDFLAGS="$PHP_LDFLAGS -rdynamic"
+ fi
+ fi
+])
+
AC_DEFUN(PHP_REMOVE_USR_LIB,[
unset ac_new_flags
for i in [$]$1; do