configure.ac: skip building utils on NetBSD

The utils require some Linux specific functions, not available
on NetBSD. Since they're pretty unmaintained these days and
nobody complaining yet, just disabling them on NetBSD for now.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-12-29 19:10:50 +01:00
committed by Enrico Weigelt
parent 216500cfc2
commit 2346c6bcb1

View File

@@ -74,7 +74,17 @@ int main() {
}
])], [HAVE_INB=yes], [HAVE_INB=no])
AC_MSG_RESULT([$HAVE_INB])
AM_CONDITIONAL(BUILD_UTILS, [test x$HAVE_INB = xyes])
build_utils="$HAVE_INB"
case $host_os in
*netbsd*)
build_utils="no"
AC_MSG_WARN([NetBSD detected. cant build utils])
;;
esac
AM_CONDITIONAL(BUILD_UTILS, [test "$build_utils" = "yes"])
AC_SUBST([moduledir])