1 $NetBSD: patch-ag,v 1.19 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.orig 2013-02-21 15:43:29.000000000 +0000
11 +++ configure 2013-03-01 13:58:36.000000000 +0000
13 --bindir=DIR user executables [EPREFIX/bin]
14 --sbindir=DIR system admin executables [EPREFIX/sbin]
15 --libexecdir=DIR program executables [EPREFIX/libexec]
16 - --sysconfdir=DIR read-only single-machine data [/etc]
17 + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
18 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
19 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
20 --libdir=DIR object code libraries [EPREFIX/lib]
22 --with-libraries additional libraries to link with
23 --with-efence link with -lefence for malloc() debugging
24 --with-csops add CSOps standard options
25 + --with-nbsdops add NetBSD standard options
26 --without-passwd don't use passwd/shadow file for authentication
27 --with-skey=DIR enable S/Key support
28 --with-opie=DIR enable OPIE support
29 @@ -3959,6 +3960,22 @@
33 +# Check whether --with-nbsdops or --without-nbsdops was given.
34 +if test "${with_nbsdops+set}" = set; then
35 + withval="$with_nbsdops"
36 + case $with_nbsdops in
37 + yes) echo 'Adding NetBSD standard options'
41 + with_tty_tickets=yes
44 + *) echo "Ignoring unknown argument to --with-nbsdops: $with_nbsdops"
51 # Check whether --with-passwd was given.
52 @@ -15632,7 +15649,7 @@
54 LOGINCAP_USAGE='[-c class|-] '; LCMAN=1
56 - freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
57 + dragonfly*|freebsd*|netbsd*) SUDO_LIBS="${SUDO_LIBS} -lutil"
61 @@ -18569,6 +18586,8 @@
62 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63 AUTH_OBJS="$AUTH_OBJS kerb5.o"
66 +if test ${with_kerb5-'no'} != "no"; then
68 LIBS="${LIBS} ${SUDO_LIBS}"
69 for ac_func in krb5_verify_user krb5_init_secure_context
70 @@ -20313,7 +20332,6 @@
71 test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
72 test "$localedir" = '${datarootdir}/locale' && localedir='$(datarootdir)/locale'
73 test "$localstatedir" = '${prefix}/var' && localstatedir='$(prefix)/var'
74 -test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
76 ac_config_files="$ac_config_files Makefile sudo_usage.h sudoers"