enhanced strftime %z check
This commit is contained in:
parent
7001dfa037
commit
af67e44cb0
2
configure
vendored
2
configure
vendored
@ -18705,7 +18705,7 @@ else
|
||||
char buf[100];
|
||||
time_t t = 0;
|
||||
strftime (buf, sizeof(buf), "%z", gmtime(&t));
|
||||
return strcmp(buf, "%z") == 0? 1: 0;
|
||||
return (strcmp(buf, "%z") == 0 || strcmp(buf, "z") == 0)? 1: 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_run "$LINENO"; then :
|
||||
|
@ -232,7 +232,7 @@ AC_TRY_RUN(
|
||||
char buf[100];
|
||||
time_t t = 0;
|
||||
strftime (buf, sizeof(buf), "%z", gmtime(&t));
|
||||
return strcmp(buf, "%z") == 0? 1: 0;
|
||||
return (strcmp(buf, "%z") == 0 || strcmp(buf, "z") == 0)? 1: 0;
|
||||
}],
|
||||
[
|
||||
AC_MSG_RESULT(yes)
|
||||
|
Loading…
Reference in New Issue
Block a user