diff options
author | Phil Edwards <phil@codesourcery.com> | 2003-09-02 18:46:54 +0000 |
---|---|---|
committer | Phil Edwards <pme@gcc.gnu.org> | 2003-09-02 18:46:54 +0000 |
commit | 3660e02f0d9bedca08e7f562edf861027bb70950 (patch) | |
tree | 6b410b5f9b983f63fb719aae0356a28474f0f73c /libstdc++-v3/configure | |
parent | 742c0a4ee18fc5d913c4384e3e55f2c95c3e7fe6 (diff) | |
download | gcc-3660e02f0d9bedca08e7f562edf861027bb70950.zip gcc-3660e02f0d9bedca08e7f562edf861027bb70950.tar.gz gcc-3660e02f0d9bedca08e7f562edf861027bb70950.tar.bz2 |
acinclude.m4 (GLIBCXX_ENABLE_HOSTED): #define _GLIBCXX_HOSTED appropriately.
2003-09-02 Phil Edwards <phil@codesourcery.com>
* acinclude.m4 (GLIBCXX_ENABLE_HOSTED): #define _GLIBCXX_HOSTED
appropriately.
* config.h.in: Add _GLIBCXX_HOSTED.
* libsupc++/eh_term_handler.cc: Test it here; initialize
__terminate_handler to std::abort if freestanding.
* aclocal.m4, configure: Regenerated.
* docs/html/configopts.html: Document --disable-hosted-libstdcxx.
From-SVN: r71001
Diffstat (limited to 'libstdc++-v3/configure')
-rwxr-xr-x | libstdc++-v3/configure | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index bd222ff..e9e51e3 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -4819,13 +4819,20 @@ fi; { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5 echo "$as_me: Only freestanding libraries will be built" >&6;} is_hosted=no + hosted_define=0 enable_abi_check=no enable_libstdcxx_pch=no else is_hosted=yes + hosted_define=1 fi +cat >>confdefs.h <<_ACEOF +#define _GLIBCXX_HOSTED $hosted_define +_ACEOF + + # Check for support bits and g++ features that don't require linking. @@ -4862,7 +4869,7 @@ fi; # # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style. cat > conftest.$ac_ext << EOF -#line 4865 "configure" +#line 4872 "configure" struct S { ~S(); }; void bar(); void foo() |