summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-05-04 09:42:27 +0000
committerSascha Schumann <sas@php.net>2000-05-04 09:42:27 +0000
commitb6e4841ec7bcdc1b4fd3533fd4ffeefdac095d52 (patch)
tree27711c7cc4286034dc7bfbfdeda8209d8d768273 /configure.in
parentcad04f55792bf247665fcddd4b9f7ca87040ce30 (diff)
downloadphp-git-b6e4841ec7bcdc1b4fd3533fd4ffeefdac095d52.tar.gz
Determine first whether we will use ZTS mode or not.
This is important, because the system checks will yield different results depending on whether POSIX threads are enabled or not. We also use PTHREADS_CFLAGS only in ZTS mode now. Using these flags in non-ZTS mode causes complete build failures on some platforms (i.e. FreeBSD 2.2.x). This will cause harmless warnings on some platforms (i.e. Solaris 2).
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in65
1 files changed, 32 insertions, 33 deletions
diff --git a/configure.in b/configure.in
index b5a328a6eb..666c2ab18d 100644
--- a/configure.in
+++ b/configure.in
@@ -48,10 +48,6 @@ dnl ## All of these are normally in the extension directories.
dnl ## Diversion 5 is the last one. Here we generate files and clean up.
-divert(2)
-
-PHP_CONFIGURE_PART(Running system checks)
-
dnl ## This is where the version number is changed from now on!
AM_INIT_AUTOMAKE(php, 4.0RC2-dev)
@@ -74,12 +70,6 @@ AC_CANONICAL_HOST
dnl We want this one before the checks, so the checks can modify CFLAGS.
test -z "$CFLAGS" && auto_cflags=1
-dnl ## If we're using cc on HP-UX, add -Ae -D_HPUX_SOURCE [obsolete]
-dnl ## if test -n "$auto_cflags" && test "`uname -s 2>/dev/null`" = "HP-UX"
-dnl ## then
-dnl ## test -n "$GCC" || CFLAGS="-Ae $CFLAGS -D_HPUX_SOURCE"
-dnl ## fi
-
dnl Checks for programs.
AC_PROG_YACC
if test "$YACC" != "bison -y"; then
@@ -95,11 +85,8 @@ else
AC_MSG_RESULT($1.$2 (ok))
fi
-dnl ## there has to be a better way...
-dnl ## OLDLIBS=$LIBS; LIBS=""
AC_PROG_CC
AC_AIX
-dnl ## LIBS=$OLDLIBS
AM_PROG_CC_STDC
@@ -121,6 +108,35 @@ sinclude(Zend/acinclude.m4)
sinclude(Zend/Zend.m4)
sinclude(TSRM/tsrm.m4)
+divert(2)
+
+PTHREADS_CHECK
+
+PHP_SAPI=cgi
+PHP_BUILD_PROGRAM
+dnl paths to the targets relative to the build directory
+SAPI_PROGRAM=php
+dnl on HP-UX, the extension is .sl. Need to improve this
+SAPI_SHARED=libs/libphp4.so
+SAPI_STATIC=libs/libphp4.a
+
+PHP_CONFIGURE_PART(Configuring SAPI modules)
+
+esyscmd(./scripts/config-stubs sapi)
+
+AC_MSG_CHECKING(for chosen SAPI module)
+AC_MSG_RESULT($PHP_SAPI)
+
+if test "$enable_experimental_zts" = "yes"; then
+ PTHREADS_ASSIGN_VARS
+ PTHREADS_FLAGS
+fi
+
+divert(3)
+
+PHP_CONFIGURE_PART(Running system checks)
+
+
dnl check for -R, etc. switch
AC_MSG_CHECKING(whether compiler supports -R)
AC_CACHE_VAL(php_cv_cc_dashr,[
@@ -365,7 +381,7 @@ if test $ac_cv_type_in_addr_t = no; then
AC_DEFINE(in_addr_t, u_int)
fi
-divert(3)
+divert(4)
@@ -539,23 +555,8 @@ if test "$PHP_PEAR" = "yes"; then
PEAR_DIR=pear
fi
-
-PHP_SAPI=cgi
-PHP_BUILD_PROGRAM
-dnl paths to the targets relative to the build directory
-SAPI_PROGRAM=php
-dnl on HP-UX, the extension is .sl. Need to improve this
-SAPI_SHARED=libs/libphp4.so
-SAPI_STATIC=libs/libphp4.a
-
-PHP_CONFIGURE_PART(Configuring SAPI modules)
-
-esyscmd(./scripts/config-stubs sapi)
-
-AC_MSG_CHECKING(for chosen SAPI module)
-AC_MSG_RESULT($PHP_SAPI)
-divert(4)
+divert(5)
PHP_CONFIGURE_PART(Configuring extensions)
@@ -581,7 +582,7 @@ if test "$PHP_VERSIONING" = "yes"; then
fi
fi
-divert(5)
+divert(6)
enable_shared=yes
enable_static=yes
@@ -605,8 +606,6 @@ fi
PHP_REGEX
-PTHREADS_FLAGS
-
PHP_CONFIGURE_PART(Configuring Zend)
LIBZEND_BASIC_CHECKS
LIBZEND_OTHER_CHECKS