summaryrefslogtreecommitdiff
path: root/configure.in.in
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-07-22 21:11:09 +0000
committerSascha Schumann <sas@php.net>1999-07-22 21:11:09 +0000
commit3ccb07f34baf12b54b4005f67355e323a0f33fed (patch)
tree5678688ac822653eb61a9bfa491cc4ec972d5bc9 /configure.in.in
parent84656f113e682cebe8f3927bfab0b52f77c49688 (diff)
downloadphp-git-3ccb07f34baf12b54b4005f67355e323a0f33fed.tar.gz
add the HPUX ANSI detection from php3
Diffstat (limited to 'configure.in.in')
-rw-r--r--configure.in.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.in.in b/configure.in.in
index c73423e3b9..c1a9293861 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -74,6 +74,11 @@ AM_MAINTAINER_MODE
dnl We want this one before the checks, so the checks can modify CFLAGS.
test -z "$CFLAGS" && auto_cflags=1
+dnl If we're using cc on HP-UX, add the -Ae to CFLAGS
+if test -n "$auto_cflags" && test "`uname -s 2>/dev/null`" = "HP-UX"; then
+ test -n "$GCC" || CFLAGS="-Ae $CFLAGS -D_HPUX_SOURCE"
+fi
+
dnl Checks for programs.
AM_PROG_LIBTOOL
AC_PROG_YACC
@@ -873,7 +878,7 @@ AC_SUBST(LDFLAGS_SHLIB)
AC_SUBST(LDFLAGS_SHLIB_EXPORT)
AC_SUBST(RPATHS)
AC_SUBST(RAW_RPATHS)
-
+
PHP_BUILD_DATE=`date '+%Y-%m-%d'`
AC_SUBST(PHP_BUILD_DATE)
AC_DEFINE_UNQUOTED(PHP_BUILD_DATE,"$PHP_BUILD_DATE")