tags +upstream thanks Hello Jens,
this is clearly an upstream bug. Adding bug-autoconf. * Jens Seidel wrote on Fri, Apr 23, 2010 at 05:30:55PM CEST: > AC_LANG_PUSH(C++) > AC_CHECK_DECL(std::setlocale, [AC_DEFINE([HAVE_SETLOCALE], [], [Define if > setlocale is available in clocale])], , [#include <clocale>]) > > results in the warning > conftest.cpp:37:12: warning: extra tokens at end of #ifndef directive > in config.log. > > The corresponding code is: > > #include <clocale> > > int > main () > { > #ifndef std::setlocale > (void) std::setlocale; > #endif > > ; > return 0; > } > > The problem is "#ifndef std::setlocale" where ":" is no proper macro > character. In this case the ifndef can be ommitted. Yep. This is another problem with the AC_CHECK_DECL* macros and C++ sources. There is a pending patch for another issue in this area, http://thread.gmane.org/gmane.comp.gcc.patches/201265/focus=12673 but it does not address the above. It would probably be sufficient to just not use the #ifndef if the name contained characters not suitable for a CPP macro. Cheers, and thanks for the bug report, Ralf