X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=config.m4;h=ec5b519e701ae60cd64d688900f5cb15cbbb80cd;hp=5201be6bb5a47e5a57dd6411c86225ba6372d799;hb=39feb7a7e30bb4b393a6f76aa2f35d4e9275523e;hpb=87bb1a405f87dfa3c175d3a6cf88597c67284456 diff --git a/config.m4 b/config.m4 index 5201be6..ec5b519 100644 --- a/config.m4 +++ b/config.m4 @@ -3,7 +3,7 @@ dnl $Id$ PHP_ARG_ENABLE([http], [whether to enable extended HTTP support], [ --enable-http Enable extended HTTP support]) -PHP_ARG_WITH([http-curl-requests], [wheter to enable cURL HTTP requests], +PHP_ARG_WITH([http-curl-requests], [whether to enable cURL HTTP requests], [ --with-http-curl-requests[=CURLDIR] With cURL HTTP request support]) PHP_ARG_WITH([http-mhash-etags], [whether to enable mhash ETag generator], @@ -61,6 +61,12 @@ dnl ---- AC_MSG_RESULT([found: $CURL_CONFIG]) fi + CURL_SSL=`$CURL_CONFIG --features | $EGREP SSL` + if test "$CURL_SSL" == "SSL"; then + AC_DEFINE([HTTP_HAVE_SSL], [1], [ ]) + fi + AC_CHECK_HEADERS([openssl/crypto.h]) + CURL_LIBS=`$CURL_CONFIG --libs` PHP_ADD_INCLUDE($CURL_DIR/include) @@ -76,6 +82,10 @@ dnl ---- [AC_DEFINE([HAVE_CURL_EASY_STRERROR], [1], [ ])], [ ], [$CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR] ) + PHP_CHECK_LIBRARY(curl, curl_easy_reset, + [AC_DEFINE([HAVE_CURL_EASY_RESET], [1], [ ])], [ ], + [$CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR] + ) fi dnl ----