+2026-01-24 Bruno Haible <bruno@clisp.org>
+
+ selinux-h: Fix compilation errors in Termux on Android.
+ * m4/selinux-selinux-h.m4 (gl_LIBSELINUX): Prefer libandroid-selinux to
+ libselinux.
+
2026-01-23 Bruno Haible <bruno@clisp.org>
getaddrinfo: Fix test failure on Solaris 10.
# selinux-selinux-h.m4
-# serial 10 -*- Autoconf -*-
+# serial 11 -*- Autoconf -*-
dnl Copyright (C) 2006-2007, 2009-2026 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
LIB_SELINUX=
if test "$with_selinux" != no; then
gl_saved_LIBS=$LIBS
- AC_SEARCH_LIBS([setfilecon], [selinux],
+ dnl On Android, in Termux, prefer libandroid-selinux.so, because it
+ dnl defines many more API functions than /system/lib/libselinux.so.
+ AC_SEARCH_LIBS([setfilecon], [android-selinux selinux],
[test "$ac_cv_search_setfilecon" = "none required" ||
LIB_SELINUX=$ac_cv_search_setfilecon])
LIBS=$gl_saved_LIBS