From: Karel Zak Date: Wed, 14 Aug 2024 13:26:17 +0000 (+0200) Subject: autotools: check for statmount and listmount syscalls X-Git-Tag: v2.42-start~97^2~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=604eee0ee94f17e1d2d57e9461ffa100327a747c;p=thirdparty%2Futil-linux.git autotools: check for statmount and listmount syscalls Signed-off-by: Karel Zak --- diff --git a/configure.ac b/configure.ac index fa58043bb..a1d68f059 100644 --- a/configure.ac +++ b/configure.ac @@ -717,7 +717,20 @@ AS_IF([test "x$ul_cv_syscall_fsconfig" = xno || have_mountfd_api="no" ],[ have_mountfd_api="yes" - AC_DEFINE([HAVE_MOUNTFD_API], [1], [Define to 1 if you want mount API based on FDs.]) + AC_DEFINE([HAVE_MOUNTFD_API], [1], [Define to 1 if you want to use mount API based on FDs.]) + ]) + + +UL_CHECK_SYSCALL([statmount]) +UL_CHECK_SYSCALL([listmount]) + +AS_IF([test "x$ul_cv_syscall_statmount" = xno || + test "x$ul_cv_syscall_listmount" = xno], + [ + have_statmount_api="no" + ],[ + have_statmount_api="yes" + AC_DEFINE([HAVE_STATMOUNT_API], [1], [Define to 1 if you want to use statmount API.]) ])