From: Andi Gutmans Date: Fri, 2 Jun 2000 08:51:50 +0000 (+0000) Subject: - Make TSRM always compile into PHP. We can now move virtual_cwd over here. X-Git-Tag: PRE_EIGHT_BYTE_ALLOC_PATCH~147 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45cfada9a1d5a1c5275f036d67693b42e9ae3e9e;p=php - 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? --- diff --git a/configure.in b/configure.in index d535ebe7da..b52bbf44ad 100644 --- a/configure.in +++ b/configure.in @@ -642,11 +642,13 @@ PHP_CONFIGURE_PART(Configuring Zend) 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 @@ 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 + 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"