jani Mon Jul 21 10:17:36 2008 UTC Modified files: (Branch: PHP_5_3) /php-src configure.in Log: MFH: sync configure.in with HEAD (where applicable)
http://cvs.php.net/viewvc.cgi/php-src/configure.in?r1=1.579.2.52.2.77.2.23&r2=1.579.2.52.2.77.2.24&diff_format=u Index: php-src/configure.in diff -u php-src/configure.in:1.579.2.52.2.77.2.23 php-src/configure.in:1.579.2.52.2.77.2.24 --- php-src/configure.in:1.579.2.52.2.77.2.23 Wed Jul 16 16:29:37 2008 +++ php-src/configure.in Mon Jul 21 10:17:36 2008 @@ -1,4 +1,4 @@ -## $Id: configure.in,v 1.579.2.52.2.77.2.23 2008/07/16 16:29:37 jani Exp $ -*- autoconf -*- +## $Id: configure.in,v 1.579.2.52.2.77.2.24 2008/07/21 10:17:36 jani Exp $ -*- autoconf -*- dnl ## Process this file with autoconf to produce a configure script. divert(1) @@ -71,10 +71,10 @@ echo "#define PHP_VERSION_ID $PHP_VERSION_ID" >> php_version.h.new cmp php_version.h.new $srcdir/main/php_version.h >/dev/null 2>&1 if test $? -ne 0 ; then - rm -f $srcdir/main/php_version.h && mv php_version.h.new $srcdir/main/php_version.h && \ - echo 'Updated main/php_version.h' + rm -f $srcdir/main/php_version.h && mv php_version.h.new $srcdir/main/php_version.h && \ + echo 'Updated main/php_version.h' else - rm -f php_version.h.new + rm -f php_version.h.new fi @@ -129,8 +129,8 @@ php_did_darwin9_cheat=0 case $host_alias in *darwin9*) - echo $CFLAGS | grep -E '(^-g)|([[:space:]]-g)' 2>/dev/null >/dev/null - if test "$?" -ne 0; then + hasg=`echo $CFLAGS | grep -E '(^-g)|([[:space:]]-g)'` + if test x"$hasg" = "x"; then php_did_darwin9_cheat=1 CFLAGS="$CFLAGS -gstabs" fi @@ -182,16 +182,16 @@ else AC_MSG_CHECKING([whether re2c -g works]) AC_TRY_COMPILE([],[ - int main(int argc, const char **argv) - { - argc = argc; - argv = argv; +int main(int argc, const char **argv) +{ + argc = argc; + argv = argv; label1: label2: - static void *adr[] = { &&label1, &&label2}; - goto *adr[0]; - return 0; - } + static void *adr[] = { &&label1, &&label2}; + goto *adr[0]; + return 0; +} ],[ RE2C_FLAGS="" AC_MSG_RESULT([no]) @@ -207,7 +207,7 @@ dnl See bug #28605 case $host_cpu in -alpha*) + alpha*) if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -mieee" else @@ -232,15 +232,16 @@ fi case $host_alias in -*solaris*) + *solaris*) CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" if test "${enable_libgcc+set}" != "set" && test "$GCC" = "yes"; then enable_libgcc=yes fi ;; -*dgux*) - CPPFLAGS="$CPPFLAGS -D_BSD_TIMEOFDAY_FLAVOR";; -*darwin*|*rhapsody*) + *dgux*) + CPPFLAGS="$CPPFLAGS -D_BSD_TIMEOFDAY_FLAVOR" + ;; + *darwin*|*rhapsody*) if test -n "$GCC"; then PHP_CHECK_GCC_ARG(-no-cpp-precomp, gcc_no_cpp_precomp=yes) if test "$gcc_no_cpp_precomp" = "yes"; then @@ -248,18 +249,21 @@ fi fi AC_DEFINE(BIND_8_COMPAT, 1, [Enabling BIND8 compatibility for Panther]) - php_multiple_shlib_versions_ok=yes;; -*beos*) + php_multiple_shlib_versions_ok=yes + ;; + *beos*) beos_threads=1 - LIBS="$LIBS -lbe -lroot";; -*mips*) - CPPFLAGS="$CPPFLAGS -D_XPG_IV";; -*hpux*) + LIBS="$LIBS -lbe -lroot" + ;; + *mips*) + CPPFLAGS="$CPPFLAGS -D_XPG_IV" + ;; + *hpux*) if test "$GCC" = "yes"; then CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED" fi ;; -*netware*) + *netware*) PHP_BUILD_PROGRAM PHP_ADD_SOURCES(/main, internal_functions.c,,PHP_GLOBAL_OBJS) PHP_ADD_SOURCES(win32, sendmail.c, -I$CFLAGS, PHP_GLOBAL_OBJS) @@ -274,7 +278,7 @@ # to avoid the performance hit from the lost register AC_MSG_CHECKING([whether to force non-PIC code in shared modules]) case $host_alias in -i?86-*-linux*|i?86-*-freebsd*) + i?86-*-linux*|i?86-*-freebsd*) if test "${with_pic+set}" != "set" || test "$with_pic" = "no"; then with_pic=no AC_MSG_RESULT(yes) @@ -282,7 +286,9 @@ AC_MSG_RESULT(no) fi ;; -*) AC_MSG_RESULT(no) ;; + *) + AC_MSG_RESULT(no) + ;; esac @@ -360,8 +366,8 @@ dnl Check for /usr/pkg/{lib,include} which is where NetBSD puts binary dnl and source packages. This should be harmless on other OSs. if test -d /usr/pkg/include -a -d /usr/pkg/lib ; then - CPPFLAGS="$CPPFLAGS -I/usr/pkg/include" - LDFLAGS="$LDFLAGS -L/usr/pkg/lib" + CPPFLAGS="$CPPFLAGS -I/usr/pkg/include" + LDFLAGS="$LDFLAGS -L/usr/pkg/lib" fi test -d /usr/ucblib && PHP_ADD_LIBPATH(/usr/ucblib) @@ -427,7 +433,6 @@ limits.h \ locale.h \ monetary.h \ -mach-o/dyld.h \ netdb.h \ pwd.h \ resolv.h \ @@ -479,6 +484,16 @@ #endif ]) +dnl Don't use mach-o/dyld.h on Darwin 8+, dl* is recommended by Apple from there on +dnl See http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachOTopics/Articles/loading_code.html +case $host_alias in + *darwin[[89]]*) + ;; + *) + AC_CHECK_HEADERS([mach-o/dyld.h],[],[],[]) + ;; +esac + PHP_FOPENCOOKIE PHP_BROKEN_GETCWD PHP_BROKEN_GLIBC_FOPEN_APPEND @@ -774,10 +789,6 @@ CXXFLAGS="$CXXFLAGS -O0" fi else - dnl Finish the Darwin hack - if test "$php_did_darwin9_cheat" -eq 1; then - CFLAGS=`echo "-O2 $CFLAGS" | /usr/bin/sed -e 's/-gstabs//g'` - fi PHP_DEBUG=0 ZEND_DEBUG=no fi @@ -959,20 +970,24 @@ enable_static=yes case $php_build_target in -program|static) + program|static) standard_libtool_flag='-prefer-non-pic -static' if test -z "$PHP_MODULES" && test -z "$PHP_ZEND_EX"; then enable_shared=no fi -;; -shared) + ;; + shared) enable_static=no case $with_pic in - yes) standard_libtool_flag='-prefer-pic';; - no) standard_libtool_flag='-prefer-non-pic';; + yes) + standard_libtool_flag='-prefer-pic' + ;; + no) + standard_libtool_flag='-prefer-non-pic' + ;; esac EXTRA_LDFLAGS="$EXTRA_LDFLAGS -avoid-version -module" -;; + ;; esac EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS" @@ -1094,7 +1109,6 @@ '${prefix}/share') datadir=$datadir/php ;; - *) ;; esac phplibdir=`pwd`/modules @@ -1345,6 +1359,15 @@ CC=$old_CC +dnl Finish the Darwin hack +if test "$php_did_darwin9_cheat" -eq 1; then + if test "$PHP_DEBUG" = "yes"; then + CFLAGS=`echo "$CFLAGS" | $SED -e 's/-gstabs/-g/g'` + else + CFLAGS=`echo "-O2 $CFLAGS" | $SED -e 's/-gstabs//g'` + fi +fi + PHP_CONFIGURE_PART(Generating files) CXXFLAGS_CLEAN=$CXXFLAGS @@ -1361,7 +1384,7 @@ pharcmd_install= fi; -all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_CLI_TARGET) \$(PHAR_TARGET) $pharcmd" +all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_CLI_TARGET) $pharcmd" install_targets="$install_modules install-build install-headers install-programs $install_pear $pharcmd_install" case $PHP_SAPI in @@ -1394,13 +1417,13 @@ PHP_ADD_SOURCES(/main, internal_functions.c,, sapi) case $host_alias in -*netware*) - PHP_ADD_BUILD_DIR(win32) - PHP_ADD_BUILD_DIR(netware) - ;; -*) - PHP_ADD_SOURCES(/main, internal_functions_cli.c,, cli) - ;; + *netware*) + PHP_ADD_BUILD_DIR(win32) + PHP_ADD_BUILD_DIR(netware) + ;; + *) + PHP_ADD_SOURCES(/main, internal_functions_cli.c,, cli) + ;; esac PHP_ADD_SOURCES(Zend, \ @@ -1416,8 +1439,7 @@ zend_closures.c) if test -r "$abs_srcdir/Zend/zend_objects.c"; then - PHP_ADD_SOURCES(Zend, zend_objects.c zend_object_handlers.c zend_objects_API.c \ - zend_default_classes.c) + PHP_ADD_SOURCES(Zend, zend_objects.c zend_object_handlers.c zend_objects_API.c zend_default_classes.c) fi dnl Selectively disable optimization due to high RAM usage during @@ -1496,13 +1518,6 @@ cli_extensions="$EXT_CLI_STATIC" sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS" $AWK \$cli_extensions > main/internal_functions_cli.c -dnl if cmp main/internal_functions.c.old main/internal_functions.c > /dev/null 2>&1; then -dnl echo "main/internal_functions.c is unchanged" -dnl mv main/internal_functions.c.old main/internal_functions.c -dnl else -dnl rm -f main/internal_functions.c.old -dnl fi - if test "$UNAME" = "FreeBSD" && test "$PHP_SAPI" = "apache2filter" && test "$TSRM_PTH" != "pth-config" ; then echo "+--------------------------------------------------------------------+" echo "| *** WARNING *** |"
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php