diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -202,6 +202,7 @@ termios_define= have_pkgconfig= libffi_cflags= darwin_target= +android_target= # # Parse configuration variables @@ -1143,6 +1144,21 @@ else printf "no\n" fi +if ! [ $darwin_target ] ; then + printf "Checking for Android environment ... " + + if [ "$(make conftest.android)" = "yes" ] ; then + printf "yes\n" + android_target=y + lang_flags="$lang_flags -D__ANDROID_API__=65535 -D_BSD_SOURCE" + printf "Regenerating config.make ..." + gen_config_make + printf "done\n" + else + printf "no\n" + fi +fi + # # Detect stupid FreeBSD problem: no defined way to reveal # traditional BSD functions if Unix compliance is selected with |