summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2004-07-18 12:03:51 (GMT)
committerWez Furlong <wez@php.net>2004-07-18 12:03:51 (GMT)
commited682e570a3dace45aa894b14b667336f50085cf (patch)
tree4553eaa4cf8dcaf79804ae3bbd7185fc8efeddaf /configure.in
parent22b70fcb31d91962bf05fa38a6cc5c2f51b2198c (diff)
downloadphp-ed682e570a3dace45aa894b14b667336f50085cf.tar.gz
Implement extension load-order deps.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in26
1 files changed, 25 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 3a41752..bd56fc6 100644
--- a/configure.in
+++ b/configure.in
@@ -130,7 +130,31 @@ PHP_RUNPATH_SWITCH
PHP_PROG_RE2C
AC_PROG_RANLIB
AC_PROG_LN_S
-AC_PROG_AWK
+
+dnl Some vendors force mawk before gawk; mawk is broken so we don't like that,
+dnl and check manually
+dnl AC_PROG_AWK
+AC_CHECK_PROGS(AWK, gawk nawk awk mawk, bork, /usr/xpg4/bin/:$PATH)
+case "$AWK" in
+ *mawk)
+ AC_MSG_WARN([mawk is known to have problems on some systems. You should install GNU awk])
+ ;;
+ *gawk)
+ ;;
+ bork)
+ AC_MSG_ERROR([Could not find awk; Install GNU awk])
+ ;;
+ *)
+ AC_MSG_CHECKING([if $AWK is broken])
+ if ! $AWK 'function foo() {}' >/dev/null 2>&1 ; then
+ AC_MSG_RESULT([yes])
+ AC_MSG_ERROR([You should install GNU awk])
+ else
+ AC_MSG_RESULT([no - good!])
+ fi
+ ;;
+esac
+
AC_PROG_YACC
if test "$YACC" != "bison -y"; then
AC_MSG_WARN([You will need bison if you want to regenerate the PHP parsers.])