diff options
author | xdegaye <xdegaye@gmail.com> | 2017-11-23 10:44:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-23 10:44:38 (GMT) |
commit | c06c22e9a9fb9326e79fcf1551601eacc1fd457d (patch) | |
tree | f38029612fd0dcc789f3f7d60ca134911dced9f1 /configure | |
parent | 5ad7ef8e420de8a54fb30ed37362194c6b96012c (diff) | |
download | cpython-c06c22e9a9fb9326e79fcf1551601eacc1fd457d.zip cpython-c06c22e9a9fb9326e79fcf1551601eacc1fd457d.tar.gz cpython-c06c22e9a9fb9326e79fcf1551601eacc1fd457d.tar.bz2 |
bpo-29040: Support building Android with Unified Headers (GH-4492)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -5611,7 +5611,6 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } $as_echo_n "checking for the Android API level... " >&6; } cat >> conftest.c <<EOF #ifdef __ANDROID__ -#include <android/api-level.h> android_api = __ANDROID_API__ arm_arch = __ARM_ARCH #else @@ -5624,6 +5623,10 @@ if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 $as_echo "$ANDROID_API_LEVEL" >&6; } + if test -z "$ANDROID_API_LEVEL"; then + echo 'Fatal: you must define __ANDROID_API__' + exit 1 + fi cat >>confdefs.h <<_ACEOF #define ANDROID_API_LEVEL $ANDROID_API_LEVEL |