]> git.eshelyaron.com Git - emacs.git/commitdiff
Suppress detection of utmpx.h on Android
authorPo Lu <luangruo@yahoo.com>
Sun, 21 Jan 2024 01:53:55 +0000 (09:53 +0800)
committerEshel Yaron <me@eshelyaron.com>
Sun, 21 Jan 2024 07:31:38 +0000 (08:31 +0100)
* configure.ac (ac_cv_header_utmpx_h): Predefine to no when
Android is older than 34.

(cherry picked from commit 10ffe161da67a550534c818cab27001b1e75c79f)

configure.ac

index 55f742ba8ef06b6c0446f64be55418968427ca34..dffe7696ac5b23b4a391fcb1eb9470ec3633f0f6 100644 (file)
@@ -160,6 +160,12 @@ variable when you ran configure.])
     ;;
   esac
   AC_MSG_RESULT([$host_alias])
+
+  # Suppress the detection of utmpx.h on Android versions older than
+  # 34, for the header will be present yet define no functions,
+  # which Gnulib is not prepared to handle.
+  AS_IF([test "$ANDROID_SDK" -lt "34"],
+    [ac_cv_header_utmpx_h=no])
 fi
 
 AC_CANONICAL_HOST