diff options
author | Erlend E. Aasland <erlend.aasland@protonmail.com> | 2023-06-01 11:37:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-01 11:37:40 (GMT) |
commit | 9ab587b7146618866cee52c220aecf7bd5b44b02 (patch) | |
tree | f08fac8ec42d0c0ce92655ea5bd6185bfd7b46d1 /configure.ac | |
parent | 76b9c0cfaa3062a7f649d60cea653173d12d3839 (diff) | |
download | cpython-9ab587b7146618866cee52c220aecf7bd5b44b02.zip cpython-9ab587b7146618866cee52c220aecf7bd5b44b02.tar.gz cpython-9ab587b7146618866cee52c220aecf7bd5b44b02.tar.bz2 |
gh-89886: Rely on HAVE_SYS_TIME_H (#105058)
Quoting autoconf (v2.71):
All current systems provide time.h; it need not be checked for.
Not all systems provide sys/time.h, but those that do, all allow
you to include it and time.h simultaneously.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index a6705bc..fd33ab2 100644 --- a/configure.ac +++ b/configure.ac @@ -5305,12 +5305,6 @@ fi AC_CHECK_FUNCS([getnameinfo]) -dnl autoconf 2.71 deprecates AC_HEADER_TIME, keep for backwards compatibility -dnl TIME_WITH_SYS_TIME works on all supported systems that have sys/time.h -AS_VAR_IF([ac_cv_header_sys_time_h], [yes], [ - AC_DEFINE([TIME_WITH_SYS_TIME], 1, [Define to 1 if you can safely include both <sys/time.h> and <time.h>.]) -]) - # checks for structures AC_STRUCT_TM AC_STRUCT_TIMEZONE @@ -7296,7 +7290,9 @@ PY_STDLIB_MOD([syslog], [], [test "$ac_cv_header_syslog_h" = yes]) PY_STDLIB_MOD([termios], [], [test "$ac_cv_header_termios_h" = yes]) dnl _elementtree loads libexpat via CAPI hook in pyexpat -PY_STDLIB_MOD([pyexpat], [], [], [$LIBEXPAT_CFLAGS], [$LIBEXPAT_LDFLAGS]) +PY_STDLIB_MOD([pyexpat], + [], [test "$ac_cv_header_sys_time_h" = "yes"], + [$LIBEXPAT_CFLAGS], [$LIBEXPAT_LDFLAGS]) PY_STDLIB_MOD([_elementtree], [], [], [$LIBEXPAT_CFLAGS], []) PY_STDLIB_MOD_SIMPLE([_codecs_cn]) PY_STDLIB_MOD_SIMPLE([_codecs_hk]) |