diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-15 18:58:49 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-15 18:58:49 +0000 |
commit | 017028722d305774b32acf0eb3498fb5b73559a2 (patch) | |
tree | 5a9b62f0c8100390c38fe86df1bb7fbe5d686da9 /libstdc++-v3/acinclude.m4 | |
parent | 00654e159f48253cbdc29e21d8c172097b364726 (diff) | |
download | gcc-017028722d305774b32acf0eb3498fb5b73559a2.tar.gz |
2001-12-15 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_ENABLE_CLOCALE): Enable gnu locale model
on linux by default.
* aclocal.m4: Regenerate.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48046 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/acinclude.m4')
-rw-r--r-- | libstdc++-v3/acinclude.m4 | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index 7ed8cfd1839..beba85edb4b 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -1041,13 +1041,31 @@ AC_DEFUN(GLIBCPP_ENABLE_CLOCALE, [ --enable-clocale=MODEL use MODEL target-speific locale package. [default=generic] ], if test x$enable_clocale = xno; then - enable_clocale=generic + enable_clocale=no fi, - enable_clocale=generic) + enable_clocale=no) enable_clocale_flag=$enable_clocale - dnl Check if a valid locale package + dnl Probe for locale support if no specific model is specified. + dnl Default to "generic" + if test x$enable_clocale_flag = xno; then + case x${target_os} in + xlinux* | xgnu*) + AC_EGREP_CPP([ok], [ + #include <features.h> + #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) + ok + #endif + ], enable_clocale_flag=gnu, enable_clocale_flag=generic) + ;; + *) + enable_clocale_flag=generic + ;; + esac + fi + + dnl Set configure bits for specified locale package case x${enable_clocale_flag} in xgeneric) AC_MSG_RESULT(generic) |