summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-07-09 20:39:18 +0000
committerSascha Schumann <sas@php.net>2000-07-09 20:39:18 +0000
commite51571595c66f1084b514ca8985dd5d47a8c9a08 (patch)
treed73f9e2320aa940acb76a5d171ba614f9b81b0d7 /acinclude.m4
parentc1ed6ef9cc7a35e2cf0e703f6adf51a657fc555b (diff)
downloadphp-git-e51571595c66f1084b514ca8985dd5d47a8c9a08.tar.gz
Add support for building C++ sources.
In your extension's config.m4, you need to use the m4 macro PHP_REQUIRE_CXX This shall be called only, if your extension is enabled. C++ source files shall not be put into the LTLIBRARY_SOURCES macro. Instead, the filename of the object shall be put into LTLIBRARY_OBJECTS_X. I.e. if your extension foo consists of foo.cxx, use LTLIBRARY_OBJECTS_X = foo.lo
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 0daebf6dfa..b2e702e53e 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -420,6 +420,14 @@ AC_DEFUN(PHP_BUILD_THREAD_SAFE,[
fi
])
+AC_DEFUN(PHP_REQUIRE_CXX,[
+ if test -z "$php_cxx_done"; then
+ AC_PROG_CXX
+ AC_PROG_CXXCPP
+ php_cxx_done=yes
+ fi
+])
+
dnl
dnl PHP_BUILD_SHARED
dnl