Hi,
in configure.in I have:
AC_CHECK_FUNCS(printf)
together with some
------------------------------------------------------------------->8=======
AC_DEFUN([IC_ENABLE_ERRORS],[
AC_ARG_ENABLE(errors,
[ --enable-errors[=ARG] Enable error mode
(warnings are errors) [ARG=no]],
....
if test x$enable_errors = xyes ; then
case $CC in
dnl Just in case someone would have a non-gcc "thingcc", don't match *gcc
gcc|*-gcc)
CFLAGS="$CFLAGS -Werror";
;;
=======8<-------------------------------------------------------------------
In config.log then:
configure:11204: gcc -o conftest -Wall -Wmissing-prototypes
-fstrict-aliasing -D_GNU_SOURCE -ansi -ggdb -D_REENTRANT -Werror
-ggdb conftest
.c -lpthread>&5
cc1: warnings being treated as errors
conftest.c:67: warning: conflicting types for built-in function 'printf'
what to do best here?