1 $NetBSD: patch-af,v 1.20 2008/03/11 15:52:51 taca Exp $
3 --- configure.in.orig 2008-12-10 06:13:01.000000000 +0900
5 @@ -153,7 +153,6 @@ else
7 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
8 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
9 -test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
12 dnl Deprecated --with options (these all warn or generate an error)
13 @@ -277,6 +276,19 @@ AC_ARG_WITH(csops, [ --with-csops
17 +AC_ARG_WITH(nbsdops, [ --with-nbsdops add NetBSD standard options],
18 +[case $with_nbsdops in
19 + yes) echo 'Adding NetBSD standard options'
23 + with_tty_tickets=yes
26 + *) echo "Ignoring unknown argument to --with-nbsdops: $with_nbsdops"
30 AC_ARG_WITH(passwd, [ --without-passwd don't use passwd/shadow file for authentication],
32 yes|no) AC_MSG_CHECKING(whether to use shadow/passwd file authentication)
33 @@ -1716,7 +1728,7 @@ fi
34 if test ${with_logincap-'no'} != "no"; then
35 AC_CHECK_HEADERS(login_cap.h, [LOGINCAP_USAGE='[[-c class|-]] '; LCMAN=""
37 - freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
38 + dragonfly*|freebsd*|netbsd*) SUDO_LIBS="${SUDO_LIBS} -lutil"
42 @@ -2148,6 +2160,8 @@ if test ${with_kerb5-'no'} != "no" -a -z
43 AC_CHECK_LIB(krb5support, main, [SUDO_LIBS="${SUDO_LIBS} -lkrb5support,"])
45 AUTH_OBJS="$AUTH_OBJS kerb5.o"
47 +if test ${with_kerb5-'no'} != "no"; then
49 LIBS="${LIBS} ${SUDO_LIBS}"
50 AC_CHECK_FUNCS(krb5_verify_user krb5_init_secure_context krb5_get_init_creds_opt_alloc)