]> granicus.if.org Git - python/commitdiff
remove configure check for memmove (#3716)
authorBenjamin Peterson <benjamin@python.org>
Sun, 24 Sep 2017 19:08:40 +0000 (12:08 -0700)
committerGitHub <noreply@github.com>
Sun, 24 Sep 2017 19:08:40 +0000 (12:08 -0700)
Python requires C implementations provide memmove, so we shouldn't need to check for it. The only place using this configure check was expat, where we can simply always define HAVE_MEMMOVE.

Modules/expat/expat_config.h
configure
configure.ac
pyconfig.h.in

index b8c1639b9769ab0403af8044e94103c7fe399703..afbedd011f660ff96c10f025a40e102c98363906 100644 (file)
@@ -12,6 +12,8 @@
 #define BYTEORDER 1234
 #endif
 
+#define HAVE_MEMMOVE 1
+
 #define XML_NS 1
 #define XML_DTD 1
 #define XML_CONTEXT_BYTES 1024
index 00dd1f0514a69cb26b98a305cd52a241a99e01bd..819dc7a0c163386c4c1dd6d5c78fb366b0b54f21 100755 (executable)
--- a/configure
+++ b/configure
 done
 
 
-# Stuff for expat.
-for ac_func in memmove
-do :
-  ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
-if test "x$ac_cv_func_memmove" = xyes; then :
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_MEMMOVE 1
-_ACEOF
-
-fi
-done
-
-
 # check for long file support functions
 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
 do :
index 88ab6a121571c4165a73a650f61d0331e235a09c..e90d05d1c8dab8c67cc9e599b15cf74ceb478604 100644 (file)
@@ -3684,9 +3684,6 @@ AC_CHECK_FUNCS(forkpty,,
    )
 )
 
-# Stuff for expat.
-AC_CHECK_FUNCS(memmove)
-
 # check for long file support functions
 AC_CHECK_FUNCS(fseek64 fseeko fstatvfs ftell64 ftello statvfs)
 
index 4fc5a3f5a384b5937aa45347a7fa901fd3ea215a..d4feabeece308887ed8ec6125b733734583bef36 100644 (file)
 /* Define to 1 if you have the `mbrtowc' function. */
 #undef HAVE_MBRTOWC
 
-/* Define to 1 if you have the `memmove' function. */
-#undef HAVE_MEMMOVE
-
 /* Define to 1 if you have the <memory.h> header file. */
 #undef HAVE_MEMORY_H