From 2e3ef32f4acc106de6ae8170099f09a36d4ef490 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 16 Feb 2019 22:12:41 -0700 Subject: Improve setlocale() detection in Configure-ish files This also now notes some behavior of setlocale --- config_h.SH | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'config_h.SH') diff --git a/config_h.SH b/config_h.SH index 316c3718c2..f26ed2f3bb 100755 --- a/config_h.SH +++ b/config_h.SH @@ -439,12 +439,6 @@ sed <$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un */ #$d_setlinebuf HAS_SETLINEBUF /**/ -/* HAS_SETLOCALE: - * This symbol, if defined, indicates that the setlocale routine is - * available to handle locale-specific ctype implementations. - */ -#$d_setlocale HAS_SETLOCALE /**/ - /* HAS_SETPGID: * This symbol, if defined, indicates that the setpgid(pid, gpid) * routine is available to set process group ID. @@ -3266,6 +3260,17 @@ sed <$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un */ #$d_setitimer HAS_SETITIMER /**/ +/* HAS_SETLOCALE: + * This symbol, if defined, indicates that the setlocale routine is + * available to handle locale-specific ctype implementations. + */ +/* SETLOCALE_ACCEPTS_ANY_LOCALE_NAME: + * This symbol, if defined, indicates that the setlocale routine is + * available and it accepts any input locale name as valid. + */ +#$d_setlocale HAS_SETLOCALE /**/ +#$d_setlocale_accepts_any_locale_name SETLOCALE_ACCEPTS_ANY_LOCALE_NAME /**/ + /* HAS_SETPROCTITLE: * This symbol, if defined, indicates that the setproctitle routine is * available to set process title. -- cgit v1.2.1