Skip to content

Commit

Permalink
Add Configure probe for strerror_l()
Browse files Browse the repository at this point in the history
As requested by khw++

Until the relevant symbol is used, HAS_STRERROR_L must be mentioned
explicitly in metaconfig.h.

This corresponds to metaconfig d0838744f03cfe7642950ea91dd48f575d0bfd15.
  • Loading branch information
arc committed Jun 2, 2016
1 parent bc900e4 commit ef55c67
Show file tree
Hide file tree
Showing 15 changed files with 34 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Configure
Expand Up @@ -862,6 +862,7 @@ d_strerrm=''
d_strerror=''
d_sysernlst=''
d_syserrlst=''
d_strerror_l=''
d_strerror_r=''
strerror_r_proto=''
d_strftime=''
Expand Down Expand Up @@ -19280,6 +19281,10 @@ if test "X$d_strerror" = X -o "X$d_syserrlst" = X; then
fi
fi

: see if strerror_l exists
set strerror_l d_strerror_l
eval $inlibc

: see if strerror_r exists
set strerror_r d_strerror_r
eval $inlibc
Expand Down Expand Up @@ -24643,6 +24648,7 @@ d_strcoll='$d_strcoll'
d_strctcpy='$d_strctcpy'
d_strerrm='$d_strerrm'
d_strerror='$d_strerror'
d_strerror_l='$d_strerror_l'
d_strerror_r='$d_strerror_r'
d_strftime='$d_strftime'
d_strlcat='$d_strlcat'
Expand Down
1 change: 1 addition & 0 deletions Cross/config.sh-arm-linux
Expand Up @@ -549,6 +549,7 @@ d_strcoll='define'
d_strctcpy='define'
d_strerrm='strerror(e)'
d_strerror='define'
d_strerror_l='undef'
d_strerror_r='undef'
d_strftime='define'
d_strlcat='undef'
Expand Down
1 change: 1 addition & 0 deletions NetWare/config.wc
Expand Up @@ -539,6 +539,7 @@ d_strcoll='define'
d_strctcpy='define'
d_strerrm='strerror(e)'
d_strerror='define'
d_strerror_l='undef'
d_strerror_r='undef'
d_strftime='define'
d_strlcat='undef'
Expand Down
1 change: 1 addition & 0 deletions Porting/config.sh
Expand Up @@ -562,6 +562,7 @@ d_strcoll='define'
d_strctcpy='define'
d_strerrm='strerror(e)'
d_strerror='define'
d_strerror_l='undef'
d_strerror_r='undef'
d_strftime='define'
d_strlcat='define'
Expand Down
7 changes: 7 additions & 0 deletions config_h.SH
Expand Up @@ -3507,6 +3507,13 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#$d_fstatvfs HAS_FSTATVFS /**/
/* HAS_STRERROR_L:
* This symbol, if defined, indicates that the strerror_l routine is
* available to return the error message for a given errno value in
* a particular locale (identified by a locale_t object).
*/
#$d_strerror_l HAS_STRERROR_L /**/
/* HAS_STRFTIME:
* This symbol, if defined, indicates that the strftime routine is
* available to do time formatting.
Expand Down
1 change: 1 addition & 0 deletions configure.com
Expand Up @@ -6907,6 +6907,7 @@ $ WC "d_setservent_r='undef'"
$ WC "d_snprintf='" + d_snprintf + "'"
$ WC "d_srand48_r='undef'"
$ WC "d_srandom_r='undef'"
$ WC "d_strerror_l='undef'"
$ WC "d_strerror_r='undef'"
$ WC "d_tmpnam_r='undef'"
$ WC "d_ttyname_r='" + d_ttyname_r + "'"
Expand Down
1 change: 1 addition & 0 deletions metaconfig.h
Expand Up @@ -32,6 +32,7 @@
* HAS_PRCTL
* HAS_PSEUDOFORK
* HAS_QUERYLOCALE
* HAS_STRERROR_L
* HAS_TIMEGM
* HAS_USELOCALE
* I16SIZE
Expand Down
1 change: 1 addition & 0 deletions plan9/config_sh.sample
Expand Up @@ -549,6 +549,7 @@ d_strcoll='define'
d_strctcpy='define'
d_strerrm='strerror(e)'
d_strerror='define'
d_strerror_l='undef'
d_strerror_r='undef'
d_strftime='define'
d_strlcat='undef'
Expand Down
1 change: 1 addition & 0 deletions symbian/config.sh
Expand Up @@ -497,6 +497,7 @@ d_strcoll='undef'
d_strctcpy='undef'
d_strerrm='strerror(e)'
d_strerror='define'
d_strerror_l='undef'
d_strerror_r='undef'
d_strftime='undef'
d_strlcat='undef'
Expand Down
11 changes: 9 additions & 2 deletions uconfig.h
Expand Up @@ -3472,6 +3472,13 @@
*/
/*#define HAS_FSTATVFS / **/

/* HAS_STRERROR_L:
* This symbol, if defined, indicates that the strerror_l routine is
* available to return the error message for a given errno value in
* a particular locale (identified by a locale_t object).
*/
/*#define HAS_STRERROR_L / **/

/* HAS_STRFTIME:
* This symbol, if defined, indicates that the strftime routine is
* available to do time formatting.
Expand Down Expand Up @@ -5246,6 +5253,6 @@
#endif

/* Generated from:
* ad669f127235e5deedd1f98bea3dbe5c0b7c3b18ebbe8f0d91f3496f18af832c config_h.SH
* fb9ab8a0e51b906cd21cc8e6fc3a50303358996b27814b31f94850c4777e65d7 uconfig.sh
* c14530f7567d861ce42d42446fc2ee9cd3625763f65867d5f42849c337bbc361 config_h.SH
* 3b14c76342a834042da506e8c3b4269f7d545453079733cb740970ab9cc4294e uconfig.sh
* ex: set ro: */
1 change: 1 addition & 0 deletions uconfig.sh
Expand Up @@ -488,6 +488,7 @@ d_strcoll='undef'
d_strctcpy='undef'
d_strerrm='strerror(e)'
d_strerror='undef'
d_strerror_l='undef'
d_strerror_r='undef'
d_strftime='undef'
d_strlcat='undef'
Expand Down
1 change: 1 addition & 0 deletions uconfig64.sh
Expand Up @@ -489,6 +489,7 @@ d_strcoll='undef'
d_strctcpy='undef'
d_strerrm='strerror(e)'
d_strerror='undef'
d_strerror_l='undef'
d_strerror_r='undef'
d_strftime='undef'
d_strlcat='undef'
Expand Down
1 change: 1 addition & 0 deletions win32/config.ce
Expand Up @@ -537,6 +537,7 @@ d_strcoll='define'
d_strctcpy='define'
d_strerrm='strerror(e)'
d_strerror='define'
d_strerror_l='undef'
d_strerror_r='undef'
d_strftime='undef'
d_strlcat='undef'
Expand Down
1 change: 1 addition & 0 deletions win32/config.gc
Expand Up @@ -537,6 +537,7 @@ d_strcoll='define'
d_strctcpy='define'
d_strerrm='strerror(e)'
d_strerror='define'
d_strerror_l='undef'
d_strerror_r='undef'
d_strftime='define'
d_strlcat='undef'
Expand Down
1 change: 1 addition & 0 deletions win32/config.vc
Expand Up @@ -537,6 +537,7 @@ d_strcoll='define'
d_strctcpy='define'
d_strerrm='strerror(e)'
d_strerror='define'
d_strerror_l='undef'
d_strerror_r='undef'
d_strftime='define'
d_strlcat='undef'
Expand Down

0 comments on commit ef55c67

Please sign in to comment.