From 6b3cc524c0df6816e75480c41774eafe0b2ac455 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Mon, 15 Apr 2002 19:20:27 +0000 Subject: [PATCH] Add a test for fchdir(). This is part of SF feature #536796. --- configure | 5 +++-- configure.in | 2 +- pyconfig.h.in | 3 +++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 9d3fb08b296..6bd6eca0360 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 1.307 . +# From configure.in Revision: 1.309 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.53. # @@ -11268,10 +11268,11 @@ echo "${ECHO_T}MACHDEP_OBJS" >&6 + for ac_func in alarm chown chroot clock confstr ctermid ctermid_r execv \ - flock fork fsync fdatasync fpathconf ftime ftruncate \ + fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \ gai_strerror getgroups getlogin getpeername getpid getpwent getwd \ hstrerror inet_pton kill killpg link lstat mkfifo mknod mktime mremap \ nice pathconf pause plock poll pthread_init \ diff --git a/configure.in b/configure.in index d3211a0e9b5..7aef29a125f 100644 --- a/configure.in +++ b/configure.in @@ -1580,7 +1580,7 @@ AC_MSG_RESULT(MACHDEP_OBJS) # checks for library functions AC_CHECK_FUNCS(alarm chown chroot clock confstr ctermid ctermid_r execv \ - flock fork fsync fdatasync fpathconf ftime ftruncate \ + fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \ gai_strerror getgroups getlogin getpeername getpid getpwent getwd \ hstrerror inet_pton kill killpg link lstat mkfifo mknod mktime mremap \ nice pathconf pause plock poll pthread_init \ diff --git a/pyconfig.h.in b/pyconfig.h.in index 0bd548596a7..cb8b1b576e4 100644 --- a/pyconfig.h.in +++ b/pyconfig.h.in @@ -86,6 +86,9 @@ /* Define to 1 if you have the `execv' function. */ #undef HAVE_EXECV +/* Define to 1 if you have the `fchdir' function. */ +#undef HAVE_FCHDIR + /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H