summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-12-21 02:35:07 +0000
committerSascha Schumann <sas@php.net>1999-12-21 02:35:07 +0000
commita31237a21f8cbb4258fd3b256ea000e0733a1fe3 (patch)
tree23cf366bef9ebb12d5b59be72d93a22085bfeaee /configure.in
parent12f9894f54fa35476519963afbc30ec2c56306aa (diff)
downloadphp-git-a31237a21f8cbb4258fd3b256ea000e0733a1fe3.tar.gz
Only add additional include paths, if building in a separate directory
(cosmetic change)
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in11
1 files changed, 9 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index de278c2629..47378a9284 100644
--- a/configure.in
+++ b/configure.in
@@ -156,7 +156,7 @@ if test -d /usr/pkg/include -a -d /usr/pkg/lib ; then
LDFLAGS="$LDFLAGS -L/usr/pkg/lib"
fi
-INCLUDES="-I\$(top_builddir)/Zend -I\$(top_srcdir) -I\$(top_srcdir)/Zend"
+INCLUDES="-I\$(top_builddir)/Zend -I\$(top_srcdir)"
AC_SUBST(INCLUDES)
AC_CHECK_LIB(nsl, gethostname, [
@@ -697,13 +697,20 @@ if test "$ZEND_EXPERIMENTAL_ZTS" = "yes"; then
TSRM_LIB='TSRM/libtsrm.la'
TSRM_DIR=TSRM
AC_DEFINE(ZTS)
- INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM -I\$(top_srcdir)/TSRM"
+ INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM"
PHP_THREAD_SAFETY=yes
PHP_OUTPUT(TSRM/Makefile)
else
PHP_THREAD_SAFETY=no
fi
+if test "$abs_srcdir" != "$abs_builddir"; then
+ INCLUDES="$INCLUDES -I\$(top_srcdir)/Zend"
+ if test "$PHP_THREAD_SAFETY" = "yes"; then
+ INCLUDES="$INCLUDES -I\$(top_srcdir)/TSRM"
+ fi
+fi
+
AC_SUBST(TSRM_DIR)
AC_SUBST(TSRM_LIB)