[PHP4BETA] CVS update: php4
| From: | sas | Date: | Sat, 24 Apr 1999 23:36:26 +0000 |
| Subject: | [PHP4BETA] CVS update: php4 | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-501@lists.php.net to get a copy of this message | ||
Date: Saturday April 24, 1999 @ 19:36
Author: sas
Update of /repository/php4
In directory php:/tmp/cvs-serv28386
Modified Files:
acinclude.m4 configure.in.in
Log Message:
unreliable check whether cc option can be used really
Index: php4/acinclude.m4
diff -u php4/acinclude.m4:1.6 php4/acinclude.m4:1.7
--- php4/acinclude.m4:1.6 Wed Apr 21 22:48:22 1999
+++ php4/acinclude.m4 Sat Apr 24 19:36:25 1999
@@ -1,6 +1,26 @@
-dnl $Id: acinclude.m4,v 1.6 1999/04/22 02:48:22 ssb Exp $
+dnl $Id: acinclude.m4,v 1.7 1999/04/24 23:36:25 sas Exp $
dnl
dnl This file contains local autoconf functions.
+
+
+dnl
+dnl Check for cc option
+dnl
+AC_DEFUN(AC_CHECK_CC_OPTION,[
+ echo "main(){return 0;}" > conftest.$ac_ext
+ opt="$1"
+ var=
echo -n $opt|tr -c a-zA-Z0-9 _
+ AC_MSG_CHECKING([if compiler supports $1 really])
+ ac_compile='${CC-cc} -$opt -c $CFLAGS $CPPFLAGS conftest.$ac_ext 2>&1'
+ if eval $ac_compile | egrep "$opt" > /dev/null 2>&1 ; then
+ eval php_cc_$var=no
+ AC_MSG_RESULT(no)
+ else
+ eval php_cc_$var=yes
+ AC_MSG_RESULT(yes)
+ fi
+])
+
dnl
dnl See if we have broken header files like SunOS has.
Index: php4/configure.in.in
diff -u php4/configure.in.in:1.18 php4/configure.in.in:1.19
--- php4/configure.in.in:1.18 Sat Apr 24 17:39:33 1999
+++ php4/configure.in.in Sat Apr 24 19:36:25 1999
@@ -1,4 +1,4 @@
-dnl $Id: configure.in.in,v 1.18 1999/04/24 21:39:33 sas Exp $ -*- sh -*-
+dnl $Id: configure.in.in,v 1.19 1999/04/24 23:36:25 sas Exp $ -*- sh -*-
dnl Process this file with autoconf to produce a configure script.
@@ -125,13 +125,15 @@
LIBS="${SAVE_LIBS}"])
AC_MSG_RESULT($php_cc_rdynamic)
if test $php_cc_rdynamic = "yes"; then
+ AC_CHECK_CC_OPTION(rdynamic)
+fi
+if test $php_cc_rdynamic = "yes"; then
LDFLAGS="${LDFLAGS} -rdynamic"
RDYNAMIC_LFLAGS="-rdynamic"
else
RDYNAMIC_LFLAGS=""
fi
AC_SUBST(RDYNAMIC_LFLAGS)
-
dnl AC_PROG_INSTALL
AC_PATH_PROG(PROG_SENDMAIL, sendmail, /usr/lib/sendmail, $PATH /usr/bin /usr/sbin /usr/etc /etc
/usr/ucblib)
--
PHP 4 Beta