diff options
author | Benjamin Peterson <benjamin@python.org> | 2019-09-10 10:37:59 (GMT) |
---|---|---|
committer | T. Wouters <thomas@python.org> | 2019-09-10 10:37:59 (GMT) |
commit | f1c19031fd5f4cf6faad539e30796b42954527db (patch) | |
tree | e891a6fb68b448b3f15998f0bd1ce7f509fa004e /configure | |
parent | c8dfa7333d6317d7cd8c5c7366023f5a668e3f91 (diff) | |
download | cpython-f1c19031fd5f4cf6faad539e30796b42954527db.zip cpython-f1c19031fd5f4cf6faad539e30796b42954527db.tar.gz cpython-f1c19031fd5f4cf6faad539e30796b42954527db.tar.bz2 |
bpo-38068: Clean up gettimeofday configure logic. (GH-15775)
Assume gettimeofday exists and takes two arguments.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 31 |
1 files changed, 0 insertions, 31 deletions
@@ -12741,37 +12741,6 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi done -for ac_func in gettimeofday -do : - ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" -if test "x$ac_cv_func_gettimeofday" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GETTIMEOFDAY 1 -_ACEOF - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <sys/time.h> -int -main () -{ -gettimeofday((struct timeval*)0,(struct timezone*)0); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - -$as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h - - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi -done - # We search for both crypt and crypt_r as one or the other may be defined # This gets us our -lcrypt in LIBS when required on the target platform. |