diff --git a/configure b/configure index 5f33b043b..fa56137a8 100755 --- a/configure +++ b/configure @@ -18732,7 +18732,7 @@ then : printf "%s\n" "#define HAVE_LOGIN_CAP_H 1" >>confdefs.h LOGINCAP_USAGE='[-c class] '; LCMAN=1 case "$OS" in - freebsd|netbsd) + freebsd*|netbsd*) SUDO_LIBS="${SUDO_LIBS} -lutil" SUDOERS_LIBS="${SUDOERS_LIBS} -lutil" ;; @@ -28101,7 +28101,7 @@ fi fi case "$OS" in - netbsd) + netbsd*) ;; *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--enable-new-dtags" >&5 diff --git a/configure.ac b/configure.ac index 1d044e9c3..411966d30 100644 --- a/configure.ac +++ b/configure.ac @@ -2581,7 +2581,7 @@ SUDO_MAILDIR if test ${with_logincap-'no'} != "no"; then AC_CHECK_HEADERS([login_cap.h], [LOGINCAP_USAGE='[[-c class]] '; LCMAN=1 case "$OS" in - freebsd|netbsd) + freebsd*|netbsd*) SUDO_LIBS="${SUDO_LIBS} -lutil" SUDOERS_LIBS="${SUDOERS_LIBS} -lutil" ;; @@ -4449,7 +4449,7 @@ dnl Otherwise, LD_LIBRARY_PATH does not work when running the tests. dnl We don't do this on NetBSD where RPATH already supports LD_LIBRARY_PATH. dnl case "$OS" in - netbsd) + netbsd*) ;; *) AX_CHECK_LINK_FLAG([-Wl,--enable-new-dtags], [AX_APPEND_FLAG([-Wl,--enable-new-dtags], [LDFLAGS])])