From: Po Lu Date: Sun, 21 Jan 2024 01:53:55 +0000 (+0800) Subject: Suppress detection of utmpx.h on Android X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=25e0f8eba6b058c637abdd43c35b2124c59a77e5;p=emacs.git Suppress detection of utmpx.h on Android * configure.ac (ac_cv_header_utmpx_h): Predefine to no when Android is older than 34. (cherry picked from commit 10ffe161da67a550534c818cab27001b1e75c79f) --- diff --git a/configure.ac b/configure.ac index 55f742ba8ef..dffe7696ac5 100644 --- a/configure.ac +++ b/configure.ac @@ -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