$NetBSD: patch-configure,v 1.9 2023/06/06 01:14:53 gutteridge Exp $ * Add NetBSD backend detection. * Allow Polkit to be disabled in the build while still being present in the underlying system. --- configure.orig 2023-05-29 15:39:33.000000000 +0000 +++ configure @@ -18184,7 +18184,7 @@ printf %s "checking for optional package printf "%s\n" "disabled" >&6; } fi - if test x"$POLKIT_FOUND" = x"yes"; then +if test "${disable_polkit+set}" != set && test x"$POLKIT_FOUND" = x"yes"; then HAVE_POLKIT_TRUE= HAVE_POLKIT_FALSE='#' else @@ -18464,6 +18464,8 @@ if test x$with_backend = x; then with_backend=freebsd ;; #( *-*dragonfly*) : with_backend=freebsd ;; #( + *-*netbsd*) : + with_backend=netbsd ;; #( *-openbsd*) : with_backend=openbsd ;; #( *-solaris*) : @@ -18493,6 +18495,11 @@ if test x$with_backend = xopenbsd; then printf "%s\n" "#define BACKEND_TYPE_OPENBSD 1" >>confdefs.h fi +if test x$with_backend = xnetbsd; then + +printf "%s\n" "#define BACKEND_TYPE_NETBSD 1" >>confdefs.h + +fi if test x$with_backend = xsolaris; then printf "%s\n" "#define BACKEND_TYPE_SOLARIS 1" >>confdefs.h