summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2016-09-10 00:01:21 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2016-09-10 00:01:21 (GMT)
commit935043d1ac19d07ac48233c6175250e66a7bbebd (patch)
treeb5a4d3b5202fbe75b904e8c35e141891ceb18dd6 /configure
parentb7f3c944d1d0865ce797848e3a40c3ad9435b698 (diff)
downloadcpython-935043d1ac19d07ac48233c6175250e66a7bbebd.zip
cpython-935043d1ac19d07ac48233c6175250e66a7bbebd.tar.gz
cpython-935043d1ac19d07ac48233c6175250e66a7bbebd.tar.bz2
Closes #27976: Deprecate bundled full copy of libffi
Builds on non-OSX UNIX now default to using the system libffi, and warn if the bundled copy is used.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure20
1 files changed, 18 insertions, 2 deletions
diff --git a/configure b/configure
index 7138eb1..3998a32 100755
--- a/configure
+++ b/configure
@@ -9851,11 +9851,27 @@ $as_echo_n "checking for --with-system-ffi... " >&6; }
# Check whether --with-system_ffi was given.
if test "${with_system_ffi+set}" = set; then :
withval=$with_system_ffi;
-else
- with_system_ffi="no"
fi
+case "$with_system_ffi" in
+ "")
+ case $ac_sys_system in
+ Darwin)
+ with_system_ffi="no"
+ ;;
+ *)
+ with_system_ffi="yes"
+ ;;
+ esac
+ ;;
+ yes|no)
+ ;;
+ *)
+ as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5
+ ;;
+esac
+
if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then
LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
else