summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2016-09-17 06:25:24 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2016-09-17 06:25:24 (GMT)
commitf40d4ddff3c800b3c956a5e8820aabe3aa87cddd (patch)
treea5bf5ecfbbcb97a97573a326f5966d38de5fa49c /configure
parent48ab735ca518b6cb3aef6ea1662182aba3f89253 (diff)
downloadcpython-f40d4ddff3c800b3c956a5e8820aabe3aa87cddd.zip
cpython-f40d4ddff3c800b3c956a5e8820aabe3aa87cddd.tar.gz
cpython-f40d4ddff3c800b3c956a5e8820aabe3aa87cddd.tar.bz2
Closes #27979: Remove bundled copy of libffi
An installed copy of libffi is now required for building _ctypes on any platform but OSX and Windows.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure44
1 files changed, 24 insertions, 20 deletions
diff --git a/configure b/configure
index 0e6549e..f14fa0b 100755
--- a/configure
+++ b/configure
@@ -10047,23 +10047,30 @@ if test "${with_system_ffi+set}" = set; then :
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 "$ac_sys_system" = "Darwin"
+then
+ case "$with_system_ffi" in
+ "")
+ with_system_ffi="no"
+ ;;
+ yes|no)
+ ;;
+ *)
+ as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5
+ ;;
+ esac
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
+$as_echo "$with_system_ffi" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ if test "$with_system_ffi" != ""
+ then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platform" >&5
+$as_echo "$as_me: WARNING: --with(out)-system-ffi is ignored on this platform" >&2;}
+ fi
+ with_system_ffi="yes"
+fi
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/ *$//'`"
@@ -10072,9 +10079,6 @@ else
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
-$as_echo "$with_system_ffi" >&6; }
-
# Check for use of the system libmpdec library
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5
$as_echo_n "checking for --with-system-libmpdec... " >&6; }