From c58cd511ab6c280a72ed725dbca653d3b1274f2a Mon Sep 17 00:00:00 2001 From: Christian Lohmaier Date: Thu, 2 Jun 2016 13:37:02 +0200 Subject: [PATCH] allow use of android ndk 11.1.x Change-Id: I1ae9419383c56a026d05d6adf4adf81dc981f56a --- configure.ac | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index db1b0ae50b10..8bdee1d3820d 100644 --- a/configure.ac +++ b/configure.ac @@ -349,15 +349,21 @@ if test -n "$with_android_ndk"; then # Set up a lot of pre-canned defaults if test ! -f $ANDROID_NDK_HOME/RELEASE.TXT; then - AC_MSG_ERROR([Unrecognized Android NDK. Missing RELEASE.TXT file in $ANDROID_NDK_HOME.]) + if test ! -f $ANDROID_NDK_HOME/source.properties; then + AC_MSG_ERROR([Unrecognized Android NDK. Missing RELEASE.TXT or source.properties file in $ANDROID_NDK_HOME.]) + fi + ANDROID_NDK_VERSION=`sed -n -e 's/Pkg.Revision = //p' $ANDROID_NDK_HOME/source.properties` + else + ANDROID_NDK_VERSION=`cut -f1 -d' ' <$ANDROID_NDK_HOME/RELEASE.TXT` fi - ANDROID_NDK_VERSION=`cut -f1 -d' ' <$ANDROID_NDK_HOME/RELEASE.TXT` case $ANDROID_NDK_VERSION in r9*|r10*) ;; + 11.1.*) + ;; *) - AC_MSG_ERROR([Unsupported NDK version $ANDROID_NDK_VERSION, only r9* and r10* versions are supported]) + AC_MSG_ERROR([Unsupported NDK version $ANDROID_NDK_VERSION, only r9*, r10* and 11.1.* versions are supported]) ;; esac