if test -z "$PECL_VAR([LIBCURL_SSLLIB])"; then
AC_CACHE_CHECK([for $1 providing SSL in libcurl], PECL_CACHE_VAR([HAVE_LIBCURL_$1]), [
AC_TRY_RUN([
+ #include <strings.h>
#include <curl/curl.h>
int main(int argc, char *argv[]) {
curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
PECL_CHECK_CONFIG(libicu, [$ICU_CONFIG], [--version], [--cppflags], [--ldflags-searchpath], [--ldflags-libsonly])
AC_CACHE_CHECK([for uidna_IDNToASCII], PECL_CACHE_VAR([HAVE_UIDNA_IDNToASCII]), [
+ if printf "%s" "$CFLAGS" | $EGREP -q "(^|\s)-Werror\b"; then
+ if ! printf "%s" "$CFLAGS" | $EGREP -q "(^|\s)-Wno-error=deprecated-declarations\b"; then
+ CFLAGS="$CFLAGS -Wno-error=deprecated-declarations"
+ fi
+ fi
AC_TRY_LINK([
#include <unicode/uidna.h>
], [