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
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], [ ])