X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=config9.m4;h=5f06a5cdb4395381257d5f55961772ce53a4acc6;hp=85a7ec4ceb3e7b5eee9668015475e005a94a6ffa;hb=c7ff6df7b3f488c2d2cb5df1d3e64ff4ffbb2557;hpb=4ffb062b7475b0d7bd4737a959bebd9f557d8a95 diff --git a/config9.m4 b/config9.m4 index 85a7ec4..5f06a5c 100644 --- a/config9.m4 +++ b/config9.m4 @@ -96,13 +96,11 @@ if test "$PHP_HTTP" != "no"; then dnl ---- dnl STDC dnl ---- + AC_TYPE_OFF_T + dnl getdomainname() is declared in netdb.h on some platforms: AIX, OSF AC_CHECK_HEADERS([netdb.h unistd.h]) PHP_CHECK_FUNC(gethostname, nsl) PHP_CHECK_FUNC(getdomainname, nsl) - PHP_CHECK_FUNC(getservbyport, nsl) - PHP_CHECK_FUNC(getservbyport_r, nsl) - PHP_CHECK_FUNC(getservbyname, nsl) - PHP_CHECK_FUNC(getservbyname_r, nsl) dnl ---- dnl ZLIB @@ -331,7 +329,7 @@ dnl ---- AC_MSG_CHECKING([for libevent version, roughly]) if test -f "$EVENT_DIR/include/event2/event.h"; then - EVENT_VER="`$EGREP _EVENT_VERSION $EVENT_DIR/include/event2/event-config.h | $AWK '{print $3}'`" + EVENT_VER="`$AWK '/_EVENT_VERSION/ {gsub(/\"/,\"\",$3); print $3}' < $EVENT_DIR/include/event2/event-config.h`" AC_DEFINE([PHP_HTTP_HAVE_EVENT2], [1], [ ]) else AC_DEFINE([PHP_HTTP_HAVE_EVENT2], [0], [ ])