diff options
author | pme <pme@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-02 18:46:54 +0000 |
---|---|---|
committer | pme <pme@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-02 18:46:54 +0000 |
commit | c3bc94d98e6c970517938ecc0ade4ecc2fc82671 (patch) | |
tree | 6b410b5f9b983f63fb719aae0356a28474f0f73c /libstdc++-v3/aclocal.m4 | |
parent | 09a84b984997013facef0c34368eaa60d1210c6c (diff) | |
download | gcc-c3bc94d98e6c970517938ecc0ade4ecc2fc82671.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71001 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/aclocal.m4')
-rw-r--r-- | libstdc++-v3/aclocal.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libstdc++-v3/aclocal.m4 b/libstdc++-v3/aclocal.m4 index 47bcaa7da6b..42399080ba3 100644 --- a/libstdc++-v3/aclocal.m4 +++ b/libstdc++-v3/aclocal.m4 @@ -1289,6 +1289,9 @@ dnl dnl Sets: dnl is_hosted (yes/no) dnl +dnl Defines: +dnl _GLIBCXX_HOSTED (always defined, either to 1 or 0) +dnl AC_DEFUN(GLIBCXX_ENABLE_HOSTED, [ AC_ARG_ENABLE([hosted-libstdcxx], AC_HELP_STRING([--disable-hosted-libstdcxx], @@ -1297,12 +1300,16 @@ AC_DEFUN(GLIBCXX_ENABLE_HOSTED, [ if test "$enable_hosted_libstdcxx" = no; then AC_MSG_NOTICE([Only freestanding libraries will be built]) is_hosted=no + hosted_define=0 enable_abi_check=no enable_libstdcxx_pch=no else is_hosted=yes + hosted_define=1 fi GLIBCXX_CONDITIONAL(GLIBCXX_HOSTED, test $is_hosted = yes) + AC_DEFINE_UNQUOTED(_GLIBCXX_HOSTED, $hosted_define, + [Define to 1 if a full hosted library is built, or 0 if freestanding.]) ]) |