X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=config.m4;h=bf19c2418424870dc919c62d4d8e3748c14fa40b;hp=f3c56265fa6582a077c62fb11d4af9ac9254af39;hb=a759e1fae5a4d0e989b9735adf8f3224ed9419d7;hpb=8418b76b51483dabb980519c88cf3a9e762d396b diff --git a/config.m4 b/config.m4 index f3c5626..bf19c24 100644 --- a/config.m4 +++ b/config.m4 @@ -16,6 +16,21 @@ PHP_ARG_WITH([http-zlib-compression], [whether to enable support for gzencoded/d if test "$PHP_HTTP" != "no"; then + ifdef([AC_PROG_EGREP], [ + AC_PROG_EGREP + ], [ + AC_CHECK_PROG(EGREP, egrep, egrep) + ]) + ifdef([AC_PROG_SED], [ + AC_PROG_SED + ], [ + ifdef([LT_AC_PROG_SED], [ + LT_AC_PROG_SED + ], [ + AC_CHECK_PROG(SED, sed, sed) + ]) + ]) + dnl ------- dnl NETDB.H dnl ------- @@ -87,11 +102,6 @@ dnl ---- CURL_LIBS=`$CURL_CONFIG --libs` - CURL_ZLIB=`$CURL_CONFIG --features | $EGREP libz` - if test "$CURL_ZLIB" = "libz"; then - AC_DEFINE([HTTP_HAVE_CURL_ZLIB], [1], [ ]) - fi - AC_MSG_CHECKING([for SSL support in libcurl]) CURL_SSL=`$CURL_CONFIG --features | $EGREP SSL` if test "$CURL_SSL" = "SSL"; then