--- embedaddon/php/configure.in 2013/10/14 08:17:37 1.1.1.4.2.1 +++ embedaddon/php/configure.in 2014/06/15 20:15:50 1.1.1.4.2.1.2.1 @@ -1,4 +1,4 @@ -## $Id: configure.in,v 1.1.1.4.2.1 2013/10/14 08:17:37 misho Exp $ -*- autoconf -*- +## $Id: configure.in,v 1.1.1.4.2.1.2.1 2014/06/15 20:15:50 misho Exp $ -*- autoconf -*- dnl ## Process this file with autoconf to produce a configure script. dnl include Zend specific macro definitions first @@ -370,6 +370,7 @@ sinclude(TSRM/tsrm.m4) dnl . dnl ------------------------------------------------------------------------- +PTHREADS_CHECK PHP_HELP_SEPARATOR([SAPI modules:]) PHP_SHLIB_SUFFIX_NAMES PHP_BUILD_PROGRAM @@ -405,9 +406,15 @@ if test -z "$PHP_INSTALLED_SAPIS"; then AC_MSG_ERROR([Nothing to build.]) fi +dnl Exit early +if test -z "$PHP_INSTALLED_SAPIS"; then + AC_MSG_ERROR([Nothing to build.]) +fi + dnl force ZTS if test "$enable_maintainer_zts" = "yes"; then PTHREADS_ASSIGN_VARS + PTHREADS_FLAGS fi dnl Starting system checks. @@ -686,7 +693,7 @@ nanosleep \ ) dnl Some systems (like OpenSolaris) do not have nanosleep in libc -PHP_CHECK_FUNC(nanosleep, rt) +PHP_CHECK_FUNC_LIB(nanosleep, rt) dnl Check for getaddrinfo, should be a better way, but... dnl Also check for working getaddrinfo @@ -1223,7 +1230,7 @@ EXPANDED_SYSCONFDIR=`eval echo $sysconfdir` EXPANDED_DATADIR=$datadir EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"` EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"` -INCLUDE_PATH=.:${prefix}/share/pear +INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR exec_prefix=$old_exec_prefix libdir=$old_libdir @@ -1433,7 +1440,7 @@ PHP_SUBST(all_targets) PHP_SUBST(install_targets) PHP_SUBST(install_binary_targets) -PHP_INSTALL_HEADERS([Zend/ TSRM/ main/ main/streams/]) +PHP_INSTALL_HEADERS([Zend/ TSRM/ include/ main/ main/streams/]) PHP_ADD_SOURCES(TSRM, TSRM.c tsrm_strtok_r.c tsrm_virtual_cwd.c)