X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=config9.m4;h=dda5b015fe8bc0138a2ba0f3781628be373dd500;hp=1f8adabd338b4655dafdcb8b0ccba60de36cda88;hb=fe48edfe1c8454750b84fd483ce4af60a5656763;hpb=d9ba7726f77858e626d67d758a87c9caa6f38d2b diff --git a/config9.m4 b/config9.m4 index 1f8adab..dda5b01 100644 --- a/config9.m4 +++ b/config9.m4 @@ -82,6 +82,11 @@ if test "$PHP_HTTP" != "no"; then 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 ], [