summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2019-09-10 11:37:59 +0100
committerT. Wouters <thomas@python.org>2019-09-10 03:37:59 -0700
commitf1c19031fd5f4cf6faad539e30796b42954527db (patch)
treee891a6fb68b448b3f15998f0bd1ce7f509fa004e /configure
parentc8dfa7333d6317d7cd8c5c7366023f5a668e3f91 (diff)
downloadcpython-git-f1c19031fd5f4cf6faad539e30796b42954527db.tar.gz
bpo-38068: Clean up gettimeofday configure logic. (GH-15775)
Assume gettimeofday exists and takes two arguments.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure31
1 files changed, 0 insertions, 31 deletions
diff --git a/configure b/configure
index d4d59be860..cb60ce256d 100755
--- a/configure
+++ b/configure
@@ -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.