CVS update: php3

From: Date: Mon, 28 Jun 1999 03:34:14 +0000
Subject: CVS update: php3
Groups: php.dev 
Request: Send a blank email to php-dev+get-7669@lists.php.net to get a copy of this message
Date: Sunday June 27, 1999 @ 23:34 Author: sas Update of /repository/php3 In directory php:/tmp/cvs-serv19729 Modified Files: configure.in Log Message: warn user, if compiling with another compiler Index: php3/configure.in diff -u php3/configure.in:1.415 php3/configure.in:1.416 --- php3/configure.in:1.415 Sun Jun 27 22:32:48 1999 +++ php3/configure.in Sun Jun 27 23:34:13 1999 @@ -1,4 +1,4 @@ -dnl $Id: configure.in,v 1.415 1999/06/28 02:32:48 sas Exp $ +dnl $Id: configure.in,v 1.416 1999/06/28 03:34:13 sas Exp $ dnl Process this file with autoconf to produce a configure script. AC_INIT(main.c) @@ -286,6 +286,10 @@ AC_MSG_RESULT(no) ]) +if test -n "$APXS" ; then + APXS_CC="$APXS -q CC" +fi + AC_MSG_CHECKING(for Apache module support via DSO through APACI) AC_ARG_WITH(shared-apache, [ --with-shared-apache[=DIR] Build shared Apache module. DIR is the top-level @@ -2690,8 +2694,10 @@ ],[AC_MSG_RESULT(no)]) AC_CHECK_LIB(bind, __dn_skipname, [ AC_ADD_LIBRARY(bind) ]) +if test -z "$APXS" || test "$APXS_CC" = "$CC" ; then AC_CHECK_LIB(gcc, __udivdi3, [ AC_ADD_LIBRARY(gcc)]) - +fi + dnl If we're using gcc and the user hasn't specified CFLAGS, add -O2. test -n "$auto_cflags" && test -n "$GCC" && CFLAGS="$CFLAGS -O2" @@ -2738,6 +2744,18 @@ extra/gd/bdf2gdfont regex/Makefile pcrelib/Makefile dbase/Makefile, [ chmod +x extra/gd/bdf2gdfont ], [ + +if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then + echo "==================================================================" + echo "WARNING: You have chosen to compile PHP with a different compiler" + echo " as you used for compiling Apache." + echo "" + echo " Current compiler: $CC" + echo " Apache's compiler: $APXS_CC" + echo "" + echo "This might result in an unusable PHP module and linking problems." + echo "==================================================================" +fi dnl Warn about CGI version with no extra security options. if test "$BINNAME" = "php"; then

« previous php.dev (#7669) next »