summaryrefslogtreecommitdiff
path: root/scripts/phpize.m4
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-11-21 23:08:02 +0000
committerfoobar <sniper@php.net>2005-11-21 23:08:02 +0000
commit7243d31ae025ee68fd19dc916f30d0e691a3293e (patch)
tree099c1835aa8881ab9aaadd8f7d3ec58e69d45b37 /scripts/phpize.m4
parent19ea8abd0979399878703c2f894dd82ee96907db (diff)
downloadphp-git-7243d31ae025ee68fd19dc916f30d0e691a3293e.tar.gz
MFH: - Fixed header installing under phpize builds
Diffstat (limited to 'scripts/phpize.m4')
-rw-r--r--scripts/phpize.m47
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/phpize.m4 b/scripts/phpize.m4
index 87531ca675..62618f7ee7 100644
--- a/scripts/phpize.m4
+++ b/scripts/phpize.m4
@@ -16,6 +16,7 @@ AC_DEFUN([PHP_WITH_PHP_CONFIG],[
])
prefix=`$PHP_CONFIG --prefix 2>/dev/null`
+ phpincludedir=`$PHP_CONFIG --include-dir 2>/dev/null`
INCLUDES=`$PHP_CONFIG --includes 2>/dev/null`
EXTENSION_DIR=`$PHP_CONFIG --extension-dir`
PHP_EXECUTABLE=`$PHP_CONFIG --php-binary`
@@ -33,6 +34,8 @@ AC_DEFUN([PHP_WITH_PHP_CONFIG],[
AC_MSG_RESULT($INCLUDES)
AC_MSG_CHECKING(for PHP extension directory)
AC_MSG_RESULT($EXTENSION_DIR)
+ AC_MSG_CHECKING(for PHP installed headers prefix)
+ AC_MSG_RESULT($phpincludedir)
])
dnl
AC_DEFUN([PHP_EXT_BUILDDIR],[.])dnl
@@ -74,7 +77,7 @@ enable_shared=yes
AC_PROG_LIBTOOL
all_targets='$(PHP_MODULES)'
-install_targets=install-modules
+install_targets="install-modules install-headers"
phplibdir="`pwd`/modules"
CPPFLAGS="$CPPFLAGS -DHAVE_CONFIG_H"
CFLAGS_CLEAN='$(CFLAGS)'
@@ -91,6 +94,7 @@ PHP_SUBST(exec_prefix)
PHP_SUBST(libdir)
PHP_SUBST(prefix)
PHP_SUBST(phplibdir)
+PHP_SUBST(phpincludedir)
PHP_SUBST(CC)
PHP_SUBST(CFLAGS)
@@ -109,6 +113,7 @@ PHP_SUBST(LDFLAGS)
PHP_SUBST(SHARED_LIBTOOL)
PHP_SUBST(LIBTOOL)
PHP_SUBST(SHELL)
+PHP_SUBST(INSTALL_HEADERS)
PHP_GEN_BUILD_DIRS
PHP_GEN_GLOBAL_MAKEFILE