Simon Josefsson wrote:
> I want to add some warning flags from configure, including -Werror.

You can use AC_PREPROC_IFELSE if using GCC:

$ gcc -E -x c /dev/null -Wno-frobnicate
cc1: error: unrecognized command line option "-Wno-frobnicate"

It is faster.

Also, this:

> +  AC_COMPILE_IFELSE(AC_LANG_PROGRAM([]), foo=yes, foo=no)

is underquoted:

AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], foo=yes, foo=no)

Thanks,

Paolo


Reply via email to