X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=config9.m4;h=dda5b015fe8bc0138a2ba0f3781628be373dd500;hp=f7619c572ff53224d5342f5480425499ec5f11ee;hb=a5df2b0848bd62fde66253f0dd825708b9dc0360;hpb=e096f45ff30a46d6a8e96da7bc6334d2ac5ab7c2 diff --git a/config9.m4 b/config9.m4 index f7619c5..dda5b01 100644 --- a/config9.m4 +++ b/config9.m4 @@ -76,12 +76,17 @@ if test "$PHP_HTTP" != "no"; then dnl ICU IDNA PHP_ARG_WITH([http-libicu-dir], [whether/where to check for libicu], - [ --with-http-libidn-dir[=DIR] HTTP: where to find libicu], $PHP_HTTP_LIBCURL_DIR, no) + [ --with-http-libicu-dir[=DIR] HTTP: where to find libicu], $PHP_HTTP_LIBCURL_DIR, no) if test "$PHP_HTTP_LIBICU_DIR" != "no"; then AC_PATH_PROG(ICU_CONFIG, icu-config, false, [$PHP_HTTP_LIBICU_DIR/bin:$PATH:/usr/local/bin]) 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 ], [