aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1ac6d2a9d..c0aa04c58 100644
--- a/configure.ac
+++ b/configure.ac
@@ -72,6 +72,7 @@ AC_CANONICAL_HOST
host_is_unix=yes
host_is_linux=no
+host_is_android=no
host_is_darwin=no
host_is_solaris=no
host_is_windows=no
@@ -79,6 +80,13 @@ host_is_windows=no
linux_auto=no
case "$host_os" in
+linux-android*)
+ host_is_android=yes
+ host_is_linux=yes
+ linux_auto=auto
+ AM_CPPFLAGS="$AM_CPPFLAGS -DANDROID"
+ ;;
+
linux*)
host_is_linux=yes
linux_auto=auto
@@ -104,6 +112,8 @@ solaris*)
host_is_solaris=yes
;;
esac
+
+AM_CONDITIONAL([ANDROID], [test x$host_is_android = xyes])
AM_CONDITIONAL([HAVE_WINDOWS], [test x$host_is_windows = xyes])
if test -z "$prefix" || test "x$prefix" = xNONE; then