cvs: php4 / configure.in

[email protected] ("Andi Gutmans") Fri, 02 Jun 2000 08:51:51 -0000
Newsgroups php.version4
Message-ID <cvsandi959935911@cvsserver>
andi		Fri Jun  2 01:51:51 2000 EDT

  Modified files:
    /php4	configure.in 
  Log:
  - Make TSRM always compile into PHP. We can now move virtual_cwd over here.
  - We might not want to compile TSRM.c in case we are on a platform which
  - doesn't support threads. Sascha? What do you think?
  
  
Index: php4/configure.in
diff -u php4/configure.in:1.138 php4/configure.in:1.139
--- php4/configure.in:1.138	Wed May 31 13:44:04 2000
+++ php4/configure.in	Fri Jun  2 01:51:50 2000
@@ -1,4 +1,4 @@
-dnl ## $Id: configure.in,v 1.138 2000/05/31 20:44:04 sas Exp $ -*- sh -*-
+dnl ## $Id: configure.in,v 1.139 2000/06/02 08:51:50 andi Exp $ -*- sh -*-
 dnl ## Process this file with autoconf to produce a configure script.
 
 divert(1)
@@ -642,11 +642,13 @@
 LIBZEND_BASIC_CHECKS
 LIBZEND_OTHER_CHECKS
 
+
+TSRM_LIB='TSRM/libtsrm.la'
+TSRM_DIR=TSRM
+INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM"
+
 if test "$ZEND_EXPERIMENTAL_ZTS" = "yes"; then
-  TSRM_LIB='TSRM/libtsrm.la'
-  TSRM_DIR=TSRM
   AC_DEFINE(ZTS)
-  INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM"
   PHP_THREAD_SAFETY=yes
 else
   PHP_THREAD_SAFETY=no
@@ -654,24 +656,21 @@
 
 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
+  INCLUDES="$INCLUDES -I\$(top_srcdir)/TSRM"
 fi
 
 EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS"
 LIBS=""
 LDFLAGS=""
-if test "$PHP_THREAD_SAFETY" = "yes"; then
-  PHP_CONFIGURE_PART(Configuring TSRM)
-  TSRM_BASIC_CHECKS
-  TSRM_OTHER_CHECKS
-  EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LDFLAGS"
-  EXTRA_LIBS="$EXTRA_LIBS $LIBS"
-  LDFLAGS=""
-  LIBS=""
-  PHP_OUTPUT(TSRM/Makefile)
-fi
+
+PHP_CONFIGURE_PART(Configuring TSRM)
+TSRM_BASIC_CHECKS
+TSRM_OTHER_CHECKS
+EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LDFLAGS"
+EXTRA_LIBS="$EXTRA_LIBS $LIBS"
+LDFLAGS=""
+LIBS=""
+PHP_OUTPUT(TSRM/Makefile)
 
 
 phplibdir="`pwd`/modules"