autoconf issue using -stdc=gnu++0x option in AC_CHECK_HEADER macro.

Jochen Schmitt Jochen at herr-schmitt.de
Thu Jan 10 17:47:18 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kevin Kofler schrieb:
> Add it to the CXXFLAGS, you'll need it there anyway when actually
> building the program. I believe there's also a macro to check the
> existence of the flag, which will add it to the CXXFLAGS
> automatically if the test succeeds.
>
That was the first thing what I have tried to do after I have
recognized this issue, but autoconf
doesn't honor this settings when AC_CHECK_HEADER call the g++ compiler for
compiling the test program.

For you suggestion to using cmake, I'm not the upstream author.

As follow a snippet from the config.log file:

configure:9397: checking unordered_set usability
configure:9414: g++ -c -O2 -Wall  conftest.cpp >&5
In file included from
/usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../include/c++/4.3.0/unordered_set:40,
                 from conftest.cpp:107:
/usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../include/c++/4.3.0/c++0x_warning.h:36:2:
error: #error This file requires compiler and library support for the
upcoming ISO C++ standard, C++0x. This support is currently
experimental, and must be enabled with the -std=c++0x or -std=gnu++0x
compiler options.
In file included from
/usr/lib/gcc/i386-redhat-linux/4.3.0/../../../../include/c++/4.3.0/unordered_set:53,
                 from conftest.cpp:107:

Best Regards:

Jochen Schmitt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHhlodT2AHK6txfgwRAmxPAKC4tGbJ83BgIDLEYnl6K+kENyglNgCg6I10
TAJXUh9oey+c6oMnS671+r4=
=k0uj
-----END PGP SIGNATURE-----




More information about the devel mailing list