X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=config.m4;h=3967b1fe15b37ce9629874d0a6ce96690f937d5b;hp=2f8399cfd387c0bb65d6de838a15d54d7147bdf2;hb=e6d4ae260275041fcc32f06f3487cdef6613c646;hpb=6deee2e3d2d6282dd76e3725fe2de6c7833bd57f diff --git a/config.m4 b/config.m4 index 2f8399c..3967b1f 100644 --- a/config.m4 +++ b/config.m4 @@ -79,6 +79,10 @@ dnl ---- PHP_NEW_EXTENSION([http], $PHP_HTTP_SOURCES, [$ext_shared]) PHP_SUBST([HTTP_SHARED_LIBADD]) PHP_ADD_MAKEFILE_FRAGMENT + if ! test -z "$HTTP_ODD_WARNINGS"; then + CFLAGS=" -g -O2 -W -Wchar-subscripts -Wformat=2 -Wno-format-y2k -Wimplicit -Wmissing-braces -Wunused-variable -Wbad-function-cast -Wpointer-arith -Wsign-compare -Winline" + PHP_SUBST([CFLAGS]) + fi AC_DEFINE([HAVE_HTTP], [1], [Have extended HTTP support]) fi