]> git.eshelyaron.com Git - emacs.git/commitdiff
* configure.ac: Detect Android API 36.
authorPo Lu <luangruo@yahoo.com>
Wed, 11 Jun 2025 02:35:28 +0000 (10:35 +0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 18 Jun 2025 08:03:30 +0000 (10:03 +0200)
(cherry picked from commit 82af5c10c5cbe203d8b5d605bb51bf82af75428a)

configure.ac

index cd0b5e22d3f151690eb03850448c5463879e9b9c..0ad45d800151aabd75c3ddab09c64c3404efa8b4 100644 (file)
@@ -959,7 +959,7 @@ a valid path to android.jar.  See config.log for more details.])
   fi
 
   AC_CACHE_CHECK([whether android.jar is new enough],
-    [emacs_cv_android_v_or_later],
+    [emacs_cv_android_w_or_later],
     AS_IF([rm -f conftest.class
 cat << EOF > conftest.java
 
@@ -967,18 +967,18 @@ import android.os.Build;
 
 class conftest
 {
-  private static int test = Build.VERSION_CODES.VANILLA_ICE_CREAM;
+  private static int test = Build.VERSION_CODES.BAKLAVA;
 }
 
 EOF
 ("$JAVAC" -classpath "$with_android" -target 1.7 -source 1.7 conftest.java \
   -d . >&AS_MESSAGE_LOG_FD 2>&1) && test -s conftest.class && rm -f conftest.class],
-          [emacs_cv_android_v_or_later=yes],
-          [emacs_cv_android_v_or_later=no]))
+          [emacs_cv_android_w_or_later=yes],
+          [emacs_cv_android_w_or_later=no]))
 
-  if test "$emacs_cv_android_v_or_later" = "no"; then
+  if test "$emacs_cv_android_w_or_later" = "no"; then
     AC_MSG_ERROR([Emacs must be built with an android.jar file produced for \
-Android 15 (Vanilla Ice Cream) or later.])
+Android 16 (BAKLAVA) or later.])
   fi
 
   dnl See if the Java compiler supports the `--release' option which
@@ -1189,6 +1189,8 @@ main (void)
    foo = "emacs_api_34";
 #elif __ANDROID_API__ < 36
    foo = "emacs_api_35";
+#elif __ANDROID_API__ < 37
+   foo = "emacs_api_36";
 #else
    foo = "emacs_api_future";
 #endif