1 $NetBSD: patch-af,v 1.28 2011/09/18 14:18:25 ryoon Exp $
3 * Add "--with-nbsdops" option, NetBSD standard options.
4 * Link with util(3) in the case of DragonFly, too.
5 * When specified "--with-kerb5" option, test existence of several functions
6 even if there is krb5-config. krb5-config dosen't give all definitions for
7 functions (HAVE_KRB5_*).
8 * Remove setting sysconfdir to "/etc".
10 --- configure.in.orig 2013-02-21 15:43:17.000000000 +0000
11 +++ configure.in 2013-03-01 13:56:47.000000000 +0000
16 +AC_ARG_WITH(nbsdops, [AS_HELP_STRING([--with-nbsdops], [add NetBSD standard options])],
17 +[case $with_nbsdops in
18 + yes) echo 'Adding NetBSD standard options'
22 + with_tty_tickets=yes
25 + *) echo "Ignoring unknown argument to --with-nbsdops: $with_nbsdops"
28 AC_ARG_WITH(passwd, [AS_HELP_STRING([--without-passwd], [don't use passwd/shadow file for authentication])],
30 yes|no) AC_MSG_CHECKING(whether to use shadow/passwd file authentication)
32 if test ${with_logincap-'no'} != "no"; then
33 AC_CHECK_HEADERS(login_cap.h, [LOGINCAP_USAGE='[[-c class|-]] '; LCMAN=1
35 - freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
36 + dragonfly*|freebsd*|netbsd*) SUDO_LIBS="${SUDO_LIBS} -lutil"
42 AUTH_OBJS="$AUTH_OBJS kerb5.o"
45 +if test ${with_kerb5-'no'} != "no"; then
47 LIBS="${LIBS} ${SUDO_LIBS}"
48 AC_CHECK_FUNCS(krb5_verify_user krb5_init_secure_context)
50 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
51 test "$localedir" = '${datarootdir}/locale' && localedir='$(datarootdir)/locale'
52 test "$localstatedir" = '${prefix}/var' && localstatedir='$(prefix)/var'
53 -test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
56 dnl Substitute into the Makefile, sudo_usage.h and example sudoers