Suppress detection of utmpx.h on Android

* configure.ac (ac_cv_header_utmpx_h): Predefine to no when
Android is older than 34.
This commit is contained in:
Po Lu 2024-01-21 09:53:55 +08:00
parent 76efd4037e
commit 10ffe161da

View 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