summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJoshua Root <jmr@macports.org>2019-04-12 15:51:35 (GMT)
committerBenjamin Peterson <benjamin@python.org>2019-04-12 15:51:35 (GMT)
commit0fd5a7338cbaf7a61ab5bad270c1b0311047d0f9 (patch)
treeb1f5d9aa3e72f268f566f60af13fbc891a173b1b /configure
parent22de4ce498b656063e236350e8404981c13e1cd8 (diff)
downloadcpython-0fd5a7338cbaf7a61ab5bad270c1b0311047d0f9.zip
cpython-0fd5a7338cbaf7a61ab5bad270c1b0311047d0f9.tar.gz
cpython-0fd5a7338cbaf7a61ab5bad270c1b0311047d0f9.tar.bz2
bpo-34652: Use AC_CHECK_FUNCS for lchmod. (GH-12799)
A fix for 69e96910153219b0b15a18323b917bd74336d229, which resulted in lchmod being disabled on all platforms, not just Linux. (cherry picked from commit ed709d5699716bf7237856dc20aba321e2dfff6d)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure b/configure
index dd30c11..ced0a00 100755
--- a/configure
+++ b/configure
@@ -10632,10 +10632,16 @@ done
# links. Some libc implementations have a stub lchmod implementation that always
# returns an error.
if test "$MACHDEP" != linux; then
+ for ac_func in lchmod
+do :
ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
if test "x$ac_cv_func_lchmod" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LCHMOD 1
+_ACEOF
fi
+done
fi