X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=config%2Facx.m4;h=96b7c8a5caddbfc04f67e0024bdce9af2065a0b8;hp=ea5cb07dcabbbdeccc10f9c12ad872352d19dd01;hb=1ba8a5f4e275834d3d7d25b78838bef0c2dc7fbd;hpb=90305aaf442f0b6701fece5c7fb26193e449aee7 diff --git a/config/acx.m4 b/config/acx.m4 index ea5cb07dcab..96b7c8a5cad 100644 --- a/config/acx.m4 +++ b/config/acx.m4 @@ -140,3 +140,18 @@ else $1="$ac_cv_prog_$1" fi ]) []dnl # NCN_STRICT_CHECK_TARGET_TOOL + +### +# AC_PROG_CPP_WERROR +# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which +# triggers warnings from the preprocessor. Will be in autoconf 2.58. +# For now, using this also overrides header checks to use only the +# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a +# bit harder from here). +# Eventually autoconf will default to checking headers with the compiler +# instead, and we'll have to do this differently. + +AC_DEFUN([AC_PROG_CPP_WERROR], +[AC_REQUIRE([AC_PROG_CPP])dnl +m4_define([AC_CHECK_HEADER],m4_defn([_AC_CHECK_HEADER_OLD])) +ac_c_preproc_warn_flag=yes])# AC_PROG_CPP_WERROR