2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52 for sudo 1.6.6.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 # Factoring default headers for most tests.
108 ac_includes_default="\
111 # include <sys/types.h>
114 # include <sys/stat.h>
125 # if !STDC_HEADERS && HAVE_MEMORY_H
131 # include <strings.h>
134 # include <inttypes.h>
144 # Initialize some variables set by options.
146 ac_init_version=false
147 # The variables have the same names as the options, with
148 # dashes changed to underlines.
156 program_transform_name=s,x,x,
164 # Installation directory options.
165 # These are left unexpanded so users can "make install exec_prefix=/foo"
166 # and all the variables that are supposed to be based on exec_prefix
167 # by default will actually change.
168 # Use braces instead of parens because sh, perl, etc. also accept them.
169 bindir='${exec_prefix}/bin'
170 sbindir='${exec_prefix}/sbin'
171 libexecdir='${exec_prefix}/libexec'
172 datadir='${prefix}/share'
173 sysconfdir='${prefix}/etc'
174 sharedstatedir='${prefix}/com'
175 localstatedir='${prefix}/var'
176 libdir='${exec_prefix}/lib'
177 includedir='${prefix}/include'
178 oldincludedir='/usr/include'
179 infodir='${prefix}/info'
180 mandir='${prefix}/man'
182 # Identity of this package.
184 PACKAGE_TARNAME='sudo'
185 PACKAGE_VERSION='1.6.6'
186 PACKAGE_STRING='sudo 1.6.6'
192 # If the previous option needs an argument, assign it.
193 if test -n "$ac_prev"; then
194 eval "$ac_prev=\$ac_option"
199 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
201 # Accept the important Cygnus configure options, so we can diagnose typos.
205 -bindir | --bindir | --bindi | --bind | --bin | --bi)
207 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 -build | --build | --buil | --bui | --bu)
211 ac_prev=build_alias ;;
212 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
213 build_alias=$ac_optarg ;;
215 -cache-file | --cache-file | --cache-fil | --cache-fi \
216 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
217 ac_prev=cache_file ;;
218 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
219 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
220 cache_file=$ac_optarg ;;
223 cache_file=config.cache ;;
225 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229 datadir=$ac_optarg ;;
231 -disable-* | --disable-*)
232 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
233 # Reject names that are not valid shell variable names.
234 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
235 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
236 { (exit 1); exit 1; }; }
237 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
238 eval "enable_$ac_feature=no" ;;
240 -enable-* | --enable-*)
241 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
242 # Reject names that are not valid shell variable names.
243 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
244 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
245 { (exit 1); exit 1; }; }
246 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
251 eval enable_$ac_feature='$ac_optarg' ;;
253 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
254 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
255 | --exec | --exe | --ex)
256 ac_prev=exec_prefix ;;
257 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
258 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
259 | --exec=* | --exe=* | --ex=*)
260 exec_prefix=$ac_optarg ;;
262 -gas | --gas | --ga | --g)
263 # Obsolete; use --with-gas.
266 -help | --help | --hel | --he | -h)
268 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
269 ac_init_help=recursive ;;
270 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
271 ac_init_help=short ;;
273 -host | --host | --hos | --ho)
274 ac_prev=host_alias ;;
275 -host=* | --host=* | --hos=* | --ho=*)
276 host_alias=$ac_optarg ;;
278 -includedir | --includedir | --includedi | --included | --include \
279 | --includ | --inclu | --incl | --inc)
280 ac_prev=includedir ;;
281 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
282 | --includ=* | --inclu=* | --incl=* | --inc=*)
283 includedir=$ac_optarg ;;
285 -infodir | --infodir | --infodi | --infod | --info | --inf)
287 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
288 infodir=$ac_optarg ;;
290 -libdir | --libdir | --libdi | --libd)
292 -libdir=* | --libdir=* | --libdi=* | --libd=*)
295 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
296 | --libexe | --libex | --libe)
297 ac_prev=libexecdir ;;
298 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
299 | --libexe=* | --libex=* | --libe=*)
300 libexecdir=$ac_optarg ;;
302 -localstatedir | --localstatedir | --localstatedi | --localstated \
303 | --localstate | --localstat | --localsta | --localst \
304 | --locals | --local | --loca | --loc | --lo)
305 ac_prev=localstatedir ;;
306 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
307 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
308 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
309 localstatedir=$ac_optarg ;;
311 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
317 # Obsolete; use --without-fp.
320 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
324 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
325 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
328 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
329 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
330 | --oldin | --oldi | --old | --ol | --o)
331 ac_prev=oldincludedir ;;
332 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
333 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
334 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
335 oldincludedir=$ac_optarg ;;
337 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
342 -program-prefix | --program-prefix | --program-prefi | --program-pref \
343 | --program-pre | --program-pr | --program-p)
344 ac_prev=program_prefix ;;
345 -program-prefix=* | --program-prefix=* | --program-prefi=* \
346 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
347 program_prefix=$ac_optarg ;;
349 -program-suffix | --program-suffix | --program-suffi | --program-suff \
350 | --program-suf | --program-su | --program-s)
351 ac_prev=program_suffix ;;
352 -program-suffix=* | --program-suffix=* | --program-suffi=* \
353 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
354 program_suffix=$ac_optarg ;;
356 -program-transform-name | --program-transform-name \
357 | --program-transform-nam | --program-transform-na \
358 | --program-transform-n | --program-transform- \
359 | --program-transform | --program-transfor \
360 | --program-transfo | --program-transf \
361 | --program-trans | --program-tran \
362 | --progr-tra | --program-tr | --program-t)
363 ac_prev=program_transform_name ;;
364 -program-transform-name=* | --program-transform-name=* \
365 | --program-transform-nam=* | --program-transform-na=* \
366 | --program-transform-n=* | --program-transform-=* \
367 | --program-transform=* | --program-transfor=* \
368 | --program-transfo=* | --program-transf=* \
369 | --program-trans=* | --program-tran=* \
370 | --progr-tra=* | --program-tr=* | --program-t=*)
371 program_transform_name=$ac_optarg ;;
373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
374 | -silent | --silent | --silen | --sile | --sil)
377 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381 sbindir=$ac_optarg ;;
383 -sharedstatedir | --sharedstatedir | --sharedstatedi \
384 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
385 | --sharedst | --shareds | --shared | --share | --shar \
387 ac_prev=sharedstatedir ;;
388 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
389 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
390 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392 sharedstatedir=$ac_optarg ;;
394 -site | --site | --sit)
396 -site=* | --site=* | --sit=*)
399 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
404 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
405 | --syscon | --sysco | --sysc | --sys | --sy)
406 ac_prev=sysconfdir ;;
407 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
408 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
409 sysconfdir=$ac_optarg ;;
411 -target | --target | --targe | --targ | --tar | --ta | --t)
412 ac_prev=target_alias ;;
413 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
414 target_alias=$ac_optarg ;;
416 -v | -verbose | --verbose | --verbos | --verbo | --verb)
419 -version | --version | --versio | --versi | --vers | -V)
423 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
424 # Reject names that are not valid shell variable names.
425 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
426 { echo "$as_me: error: invalid package name: $ac_package" >&2
427 { (exit 1); exit 1; }; }
428 ac_package=`echo $ac_package| sed 's/-/_/g'`
430 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
433 eval with_$ac_package='$ac_optarg' ;;
435 -without-* | --without-*)
436 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
437 # Reject names that are not valid shell variable names.
438 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
439 { echo "$as_me: error: invalid package name: $ac_package" >&2
440 { (exit 1); exit 1; }; }
441 ac_package=`echo $ac_package | sed 's/-/_/g'`
442 eval "with_$ac_package=no" ;;
445 # Obsolete; use --with-x.
448 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
449 | --x-incl | --x-inc | --x-in | --x-i)
450 ac_prev=x_includes ;;
451 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
452 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
453 x_includes=$ac_optarg ;;
455 -x-libraries | --x-libraries | --x-librarie | --x-librari \
456 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
457 ac_prev=x_libraries ;;
458 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
459 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
460 x_libraries=$ac_optarg ;;
462 -*) { echo "$as_me: error: unrecognized option: $ac_option
463 Try \`$0 --help' for more information." >&2
464 { (exit 1); exit 1; }; }
468 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
469 # Reject names that are not valid shell variable names.
470 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
471 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
472 { (exit 1); exit 1; }; }
473 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
474 eval "$ac_envvar='$ac_optarg'"
478 # FIXME: should be removed in autoconf 3.0.
479 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
480 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
481 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
482 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
488 if test -n "$ac_prev"; then
489 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
490 { echo "$as_me: error: missing argument to $ac_option" >&2
491 { (exit 1); exit 1; }; }
494 # Be sure to have absolute paths.
495 for ac_var in exec_prefix prefix
497 eval ac_val=$`echo $ac_var`
499 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
500 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
501 { (exit 1); exit 1; }; };;
505 # Be sure to have absolute paths.
506 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
507 localstatedir libdir includedir oldincludedir infodir mandir
509 eval ac_val=$`echo $ac_var`
511 [\\/$]* | ?:[\\/]* ) ;;
512 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
513 { (exit 1); exit 1; }; };;
517 # There might be people who depend on the old broken behavior: `$host'
518 # used to hold the argument of --host etc.
523 # FIXME: should be removed in autoconf 3.0.
524 if test "x$host_alias" != x; then
525 if test "x$build_alias" = x; then
526 cross_compiling=maybe
527 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
528 If a cross compiler is detected then cross compile mode will be used." >&2
529 elif test "x$build_alias" != "x$host_alias"; then
535 test -n "$host_alias" && ac_tool_prefix=$host_alias-
537 test "$silent" = yes && exec 6>/dev/null
539 # Find the source files, if location was not specified.
540 if test -z "$srcdir"; then
541 ac_srcdir_defaulted=yes
542 # Try the directory containing this script, then its parent.
544 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
545 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547 if test ! -r $srcdir/$ac_unique_file; then
551 ac_srcdir_defaulted=no
553 if test ! -r $srcdir/$ac_unique_file; then
554 if test "$ac_srcdir_defaulted" = yes; then
555 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
556 { (exit 1); exit 1; }; }
558 { echo "$as_me: error: cannot find sources in $srcdir" >&2
559 { (exit 1); exit 1; }; }
562 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
563 ac_env_build_alias_set=${build_alias+set}
564 ac_env_build_alias_value=$build_alias
565 ac_cv_env_build_alias_set=${build_alias+set}
566 ac_cv_env_build_alias_value=$build_alias
567 ac_env_host_alias_set=${host_alias+set}
568 ac_env_host_alias_value=$host_alias
569 ac_cv_env_host_alias_set=${host_alias+set}
570 ac_cv_env_host_alias_value=$host_alias
571 ac_env_target_alias_set=${target_alias+set}
572 ac_env_target_alias_value=$target_alias
573 ac_cv_env_target_alias_set=${target_alias+set}
574 ac_cv_env_target_alias_value=$target_alias
575 ac_env_CC_set=${CC+set}
577 ac_cv_env_CC_set=${CC+set}
578 ac_cv_env_CC_value=$CC
579 ac_env_CFLAGS_set=${CFLAGS+set}
580 ac_env_CFLAGS_value=$CFLAGS
581 ac_cv_env_CFLAGS_set=${CFLAGS+set}
582 ac_cv_env_CFLAGS_value=$CFLAGS
583 ac_env_LDFLAGS_set=${LDFLAGS+set}
584 ac_env_LDFLAGS_value=$LDFLAGS
585 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_cv_env_LDFLAGS_value=$LDFLAGS
587 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
588 ac_env_CPPFLAGS_value=$CPPFLAGS
589 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
591 ac_env_CPP_set=${CPP+set}
592 ac_env_CPP_value=$CPP
593 ac_cv_env_CPP_set=${CPP+set}
594 ac_cv_env_CPP_value=$CPP
597 # Report the --help message.
599 if test "$ac_init_help" = "long"; then
600 # Omit some internal or obsolete options to make the list less imposing.
601 # This message is too long to be a string in the A/UX 3.1 sh.
603 \`configure' configures sudo 1.6.6 to adapt to many kinds of systems.
605 Usage: $0 [OPTION]... [VAR=VALUE]...
607 To assign environment variables (e.g., CC, CFLAGS...), specify them as
608 VAR=VALUE. See below for descriptions of some of the useful variables.
610 Defaults for the options are specified in brackets.
613 -h, --help display this help and exit
614 --help=short display options specific to this package
615 --help=recursive display the short help of all the included packages
616 -V, --version display version information and exit
617 -q, --quiet, --silent do not print \`checking...' messages
618 --cache-file=FILE cache test results in FILE [disabled]
619 -C, --config-cache alias for \`--cache-file=config.cache'
620 -n, --no-create do not create output files
621 --srcdir=DIR find the sources in DIR [configure dir or \`..']
626 Installation directories:
627 --prefix=PREFIX install architecture-independent files in PREFIX
629 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
632 By default, \`make install' will install all the files in
633 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
634 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
635 for instance \`--prefix=\$HOME'.
637 For better control, use the options below.
639 Fine tuning of the installation directories:
640 --bindir=DIR user executables [EPREFIX/bin]
641 --sbindir=DIR system admin executables [EPREFIX/sbin]
642 --libexecdir=DIR program executables [EPREFIX/libexec]
643 --datadir=DIR read-only architecture-independent data [PREFIX/share]
644 --sysconfdir=DIR read-only single-machine data [/etc]
645 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
646 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
647 --libdir=DIR object code libraries [EPREFIX/lib]
648 --includedir=DIR C header files [PREFIX/include]
649 --oldincludedir=DIR C header files for non-gcc [/usr/include]
650 --infodir=DIR info documentation [PREFIX/info]
651 --mandir=DIR man documentation [PREFIX/man]
657 --build=BUILD configure for building on BUILD [guessed]
658 --host=HOST build programs to run on HOST [BUILD]
662 if test -n "$ac_init_help"; then
663 case $ac_init_help in
664 short | recursive ) echo "Configuration of sudo 1.6.6:";;
669 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
670 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
671 --disable-authentication
672 Do not require authentication by default
673 --disable-root-mailer Don't run the mailer as root, run as the user
674 --disable-setreuid Don't try to use the setreuid() function
675 --disable-saved-ids Don't try to use POSIX saved ids
676 --disable-shadow Never use shadow passwords
677 --disable-root-sudo Don't allow root to run sudo
678 --enable-log-host Log the hostname in the log file
679 --enable-noargs-shell If sudo is given no arguments run a shell
680 --enable-shell-sets-home
681 set $HOME to target user in shell mode
682 --disable-path-info Print 'command not allowed' not 'command not found'
683 --disable-sia Never use SIA on Digital UNIX
686 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
687 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
688 --with-otp-only deprecated
689 --with-alertmail deprecated
690 --with-CC C compiler to use
691 --with-incpath additional places to look for include files
692 --with-libpath additional places to look for libraries
693 --with-libraries additional libraries to link with
694 --with-devel add developement options
695 --with-efence link with -lefence for malloc() debugging
696 --with-csops add CSOps standard options
697 --without-passwd don't use passwd/shadow file for authentication
698 --with-skey enable S/Key support
699 --with-opie enable OPIE support
700 --with-long-otp-prompt use a two line OTP (skey/opie) prompt
701 --with-SecurID enable SecurID support
702 --with-fwtk enable FWTK AuthSRV support
703 --with-kerb4 enable kerberos v4 support
704 --with-kerb5 enable kerberos v5 support
705 --with-authenticate enable AIX general authentication support
706 --with-pam enable PAM support
707 --with-AFS enable AFS support
708 --with-DCE enable DCE support
709 --with-logincap enable BSD login class support
710 --with-bsdauth enable BSD authentication support
711 --without-lecture don't print lecture for first-time sudoer
712 --with-logging log via syslog, file, or both
713 --with-logfac syslog facility to log with (default is "local2")
714 --with-goodpri syslog priority for commands (def is "notice")
715 --with-badpri syslog priority for failures (def is "alert")
716 --with-logpath path to the sudo log file
717 --with-loglen maximum length of a log file line (default is 80)
718 --with-ignore-dot ignore '.' in the PATH
719 --without-mail-if-no-user do not send mail if user not in sudoers
720 --with-mail-if-no-host send mail if user in sudoers but not for this host
721 --with-mail-if-noperms send mail if user not allowed to run command
722 --with-mailto who should get sudo mail (default is "root")
723 --with-mailsubject subject of sudo mail
724 --with-passprompt default password prompt
725 --with-badpass-message message the user sees when the password is wrong
726 --with-fqdn expect fully qualified hosts in sudoers
727 --with-timedir path to the sudo timestamp dir
728 --with-sendmail=path set path to sendmail
729 --without-sendmail do not send mail at all
730 --with-sudoers-mode mode of sudoers file (defaults to 0440)
731 --with-sudoers-uid uid that owns sudoers file (defaults to 0)
732 --with-sudoers-gid gid that owns sudoers file (defaults to 0)
733 --with-umask umask with which the prog should run (default is 022)
734 --without-umask Preserves the umask of the user invoking sudo.
735 --with-runas-default User to run commands as (default is "root")
736 --with-exempt=group no passwd needed for users in this group
737 --with-editor=path Default editor for visudo (defaults to vi)
738 --with-env-editor Use the environment variable EDITOR for visudo
739 --with-passwd-tries number of tries to enter password (default is 3)
740 --with-timeout minutes before sudo asks for passwd again (def is 5 minutes)
741 --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
742 --with-execv use execv() instead of execvp()
743 --with-tty-tickets use a different ticket file for each tty
744 --with-insults insult the user for entering an incorrect password
745 --with-all-insults include all the sudo insult sets
746 --with-classic-insults include the insults from the "classic" sudo
747 --with-csops-insults include CSOps insults
748 --with-hal-insults include 2001-like insults
749 --with-goons-insults include the insults from the "Goon Show"
750 --with-secure-path override the user's path with a builtin one
751 --without-interfaces don't try to read the ip addr of ether interfaces
753 Some influential environment variables:
754 CC C compiler command
755 CFLAGS C compiler flags
756 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
757 nonstandard directory <lib dir>
758 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
759 headers in a nonstandard directory <include dir>
762 Use these variables to override the choices made by `configure' or to help
763 it to find libraries and programs with nonstandard names/locations.
768 if test "$ac_init_help" = "recursive"; then
769 # If there are subdirs, report their specific --help.
771 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
773 # A "../" for each directory in /$ac_subdir.
774 ac_dots=`echo $ac_subdir |
775 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
778 .) # No --srcdir option. We are building in place.
779 ac_sub_srcdir=$srcdir ;;
780 [\\/]* | ?:[\\/]* ) # Absolute path.
781 ac_sub_srcdir=$srcdir/$ac_subdir ;;
783 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
786 # Check for guested configure; otherwise get Cygnus style configure.
787 if test -f $ac_sub_srcdir/configure.gnu; then
789 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
790 elif test -f $ac_sub_srcdir/configure; then
792 $SHELL $ac_sub_srcdir/configure --help=recursive
793 elif test -f $ac_sub_srcdir/configure.ac ||
794 test -f $ac_sub_srcdir/configure.in; then
798 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
804 test -n "$ac_init_help" && exit 0
805 if $ac_init_version; then
808 generated by GNU Autoconf 2.52
810 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
811 Free Software Foundation, Inc.
812 This configure script is free software; the Free Software Foundation
813 gives unlimited permission to copy, distribute and modify it.
819 This file contains any messages produced by compilers while
820 running configure, to aid debugging if configure makes a mistake.
822 It was created by sudo $as_me 1.6.6, which was
823 generated by GNU Autoconf 2.52. Invocation command line was
834 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
835 uname -m = `(uname -m) 2>/dev/null || echo unknown`
836 uname -r = `(uname -r) 2>/dev/null || echo unknown`
837 uname -s = `(uname -s) 2>/dev/null || echo unknown`
838 uname -v = `(uname -v) 2>/dev/null || echo unknown`
840 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
841 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
843 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
844 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
845 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
846 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
847 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
848 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
849 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
863 # Keep a trace of the command line.
864 # Strip out --no-create and --no-recursion so they do not pile up.
865 # Also quote any args containing shell meta-characters.
871 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
872 | --no-cr | --no-c) ;;
873 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
874 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
875 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
876 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
877 ac_configure_args="$ac_configure_args$ac_sep\"$ac_arg\""
879 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
882 # Get rid of the leading space.
885 # When interrupted or exit'd, cleanup temporary files, and complete
886 # config.log. We remove comments because anyway the quotes in there
887 # would cause problems or look ugly.
889 # Save into config.log some information that might help in debugging.
891 echo "## ----------------- ##" >&5
892 echo "## Cache variables. ##" >&5
893 echo "## ----------------- ##" >&5
895 # The following way of writing the cache mishandles newlines in values,
898 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
901 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
902 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
906 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
910 sed "/^$/d" confdefs.h >conftest.log
911 if test -s conftest.log; then
913 echo "## ------------ ##" >&5
914 echo "## confdefs.h. ##" >&5
915 echo "## ------------ ##" >&5
920 test "$ac_signal" != 0 &&
921 echo "$as_me: caught signal $ac_signal" >&5
922 echo "$as_me: exit $exit_status" >&5
923 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
926 for ac_signal in 1 2 13 15; do
927 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
931 # confdefs.h avoids OS command line length limits that DEFS can exceed.
932 rm -rf conftest* confdefs.h
933 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
936 # Let the site file select an alternate cache file if it wants to.
937 # Prefer explicitly selected file to automatically selected ones.
938 if test -z "$CONFIG_SITE"; then
939 if test "x$prefix" != xNONE; then
940 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
942 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
945 for ac_site_file in $CONFIG_SITE; do
946 if test -r "$ac_site_file"; then
947 { echo "$as_me:947: loading site script $ac_site_file" >&5
948 echo "$as_me: loading site script $ac_site_file" >&6;}
949 cat "$ac_site_file" >&5
954 if test -r "$cache_file"; then
955 # Some versions of bash will fail to source /dev/null (special
956 # files actually), so we avoid doing that.
957 if test -f "$cache_file"; then
958 { echo "$as_me:958: loading cache $cache_file" >&5
959 echo "$as_me: loading cache $cache_file" >&6;}
961 [\\/]* | ?:[\\/]* ) . $cache_file;;
966 { echo "$as_me:966: creating cache $cache_file" >&5
967 echo "$as_me: creating cache $cache_file" >&6;}
971 # Check that the precious variables saved in the cache have kept the same
973 ac_cache_corrupted=false
974 for ac_var in `(set) 2>&1 |
975 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
976 eval ac_old_set=\$ac_cv_env_${ac_var}_set
977 eval ac_new_set=\$ac_env_${ac_var}_set
978 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
979 eval ac_new_val="\$ac_env_${ac_var}_value"
980 case $ac_old_set,$ac_new_set in
982 { echo "$as_me:982: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
983 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
984 ac_cache_corrupted=: ;;
986 { echo "$as_me:986: error: \`$ac_var' was not set in the previous run" >&5
987 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
988 ac_cache_corrupted=: ;;
991 if test "x$ac_old_val" != "x$ac_new_val"; then
992 { echo "$as_me:992: error: \`$ac_var' has changed since the previous run:" >&5
993 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
994 { echo "$as_me:994: former value: $ac_old_val" >&5
995 echo "$as_me: former value: $ac_old_val" >&2;}
996 { echo "$as_me:996: current value: $ac_new_val" >&5
997 echo "$as_me: current value: $ac_new_val" >&2;}
1001 # Pass precious variables to config.status. It doesn't matter if
1002 # we pass some twice (in addition to the command line arguments).
1003 if test "$ac_new_set" = set; then
1005 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1006 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1007 ac_configure_args="$ac_configure_args '$ac_arg'"
1009 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1014 if $ac_cache_corrupted; then
1015 { echo "$as_me:1015: error: changes in the environment can compromise the build" >&5
1016 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1017 { { echo "$as_me:1017: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1018 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1019 { (exit 1); exit 1; }; }
1023 ac_cpp='$CPP $CPPFLAGS'
1024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1028 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1029 *c*,-n*) ECHO_N= ECHO_C='
1031 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1032 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1034 echo "#! $SHELL" >conftest.sh
1035 echo "exit 0" >>conftest.sh
1036 chmod +x conftest.sh
1037 if { (echo "$as_me:1037: PATH=\".;.\"; conftest.sh") >&5
1038 (PATH=".;."; conftest.sh) 2>&5
1040 echo "$as_me:1040: \$? = $ac_status" >&5
1041 (exit $ac_status); }; then
1042 ac_path_separator=';'
1046 PATH_SEPARATOR="$ac_path_separator"
1049 ac_config_headers="$ac_config_headers config.h pathnames.h"
1051 echo "Configuring Sudo version 1.6.6"
1056 passprompt="Password:"
1068 mailsub='*** SECURITY information for %h ***'
1069 badpass_message='Sorry, try again.'
1077 test -n "$MANTYPE" || MANTYPE="man"
1078 test -n "$mansrcdir" || mansrcdir="."
1079 test -n "$SUDOERS_MODE" || SUDOERS_MODE=0440
1080 test -n "$SUDOERS_UID" || SUDOERS_UID=0
1081 test -n "$SUDOERS_GID" || SUDOERS_GID=0
1087 test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
1088 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
1089 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
1090 test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
1092 # Check whether --with-otp-only or --without-otp-only was given.
1093 if test "${with_otp_only+set}" = set; then
1094 withval="$with_otp_only"
1095 case $with_otp_only in
1098 cat >>confdefs.h <<\EOF
1099 #define WITHOUT_PASSWD 1
1102 { echo "$as_me:1102: WARNING: --with-otp-only option deprecated, treating as --without-passwd" >&5
1103 echo "$as_me: WARNING: --with-otp-only option deprecated, treating as --without-passwd" >&2;}
1108 # Check whether --with-alertmail or --without-alertmail was given.
1109 if test "${with_alertmail+set}" = set; then
1110 withval="$with_alertmail"
1111 case $with_alertmail in
1112 *) with_mailto="$with_alertmail"
1113 { echo "$as_me:1113: WARNING: --with-alertmail option deprecated, treating as --mailto" >&5
1114 echo "$as_me: WARNING: --with-alertmail option deprecated, treating as --mailto" >&2;}
1119 # Check whether --with-CC or --without-CC was given.
1120 if test "${with_CC+set}" = set; then
1123 yes) { { echo "$as_me:1123: error: \"must give --with-CC an argument.\"" >&5
1124 echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
1125 { (exit 1); exit 1; }; }
1127 no) { { echo "$as_me:1127: error: \"illegal argument: --without-CC.\"" >&5
1128 echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
1129 { (exit 1); exit 1; }; }
1136 # Check whether --with-incpath or --without-incpath was given.
1137 if test "${with_incpath+set}" = set; then
1138 withval="$with_incpath"
1139 case $with_incpath in
1140 yes) { { echo "$as_me:1140: error: \"must give --with-incpath an argument.\"" >&5
1141 echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
1142 { (exit 1); exit 1; }; }
1144 no) { { echo "$as_me:1144: error: \"--without-incpath not supported.\"" >&5
1145 echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
1146 { (exit 1); exit 1; }; }
1148 *) echo "Adding ${with_incpath} to CPPFLAGS"
1149 for i in ${with_incpath}; do
1150 CPPFLAGS="${CPPFLAGS} -I${i}"
1156 # Check whether --with-libpath or --without-libpath was given.
1157 if test "${with_libpath+set}" = set; then
1158 withval="$with_libpath"
1159 case $with_libpath in
1160 yes) { { echo "$as_me:1160: error: \"must give --with-libpath an argument.\"" >&5
1161 echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
1162 { (exit 1); exit 1; }; }
1164 no) { { echo "$as_me:1164: error: \"--without-libpath not supported.\"" >&5
1165 echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
1166 { (exit 1); exit 1; }; }
1168 *) echo "Adding ${with_libpath} to LDFLAGS"
1169 for i in ${with_libpath}; do
1170 LDFLAGS="${LDFLAGS} -L${i}"
1176 # Check whether --with-libraries or --without-libraries was given.
1177 if test "${with_libraries+set}" = set; then
1178 withval="$with_libraries"
1179 case $with_libraries in
1180 yes) { { echo "$as_me:1180: error: \"must give --with-libraries an argument.\"" >&5
1181 echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
1182 { (exit 1); exit 1; }; }
1184 no) { { echo "$as_me:1184: error: \"--without-libraries not supported.\"" >&5
1185 echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
1186 { (exit 1); exit 1; }; }
1188 *) echo "Adding ${with_libraries} to LIBS"
1189 for i in ${with_libraries}; do
1202 # Check whether --with-devel or --without-devel was given.
1203 if test "${with_devel+set}" = set; then
1204 withval="$with_devel"
1206 yes) echo 'Setting up for developement: -Wall, flex, yacc'
1207 PROGS="${PROGS} testsudoers"
1208 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
1212 *) echo "Ignoring unknown argument to --with-devel: $with_devel"
1217 # Check whether --with-efence or --without-efence was given.
1218 if test "${with_efence+set}" = set; then
1219 withval="$with_efence"
1220 case $with_efence in
1221 yes) echo 'Sudo will link with -lefence (Electric Fence)'
1222 LIBS="${LIBS} -lefence"
1223 if test -f /usr/local/lib/libefence.a; then
1224 LDFLAGS="${LDFLAGS} -L/usr/local/lib"
1228 *) echo "Ignoring unknown argument to --with-efence: $with_efence"
1233 # Check whether --with-csops or --without-csops was given.
1234 if test "${with_csops+set}" = set; then
1235 withval="$with_csops"
1237 yes) echo 'Adding CSOps standard options'
1241 with_classic_insults=yes
1242 with_csops_insults=yes
1246 *) echo "Ignoring unknown argument to --with-csops: $with_csops"
1251 # Check whether --with-passwd or --without-passwd was given.
1252 if test "${with_passwd+set}" = set; then
1253 withval="$with_passwd"
1254 case $with_passwd in
1256 no) cat >>confdefs.h <<\EOF
1257 #define WITHOUT_PASSWD 1
1260 echo "$as_me:1260: checking whether to use shadow/passwd file authentication" >&5
1261 echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6
1262 echo "$as_me:1262: result: no" >&5
1263 echo "${ECHO_T}no" >&6
1265 *) { { echo "$as_me:1265: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
1266 echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
1267 { (exit 1); exit 1; }; }
1272 # Check whether --with-skey or --without-skey was given.
1273 if test "${with_skey+set}" = set; then
1274 withval="$with_skey"
1276 yes) if test -n "$with_opie"; then
1277 { { echo "$as_me:1277: error: \"cannot use both S/Key and OPIE\"" >&5
1278 echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
1279 { (exit 1); exit 1; }; }
1282 cat >>confdefs.h <<\EOF
1286 echo "$as_me:1286: checking whether to try S/Key authentication" >&5
1287 echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6
1288 echo "$as_me:1288: result: yes" >&5
1289 echo "${ECHO_T}yes" >&6
1290 AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
1293 *) echo "Ignoring unknown argument to --with-skey: $with_skey"
1298 # Check whether --with-opie or --without-opie was given.
1299 if test "${with_opie+set}" = set; then
1300 withval="$with_opie"
1302 yes) if test -n "$with_skey"; then
1303 { { echo "$as_me:1303: error: \"cannot use both S/Key and OPIE\"" >&5
1304 echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
1305 { (exit 1); exit 1; }; }
1308 cat >>confdefs.h <<\EOF
1312 echo "$as_me:1312: checking whether to try NRL OPIE authentication" >&5
1313 echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6
1314 echo "$as_me:1314: result: yes" >&5
1315 echo "${ECHO_T}yes" >&6
1316 AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
1319 *) echo "Ignoring unknown argument to --with-opie: $with_opie"
1324 # Check whether --with-long-otp-prompt or --without-long-otp-prompt was given.
1325 if test "${with_long_otp_prompt+set}" = set; then
1326 withval="$with_long_otp_prompt"
1327 case $with_long_otp_prompt in
1329 cat >>confdefs.h <<\EOF
1330 #define LONG_OTP_PROMPT 1
1333 echo "$as_me:1333: checking whether to use a two line prompt for OTP authentication" >&5
1334 echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6
1335 echo "$as_me:1335: result: yes" >&5
1336 echo "${ECHO_T}yes" >&6
1339 no) long_otp_prompt=off
1341 *) { { echo "$as_me:1341: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
1342 echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
1343 { (exit 1); exit 1; }; }
1348 # Check whether --with-SecurID or --without-SecurID was given.
1349 if test "${with_SecurID+set}" = set; then
1350 withval="$with_SecurID"
1351 case $with_SecurID in
1354 cat >>confdefs.h <<\EOF
1355 #define HAVE_SECURID 1
1358 echo "$as_me:1358: checking whether to use SecurID for authentication" >&5
1359 echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6
1360 echo "$as_me:1360: result: yes" >&5
1361 echo "${ECHO_T}yes" >&6
1363 AUTH_OBJS="securid.o"
1368 # Check whether --with-fwtk or --without-fwtk was given.
1369 if test "${with_fwtk+set}" = set; then
1370 withval="$with_fwtk"
1374 cat >>confdefs.h <<\EOF
1378 echo "$as_me:1378: checking whether to use FWTK AuthSRV for authentication" >&5
1379 echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6
1380 echo "$as_me:1380: result: yes" >&5
1381 echo "${ECHO_T}yes" >&6
1384 if test "$with_fwtk" != "yes"; then
1385 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
1386 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
1393 # Check whether --with-kerb4 or --without-kerb4 was given.
1394 if test "${with_kerb4+set}" = set; then
1395 withval="$with_kerb4"
1397 yes) echo "$as_me:1397: checking whether to try Kerberos 4 authentication" >&5
1398 echo $ECHO_N "checking whether to try Kerberos 4 authentication... $ECHO_C" >&6
1399 echo "$as_me:1399: result: yes" >&5
1400 echo "${ECHO_T}yes" >&6
1403 *) { { echo "$as_me:1403: error: \"--with-kerb4 does not take an argument.\"" >&5
1404 echo "$as_me: error: \"--with-kerb4 does not take an argument.\"" >&2;}
1405 { (exit 1); exit 1; }; }
1410 # Check whether --with-kerb5 or --without-kerb5 was given.
1411 if test "${with_kerb5+set}" = set; then
1412 withval="$with_kerb5"
1414 yes) echo "$as_me:1414: checking whether to try Kerberos 5 authentication" >&5
1415 echo $ECHO_N "checking whether to try Kerberos 5 authentication... $ECHO_C" >&6
1416 echo "$as_me:1416: result: yes" >&5
1417 echo "${ECHO_T}yes" >&6
1420 *) { { echo "$as_me:1420: error: \"--with-kerb5 does not take an argument.\"" >&5
1421 echo "$as_me: error: \"--with-kerb5 does not take an argument.\"" >&2;}
1422 { (exit 1); exit 1; }; }
1427 # Check whether --with-authenticate or --without-authenticate was given.
1428 if test "${with_authenticate+set}" = set; then
1429 withval="$with_authenticate"
1430 case $with_authenticate in
1432 cat >>confdefs.h <<\EOF
1433 #define HAVE_AUTHENTICATE 1
1436 echo "$as_me:1436: checking whether to use AIX general authentication" >&5
1437 echo $ECHO_N "checking whether to use AIX general authentication... $ECHO_C" >&6
1438 echo "$as_me:1438: result: yes" >&5
1439 echo "${ECHO_T}yes" >&6
1441 AUTH_OBJS="aix_auth.o"
1444 *) { { echo "$as_me:1444: error: \"--with-authenticate does not take an argument.\"" >&5
1445 echo "$as_me: error: \"--with-authenticate does not take an argument.\"" >&2;}
1446 { (exit 1); exit 1; }; }
1451 # Check whether --with-pam or --without-pam was given.
1452 if test "${with_pam+set}" = set; then
1456 cat >>confdefs.h <<\EOF
1460 echo "$as_me:1460: checking whether to use PAM authentication" >&5
1461 echo $ECHO_N "checking whether to use PAM authentication... $ECHO_C" >&6
1462 echo "$as_me:1462: result: yes" >&5
1463 echo "${ECHO_T}yes" >&6
1468 *) { { echo "$as_me:1468: error: \"--with-pam does not take an argument.\"" >&5
1469 echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
1470 { (exit 1); exit 1; }; }
1475 # Check whether --with-AFS or --without-AFS was given.
1476 if test "${with_AFS+set}" = set; then
1480 cat >>confdefs.h <<\EOF
1484 echo "$as_me:1484: checking whether to try AFS (kerberos) authentication" >&5
1485 echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6
1486 echo "$as_me:1486: result: yes" >&5
1487 echo "${ECHO_T}yes" >&6
1488 AUTH_OBJS="${AUTH_OBJS} afs.o"
1491 *) { { echo "$as_me:1491: error: \"--with-AFS does not take an argument.\"" >&5
1492 echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
1493 { (exit 1); exit 1; }; }
1498 # Check whether --with-DCE or --without-DCE was given.
1499 if test "${with_DCE+set}" = set; then
1503 cat >>confdefs.h <<\EOF
1507 echo "$as_me:1507: checking whether to try DCE (kerberos) authentication" >&5
1508 echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6
1509 echo "$as_me:1509: result: yes" >&5
1510 echo "${ECHO_T}yes" >&6
1511 AUTH_OBJS="${AUTH_OBJS} dce.o"
1514 *) { { echo "$as_me:1514: error: \"--with-DCE does not take an argument.\"" >&5
1515 echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
1516 { (exit 1); exit 1; }; }
1521 # Check whether --with-logincap or --without-logincap was given.
1522 if test "${with_logincap+set}" = set; then
1523 withval="$with_logincap"
1524 case $with_logincap in
1526 *) { { echo "$as_me:1526: error: \"--with-logincap does not take an argument.\"" >&5
1527 echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
1528 { (exit 1); exit 1; }; }
1533 # Check whether --with-bsdauth or --without-bsdauth was given.
1534 if test "${with_bsdauth+set}" = set; then
1535 withval="$with_bsdauth"
1536 case $with_bsdauth in
1537 yes) with_logincap=yes
1540 *) { { echo "$as_me:1540: error: \"--with-bsdauth does not take an argument.\"" >&5
1541 echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
1542 { (exit 1); exit 1; }; }
1547 echo "$as_me:1547: checking whether to lecture users the first time they run sudo" >&5
1548 echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6
1550 # Check whether --with-lecture or --without-lecture was given.
1551 if test "${with_lecture+set}" = set; then
1552 withval="$with_lecture"
1553 case $with_lecture in
1554 yes|short) lecture=on
1556 no|none) lecture=off
1558 *) { { echo "$as_me:1558: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
1559 echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
1560 { (exit 1); exit 1; }; }
1564 if test "$lecture" = "on"; then
1565 echo "$as_me:1565: result: yes" >&5
1566 echo "${ECHO_T}yes" >&6
1569 cat >>confdefs.h <<\EOF
1570 #define NO_LECTURE 1
1573 echo "$as_me:1573: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1577 echo "$as_me:1577: checking whether sudo should log via syslog or to a file by default" >&5
1578 echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6
1580 # Check whether --with-logging or --without-logging was given.
1581 if test "${with_logging+set}" = set; then
1582 withval="$with_logging"
1583 case $with_logging in
1584 yes) { { echo "$as_me:1584: error: \"must give --with-logging an argument.\"" >&5
1585 echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
1586 { (exit 1); exit 1; }; }
1588 no) { { echo "$as_me:1588: error: \"--without-logging not supported.\"" >&5
1589 echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
1590 { (exit 1); exit 1; }; }
1593 cat >>confdefs.h <<\EOF
1594 #define LOGGING SLOG_SYSLOG
1597 echo "$as_me:1597: result: syslog" >&5
1598 echo "${ECHO_T}syslog" >&6
1600 file) cat >>confdefs.h <<\EOF
1601 #define LOGGING SLOG_FILE
1604 echo "$as_me:1604: result: file" >&5
1605 echo "${ECHO_T}file" >&6
1607 both) cat >>confdefs.h <<\EOF
1608 #define LOGGING SLOG_BOTH
1611 echo "$as_me:1611: result: both" >&5
1612 echo "${ECHO_T}both" >&6
1614 *) { { echo "$as_me:1614: error: \"unknown argument to --with-logging: $with_logging\"" >&5
1615 echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
1616 { (exit 1); exit 1; }; }
1620 cat >>confdefs.h <<\EOF
1621 #define LOGGING SLOG_SYSLOG
1623 echo "$as_me:1623: result: syslog" >&5
1624 echo "${ECHO_T}syslog" >&6
1627 echo "$as_me:1627: checking which syslog facility sudo should log with" >&5
1628 echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6
1630 # Check whether --with-logfac or --without-logfac was given.
1631 if test "${with_logfac+set}" = set; then
1632 withval="$with_logfac"
1633 case $with_logfac in
1634 yes) { { echo "$as_me:1634: error: \"must give --with-logfac an argument.\"" >&5
1635 echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
1636 { (exit 1); exit 1; }; }
1638 no) { { echo "$as_me:1638: error: \"--without-logfac not supported.\"" >&5
1639 echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
1640 { (exit 1); exit 1; }; }
1642 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
1644 *) { { echo "$as_me:1644: error: \"$with_logfac is not a supported syslog facility.\"" >&5
1645 echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
1646 { (exit 1); exit 1; }; }
1651 cat >>confdefs.h <<EOF
1652 #define LOGFAC "$logfac"
1655 echo "$as_me:1655: result: $logfac" >&5
1656 echo "${ECHO_T}$logfac" >&6
1658 echo "$as_me:1658: checking at which syslog priority to log commands" >&5
1659 echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6
1661 # Check whether --with-goodpri or --without-goodpri was given.
1662 if test "${with_goodpri+set}" = set; then
1663 withval="$with_goodpri"
1664 case $with_goodpri in
1665 yes) { { echo "$as_me:1665: error: \"must give --with-goodpri an argument.\"" >&5
1666 echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
1667 { (exit 1); exit 1; }; }
1669 no) { { echo "$as_me:1669: error: \"--without-goodpri not supported.\"" >&5
1670 echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
1671 { (exit 1); exit 1; }; }
1673 alert|crit|debug|emerg|err|info|notice|warning)
1674 goodpri=$with_goodpri
1676 *) { { echo "$as_me:1676: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
1677 echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
1678 { (exit 1); exit 1; }; }
1683 cat >>confdefs.h <<EOF
1684 #define PRI_SUCCESS "$goodpri"
1687 echo "$as_me:1687: result: $goodpri" >&5
1688 echo "${ECHO_T}$goodpri" >&6
1690 echo "$as_me:1690: checking at which syslog priority to log failures" >&5
1691 echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6
1693 # Check whether --with-badpri or --without-badpri was given.
1694 if test "${with_badpri+set}" = set; then
1695 withval="$with_badpri"
1696 case $with_badpri in
1697 yes) { { echo "$as_me:1697: error: \"must give --with-badpri an argument.\"" >&5
1698 echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
1699 { (exit 1); exit 1; }; }
1701 no) { { echo "$as_me:1701: error: \"--without-badpri not supported.\"" >&5
1702 echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
1703 { (exit 1); exit 1; }; }
1705 alert|crit|debug|emerg|err|info|notice|warning)
1708 *) { { echo "$as_me:1708: error: $with_badpri is not a supported syslog priority." >&5
1709 echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
1710 { (exit 1); exit 1; }; }
1715 cat >>confdefs.h <<EOF
1716 #define PRI_FAILURE "$badpri"
1719 echo "$as_me:1719: result: badpri" >&5
1720 echo "${ECHO_T}badpri" >&6
1722 # Check whether --with-logpath or --without-logpath was given.
1723 if test "${with_logpath+set}" = set; then
1724 withval="$with_logpath"
1725 case $with_logpath in
1726 yes) { { echo "$as_me:1726: error: \"must give --with-logpath an argument.\"" >&5
1727 echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
1728 { (exit 1); exit 1; }; }
1730 no) { { echo "$as_me:1730: error: \"--without-logpath not supported.\"" >&5
1731 echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
1732 { (exit 1); exit 1; }; }
1737 echo "$as_me:1737: checking how long a line in the log file should be" >&5
1738 echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6
1740 # Check whether --with-loglen or --without-loglen was given.
1741 if test "${with_loglen+set}" = set; then
1742 withval="$with_loglen"
1743 case $with_loglen in
1744 yes) { { echo "$as_me:1744: error: \"must give --with-loglen an argument.\"" >&5
1745 echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
1746 { (exit 1); exit 1; }; }
1748 no) { { echo "$as_me:1748: error: \"--without-loglen not supported.\"" >&5
1749 echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
1750 { (exit 1); exit 1; }; }
1752 [0-9]*) loglen=$with_loglen
1754 *) { { echo "$as_me:1754: error: \"you must enter a number, not $with_loglen\"" >&5
1755 echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
1756 { (exit 1); exit 1; }; }
1761 cat >>confdefs.h <<EOF
1762 #define MAXLOGFILELEN $loglen
1765 echo "$as_me:1765: result: $loglen" >&5
1766 echo "${ECHO_T}$loglen" >&6
1768 echo "$as_me:1768: checking whether sudo should ignore '.' or '' in \$PATH" >&5
1769 echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6
1771 # Check whether --with-ignore-dot or --without-ignore-dot was given.
1772 if test "${with_ignore_dot+set}" = set; then
1773 withval="$with_ignore_dot"
1774 case $with_ignore_dot in
1779 *) { { echo "$as_me:1779: error: \"--with-ignore-dot does not take an argument.\"" >&5
1780 echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
1781 { (exit 1); exit 1; }; }
1785 if test "$ignore_dot" = "on"; then
1787 cat >>confdefs.h <<\EOF
1788 #define IGNORE_DOT_PATH 1
1791 echo "$as_me:1791: result: yes" >&5
1792 echo "${ECHO_T}yes" >&6
1794 echo "$as_me:1794: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1798 echo "$as_me:1798: checking whether to send mail when a user is not in sudoers" >&5
1799 echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6
1801 # Check whether --with-mail-if-no-user or --without-mail-if-no-user was given.
1802 if test "${with_mail_if_no_user+set}" = set; then
1803 withval="$with_mail_if_no_user"
1804 case $with_mail_if_no_user in
1805 yes) mail_no_user=on
1807 no) mail_no_user=off
1809 *) { { echo "$as_me:1809: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
1810 echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
1811 { (exit 1); exit 1; }; }
1815 if test "$mail_no_user" = "on"; then
1817 cat >>confdefs.h <<\EOF
1818 #define SEND_MAIL_WHEN_NO_USER 1
1821 echo "$as_me:1821: result: yes" >&5
1822 echo "${ECHO_T}yes" >&6
1824 echo "$as_me:1824: result: no" >&5
1825 echo "${ECHO_T}no" >&6
1828 echo "$as_me:1828: checking whether to send mail when user listed but not for this host" >&5
1829 echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6
1831 # Check whether --with-mail-if-no-host or --without-mail-if-no-host was given.
1832 if test "${with_mail_if_no_host+set}" = set; then
1833 withval="$with_mail_if_no_host"
1834 case $with_mail_if_no_host in
1835 yes) mail_no_host=on
1837 no) mail_no_host=off
1839 *) { { echo "$as_me:1839: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
1840 echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
1841 { (exit 1); exit 1; }; }
1845 if test "$mail_no_host" = "on"; then
1847 cat >>confdefs.h <<\EOF
1848 #define SEND_MAIL_WHEN_NO_HOST 1
1851 echo "$as_me:1851: result: yes" >&5
1852 echo "${ECHO_T}yes" >&6
1854 echo "$as_me:1854: result: no" >&5
1855 echo "${ECHO_T}no" >&6
1858 echo "$as_me:1858: checking whether to send mail when a user tries a disallowed command" >&5
1859 echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6
1861 # Check whether --with-mail-if-noperms or --without-mail-if-noperms was given.
1862 if test "${with_mail_if_noperms+set}" = set; then
1863 withval="$with_mail_if_noperms"
1864 case $with_mail_if_noperms in
1865 yes) mail_noperms=on
1867 no) mail_noperms=off
1869 *) { { echo "$as_me:1869: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
1870 echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
1871 { (exit 1); exit 1; }; }
1875 if test "$mail_noperms" = "on"; then
1877 cat >>confdefs.h <<\EOF
1878 #define SEND_MAIL_WHEN_NOT_OK 1
1881 echo "$as_me:1881: result: yes" >&5
1882 echo "${ECHO_T}yes" >&6
1884 echo "$as_me:1884: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1888 echo "$as_me:1888: checking who should get the mail that sudo sends" >&5
1889 echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6
1891 # Check whether --with-mailto or --without-mailto was given.
1892 if test "${with_mailto+set}" = set; then
1893 withval="$with_mailto"
1894 case $with_mailto in
1895 yes) { { echo "$as_me:1895: error: \"must give --with-mailto an argument.\"" >&5
1896 echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
1897 { (exit 1); exit 1; }; }
1899 no) { { echo "$as_me:1899: error: \"--without-mailto not supported.\"" >&5
1900 echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
1901 { (exit 1); exit 1; }; }
1903 *) mailto=$with_mailto
1908 cat >>confdefs.h <<EOF
1909 #define MAILTO "$mailto"
1912 echo "$as_me:1912: result: $mailto" >&5
1913 echo "${ECHO_T}$mailto" >&6
1915 # Check whether --with-mailsubject or --without-mailsubject was given.
1916 if test "${with_mailsubject+set}" = set; then
1917 withval="$with_mailsubject"
1918 case $with_mailsubject in
1919 yes) { { echo "$as_me:1919: error: \"must give --with-mailsubject an argument.\"" >&5
1920 echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
1921 { (exit 1); exit 1; }; }
1923 no) echo "Sorry, --without-mailsubject not supported."
1925 *) mailsub="$with_mailsubject"
1926 echo "$as_me:1926: checking sudo mail subject" >&5
1927 echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6
1928 echo "$as_me:1928: result: Using alert mail subject: $mailsub" >&5
1929 echo "${ECHO_T}Using alert mail subject: $mailsub" >&6
1934 cat >>confdefs.h <<EOF
1935 #define MAILSUBJECT "$mailsub"
1938 echo "$as_me:1938: checking for bad password prompt" >&5
1939 echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6
1941 # Check whether --with-passprompt or --without-passprompt was given.
1942 if test "${with_passprompt+set}" = set; then
1943 withval="$with_passprompt"
1944 case $with_passprompt in
1945 yes) { { echo "$as_me:1945: error: \"must give --with-passprompt an argument.\"" >&5
1946 echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
1947 { (exit 1); exit 1; }; }
1949 no) echo "Sorry, --without-passprompt not supported."
1951 *) passprompt="$with_passprompt"
1954 echo "$as_me:1954: result: $passprompt" >&5
1955 echo "${ECHO_T}$passprompt" >&6
1957 cat >>confdefs.h <<EOF
1958 #define PASSPROMPT "$passprompt"
1961 echo "$as_me:1961: checking for bad password message" >&5
1962 echo $ECHO_N "checking for bad password message... $ECHO_C" >&6
1964 # Check whether --with-badpass-message or --without-badpass-message was given.
1965 if test "${with_badpass_message+set}" = set; then
1966 withval="$with_badpass_message"
1967 case $with_badpass_message in
1968 yes) { { echo "$as_me:1968: error: \"Must give --with-badpass-message an argument.\"" >&5
1969 echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
1970 { (exit 1); exit 1; }; }
1972 no) echo "Sorry, --without-badpass-message not supported."
1974 *) badpass_message="$with_badpass_message"
1979 cat >>confdefs.h <<EOF
1980 #define INCORRECT_PASSWORD "$badpass_message"
1983 echo "$as_me:1983: result: $badpass_message" >&5
1984 echo "${ECHO_T}$badpass_message" >&6
1986 echo "$as_me:1986: checking whether to expect fully qualified hosts in sudoers" >&5
1987 echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6
1989 # Check whether --with-fqdn or --without-fqdn was given.
1990 if test "${with_fqdn+set}" = set; then
1991 withval="$with_fqdn"
1997 *) { { echo "$as_me:1997: error: \"--with-fqdn does not take an argument.\"" >&5
1998 echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
1999 { (exit 1); exit 1; }; }
2003 if test "$fqdn" = "on"; then
2005 cat >>confdefs.h <<\EOF
2009 echo "$as_me:2009: result: yes" >&5
2010 echo "${ECHO_T}yes" >&6
2012 echo "$as_me:2012: result: no" >&5
2013 echo "${ECHO_T}no" >&6
2016 # Check whether --with-timedir or --without-timedir was given.
2017 if test "${with_timedir+set}" = set; then
2018 withval="$with_timedir"
2019 case $with_timedir in
2020 yes) { { echo "$as_me:2020: error: \"must give --with-timedir an argument.\"" >&5
2021 echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
2022 { (exit 1); exit 1; }; }
2024 no) { { echo "$as_me:2024: error: \"--without-timedir not supported.\"" >&5
2025 echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
2026 { (exit 1); exit 1; }; }
2031 # Check whether --with-sendmail or --without-sendmail was given.
2032 if test "${with_sendmail+set}" = set; then
2033 withval="$with_sendmail"
2034 case $with_sendmail in
2035 yes) with_sendmail=""
2038 *) cat >>confdefs.h <<EOF
2039 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
2046 # Check whether --with-sudoers-mode or --without-sudoers-mode was given.
2047 if test "${with_sudoers_mode+set}" = set; then
2048 withval="$with_sudoers_mode"
2049 case $with_sudoers_mode in
2050 yes) { { echo "$as_me:2050: error: \"must give --with-sudoers-mode an argument.\"" >&5
2051 echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
2052 { (exit 1); exit 1; }; }
2054 no) { { echo "$as_me:2054: error: \"--without-sudoers-mode not supported.\"" >&5
2055 echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
2056 { (exit 1); exit 1; }; }
2058 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
2060 0*) SUDOERS_MODE=$with_sudoers_mode
2062 *) { { echo "$as_me:2062: error: \"you must use a numeric uid, not a name.\"" >&5
2063 echo "$as_me: error: \"you must use a numeric uid, not a name.\"" >&2;}
2064 { (exit 1); exit 1; }; }
2069 # Check whether --with-sudoers-uid or --without-sudoers-uid was given.
2070 if test "${with_sudoers_uid+set}" = set; then
2071 withval="$with_sudoers_uid"
2072 case $with_sudoers_uid in
2073 yes) { { echo "$as_me:2073: error: \"must give --with-sudoers-uid an argument.\"" >&5
2074 echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
2075 { (exit 1); exit 1; }; }
2077 no) { { echo "$as_me:2077: error: \"--without-sudoers-uid not supported.\"" >&5
2078 echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
2079 { (exit 1); exit 1; }; }
2081 [0-9]*) SUDOERS_UID=$with_sudoers_uid
2083 *) { { echo "$as_me:2083: error: \"you must use a numeric uid, not a name.\"" >&5
2084 echo "$as_me: error: \"you must use a numeric uid, not a name.\"" >&2;}
2085 { (exit 1); exit 1; }; }
2090 # Check whether --with-sudoers-gid or --without-sudoers-gid was given.
2091 if test "${with_sudoers_gid+set}" = set; then
2092 withval="$with_sudoers_gid"
2093 case $with_sudoers_gid in
2094 yes) { { echo "$as_me:2094: error: \"must give --with-sudoers-gid an argument.\"" >&5
2095 echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
2096 { (exit 1); exit 1; }; }
2098 no) { { echo "$as_me:2098: error: \"--without-sudoers-gid not supported.\"" >&5
2099 echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
2100 { (exit 1); exit 1; }; }
2102 [0-9]*) SUDOERS_GID=$with_sudoers_gid
2104 *) { { echo "$as_me:2104: error: \"you must use a numeric gid, not a name.\"" >&5
2105 echo "$as_me: error: \"you must use a numeric gid, not a name.\"" >&2;}
2106 { (exit 1); exit 1; }; }
2111 echo "$as_me:2111: checking for umask programs should be run with" >&5
2112 echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6
2114 # Check whether --with-umask or --without-umask was given.
2115 if test "${with_umask+set}" = set; then
2116 withval="$with_umask"
2118 yes) { { echo "$as_me:2118: error: \"must give --with-umask an argument.\"" >&5
2119 echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
2120 { (exit 1); exit 1; }; }
2124 [0-9]*) sudo_umask=$with_umask
2126 *) { { echo "$as_me:2126: error: \"you must enter a numeric mask.\"" >&5
2127 echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
2128 { (exit 1); exit 1; }; }
2133 cat >>confdefs.h <<EOF
2134 #define SUDO_UMASK $sudo_umask
2137 if test "$sudo_umask" = "0777"; then
2138 echo "$as_me:2138: result: user" >&5
2139 echo "${ECHO_T}user" >&6
2141 echo "$as_me:2141: result: $sudo_umask" >&5
2142 echo "${ECHO_T}$sudo_umask" >&6
2145 echo "$as_me:2145: checking for default user to run commands as" >&5
2146 echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6
2148 # Check whether --with-runas-default or --without-runas-default was given.
2149 if test "${with_runas_default+set}" = set; then
2150 withval="$with_runas_default"
2151 case $with_runas_default in
2152 yes) { { echo "$as_me:2152: error: \"must give --with-runas-default an argument.\"" >&5
2153 echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
2154 { (exit 1); exit 1; }; }
2156 no) { { echo "$as_me:2156: error: \"--without-runas-default not supported.\"" >&5
2157 echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
2158 { (exit 1); exit 1; }; }
2160 *) runas_default="$with_runas_default"
2165 cat >>confdefs.h <<EOF
2166 #define RUNAS_DEFAULT "$runas_default"
2169 echo "$as_me:2169: result: $runas_default" >&5
2170 echo "${ECHO_T}$runas_default" >&6
2172 # Check whether --with-exempt or --without-exempt was given.
2173 if test "${with_exempt+set}" = set; then
2174 withval="$with_exempt"
2175 case $with_exempt in
2176 yes) { { echo "$as_me:2176: error: \"must give --with-exempt an argument.\"" >&5
2177 echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
2178 { (exit 1); exit 1; }; }
2180 no) { { echo "$as_me:2180: error: \"--without-exempt not supported.\"" >&5
2181 echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
2182 { (exit 1); exit 1; }; }
2185 cat >>confdefs.h <<EOF
2186 #define EXEMPTGROUP "$with_exempt"
2189 echo "$as_me:2189: checking for group to be exempt from password" >&5
2190 echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6
2191 echo "$as_me:2191: result: $with_exempt" >&5
2192 echo "${ECHO_T}$with_exempt" >&6
2197 echo "$as_me:2197: checking for editor that visudo should use" >&5
2198 echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6
2200 # Check whether --with-editor or --without-editor was given.
2201 if test "${with_editor+set}" = set; then
2202 withval="$with_editor"
2203 case $with_editor in
2204 yes) { { echo "$as_me:2204: error: \"must give --with-editor an argument.\"" >&5
2205 echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
2206 { (exit 1); exit 1; }; }
2208 no) { { echo "$as_me:2208: error: \"--without-editor not supported.\"" >&5
2209 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
2210 { (exit 1); exit 1; }; }
2213 cat >>confdefs.h <<EOF
2214 #define EDITOR "$with_editor"
2217 echo "$as_me:2217: result: $with_editor" >&5
2218 echo "${ECHO_T}$with_editor" >&6
2222 cat >>confdefs.h <<\EOF
2223 #define EDITOR _PATH_VI
2225 echo "$as_me:2225: result: vi" >&5
2226 echo "${ECHO_T}vi" >&6
2229 echo "$as_me:2229: checking whether to obey EDITOR and VISUAL environment variables" >&5
2230 echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6
2232 # Check whether --with-env-editor or --without-env-editor was given.
2233 if test "${with_env_editor+set}" = set; then
2234 withval="$with_env_editor"
2235 case $with_env_editor in
2240 *) { { echo "$as_me:2240: error: \"--with-env-editor does not take an argument.\"" >&5
2241 echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
2242 { (exit 1); exit 1; }; }
2246 if test "$env_editor" = "on"; then
2248 cat >>confdefs.h <<\EOF
2249 #define ENV_EDITOR 1
2252 echo "$as_me:2252: result: yes" >&5
2253 echo "${ECHO_T}yes" >&6
2255 echo "$as_me:2255: result: no" >&5
2256 echo "${ECHO_T}no" >&6
2259 echo "$as_me:2259: checking number of tries a user gets to enter their password" >&5
2260 echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6
2262 # Check whether --with-passwd-tries or --without-passwd-tries was given.
2263 if test "${with_passwd_tries+set}" = set; then
2264 withval="$with_passwd_tries"
2265 case $with_passwd_tries in
2267 no) { { echo "$as_me:2267: error: \"--without-editor not supported.\"" >&5
2268 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
2269 { (exit 1); exit 1; }; }
2271 [1-9]*) passwd_tries=$with_passwd_tries
2273 *) { { echo "$as_me:2273: error: \"you must enter the numer of tries, > 0\"" >&5
2274 echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
2275 { (exit 1); exit 1; }; }
2280 cat >>confdefs.h <<EOF
2281 #define TRIES_FOR_PASSWORD $passwd_tries
2284 echo "$as_me:2284: result: $passwd_tries" >&5
2285 echo "${ECHO_T}$passwd_tries" >&6
2287 echo "$as_me:2287: checking time in minutes after which sudo will ask for a password again" >&5
2288 echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6
2290 # Check whether --with-timeout or --without-timeout was given.
2291 if test "${with_timeout+set}" = set; then
2292 withval="$with_timeout"
2293 echo $with_timeout; case $with_timeout in
2297 [0-9]*) timeout=$with_timeout
2299 *) { { echo "$as_me:2299: error: \"you must enter the numer of minutes.\"" >&5
2300 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
2301 { (exit 1); exit 1; }; }
2306 cat >>confdefs.h <<EOF
2307 #define TIMEOUT $timeout
2310 echo "$as_me:2310: result: $timeout" >&5
2311 echo "${ECHO_T}$timeout" >&6
2313 echo "$as_me:2313: checking time in minutes after the password prompt will time out" >&5
2314 echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6
2316 # Check whether --with-password-timeout or --without-password-timeout was given.
2317 if test "${with_password_timeout+set}" = set; then
2318 withval="$with_password_timeout"
2319 case $with_password_timeout in
2321 no) password_timeout=0
2323 [0-9]*) password_timeout=$with_password_timeout
2325 *) { { echo "$as_me:2325: error: \"you must enter the numer of minutes.\"" >&5
2326 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
2327 { (exit 1); exit 1; }; }
2332 cat >>confdefs.h <<EOF
2333 #define PASSWORD_TIMEOUT $password_timeout
2336 echo "$as_me:2336: result: $password_timeout" >&5
2337 echo "${ECHO_T}$password_timeout" >&6
2339 # Check whether --with-execv or --without-execv was given.
2340 if test "${with_execv+set}" = set; then
2341 withval="$with_execv"
2343 yes) echo "$as_me:2343: checking whether to use execvp or execv" >&5
2344 echo $ECHO_N "checking whether to use execvp or execv... $ECHO_C" >&6
2345 echo "$as_me:2345: result: execv" >&5
2346 echo "${ECHO_T}execv" >&6
2348 cat >>confdefs.h <<\EOF
2354 *) { { echo "$as_me:2354: error: \"--with-execv does not take an argument.\"" >&5
2355 echo "$as_me: error: \"--with-execv does not take an argument.\"" >&2;}
2356 { (exit 1); exit 1; }; }
2361 echo "$as_me:2361: checking whether to use per-tty ticket files" >&5
2362 echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6
2364 # Check whether --with-tty-tickets or --without-tty-tickets was given.
2365 if test "${with_tty_tickets+set}" = set; then
2366 withval="$with_tty_tickets"
2367 case $with_tty_tickets in
2372 *) { { echo "$as_me:2372: error: \"--with-tty-tickets does not take an argument.\"" >&5
2373 echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
2374 { (exit 1); exit 1; }; }
2378 if test "$tty_tickets" = "on"; then
2380 cat >>confdefs.h <<\EOF
2381 #define USE_TTY_TICKETS 1
2384 echo "$as_me:2384: result: yes" >&5
2385 echo "${ECHO_T}yes" >&6
2387 echo "$as_me:2387: result: no" >&5
2388 echo "${ECHO_T}no" >&6
2391 echo "$as_me:2391: checking whether to include insults" >&5
2392 echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6
2394 # Check whether --with-insults or --without-insults was given.
2395 if test "${with_insults+set}" = set; then
2396 withval="$with_insults"
2397 case $with_insults in
2399 with_classic_insults=yes
2400 with_csops_insults=yes
2404 *) { { echo "$as_me:2404: error: \"--with-insults does not take an argument.\"" >&5
2405 echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
2406 { (exit 1); exit 1; }; }
2410 if test "$insults" = "on"; then
2412 cat >>confdefs.h <<\EOF
2413 #define USE_INSULTS 1
2416 echo "$as_me:2416: result: yes" >&5
2417 echo "${ECHO_T}yes" >&6
2419 echo "$as_me:2419: result: no" >&5
2420 echo "${ECHO_T}no" >&6
2423 # Check whether --with-all-insults or --without-all-insults was given.
2424 if test "${with_all_insults+set}" = set; then
2425 withval="$with_all_insults"
2426 case $with_all_insults in
2427 yes) with_classic_insults=yes
2428 with_csops_insults=yes
2429 with_hal_insults=yes
2430 with_goons_insults=yes
2433 *) { { echo "$as_me:2433: error: \"--with-all-insults does not take an argument.\"" >&5
2434 echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
2435 { (exit 1); exit 1; }; }
2440 # Check whether --with-classic-insults or --without-classic-insults was given.
2441 if test "${with_classic_insults+set}" = set; then
2442 withval="$with_classic_insults"
2443 case $with_classic_insults in
2445 cat >>confdefs.h <<\EOF
2446 #define CLASSIC_INSULTS 1
2451 *) { { echo "$as_me:2451: error: \"--with-classic-insults does not take an argument.\"" >&5
2452 echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
2453 { (exit 1); exit 1; }; }
2458 # Check whether --with-csops-insults or --without-csops-insults was given.
2459 if test "${with_csops_insults+set}" = set; then
2460 withval="$with_csops_insults"
2461 case $with_csops_insults in
2463 cat >>confdefs.h <<\EOF
2464 #define CSOPS_INSULTS 1
2469 *) { { echo "$as_me:2469: error: \"--with-csops-insults does not take an argument.\"" >&5
2470 echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
2471 { (exit 1); exit 1; }; }
2476 # Check whether --with-hal-insults or --without-hal-insults was given.
2477 if test "${with_hal_insults+set}" = set; then
2478 withval="$with_hal_insults"
2479 case $with_hal_insults in
2481 cat >>confdefs.h <<\EOF
2482 #define HAL_INSULTS 1
2487 *) { { echo "$as_me:2487: error: \"--with-hal-insults does not take an argument.\"" >&5
2488 echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
2489 { (exit 1); exit 1; }; }
2494 # Check whether --with-goons-insults or --without-goons-insults was given.
2495 if test "${with_goons_insults+set}" = set; then
2496 withval="$with_goons_insults"
2497 case $with_goons_insults in
2499 cat >>confdefs.h <<\EOF
2500 #define GOONS_INSULTS 1
2505 *) { { echo "$as_me:2505: error: \"--with-goons-insults does not take an argument.\"" >&5
2506 echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
2507 { (exit 1); exit 1; }; }
2512 if test "$insults" = "on"; then
2513 echo "$as_me:2513: checking which insult sets to include" >&5
2514 echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6
2516 test "$with_goons_insults" = "yes" && i="goons ${i}"
2517 test "$with_hal_insults" = "yes" && i="hal ${i}"
2518 test "$with_csops_insults" = "yes" && i="csops ${i}"
2519 test "$with_classic_insults" = "yes" && i="classic ${i}"
2520 echo "$as_me:2520: result: $i" >&5
2521 echo "${ECHO_T}$i" >&6
2524 echo "$as_me:2524: checking whether to override the user's path" >&5
2525 echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6
2527 # Check whether --with-secure-path or --without-secure-path was given.
2528 if test "${with_secure_path+set}" = set; then
2529 withval="$with_secure_path"
2530 case $with_secure_path in
2532 cat >>confdefs.h <<EOF
2533 #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
2536 echo "$as_me:2536: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
2537 echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6
2539 no) echo "$as_me:2539: result: no" >&5
2540 echo "${ECHO_T}no" >&6
2542 *) cat >>confdefs.h <<EOF
2543 #define SECURE_PATH "$with_secure_path"
2546 echo "$as_me:2546: result: $with_secure_path" >&5
2547 echo "${ECHO_T}$with_secure_path" >&6
2551 echo "$as_me:2551: result: no" >&5
2552 echo "${ECHO_T}no" >&6
2555 echo "$as_me:2555: checking whether to get ip addresses from the network interfaces" >&5
2556 echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6
2558 # Check whether --with-interfaces or --without-interfaces was given.
2559 if test "${with_interfaces+set}" = set; then
2560 withval="$with_interfaces"
2561 case $with_interfaces in
2562 yes) echo "$as_me:2562: result: yes" >&5
2563 echo "${ECHO_T}yes" >&6
2566 cat >>confdefs.h <<\EOF
2567 #define STUB_LOAD_INTERFACES 1
2570 echo "$as_me:2570: result: no" >&5
2571 echo "${ECHO_T}no" >&6
2573 *) { { echo "$as_me:2573: error: \"--with-interfaces does not take an argument.\"" >&5
2574 echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
2575 { (exit 1); exit 1; }; }
2579 echo "$as_me:2579: result: yes" >&5
2580 echo "${ECHO_T}yes" >&6
2583 echo "$as_me:2583: checking whether to do user authentication by default" >&5
2584 echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6
2585 # Check whether --enable-authentication or --disable-authentication was given.
2586 if test "${enable_authentication+set}" = set; then
2587 enableval="$enable_authentication"
2588 case "$enableval" in
2589 yes) echo "$as_me:2589: result: yes" >&5
2590 echo "${ECHO_T}yes" >&6
2592 no) echo "$as_me:2592: result: no" >&5
2593 echo "${ECHO_T}no" >&6
2595 cat >>confdefs.h <<\EOF
2596 #define NO_AUTHENTICATION 1
2600 *) echo "$as_me:2600: result: no" >&5
2601 echo "${ECHO_T}no" >&6
2602 echo "Ignoring unknown argument to --enable-authentication: $enableval"
2607 echo "$as_me:2607: result: yes" >&5
2608 echo "${ECHO_T}yes" >&6
2611 echo "$as_me:2611: checking whether to disable running the mailer as root" >&5
2612 echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6
2613 # Check whether --enable-root-mailer or --disable-root-mailer was given.
2614 if test "${enable_root_mailer+set}" = set; then
2615 enableval="$enable_root_mailer"
2616 case "$enableval" in
2617 yes) echo "$as_me:2617: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2620 no) echo "$as_me:2620: result: yes" >&5
2621 echo "${ECHO_T}yes" >&6
2623 cat >>confdefs.h <<\EOF
2624 #define NO_ROOT_MAILER 1
2628 *) echo "$as_me:2628: result: no" >&5
2629 echo "${ECHO_T}no" >&6
2630 echo "Ignoring unknown argument to --enable-root-mailer: $enableval"
2635 echo "$as_me:2635: result: no" >&5
2636 echo "${ECHO_T}no" >&6
2639 # Check whether --enable-setreuid or --disable-setreuid was given.
2640 if test "${enable_setreuid+set}" = set; then
2641 enableval="$enable_setreuid"
2642 case "$enableval" in
2643 no) BROKEN_SETREUID=1
2650 echo "$as_me:2650: checking whether to disable use of POSIX saved ids" >&5
2651 echo $ECHO_N "checking whether to disable use of POSIX saved ids... $ECHO_C" >&6
2652 # Check whether --enable-saved-ids or --disable-saved-ids was given.
2653 if test "${enable_saved_ids+set}" = set; then
2654 enableval="$enable_saved_ids"
2655 case "$enableval" in
2656 yes) echo "$as_me:2656: result: no" >&5
2657 echo "${ECHO_T}no" >&6
2659 no) echo "$as_me:2659: result: yes" >&5
2660 echo "${ECHO_T}yes" >&6
2662 cat >>confdefs.h <<\EOF
2663 #define NO_SAVED_IDS 1
2667 *) echo "$as_me:2667: result: no" >&5
2668 echo "${ECHO_T}no" >&6
2669 echo "Ignoring unknown argument to --enable-saved-ids: $enableval"
2674 echo "$as_me:2674: result: no" >&5
2675 echo "${ECHO_T}no" >&6
2678 echo "$as_me:2678: checking whether to disable shadow password support" >&5
2679 echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6
2680 # Check whether --enable-shadow or --disable-shadow was given.
2681 if test "${enable_shadow+set}" = set; then
2682 enableval="$enable_shadow"
2683 case "$enableval" in
2684 yes) echo "$as_me:2684: result: no" >&5
2685 echo "${ECHO_T}no" >&6
2687 no) echo "$as_me:2687: result: yes" >&5
2688 echo "${ECHO_T}yes" >&6
2691 *) echo "$as_me:2691: result: no" >&5
2692 echo "${ECHO_T}no" >&6
2693 echo "Ignoring unknown argument to --enable-shadow: $enableval"
2698 echo "$as_me:2698: result: no" >&5
2699 echo "${ECHO_T}no" >&6
2702 echo "$as_me:2702: checking whether root should be allowed to use sudo" >&5
2703 echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6
2704 # Check whether --enable-root-sudo or --disable-root-sudo was given.
2705 if test "${enable_root_sudo+set}" = set; then
2706 enableval="$enable_root_sudo"
2707 case "$enableval" in
2708 yes) echo "$as_me:2708: result: yes" >&5
2709 echo "${ECHO_T}yes" >&6
2712 cat >>confdefs.h <<\EOF
2713 #define NO_ROOT_SUDO 1
2716 echo "$as_me:2716: result: no" >&5
2717 echo "${ECHO_T}no" >&6
2719 *) { { echo "$as_me:2719: error: \"--enable-root-sudo does not take an argument.\"" >&5
2720 echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
2721 { (exit 1); exit 1; }; }
2726 echo "$as_me:2726: result: yes" >&5
2727 echo "${ECHO_T}yes" >&6
2730 echo "$as_me:2730: checking whether to log the hostname in the log file" >&5
2731 echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6
2732 # Check whether --enable-log-host or --disable-log-host was given.
2733 if test "${enable_log_host+set}" = set; then
2734 enableval="$enable_log_host"
2735 case "$enableval" in
2736 yes) echo "$as_me:2736: result: yes" >&5
2737 echo "${ECHO_T}yes" >&6
2739 cat >>confdefs.h <<\EOF
2740 #define HOST_IN_LOG 1
2744 no) echo "$as_me:2744: result: no" >&5
2745 echo "${ECHO_T}no" >&6
2747 *) echo "$as_me:2747: result: no" >&5
2748 echo "${ECHO_T}no" >&6
2749 echo "Ignoring unknown argument to --enable-log-host: $enableval"
2754 echo "$as_me:2754: result: no" >&5
2755 echo "${ECHO_T}no" >&6
2758 echo "$as_me:2758: checking whether to invoke a shell if sudo is given no arguments" >&5
2759 echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6
2760 # Check whether --enable-noargs-shell or --disable-noargs-shell was given.
2761 if test "${enable_noargs_shell+set}" = set; then
2762 enableval="$enable_noargs_shell"
2763 case "$enableval" in
2764 yes) echo "$as_me:2764: result: yes" >&5
2765 echo "${ECHO_T}yes" >&6
2767 cat >>confdefs.h <<\EOF
2768 #define SHELL_IF_NO_ARGS 1
2772 no) echo "$as_me:2772: result: no" >&5
2773 echo "${ECHO_T}no" >&6
2775 *) echo "$as_me:2775: result: no" >&5
2776 echo "${ECHO_T}no" >&6
2777 echo "Ignoring unknown argument to --enable-noargs-shell: $enableval"
2782 echo "$as_me:2782: result: no" >&5
2783 echo "${ECHO_T}no" >&6
2786 echo "$as_me:2786: checking whether to set \$HOME to target user in shell mode" >&5
2787 echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6
2788 # Check whether --enable-shell-sets-home or --disable-shell-sets-home was given.
2789 if test "${enable_shell_sets_home+set}" = set; then
2790 enableval="$enable_shell_sets_home"
2791 case "$enableval" in
2792 yes) echo "$as_me:2792: result: yes" >&5
2793 echo "${ECHO_T}yes" >&6
2795 cat >>confdefs.h <<\EOF
2796 #define SHELL_SETS_HOME 1
2800 no) echo "$as_me:2800: result: no" >&5
2801 echo "${ECHO_T}no" >&6
2803 *) echo "$as_me:2803: result: no" >&5
2804 echo "${ECHO_T}no" >&6
2805 echo "Ignoring unknown argument to --enable-shell-sets-home: $enableval"
2810 echo "$as_me:2810: result: no" >&5
2811 echo "${ECHO_T}no" >&6
2814 echo "$as_me:2814: checking whether to disable 'command not found' messages" >&5
2815 echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6
2816 # Check whether --enable-path_info or --disable-path_info was given.
2817 if test "${enable_path_info+set}" = set; then
2818 enableval="$enable_path_info"
2819 case "$enableval" in
2820 yes) echo "$as_me:2820: result: no" >&5
2821 echo "${ECHO_T}no" >&6
2823 no) echo "$as_me:2823: result: yes" >&5
2824 echo "${ECHO_T}yes" >&6
2826 cat >>confdefs.h <<\EOF
2827 #define DONT_LEAK_PATH_INFO 1
2831 *) echo "$as_me:2831: result: no" >&5
2832 echo "${ECHO_T}no" >&6
2833 echo "Ignoring unknown argument to --enable-path-info: $enableval"
2838 echo "$as_me:2838: result: no" >&5
2839 echo "${ECHO_T}no" >&6
2842 # Extract the first word of "egrep", so it can be a program name with args.
2843 set dummy egrep; ac_word=$2
2844 echo "$as_me:2844: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846 if test "${ac_cv_prog_EGREPPROG+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 if test -n "$EGREPPROG"; then
2850 ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
2852 ac_save_IFS=$IFS; IFS=$ac_path_separator
2854 for ac_dir in $ac_dummy; do
2856 test -z "$ac_dir" && ac_dir=.
2857 $as_executable_p "$ac_dir/$ac_word" || continue
2858 ac_cv_prog_EGREPPROG="egrep"
2859 echo "$as_me:2859: found $ac_dir/$ac_word" >&5
2865 EGREPPROG=$ac_cv_prog_EGREPPROG
2866 if test -n "$EGREPPROG"; then
2867 echo "$as_me:2867: result: $EGREPPROG" >&5
2868 echo "${ECHO_T}$EGREPPROG" >&6
2870 echo "$as_me:2870: result: no" >&5
2871 echo "${ECHO_T}no" >&6
2874 if test -z "$EGREPPROG"; then
2875 echo "Sorry, configure requires egrep to run."
2879 if test "$with_devel" != "yes"; then
2884 ac_cpp='$CPP $CPPFLAGS'
2885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888 if test -n "$ac_tool_prefix"; then
2889 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2890 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2891 echo "$as_me:2891: checking for $ac_word" >&5
2892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2893 if test "${ac_cv_prog_CC+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2896 if test -n "$CC"; then
2897 ac_cv_prog_CC="$CC" # Let the user override the test.
2899 ac_save_IFS=$IFS; IFS=$ac_path_separator
2901 for ac_dir in $ac_dummy; do
2903 test -z "$ac_dir" && ac_dir=.
2904 $as_executable_p "$ac_dir/$ac_word" || continue
2905 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2906 echo "$as_me:2906: found $ac_dir/$ac_word" >&5
2913 if test -n "$CC"; then
2914 echo "$as_me:2914: result: $CC" >&5
2915 echo "${ECHO_T}$CC" >&6
2917 echo "$as_me:2917: result: no" >&5
2918 echo "${ECHO_T}no" >&6
2922 if test -z "$ac_cv_prog_CC"; then
2924 # Extract the first word of "gcc", so it can be a program name with args.
2925 set dummy gcc; ac_word=$2
2926 echo "$as_me:2926: checking for $ac_word" >&5
2927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 if test -n "$ac_ct_CC"; then
2932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2934 ac_save_IFS=$IFS; IFS=$ac_path_separator
2936 for ac_dir in $ac_dummy; do
2938 test -z "$ac_dir" && ac_dir=.
2939 $as_executable_p "$ac_dir/$ac_word" || continue
2940 ac_cv_prog_ac_ct_CC="gcc"
2941 echo "$as_me:2941: found $ac_dir/$ac_word" >&5
2947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2948 if test -n "$ac_ct_CC"; then
2949 echo "$as_me:2949: result: $ac_ct_CC" >&5
2950 echo "${ECHO_T}$ac_ct_CC" >&6
2952 echo "$as_me:2952: result: no" >&5
2953 echo "${ECHO_T}no" >&6
2961 if test -z "$CC"; then
2962 if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}cc; ac_word=$2
2965 echo "$as_me:2965: checking for $ac_word" >&5
2966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2967 if test "${ac_cv_prog_CC+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 if test -n "$CC"; then
2971 ac_cv_prog_CC="$CC" # Let the user override the test.
2973 ac_save_IFS=$IFS; IFS=$ac_path_separator
2975 for ac_dir in $ac_dummy; do
2977 test -z "$ac_dir" && ac_dir=.
2978 $as_executable_p "$ac_dir/$ac_word" || continue
2979 ac_cv_prog_CC="${ac_tool_prefix}cc"
2980 echo "$as_me:2980: found $ac_dir/$ac_word" >&5
2987 if test -n "$CC"; then
2988 echo "$as_me:2988: result: $CC" >&5
2989 echo "${ECHO_T}$CC" >&6
2991 echo "$as_me:2991: result: no" >&5
2992 echo "${ECHO_T}no" >&6
2996 if test -z "$ac_cv_prog_CC"; then
2998 # Extract the first word of "cc", so it can be a program name with args.
2999 set dummy cc; ac_word=$2
3000 echo "$as_me:3000: checking for $ac_word" >&5
3001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3002 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 if test -n "$ac_ct_CC"; then
3006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3008 ac_save_IFS=$IFS; IFS=$ac_path_separator
3010 for ac_dir in $ac_dummy; do
3012 test -z "$ac_dir" && ac_dir=.
3013 $as_executable_p "$ac_dir/$ac_word" || continue
3014 ac_cv_prog_ac_ct_CC="cc"
3015 echo "$as_me:3015: found $ac_dir/$ac_word" >&5
3021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3022 if test -n "$ac_ct_CC"; then
3023 echo "$as_me:3023: result: $ac_ct_CC" >&5
3024 echo "${ECHO_T}$ac_ct_CC" >&6
3026 echo "$as_me:3026: result: no" >&5
3027 echo "${ECHO_T}no" >&6
3036 if test -z "$CC"; then
3037 # Extract the first word of "cc", so it can be a program name with args.
3038 set dummy cc; ac_word=$2
3039 echo "$as_me:3039: checking for $ac_word" >&5
3040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3041 if test "${ac_cv_prog_CC+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3048 ac_save_IFS=$IFS; IFS=$ac_path_separator
3050 for ac_dir in $ac_dummy; do
3052 test -z "$ac_dir" && ac_dir=.
3053 $as_executable_p "$ac_dir/$ac_word" || continue
3054 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3055 ac_prog_rejected=yes
3059 echo "$as_me:3059: found $ac_dir/$ac_word" >&5
3063 if test $ac_prog_rejected = yes; then
3064 # We found a bogon in the path, so make sure we never use it.
3065 set dummy $ac_cv_prog_CC
3067 if test $# != 0; then
3068 # We chose a different compiler from the bogus one.
3069 # However, it has the same basename, so the bogon will be chosen
3070 # first if we set CC to just the basename; use the full file name.
3072 set dummy "$ac_dir/$ac_word" ${1+"$@"}
3080 if test -n "$CC"; then
3081 echo "$as_me:3081: result: $CC" >&5
3082 echo "${ECHO_T}$CC" >&6
3084 echo "$as_me:3084: result: no" >&5
3085 echo "${ECHO_T}no" >&6
3089 if test -z "$CC"; then
3090 if test -n "$ac_tool_prefix"; then
3093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3095 echo "$as_me:3095: checking for $ac_word" >&5
3096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3097 if test "${ac_cv_prog_CC+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3103 ac_save_IFS=$IFS; IFS=$ac_path_separator
3105 for ac_dir in $ac_dummy; do
3107 test -z "$ac_dir" && ac_dir=.
3108 $as_executable_p "$ac_dir/$ac_word" || continue
3109 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3110 echo "$as_me:3110: found $ac_dir/$ac_word" >&5
3117 if test -n "$CC"; then
3118 echo "$as_me:3118: result: $CC" >&5
3119 echo "${ECHO_T}$CC" >&6
3121 echo "$as_me:3121: result: no" >&5
3122 echo "${ECHO_T}no" >&6
3125 test -n "$CC" && break
3128 if test -z "$CC"; then
3132 # Extract the first word of "$ac_prog", so it can be a program name with args.
3133 set dummy $ac_prog; ac_word=$2
3134 echo "$as_me:3134: checking for $ac_word" >&5
3135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3136 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 if test -n "$ac_ct_CC"; then
3140 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3142 ac_save_IFS=$IFS; IFS=$ac_path_separator
3144 for ac_dir in $ac_dummy; do
3146 test -z "$ac_dir" && ac_dir=.
3147 $as_executable_p "$ac_dir/$ac_word" || continue
3148 ac_cv_prog_ac_ct_CC="$ac_prog"
3149 echo "$as_me:3149: found $ac_dir/$ac_word" >&5
3155 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3156 if test -n "$ac_ct_CC"; then
3157 echo "$as_me:3157: result: $ac_ct_CC" >&5
3158 echo "${ECHO_T}$ac_ct_CC" >&6
3160 echo "$as_me:3160: result: no" >&5
3161 echo "${ECHO_T}no" >&6
3164 test -n "$ac_ct_CC" && break
3172 test -z "$CC" && { { echo "$as_me:3172: error: no acceptable cc found in \$PATH" >&5
3173 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3174 { (exit 1); exit 1; }; }
3176 # Provide some information about the compiler.
3177 echo "$as_me:3177:" \
3178 "checking for C compiler version" >&5
3179 ac_compiler=`set X $ac_compile; echo $2`
3180 { (eval echo "$as_me:3180: \"$ac_compiler --version </dev/null >&5\"") >&5
3181 (eval $ac_compiler --version </dev/null >&5) 2>&5
3183 echo "$as_me:3183: \$? = $ac_status" >&5
3184 (exit $ac_status); }
3185 { (eval echo "$as_me:3185: \"$ac_compiler -v </dev/null >&5\"") >&5
3186 (eval $ac_compiler -v </dev/null >&5) 2>&5
3188 echo "$as_me:3188: \$? = $ac_status" >&5
3189 (exit $ac_status); }
3190 { (eval echo "$as_me:3190: \"$ac_compiler -V </dev/null >&5\"") >&5
3191 (eval $ac_compiler -V </dev/null >&5) 2>&5
3193 echo "$as_me:3193: \$? = $ac_status" >&5
3194 (exit $ac_status); }
3196 cat >conftest.$ac_ext <<_ACEOF
3197 #line 3197 "configure"
3198 #include "confdefs.h"
3208 ac_clean_files_save=$ac_clean_files
3209 ac_clean_files="$ac_clean_files a.out a.exe"
3210 # Try to create an executable without -o first, disregard a.out.
3211 # It will help us diagnose broken compilers, and finding out an intuition
3213 echo "$as_me:3213: checking for C compiler default output" >&5
3214 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
3215 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3216 if { (eval echo "$as_me:3216: \"$ac_link_default\"") >&5
3217 (eval $ac_link_default) 2>&5
3219 echo "$as_me:3219: \$? = $ac_status" >&5
3220 (exit $ac_status); }; then
3221 # Find the output, starting from the most likely. This scheme is
3222 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3224 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
3225 ls a.out conftest 2>/dev/null;
3226 ls a.* conftest.* 2>/dev/null`; do
3228 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
3229 a.out ) # We found the default executable, but exeext='' is most
3232 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
3240 echo "$as_me: failed program was:" >&5
3241 cat conftest.$ac_ext >&5
3242 { { echo "$as_me:3242: error: C compiler cannot create executables" >&5
3243 echo "$as_me: error: C compiler cannot create executables" >&2;}
3244 { (exit 77); exit 77; }; }
3247 ac_exeext=$ac_cv_exeext
3248 echo "$as_me:3248: result: $ac_file" >&5
3249 echo "${ECHO_T}$ac_file" >&6
3251 # Check the compiler produces executables we can run. If not, either
3252 # the compiler is broken, or we cross compile.
3253 echo "$as_me:3253: checking whether the C compiler works" >&5
3254 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3255 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3256 # If not cross compiling, check that we can run a simple program.
3257 if test "$cross_compiling" != yes; then
3258 if { ac_try='./$ac_file'
3259 { (eval echo "$as_me:3259: \"$ac_try\"") >&5
3262 echo "$as_me:3262: \$? = $ac_status" >&5
3263 (exit $ac_status); }; }; then
3266 if test "$cross_compiling" = maybe; then
3269 { { echo "$as_me:3269: error: cannot run C compiled programs.
3270 If you meant to cross compile, use \`--host'." >&5
3271 echo "$as_me: error: cannot run C compiled programs.
3272 If you meant to cross compile, use \`--host'." >&2;}
3273 { (exit 1); exit 1; }; }
3277 echo "$as_me:3277: result: yes" >&5
3278 echo "${ECHO_T}yes" >&6
3280 rm -f a.out a.exe conftest$ac_cv_exeext
3281 ac_clean_files=$ac_clean_files_save
3282 # Check the compiler produces executables we can run. If not, either
3283 # the compiler is broken, or we cross compile.
3284 echo "$as_me:3284: checking whether we are cross compiling" >&5
3285 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3286 echo "$as_me:3286: result: $cross_compiling" >&5
3287 echo "${ECHO_T}$cross_compiling" >&6
3289 echo "$as_me:3289: checking for executable suffix" >&5
3290 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
3291 if { (eval echo "$as_me:3291: \"$ac_link\"") >&5
3292 (eval $ac_link) 2>&5
3294 echo "$as_me:3294: \$? = $ac_status" >&5
3295 (exit $ac_status); }; then
3296 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3297 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3298 # work properly (i.e., refer to `conftest.exe'), while it won't with
3300 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
3302 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
3303 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3310 { { echo "$as_me:3310: error: cannot compute EXEEXT: cannot compile and link" >&5
3311 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
3312 { (exit 1); exit 1; }; }
3315 rm -f conftest$ac_cv_exeext
3316 echo "$as_me:3316: result: $ac_cv_exeext" >&5
3317 echo "${ECHO_T}$ac_cv_exeext" >&6
3319 rm -f conftest.$ac_ext
3320 EXEEXT=$ac_cv_exeext
3322 echo "$as_me:3322: checking for object suffix" >&5
3323 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
3324 if test "${ac_cv_objext+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 cat >conftest.$ac_ext <<_ACEOF
3328 #line 3328 "configure"
3329 #include "confdefs.h"
3339 rm -f conftest.o conftest.obj
3340 if { (eval echo "$as_me:3340: \"$ac_compile\"") >&5
3341 (eval $ac_compile) 2>&5
3343 echo "$as_me:3343: \$? = $ac_status" >&5
3344 (exit $ac_status); }; then
3345 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
3348 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3353 echo "$as_me: failed program was:" >&5
3354 cat conftest.$ac_ext >&5
3355 { { echo "$as_me:3355: error: cannot compute OBJEXT: cannot compile" >&5
3356 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
3357 { (exit 1); exit 1; }; }
3360 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3362 echo "$as_me:3362: result: $ac_cv_objext" >&5
3363 echo "${ECHO_T}$ac_cv_objext" >&6
3364 OBJEXT=$ac_cv_objext
3366 echo "$as_me:3366: checking whether we are using the GNU C compiler" >&5
3367 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3368 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 cat >conftest.$ac_ext <<_ACEOF
3372 #line 3372 "configure"
3373 #include "confdefs.h"
3386 rm -f conftest.$ac_objext
3387 if { (eval echo "$as_me:3387: \"$ac_compile\"") >&5
3388 (eval $ac_compile) 2>&5
3390 echo "$as_me:3390: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try='test -s conftest.$ac_objext'
3393 { (eval echo "$as_me:3393: \"$ac_try\"") >&5
3396 echo "$as_me:3396: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
3400 echo "$as_me: failed program was:" >&5
3401 cat conftest.$ac_ext >&5
3404 rm -f conftest.$ac_objext conftest.$ac_ext
3405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3408 echo "$as_me:3408: result: $ac_cv_c_compiler_gnu" >&5
3409 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3410 GCC=`test $ac_compiler_gnu = yes && echo yes`
3411 ac_test_CFLAGS=${CFLAGS+set}
3412 ac_save_CFLAGS=$CFLAGS
3414 echo "$as_me:3414: checking whether $CC accepts -g" >&5
3415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3416 if test "${ac_cv_prog_cc_g+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 cat >conftest.$ac_ext <<_ACEOF
3420 #line 3420 "configure"
3421 #include "confdefs.h"
3431 rm -f conftest.$ac_objext
3432 if { (eval echo "$as_me:3432: \"$ac_compile\"") >&5
3433 (eval $ac_compile) 2>&5
3435 echo "$as_me:3435: \$? = $ac_status" >&5
3436 (exit $ac_status); } &&
3437 { ac_try='test -s conftest.$ac_objext'
3438 { (eval echo "$as_me:3438: \"$ac_try\"") >&5
3441 echo "$as_me:3441: \$? = $ac_status" >&5
3442 (exit $ac_status); }; }; then
3445 echo "$as_me: failed program was:" >&5
3446 cat conftest.$ac_ext >&5
3449 rm -f conftest.$ac_objext conftest.$ac_ext
3451 echo "$as_me:3451: result: $ac_cv_prog_cc_g" >&5
3452 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3453 if test "$ac_test_CFLAGS" = set; then
3454 CFLAGS=$ac_save_CFLAGS
3455 elif test $ac_cv_prog_cc_g = yes; then
3456 if test "$GCC" = yes; then
3462 if test "$GCC" = yes; then
3468 # Some people use a C++ compiler to compile C. Since we use `exit',
3469 # in C++ we need to declare it. In case someone uses the same compiler
3470 # for both compiling C and C++ we need to have the C++ compiler decide
3471 # the declaration of exit, since it's the most demanding environment.
3472 cat >conftest.$ac_ext <<_ACEOF
3477 rm -f conftest.$ac_objext
3478 if { (eval echo "$as_me:3478: \"$ac_compile\"") >&5
3479 (eval $ac_compile) 2>&5
3481 echo "$as_me:3481: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try='test -s conftest.$ac_objext'
3484 { (eval echo "$as_me:3484: \"$ac_try\"") >&5
3487 echo "$as_me:3487: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 for ac_declaration in \
3491 '#include <stdlib.h>' \
3492 'extern "C" void std::exit (int) throw (); using std::exit;' \
3493 'extern "C" void std::exit (int); using std::exit;' \
3494 'extern "C" void exit (int) throw ();' \
3495 'extern "C" void exit (int);' \
3498 cat >conftest.$ac_ext <<_ACEOF
3499 #line 3499 "configure"
3500 #include "confdefs.h"
3511 rm -f conftest.$ac_objext
3512 if { (eval echo "$as_me:3512: \"$ac_compile\"") >&5
3513 (eval $ac_compile) 2>&5
3515 echo "$as_me:3515: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try='test -s conftest.$ac_objext'
3518 { (eval echo "$as_me:3518: \"$ac_try\"") >&5
3521 echo "$as_me:3521: \$? = $ac_status" >&5
3522 (exit $ac_status); }; }; then
3525 echo "$as_me: failed program was:" >&5
3526 cat conftest.$ac_ext >&5
3529 rm -f conftest.$ac_objext conftest.$ac_ext
3530 cat >conftest.$ac_ext <<_ACEOF
3531 #line 3531 "configure"
3532 #include "confdefs.h"
3542 rm -f conftest.$ac_objext
3543 if { (eval echo "$as_me:3543: \"$ac_compile\"") >&5
3544 (eval $ac_compile) 2>&5
3546 echo "$as_me:3546: \$? = $ac_status" >&5
3547 (exit $ac_status); } &&
3548 { ac_try='test -s conftest.$ac_objext'
3549 { (eval echo "$as_me:3549: \"$ac_try\"") >&5
3552 echo "$as_me:3552: \$? = $ac_status" >&5
3553 (exit $ac_status); }; }; then
3556 echo "$as_me: failed program was:" >&5
3557 cat conftest.$ac_ext >&5
3559 rm -f conftest.$ac_objext conftest.$ac_ext
3562 if test -n "$ac_declaration"; then
3563 echo '#ifdef __cplusplus' >>confdefs.h
3564 echo $ac_declaration >>confdefs.h
3565 echo '#endif' >>confdefs.h
3569 echo "$as_me: failed program was:" >&5
3570 cat conftest.$ac_ext >&5
3572 rm -f conftest.$ac_objext conftest.$ac_ext
3574 ac_cpp='$CPP $CPPFLAGS'
3575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579 echo "$as_me:3579: checking for POSIXized ISC" >&5
3580 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
3581 if test -d /etc/conf/kconfig.d &&
3582 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3584 echo "$as_me:3584: result: yes" >&5
3585 echo "${ECHO_T}yes" >&6
3586 ISC=yes # If later tests want to check for ISC.
3588 cat >>confdefs.h <<\EOF
3589 #define _POSIX_SOURCE 1
3592 if test "$GCC" = yes; then
3598 echo "$as_me:3598: result: no" >&5
3599 echo "${ECHO_T}no" >&6
3603 ac_cv_prog_cc_cross="no"
3604 cross_compiling="no"
3606 echo "$as_me:3606: checking for $CC option to accept ANSI C" >&5
3607 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3608 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 ac_cv_prog_cc_stdc=no
3613 cat >conftest.$ac_ext <<_ACEOF
3614 #line 3614 "configure"
3615 #include "confdefs.h"
3618 #include <sys/types.h>
3619 #include <sys/stat.h>
3620 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3621 struct buf { int x; };
3622 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3623 static char *e (p, i)
3629 static char *f (char * (*g) (char **, int), char **p, ...)
3634 s = g (p, va_arg (v,int));
3638 int test (int i, double x);
3639 struct s1 {int (*f) (int a);};
3640 struct s2 {int (*f) (double a);};
3641 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3647 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3652 # Don't try gcc -ansi; that turns off useful extensions and
3653 # breaks some systems' header files.
3654 # AIX -qlanglvl=ansi
3655 # Ultrix and OSF/1 -std1
3656 # HP-UX 10.20 and later -Ae
3657 # HP-UX older versions -Aa -D_HPUX_SOURCE
3658 # SVR4 -Xc -D__EXTENSIONS__
3659 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3661 CC="$ac_save_CC $ac_arg"
3662 rm -f conftest.$ac_objext
3663 if { (eval echo "$as_me:3663: \"$ac_compile\"") >&5
3664 (eval $ac_compile) 2>&5
3666 echo "$as_me:3666: \$? = $ac_status" >&5
3667 (exit $ac_status); } &&
3668 { ac_try='test -s conftest.$ac_objext'
3669 { (eval echo "$as_me:3669: \"$ac_try\"") >&5
3672 echo "$as_me:3672: \$? = $ac_status" >&5
3673 (exit $ac_status); }; }; then
3674 ac_cv_prog_cc_stdc=$ac_arg
3677 echo "$as_me: failed program was:" >&5
3678 cat conftest.$ac_ext >&5
3680 rm -f conftest.$ac_objext
3682 rm -f conftest.$ac_ext conftest.$ac_objext
3687 case "x$ac_cv_prog_cc_stdc" in
3689 echo "$as_me:3689: result: none needed" >&5
3690 echo "${ECHO_T}none needed" >&6 ;;
3692 echo "$as_me:3692: result: $ac_cv_prog_cc_stdc" >&5
3693 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3694 CC="$CC $ac_cv_prog_cc_stdc" ;;
3697 ac_cv_prog_cc_cross="no"
3698 cross_compiling="no"
3700 ac_cpp='$CPP $CPPFLAGS'
3701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704 echo "$as_me:3704: checking how to run the C preprocessor" >&5
3705 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3706 # On Suns, sometimes $CPP names a directory.
3707 if test -n "$CPP" && test -d "$CPP"; then
3710 if test -z "$CPP"; then
3711 if test "${ac_cv_prog_CPP+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 # Double quotes because CPP needs to be expanded
3715 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3718 for ac_c_preproc_warn_flag in '' yes
3720 # Use a header file that comes with gcc, so configuring glibc
3721 # with a fresh cross-compiler works.
3722 # On the NeXT, cc -E runs the code through the compiler's parser,
3723 # not just through cpp. "Syntax error" is here to catch this case.
3724 cat >conftest.$ac_ext <<_ACEOF
3725 #line 3725 "configure"
3726 #include "confdefs.h"
3730 if { (eval echo "$as_me:3730: \"$ac_cpp conftest.$ac_ext\"") >&5
3731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3733 egrep -v '^ *\+' conftest.er1 >conftest.err
3735 cat conftest.err >&5
3736 echo "$as_me:3736: \$? = $ac_status" >&5
3737 (exit $ac_status); } >/dev/null; then
3738 if test -s conftest.err; then
3739 ac_cpp_err=$ac_c_preproc_warn_flag
3746 if test -z "$ac_cpp_err"; then
3749 echo "$as_me: failed program was:" >&5
3750 cat conftest.$ac_ext >&5
3751 # Broken: fails on valid input.
3754 rm -f conftest.err conftest.$ac_ext
3756 # OK, works on sane cases. Now check whether non-existent headers
3757 # can be detected and how.
3758 cat >conftest.$ac_ext <<_ACEOF
3759 #line 3759 "configure"
3760 #include "confdefs.h"
3761 #include <ac_nonexistent.h>
3763 if { (eval echo "$as_me:3763: \"$ac_cpp conftest.$ac_ext\"") >&5
3764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3766 egrep -v '^ *\+' conftest.er1 >conftest.err
3768 cat conftest.err >&5
3769 echo "$as_me:3769: \$? = $ac_status" >&5
3770 (exit $ac_status); } >/dev/null; then
3771 if test -s conftest.err; then
3772 ac_cpp_err=$ac_c_preproc_warn_flag
3779 if test -z "$ac_cpp_err"; then
3780 # Broken: success on invalid input.
3783 echo "$as_me: failed program was:" >&5
3784 cat conftest.$ac_ext >&5
3785 # Passes both tests.
3789 rm -f conftest.err conftest.$ac_ext
3792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3793 rm -f conftest.err conftest.$ac_ext
3794 if $ac_preproc_ok; then
3806 echo "$as_me:3806: result: $CPP" >&5
3807 echo "${ECHO_T}$CPP" >&6
3809 for ac_c_preproc_warn_flag in '' yes
3811 # Use a header file that comes with gcc, so configuring glibc
3812 # with a fresh cross-compiler works.
3813 # On the NeXT, cc -E runs the code through the compiler's parser,
3814 # not just through cpp. "Syntax error" is here to catch this case.
3815 cat >conftest.$ac_ext <<_ACEOF
3816 #line 3816 "configure"
3817 #include "confdefs.h"
3821 if { (eval echo "$as_me:3821: \"$ac_cpp conftest.$ac_ext\"") >&5
3822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3824 egrep -v '^ *\+' conftest.er1 >conftest.err
3826 cat conftest.err >&5
3827 echo "$as_me:3827: \$? = $ac_status" >&5
3828 (exit $ac_status); } >/dev/null; then
3829 if test -s conftest.err; then
3830 ac_cpp_err=$ac_c_preproc_warn_flag
3837 if test -z "$ac_cpp_err"; then
3840 echo "$as_me: failed program was:" >&5
3841 cat conftest.$ac_ext >&5
3842 # Broken: fails on valid input.
3845 rm -f conftest.err conftest.$ac_ext
3847 # OK, works on sane cases. Now check whether non-existent headers
3848 # can be detected and how.
3849 cat >conftest.$ac_ext <<_ACEOF
3850 #line 3850 "configure"
3851 #include "confdefs.h"
3852 #include <ac_nonexistent.h>
3854 if { (eval echo "$as_me:3854: \"$ac_cpp conftest.$ac_ext\"") >&5
3855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3857 egrep -v '^ *\+' conftest.er1 >conftest.err
3859 cat conftest.err >&5
3860 echo "$as_me:3860: \$? = $ac_status" >&5
3861 (exit $ac_status); } >/dev/null; then
3862 if test -s conftest.err; then
3863 ac_cpp_err=$ac_c_preproc_warn_flag
3870 if test -z "$ac_cpp_err"; then
3871 # Broken: success on invalid input.
3874 echo "$as_me: failed program was:" >&5
3875 cat conftest.$ac_ext >&5
3876 # Passes both tests.
3880 rm -f conftest.err conftest.$ac_ext
3883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3884 rm -f conftest.err conftest.$ac_ext
3885 if $ac_preproc_ok; then
3888 { { echo "$as_me:3888: error: C preprocessor \"$CPP\" fails sanity check" >&5
3889 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3890 { (exit 1); exit 1; }; }
3894 ac_cpp='$CPP $CPPFLAGS'
3895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899 if test "$with_devel" = "yes" -a -n "$GCC"; then
3900 CFLAGS="${CFLAGS} -Wall"
3903 # Extract the first word of "uname", so it can be a program name with args.
3904 set dummy uname; ac_word=$2
3905 echo "$as_me:3905: checking for $ac_word" >&5
3906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 if test -n "$UNAMEPROG"; then
3911 ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
3913 ac_save_IFS=$IFS; IFS=$ac_path_separator
3915 for ac_dir in $ac_dummy; do
3917 test -z "$ac_dir" && ac_dir=.
3918 $as_executable_p "$ac_dir/$ac_word" || continue
3919 ac_cv_prog_UNAMEPROG="uname"
3920 echo "$as_me:3920: found $ac_dir/$ac_word" >&5
3926 UNAMEPROG=$ac_cv_prog_UNAMEPROG
3927 if test -n "$UNAMEPROG"; then
3928 echo "$as_me:3928: result: $UNAMEPROG" >&5
3929 echo "${ECHO_T}$UNAMEPROG" >&6
3931 echo "$as_me:3931: result: no" >&5
3932 echo "${ECHO_T}no" >&6
3935 # Extract the first word of "tr", so it can be a program name with args.
3936 set dummy tr; ac_word=$2
3937 echo "$as_me:3937: checking for $ac_word" >&5
3938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3939 if test "${ac_cv_prog_TRPROG+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 if test -n "$TRPROG"; then
3943 ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
3945 ac_save_IFS=$IFS; IFS=$ac_path_separator
3947 for ac_dir in $ac_dummy; do
3949 test -z "$ac_dir" && ac_dir=.
3950 $as_executable_p "$ac_dir/$ac_word" || continue
3951 ac_cv_prog_TRPROG="tr"
3952 echo "$as_me:3952: found $ac_dir/$ac_word" >&5
3958 TRPROG=$ac_cv_prog_TRPROG
3959 if test -n "$TRPROG"; then
3960 echo "$as_me:3960: result: $TRPROG" >&5
3961 echo "${ECHO_T}$TRPROG" >&6
3963 echo "$as_me:3963: result: no" >&5
3964 echo "${ECHO_T}no" >&6
3967 # Extract the first word of "sed", so it can be a program name with args.
3968 set dummy sed; ac_word=$2
3969 echo "$as_me:3969: checking for $ac_word" >&5
3970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3971 if test "${ac_cv_prog_SEDPROG+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 if test -n "$SEDPROG"; then
3975 ac_cv_prog_SEDPROG="$SEDPROG" # Let the user override the test.
3977 ac_save_IFS=$IFS; IFS=$ac_path_separator
3979 for ac_dir in $ac_dummy; do
3981 test -z "$ac_dir" && ac_dir=.
3982 $as_executable_p "$ac_dir/$ac_word" || continue
3983 ac_cv_prog_SEDPROG="sed"
3984 echo "$as_me:3984: found $ac_dir/$ac_word" >&5
3990 SEDPROG=$ac_cv_prog_SEDPROG
3991 if test -n "$SEDPROG"; then
3992 echo "$as_me:3992: result: $SEDPROG" >&5
3993 echo "${ECHO_T}$SEDPROG" >&6
3995 echo "$as_me:3995: result: no" >&5
3996 echo "${ECHO_T}no" >&6
3999 # Extract the first word of "nroff", so it can be a program name with args.
4000 set dummy nroff; ac_word=$2
4001 echo "$as_me:4001: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_NROFFPROG+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 if test -n "$NROFFPROG"; then
4007 ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
4009 ac_save_IFS=$IFS; IFS=$ac_path_separator
4011 for ac_dir in $ac_dummy; do
4013 test -z "$ac_dir" && ac_dir=.
4014 $as_executable_p "$ac_dir/$ac_word" || continue
4015 ac_cv_prog_NROFFPROG="nroff"
4016 echo "$as_me:4016: found $ac_dir/$ac_word" >&5
4022 NROFFPROG=$ac_cv_prog_NROFFPROG
4023 if test -n "$NROFFPROG"; then
4024 echo "$as_me:4024: result: $NROFFPROG" >&5
4025 echo "${ECHO_T}$NROFFPROG" >&6
4027 echo "$as_me:4027: result: no" >&5
4028 echo "${ECHO_T}no" >&6
4031 if test -z "$NROFFPROG"; then
4033 mansrcdir='$(srcdir)'
4037 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
4038 if test -f $ac_dir/install-sh; then
4040 ac_install_sh="$ac_aux_dir/install-sh -c"
4042 elif test -f $ac_dir/install.sh; then
4044 ac_install_sh="$ac_aux_dir/install.sh -c"
4046 elif test -f $ac_dir/shtool; then
4048 ac_install_sh="$ac_aux_dir/shtool install -c"
4052 if test -z "$ac_aux_dir"; then
4053 { { echo "$as_me:4053: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
4054 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
4055 { (exit 1); exit 1; }; }
4057 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
4058 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
4059 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
4061 # Make sure we can run config.sub.
4062 $ac_config_sub sun4 >/dev/null 2>&1 ||
4063 { { echo "$as_me:4063: error: cannot run $ac_config_sub" >&5
4064 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4065 { (exit 1); exit 1; }; }
4067 echo "$as_me:4067: checking build system type" >&5
4068 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4069 if test "${ac_cv_build+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 ac_cv_build_alias=$build_alias
4073 test -z "$ac_cv_build_alias" &&
4074 ac_cv_build_alias=`$ac_config_guess`
4075 test -z "$ac_cv_build_alias" &&
4076 { { echo "$as_me:4076: error: cannot guess build type; you must specify one" >&5
4077 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4078 { (exit 1); exit 1; }; }
4079 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4080 { { echo "$as_me:4080: error: $ac_config_sub $ac_cv_build_alias failed." >&5
4081 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
4082 { (exit 1); exit 1; }; }
4085 echo "$as_me:4085: result: $ac_cv_build" >&5
4086 echo "${ECHO_T}$ac_cv_build" >&6
4088 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4089 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4090 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4092 echo "$as_me:4092: checking host system type" >&5
4093 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4094 if test "${ac_cv_host+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 ac_cv_host_alias=$host_alias
4098 test -z "$ac_cv_host_alias" &&
4099 ac_cv_host_alias=$ac_cv_build_alias
4100 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4101 { { echo "$as_me:4101: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4102 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4103 { (exit 1); exit 1; }; }
4106 echo "$as_me:4106: result: $ac_cv_host" >&5
4107 echo "${ECHO_T}$ac_cv_host" >&6
4109 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4110 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4111 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4113 if test -n "$sudo_cv_prev_host"; then
4114 if test "$sudo_cv_prev_host" != "$host"; then
4116 echo "Fatal Error: config.cache exists from another platform!"
4117 echo "Please remove it and re-run configure."
4121 echo "$as_me:4121: checking previous host type" >&5
4122 echo $ECHO_N "checking previous host type... $ECHO_C" >&6
4123 if test "${sudo_cv_prev_host+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 sudo_cv_prev_host="$host"
4129 echo $sudo_cv_prev_host
4132 # this will produce no output since there is no cached value
4133 if test "${sudo_cv_prev_host+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 sudo_cv_prev_host="$host"
4141 if test -n "$host_os"; then
4142 OS=`echo $host_os | sed 's/[0-9].*//'`
4143 OSREV=`echo $host_os | sed 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/'`
4151 # getcwd(3) opens a pipe to getpwd(1)!?!
4154 # system headers lack prototypes but gcc helps...
4155 if test -n "$GCC"; then
4156 CPPFLAGS="${CPPFLAGS} -D__USE_FIXED_PROTOTYPES__"
4159 # check for password adjunct functions (shadow passwords)
4160 if test "$CHECKSHADOW" = "true"; then
4162 for ac_func in getpwanam issecure
4164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4165 echo "$as_me:4165: checking for $ac_func" >&5
4166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4167 if eval "test \"\${$as_ac_var+set}\" = set"; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 cat >conftest.$ac_ext <<_ACEOF
4171 #line 4171 "configure"
4172 #include "confdefs.h"
4173 /* System header to define __stub macros and hopefully few prototypes,
4174 which can conflict with char $ac_func (); below. */
4176 /* Override any gcc2 internal prototype to avoid an error. */
4180 /* We use char because int might match the return type of a gcc2
4181 builtin and then its argument prototype would still apply. */
4188 /* The GNU C library defines this for functions which it implements
4189 to always fail with ENOSYS. Some functions are actually named
4190 something starting with __ and the normal name is an alias. */
4191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4201 rm -f conftest.$ac_objext conftest$ac_exeext
4202 if { (eval echo "$as_me:4202: \"$ac_link\"") >&5
4203 (eval $ac_link) 2>&5
4205 echo "$as_me:4205: \$? = $ac_status" >&5
4206 (exit $ac_status); } &&
4207 { ac_try='test -s conftest$ac_exeext'
4208 { (eval echo "$as_me:4208: \"$ac_try\"") >&5
4211 echo "$as_me:4211: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
4213 eval "$as_ac_var=yes"
4215 echo "$as_me: failed program was:" >&5
4216 cat conftest.$ac_ext >&5
4217 eval "$as_ac_var=no"
4219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4221 echo "$as_me:4221: result: `eval echo '${'$as_ac_var'}'`" >&5
4222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4223 if test `eval echo '${'$as_ac_var'}'` = yes; then
4224 cat >>confdefs.h <<EOF
4225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4237 # To get the crypt(3) prototype (so we pass -Wall)
4238 CPPFLAGS="${CPPFLAGS} -D__EXTENSIONS__"
4239 # AFS support needs -lucb
4240 if test "$with_AFS" = "yes"; then
4241 AFS_LIBS="-lc -lucb"
4243 test -n "$mansectsu" || mansectsu=1m
4244 test -n "$mansectform" || mansectform=4
4247 # To get all prototypes (so we pass -Wall)
4248 CPPFLAGS="${CPPFLAGS} -D_XOPEN_EXTENDED_SOURCE"
4249 cat >>confdefs.h <<\EOF
4250 #define _ALL_SOURCE 1
4253 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
4256 if test "$CHECKSHADOW" = "true"; then
4257 echo "$as_me:4257: checking for getprpwnam in -lsec" >&5
4258 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
4259 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 ac_check_lib_save_LIBS=$LIBS
4264 cat >conftest.$ac_ext <<_ACEOF
4265 #line 4265 "configure"
4266 #include "confdefs.h"
4268 /* Override any gcc2 internal prototype to avoid an error. */
4272 /* We use char because int might match the return type of a gcc2
4273 builtin and then its argument prototype would still apply. */
4283 rm -f conftest.$ac_objext conftest$ac_exeext
4284 if { (eval echo "$as_me:4284: \"$ac_link\"") >&5
4285 (eval $ac_link) 2>&5
4287 echo "$as_me:4287: \$? = $ac_status" >&5
4288 (exit $ac_status); } &&
4289 { ac_try='test -s conftest$ac_exeext'
4290 { (eval echo "$as_me:4290: \"$ac_try\"") >&5
4293 echo "$as_me:4293: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
4295 ac_cv_lib_sec_getprpwnam=yes
4297 echo "$as_me: failed program was:" >&5
4298 cat conftest.$ac_ext >&5
4299 ac_cv_lib_sec_getprpwnam=no
4301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4302 LIBS=$ac_check_lib_save_LIBS
4304 echo "$as_me:4304: result: $ac_cv_lib_sec_getprpwnam" >&5
4305 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
4306 if test $ac_cv_lib_sec_getprpwnam = yes; then
4307 cat >>confdefs.h <<\EOF
4308 #define HAVE_GETPRPWNAM 1
4310 SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
4312 echo "$as_me:4312: checking for getprpwnam in -lsecurity" >&5
4313 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
4314 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 ac_check_lib_save_LIBS=$LIBS
4318 LIBS="-lsecurity $LIBS"
4319 cat >conftest.$ac_ext <<_ACEOF
4320 #line 4320 "configure"
4321 #include "confdefs.h"
4323 /* Override any gcc2 internal prototype to avoid an error. */
4327 /* We use char because int might match the return type of a gcc2
4328 builtin and then its argument prototype would still apply. */
4338 rm -f conftest.$ac_objext conftest$ac_exeext
4339 if { (eval echo "$as_me:4339: \"$ac_link\"") >&5
4340 (eval $ac_link) 2>&5
4342 echo "$as_me:4342: \$? = $ac_status" >&5
4343 (exit $ac_status); } &&
4344 { ac_try='test -s conftest$ac_exeext'
4345 { (eval echo "$as_me:4345: \"$ac_try\"") >&5
4348 echo "$as_me:4348: \$? = $ac_status" >&5
4349 (exit $ac_status); }; }; then
4350 ac_cv_lib_security_getprpwnam=yes
4352 echo "$as_me: failed program was:" >&5
4353 cat conftest.$ac_ext >&5
4354 ac_cv_lib_security_getprpwnam=no
4356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4357 LIBS=$ac_check_lib_save_LIBS
4359 echo "$as_me:4359: result: $ac_cv_lib_security_getprpwnam" >&5
4360 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
4361 if test $ac_cv_lib_security_getprpwnam = yes; then
4362 cat >>confdefs.h <<\EOF
4363 #define HAVE_GETPRPWNAM 1
4365 SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"; SECUREWARE=1
4372 test -n "$mansectsu" || mansectsu=1m
4373 test -n "$mansectform" || mansectform=4
4376 if test "$CHECKSHADOW" = "true"; then
4377 echo "$as_me:4377: checking for getprpwnam in -lsec" >&5
4378 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
4379 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 ac_check_lib_save_LIBS=$LIBS
4384 cat >conftest.$ac_ext <<_ACEOF
4385 #line 4385 "configure"
4386 #include "confdefs.h"
4388 /* Override any gcc2 internal prototype to avoid an error. */
4392 /* We use char because int might match the return type of a gcc2
4393 builtin and then its argument prototype would still apply. */
4403 rm -f conftest.$ac_objext conftest$ac_exeext
4404 if { (eval echo "$as_me:4404: \"$ac_link\"") >&5
4405 (eval $ac_link) 2>&5
4407 echo "$as_me:4407: \$? = $ac_status" >&5
4408 (exit $ac_status); } &&
4409 { ac_try='test -s conftest$ac_exeext'
4410 { (eval echo "$as_me:4410: \"$ac_try\"") >&5
4413 echo "$as_me:4413: \$? = $ac_status" >&5
4414 (exit $ac_status); }; }; then
4415 ac_cv_lib_sec_getprpwnam=yes
4417 echo "$as_me: failed program was:" >&5
4418 cat conftest.$ac_ext >&5
4419 ac_cv_lib_sec_getprpwnam=no
4421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4422 LIBS=$ac_check_lib_save_LIBS
4424 echo "$as_me:4424: result: $ac_cv_lib_sec_getprpwnam" >&5
4425 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
4426 if test $ac_cv_lib_sec_getprpwnam = yes; then
4427 cat >>confdefs.h <<\EOF
4428 #define HAVE_GETPRPWNAM 1
4430 echo "$as_me:4430: checking for iscomsec in -lsec" >&5
4431 echo $ECHO_N "checking for iscomsec in -lsec... $ECHO_C" >&6
4432 if test "${ac_cv_lib_sec_iscomsec+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 ac_check_lib_save_LIBS=$LIBS
4437 cat >conftest.$ac_ext <<_ACEOF
4438 #line 4438 "configure"
4439 #include "confdefs.h"
4441 /* Override any gcc2 internal prototype to avoid an error. */
4445 /* We use char because int might match the return type of a gcc2
4446 builtin and then its argument prototype would still apply. */
4456 rm -f conftest.$ac_objext conftest$ac_exeext
4457 if { (eval echo "$as_me:4457: \"$ac_link\"") >&5
4458 (eval $ac_link) 2>&5
4460 echo "$as_me:4460: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -s conftest$ac_exeext'
4463 { (eval echo "$as_me:4463: \"$ac_try\"") >&5
4466 echo "$as_me:4466: \$? = $ac_status" >&5
4467 (exit $ac_status); }; }; then
4468 ac_cv_lib_sec_iscomsec=yes
4470 echo "$as_me: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4472 ac_cv_lib_sec_iscomsec=no
4474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4475 LIBS=$ac_check_lib_save_LIBS
4477 echo "$as_me:4477: result: $ac_cv_lib_sec_iscomsec" >&5
4478 echo "${ECHO_T}$ac_cv_lib_sec_iscomsec" >&6
4479 if test $ac_cv_lib_sec_iscomsec = yes; then
4481 cat >>confdefs.h <<\EOF
4482 #define HAVE_ISCOMSEC 1
4486 SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
4492 # AFS support needs -lBSD
4493 if test "$with_AFS" = "yes"; then
4494 AFS_LIBS="-lc -lBSD"
4496 test -n "$mansectsu" || mansectsu=1m
4497 test -n "$mansectform" || mansectform=4
4501 cat >>confdefs.h <<\EOF
4502 #define BROKEN_SYSLOG 1
4505 if test "$CHECKSHADOW" = "true"; then
4507 for ac_func in getspwuid
4509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4510 echo "$as_me:4510: checking for $ac_func" >&5
4511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4512 if eval "test \"\${$as_ac_var+set}\" = set"; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 cat >conftest.$ac_ext <<_ACEOF
4516 #line 4516 "configure"
4517 #include "confdefs.h"
4518 /* System header to define __stub macros and hopefully few prototypes,
4519 which can conflict with char $ac_func (); below. */
4521 /* Override any gcc2 internal prototype to avoid an error. */
4525 /* We use char because int might match the return type of a gcc2
4526 builtin and then its argument prototype would still apply. */
4533 /* The GNU C library defines this for functions which it implements
4534 to always fail with ENOSYS. Some functions are actually named
4535 something starting with __ and the normal name is an alias. */
4536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4546 rm -f conftest.$ac_objext conftest$ac_exeext
4547 if { (eval echo "$as_me:4547: \"$ac_link\"") >&5
4548 (eval $ac_link) 2>&5
4550 echo "$as_me:4550: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -s conftest$ac_exeext'
4553 { (eval echo "$as_me:4553: \"$ac_try\"") >&5
4556 echo "$as_me:4556: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 eval "$as_ac_var=yes"
4560 echo "$as_me: failed program was:" >&5
4561 cat conftest.$ac_ext >&5
4562 eval "$as_ac_var=no"
4564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4566 echo "$as_me:4566: result: `eval echo '${'$as_ac_var'}'`" >&5
4567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4568 if test `eval echo '${'$as_ac_var'}'` = yes; then
4569 cat >>confdefs.h <<EOF
4570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4579 # DCE support (requires ANSI C compiler)
4580 if test "$with_DCE" = "yes"; then
4581 # order of libs in 9.X is important. -lc_r must be last
4582 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
4583 LIBS="${LIBS} -ldce -lM -lc_r"
4584 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
4587 # AFS support needs -lBSD
4588 if test "$with_AFS" = "yes"; then
4589 AFS_LIBS="-lc -lBSD"
4591 test -n "$mansectsu" || mansectsu=1m
4592 test -n "$mansectform" || mansectform=4
4595 cat >>confdefs.h <<\EOF
4596 #define BROKEN_SYSLOG 1
4599 # Not sure if setuid binaries are safe in < 9.x
4600 if test -n "$GCC"; then
4601 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
4603 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
4606 # AFS support needs -lBSD
4607 if test "$with_AFS" = "yes"; then
4608 AFS_LIBS="-lc -lBSD"
4610 test -n "$mansectsu" || mansectsu=1m
4611 test -n "$mansectform" || mansectform=4
4614 # ignore envariables wrt dynamic lib path
4615 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
4617 echo "$as_me:4617: checking whether to disable sia support on Digital UNIX" >&5
4618 echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6
4619 # Check whether --enable-sia or --disable-sia was given.
4620 if test "${enable_sia+set}" = set; then
4621 enableval="$enable_sia"
4622 case "$enableval" in
4623 yes) echo "$as_me:4623: result: no" >&5
4624 echo "${ECHO_T}no" >&6
4626 no) echo "$as_me:4626: result: yes" >&5
4627 echo "${ECHO_T}yes" >&6
4630 *) echo "$as_me:4630: result: no" >&5
4631 echo "${ECHO_T}no" >&6
4632 echo "Ignoring unknown argument to --enable-sia: $enableval"
4637 echo "$as_me:4637: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4641 # use SIA by default, if we have it, else SecureWare
4642 # unless overridden on the command line
4643 if test "$CHECKSIA" = "true"; then
4644 echo "$as_me:4644: checking for sia_ses_init" >&5
4645 echo $ECHO_N "checking for sia_ses_init... $ECHO_C" >&6
4646 if test "${ac_cv_func_sia_ses_init+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 cat >conftest.$ac_ext <<_ACEOF
4650 #line 4650 "configure"
4651 #include "confdefs.h"
4652 /* System header to define __stub macros and hopefully few prototypes,
4653 which can conflict with char sia_ses_init (); below. */
4655 /* Override any gcc2 internal prototype to avoid an error. */
4659 /* We use char because int might match the return type of a gcc2
4660 builtin and then its argument prototype would still apply. */
4661 char sia_ses_init ();
4667 /* The GNU C library defines this for functions which it implements
4668 to always fail with ENOSYS. Some functions are actually named
4669 something starting with __ and the normal name is an alias. */
4670 #if defined (__stub_sia_ses_init) || defined (__stub___sia_ses_init)
4680 rm -f conftest.$ac_objext conftest$ac_exeext
4681 if { (eval echo "$as_me:4681: \"$ac_link\"") >&5
4682 (eval $ac_link) 2>&5
4684 echo "$as_me:4684: \$? = $ac_status" >&5
4685 (exit $ac_status); } &&
4686 { ac_try='test -s conftest$ac_exeext'
4687 { (eval echo "$as_me:4687: \"$ac_try\"") >&5
4690 echo "$as_me:4690: \$? = $ac_status" >&5
4691 (exit $ac_status); }; }; then
4692 ac_cv_func_sia_ses_init=yes
4694 echo "$as_me: failed program was:" >&5
4695 cat conftest.$ac_ext >&5
4696 ac_cv_func_sia_ses_init=no
4698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4700 echo "$as_me:4700: result: $ac_cv_func_sia_ses_init" >&5
4701 echo "${ECHO_T}$ac_cv_func_sia_ses_init" >&6
4702 if test $ac_cv_func_sia_ses_init = yes; then
4704 cat >>confdefs.h <<\EOF
4708 if test -n "$with_skey" -o -n "$with_opie" -o -n "$with_otp_only" -o -n "$with_long_otp_prompt" -o -n "$with_SecurID" -o -n "$with_fwtk" -o -n "$with_kerb4" -o -n "$with_kerb5" -o -n "$with_pam" -o -n "$with_AFS" -o -n "$with_DCE"; then
4709 { { echo "$as_me:4709: error: \"you cannot mix SIA and other authentication schemes. You can turn off SIA support via the --disable-sia option\"" >&5
4710 echo "$as_me: error: \"you cannot mix SIA and other authentication schemes. You can turn off SIA support via the --disable-sia option\"" >&2;}
4711 { (exit 1); exit 1; }; }
4712 fi; CHECKSHADOW=false
4716 if test "$CHECKSHADOW" = "true"; then
4717 echo "$as_me:4717: checking for getprpwnam in -lsecurity" >&5
4718 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
4719 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 ac_check_lib_save_LIBS=$LIBS
4723 LIBS="-lsecurity $LIBS"
4724 cat >conftest.$ac_ext <<_ACEOF
4725 #line 4725 "configure"
4726 #include "confdefs.h"
4728 /* Override any gcc2 internal prototype to avoid an error. */
4732 /* We use char because int might match the return type of a gcc2
4733 builtin and then its argument prototype would still apply. */
4743 rm -f conftest.$ac_objext conftest$ac_exeext
4744 if { (eval echo "$as_me:4744: \"$ac_link\"") >&5
4745 (eval $ac_link) 2>&5
4747 echo "$as_me:4747: \$? = $ac_status" >&5
4748 (exit $ac_status); } &&
4749 { ac_try='test -s conftest$ac_exeext'
4750 { (eval echo "$as_me:4750: \"$ac_try\"") >&5
4753 echo "$as_me:4753: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
4755 ac_cv_lib_security_getprpwnam=yes
4757 echo "$as_me: failed program was:" >&5
4758 cat conftest.$ac_ext >&5
4759 ac_cv_lib_security_getprpwnam=no
4761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4762 LIBS=$ac_check_lib_save_LIBS
4764 echo "$as_me:4764: result: $ac_cv_lib_security_getprpwnam" >&5
4765 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
4766 if test $ac_cv_lib_security_getprpwnam = yes; then
4773 if test -n "$SECUREWARE"; then
4775 cat >>confdefs.h <<\EOF
4776 #define HAVE_GETPRPWNAM 1
4779 # -ldb includes bogus versions of snprintf/vsnprintf
4781 for ac_func in snprintf
4783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4784 echo "$as_me:4784: checking for $ac_func" >&5
4785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4786 if eval "test \"\${$as_ac_var+set}\" = set"; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 cat >conftest.$ac_ext <<_ACEOF
4790 #line 4790 "configure"
4791 #include "confdefs.h"
4792 /* System header to define __stub macros and hopefully few prototypes,
4793 which can conflict with char $ac_func (); below. */
4795 /* Override any gcc2 internal prototype to avoid an error. */
4799 /* We use char because int might match the return type of a gcc2
4800 builtin and then its argument prototype would still apply. */
4807 /* The GNU C library defines this for functions which it implements
4808 to always fail with ENOSYS. Some functions are actually named
4809 something starting with __ and the normal name is an alias. */
4810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4820 rm -f conftest.$ac_objext conftest$ac_exeext
4821 if { (eval echo "$as_me:4821: \"$ac_link\"") >&5
4822 (eval $ac_link) 2>&5
4824 echo "$as_me:4824: \$? = $ac_status" >&5
4825 (exit $ac_status); } &&
4826 { ac_try='test -s conftest$ac_exeext'
4827 { (eval echo "$as_me:4827: \"$ac_try\"") >&5
4830 echo "$as_me:4830: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 eval "$as_ac_var=yes"
4834 echo "$as_me: failed program was:" >&5
4835 cat conftest.$ac_ext >&5
4836 eval "$as_ac_var=no"
4838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4840 echo "$as_me:4840: result: `eval echo '${'$as_ac_var'}'`" >&5
4841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4842 if test `eval echo '${'$as_ac_var'}'` = yes; then
4843 cat >>confdefs.h <<EOF
4844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4852 for ac_func in vsnprintf
4854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4855 echo "$as_me:4855: checking for $ac_func" >&5
4856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4857 if eval "test \"\${$as_ac_var+set}\" = set"; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 cat >conftest.$ac_ext <<_ACEOF
4861 #line 4861 "configure"
4862 #include "confdefs.h"
4863 /* System header to define __stub macros and hopefully few prototypes,
4864 which can conflict with char $ac_func (); below. */
4866 /* Override any gcc2 internal prototype to avoid an error. */
4870 /* We use char because int might match the return type of a gcc2
4871 builtin and then its argument prototype would still apply. */
4878 /* The GNU C library defines this for functions which it implements
4879 to always fail with ENOSYS. Some functions are actually named
4880 something starting with __ and the normal name is an alias. */
4881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4891 rm -f conftest.$ac_objext conftest$ac_exeext
4892 if { (eval echo "$as_me:4892: \"$ac_link\"") >&5
4893 (eval $ac_link) 2>&5
4895 echo "$as_me:4895: \$? = $ac_status" >&5
4896 (exit $ac_status); } &&
4897 { ac_try='test -s conftest$ac_exeext'
4898 { (eval echo "$as_me:4898: \"$ac_try\"") >&5
4901 echo "$as_me:4901: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 eval "$as_ac_var=yes"
4905 echo "$as_me: failed program was:" >&5
4906 cat conftest.$ac_ext >&5
4907 eval "$as_ac_var=no"
4909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4911 echo "$as_me:4911: result: `eval echo '${'$as_ac_var'}'`" >&5
4912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4913 if test `eval echo '${'$as_ac_var'}'` = yes; then
4914 cat >>confdefs.h <<EOF
4915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4923 # 4.x and higher need -ldb too...
4924 echo "$as_me:4924: checking for dbopen in -ldb" >&5
4925 echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6
4926 if test "${ac_cv_lib_db_dbopen+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 ac_check_lib_save_LIBS=$LIBS
4931 cat >conftest.$ac_ext <<_ACEOF
4932 #line 4932 "configure"
4933 #include "confdefs.h"
4935 /* Override any gcc2 internal prototype to avoid an error. */
4939 /* We use char because int might match the return type of a gcc2
4940 builtin and then its argument prototype would still apply. */
4950 rm -f conftest.$ac_objext conftest$ac_exeext
4951 if { (eval echo "$as_me:4951: \"$ac_link\"") >&5
4952 (eval $ac_link) 2>&5
4954 echo "$as_me:4954: \$? = $ac_status" >&5
4955 (exit $ac_status); } &&
4956 { ac_try='test -s conftest$ac_exeext'
4957 { (eval echo "$as_me:4957: \"$ac_try\"") >&5
4960 echo "$as_me:4960: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4962 ac_cv_lib_db_dbopen=yes
4964 echo "$as_me: failed program was:" >&5
4965 cat conftest.$ac_ext >&5
4966 ac_cv_lib_db_dbopen=no
4968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4969 LIBS=$ac_check_lib_save_LIBS
4971 echo "$as_me:4971: result: $ac_cv_lib_db_dbopen" >&5
4972 echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6
4973 if test $ac_cv_lib_db_dbopen = yes; then
4974 SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
4976 SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
4979 for ac_func in dispcrypt
4981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4982 echo "$as_me:4982: checking for $ac_func" >&5
4983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4984 if eval "test \"\${$as_ac_var+set}\" = set"; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 cat >conftest.$ac_ext <<_ACEOF
4988 #line 4988 "configure"
4989 #include "confdefs.h"
4990 /* System header to define __stub macros and hopefully few prototypes,
4991 which can conflict with char $ac_func (); below. */
4993 /* Override any gcc2 internal prototype to avoid an error. */
4997 /* We use char because int might match the return type of a gcc2
4998 builtin and then its argument prototype would still apply. */
5005 /* The GNU C library defines this for functions which it implements
5006 to always fail with ENOSYS. Some functions are actually named
5007 something starting with __ and the normal name is an alias. */
5008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5018 rm -f conftest.$ac_objext conftest$ac_exeext
5019 if { (eval echo "$as_me:5019: \"$ac_link\"") >&5
5020 (eval $ac_link) 2>&5
5022 echo "$as_me:5022: \$? = $ac_status" >&5
5023 (exit $ac_status); } &&
5024 { ac_try='test -s conftest$ac_exeext'
5025 { (eval echo "$as_me:5025: \"$ac_try\"") >&5
5028 echo "$as_me:5028: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 eval "$as_ac_var=yes"
5032 echo "$as_me: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5034 eval "$as_ac_var=no"
5036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5038 echo "$as_me:5038: result: `eval echo '${'$as_ac_var'}'`" >&5
5039 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5040 if test `eval echo '${'$as_ac_var'}'` = yes; then
5041 cat >>confdefs.h <<EOF
5042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5048 echo "$as_me:5048: checking for broken /usr/include/prot.h" >&5
5049 echo $ECHO_N "checking for broken /usr/include/prot.h... $ECHO_C" >&6
5050 cat >conftest.$ac_ext <<_ACEOF
5051 #line 5051 "configure"
5052 #include "confdefs.h"
5054 #include <sys/types.h>
5055 #include <sys/security.h>
5066 rm -f conftest.$ac_objext
5067 if { (eval echo "$as_me:5067: \"$ac_compile\"") >&5
5068 (eval $ac_compile) 2>&5
5070 echo "$as_me:5070: \$? = $ac_status" >&5
5071 (exit $ac_status); } &&
5072 { ac_try='test -s conftest.$ac_objext'
5073 { (eval echo "$as_me:5073: \"$ac_try\"") >&5
5076 echo "$as_me:5076: \$? = $ac_status" >&5
5077 (exit $ac_status); }; }; then
5078 echo "$as_me:5078: result: no" >&5
5079 echo "${ECHO_T}no" >&6
5081 echo "$as_me: failed program was:" >&5
5082 cat conftest.$ac_ext >&5
5083 echo "$as_me:5083: result: yes, fixing locally" >&5
5084 echo "${ECHO_T}yes, fixing locally" >&6
5085 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
5088 rm -f conftest.$ac_objext conftest.$ac_ext
5089 elif test "$CHECKSIA" = "true"; then
5093 test -n "$mansectsu" || mansectsu=8
5094 test -n "$mansectform" || mansectform=4
5097 CPPFLAGS="${CPPFLAGS} -D_BSD_TYPES"
5098 if test -z "$NROFFPROG"; then
5099 MAN_POSTINSTALL=' /bin/rm -f $(mandir8)/sudo.$(mansect8).z $(mandir8)/visudo.$(mansect8).z $(mandir5)/sudoers.$(mansect5).z ; /usr/bin/pack $(mandir8)/sudo.$(mansect8) $(mandir8)/visudo.$(mansect8) $(mandir5)/sudoers.$(mansect5)'
5100 if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
5101 if test -d /usr/share/catman/local; then
5102 mandir="/usr/share/catman/local"
5104 mandir="/usr/catman/local"
5108 if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
5109 if test -d "/usr/share/man/local"; then
5110 mandir="/usr/share/man/local"
5112 mandir="/usr/man/local"
5116 # IRIX <= 4 needs -lsun
5117 if test "$OSREV" -le 4; then
5118 echo "$as_me:5118: checking for getpwnam in -lsun" >&5
5119 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
5120 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 ac_check_lib_save_LIBS=$LIBS
5125 cat >conftest.$ac_ext <<_ACEOF
5126 #line 5126 "configure"
5127 #include "confdefs.h"
5129 /* Override any gcc2 internal prototype to avoid an error. */
5133 /* We use char because int might match the return type of a gcc2
5134 builtin and then its argument prototype would still apply. */
5144 rm -f conftest.$ac_objext conftest$ac_exeext
5145 if { (eval echo "$as_me:5145: \"$ac_link\"") >&5
5146 (eval $ac_link) 2>&5
5148 echo "$as_me:5148: \$? = $ac_status" >&5
5149 (exit $ac_status); } &&
5150 { ac_try='test -s conftest$ac_exeext'
5151 { (eval echo "$as_me:5151: \"$ac_try\"") >&5
5154 echo "$as_me:5154: \$? = $ac_status" >&5
5155 (exit $ac_status); }; }; then
5156 ac_cv_lib_sun_getpwnam=yes
5158 echo "$as_me: failed program was:" >&5
5159 cat conftest.$ac_ext >&5
5160 ac_cv_lib_sun_getpwnam=no
5162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5163 LIBS=$ac_check_lib_save_LIBS
5165 echo "$as_me:5165: result: $ac_cv_lib_sun_getpwnam" >&5
5166 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
5167 if test $ac_cv_lib_sun_getpwnam = yes; then
5168 LIBS="${LIBS} -lsun"
5172 test -n "$mansectsu" || mansectsu=1m
5173 test -n "$mansectform" || mansectform=4
5176 # Some Linux versions need to link with -lshadow
5177 if test "$CHECKSHADOW" = "true"; then
5179 for ac_func in getspnam
5181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5182 echo "$as_me:5182: checking for $ac_func" >&5
5183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5184 if eval "test \"\${$as_ac_var+set}\" = set"; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 cat >conftest.$ac_ext <<_ACEOF
5188 #line 5188 "configure"
5189 #include "confdefs.h"
5190 /* System header to define __stub macros and hopefully few prototypes,
5191 which can conflict with char $ac_func (); below. */
5193 /* Override any gcc2 internal prototype to avoid an error. */
5197 /* We use char because int might match the return type of a gcc2
5198 builtin and then its argument prototype would still apply. */
5205 /* The GNU C library defines this for functions which it implements
5206 to always fail with ENOSYS. Some functions are actually named
5207 something starting with __ and the normal name is an alias. */
5208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5218 rm -f conftest.$ac_objext conftest$ac_exeext
5219 if { (eval echo "$as_me:5219: \"$ac_link\"") >&5
5220 (eval $ac_link) 2>&5
5222 echo "$as_me:5222: \$? = $ac_status" >&5
5223 (exit $ac_status); } &&
5224 { ac_try='test -s conftest$ac_exeext'
5225 { (eval echo "$as_me:5225: \"$ac_try\"") >&5
5228 echo "$as_me:5228: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
5230 eval "$as_ac_var=yes"
5232 echo "$as_me: failed program was:" >&5
5233 cat conftest.$ac_ext >&5
5234 eval "$as_ac_var=no"
5236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5238 echo "$as_me:5238: result: `eval echo '${'$as_ac_var'}'`" >&5
5239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5240 if test `eval echo '${'$as_ac_var'}'` = yes; then
5241 cat >>confdefs.h <<EOF
5242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5246 echo "$as_me:5246: checking for getspnam in -lshadow" >&5
5247 echo $ECHO_N "checking for getspnam in -lshadow... $ECHO_C" >&6
5248 if test "${ac_cv_lib_shadow_getspnam+set}" = set; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 ac_check_lib_save_LIBS=$LIBS
5252 LIBS="-lshadow $LIBS"
5253 cat >conftest.$ac_ext <<_ACEOF
5254 #line 5254 "configure"
5255 #include "confdefs.h"
5257 /* Override any gcc2 internal prototype to avoid an error. */
5261 /* We use char because int might match the return type of a gcc2
5262 builtin and then its argument prototype would still apply. */
5272 rm -f conftest.$ac_objext conftest$ac_exeext
5273 if { (eval echo "$as_me:5273: \"$ac_link\"") >&5
5274 (eval $ac_link) 2>&5
5276 echo "$as_me:5276: \$? = $ac_status" >&5
5277 (exit $ac_status); } &&
5278 { ac_try='test -s conftest$ac_exeext'
5279 { (eval echo "$as_me:5279: \"$ac_try\"") >&5
5282 echo "$as_me:5282: \$? = $ac_status" >&5
5283 (exit $ac_status); }; }; then
5284 ac_cv_lib_shadow_getspnam=yes
5286 echo "$as_me: failed program was:" >&5
5287 cat conftest.$ac_ext >&5
5288 ac_cv_lib_shadow_getspnam=no
5290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5291 LIBS=$ac_check_lib_save_LIBS
5293 echo "$as_me:5293: result: $ac_cv_lib_shadow_getspnam" >&5
5294 echo "${ECHO_T}$ac_cv_lib_shadow_getspnam" >&6
5295 if test $ac_cv_lib_shadow_getspnam = yes; then
5296 cat >>confdefs.h <<\EOF
5297 #define HAVE_GETSPNAM 1
5299 SUDO_LIBS="${SUDO_LIBS} -lshadow"; LIBS="${LIBS} -lshadow"
5309 cat >>confdefs.h <<\EOF
5310 #define _CONVEX_SOURCE 1
5313 if test -z "$GCC"; then
5314 CFLAGS="${CFLAGS} -D__STDC__"
5317 if test "$CHECKSHADOW" = "true"; then
5318 echo "$as_me:5318: checking for getprpwnam in -lsec" >&5
5319 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
5320 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 ac_check_lib_save_LIBS=$LIBS
5325 cat >conftest.$ac_ext <<_ACEOF
5326 #line 5326 "configure"
5327 #include "confdefs.h"
5329 /* Override any gcc2 internal prototype to avoid an error. */
5333 /* We use char because int might match the return type of a gcc2
5334 builtin and then its argument prototype would still apply. */
5344 rm -f conftest.$ac_objext conftest$ac_exeext
5345 if { (eval echo "$as_me:5345: \"$ac_link\"") >&5
5346 (eval $ac_link) 2>&5
5348 echo "$as_me:5348: \$? = $ac_status" >&5
5349 (exit $ac_status); } &&
5350 { ac_try='test -s conftest$ac_exeext'
5351 { (eval echo "$as_me:5351: \"$ac_try\"") >&5
5354 echo "$as_me:5354: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 ac_cv_lib_sec_getprpwnam=yes
5358 echo "$as_me: failed program was:" >&5
5359 cat conftest.$ac_ext >&5
5360 ac_cv_lib_sec_getprpwnam=no
5362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5363 LIBS=$ac_check_lib_save_LIBS
5365 echo "$as_me:5365: result: $ac_cv_lib_sec_getprpwnam" >&5
5366 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
5367 if test $ac_cv_lib_sec_getprpwnam = yes; then
5368 cat >>confdefs.h <<\EOF
5369 #define HAVE_GETPRPWNAM 1
5371 SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"; OSDEFS="${OSDEFS} -D_AUDIT -D_ACL -DSecureWare"; SECUREWARE=1
5379 if test "$CHECKSHADOW" = "true"; then
5380 echo "$as_me:5380: checking for getauthuid in -lauth" >&5
5381 echo $ECHO_N "checking for getauthuid in -lauth... $ECHO_C" >&6
5382 if test "${ac_cv_lib_auth_getauthuid+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 ac_check_lib_save_LIBS=$LIBS
5387 cat >conftest.$ac_ext <<_ACEOF
5388 #line 5388 "configure"
5389 #include "confdefs.h"
5391 /* Override any gcc2 internal prototype to avoid an error. */
5395 /* We use char because int might match the return type of a gcc2
5396 builtin and then its argument prototype would still apply. */
5406 rm -f conftest.$ac_objext conftest$ac_exeext
5407 if { (eval echo "$as_me:5407: \"$ac_link\"") >&5
5408 (eval $ac_link) 2>&5
5410 echo "$as_me:5410: \$? = $ac_status" >&5
5411 (exit $ac_status); } &&
5412 { ac_try='test -s conftest$ac_exeext'
5413 { (eval echo "$as_me:5413: \"$ac_try\"") >&5
5416 echo "$as_me:5416: \$? = $ac_status" >&5
5417 (exit $ac_status); }; }; then
5418 ac_cv_lib_auth_getauthuid=yes
5420 echo "$as_me: failed program was:" >&5
5421 cat conftest.$ac_ext >&5
5422 ac_cv_lib_auth_getauthuid=no
5424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5425 LIBS=$ac_check_lib_save_LIBS
5427 echo "$as_me:5427: result: $ac_cv_lib_auth_getauthuid" >&5
5428 echo "${ECHO_T}$ac_cv_lib_auth_getauthuid" >&6
5429 if test $ac_cv_lib_auth_getauthuid = yes; then
5431 cat >>confdefs.h <<\EOF
5432 #define HAVE_GETAUTHUID 1
5434 SUDO_LIBS="${SUDO_LIBS} -lauth"; LIBS="${LIBS} -lauth"
5441 LIBS="${LIBS} -lsun -lbsd"
5442 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
5443 OSDEFS="${OSDEFS} -D_MIPS"
5444 test -n "$mansectsu" || mansectsu=1m
5445 test -n "$mansectform" || mansectform=4
5448 OSDEFS="${OSDEFS} -D_ISC"
5450 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
5451 LIBS="${LIBS} -lcrypt"
5453 if test "$CHECKSHADOW" = "true"; then
5454 echo "$as_me:5454: checking for getspnam in -lsec" >&5
5455 echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
5456 if test "${ac_cv_lib_sec_getspnam+set}" = set; then
5457 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 ac_check_lib_save_LIBS=$LIBS
5461 cat >conftest.$ac_ext <<_ACEOF
5462 #line 5462 "configure"
5463 #include "confdefs.h"
5465 /* Override any gcc2 internal prototype to avoid an error. */
5469 /* We use char because int might match the return type of a gcc2
5470 builtin and then its argument prototype would still apply. */
5480 rm -f conftest.$ac_objext conftest$ac_exeext
5481 if { (eval echo "$as_me:5481: \"$ac_link\"") >&5
5482 (eval $ac_link) 2>&5
5484 echo "$as_me:5484: \$? = $ac_status" >&5
5485 (exit $ac_status); } &&
5486 { ac_try='test -s conftest$ac_exeext'
5487 { (eval echo "$as_me:5487: \"$ac_try\"") >&5
5490 echo "$as_me:5490: \$? = $ac_status" >&5
5491 (exit $ac_status); }; }; then
5492 ac_cv_lib_sec_getspnam=yes
5494 echo "$as_me: failed program was:" >&5
5495 cat conftest.$ac_ext >&5
5496 ac_cv_lib_sec_getspnam=no
5498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5499 LIBS=$ac_check_lib_save_LIBS
5501 echo "$as_me:5501: result: $ac_cv_lib_sec_getspnam" >&5
5502 echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
5503 if test $ac_cv_lib_sec_getspnam = yes; then
5504 cat >>confdefs.h <<\EOF
5505 #define HAVE_GETSPNAM 1
5507 SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
5512 test -n "$mansectsu" || mansectsu=1m
5513 test -n "$mansectform" || mansectform=4
5516 if test "$CHECKSHADOW" = "true"; then
5517 echo "$as_me:5517: checking for getprpwnam in -lprot" >&5
5518 echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
5519 if test "${ac_cv_lib_prot_getprpwnam_lx+set}" = set; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5522 ac_check_lib_save_LIBS=$LIBS
5523 LIBS="-lprot -lx $LIBS"
5524 cat >conftest.$ac_ext <<_ACEOF
5525 #line 5525 "configure"
5526 #include "confdefs.h"
5528 /* Override any gcc2 internal prototype to avoid an error. */
5532 /* We use char because int might match the return type of a gcc2
5533 builtin and then its argument prototype would still apply. */
5543 rm -f conftest.$ac_objext conftest$ac_exeext
5544 if { (eval echo "$as_me:5544: \"$ac_link\"") >&5
5545 (eval $ac_link) 2>&5
5547 echo "$as_me:5547: \$? = $ac_status" >&5
5548 (exit $ac_status); } &&
5549 { ac_try='test -s conftest$ac_exeext'
5550 { (eval echo "$as_me:5550: \"$ac_try\"") >&5
5553 echo "$as_me:5553: \$? = $ac_status" >&5
5554 (exit $ac_status); }; }; then
5555 ac_cv_lib_prot_getprpwnam_lx=yes
5557 echo "$as_me: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5559 ac_cv_lib_prot_getprpwnam_lx=no
5561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5562 LIBS=$ac_check_lib_save_LIBS
5564 echo "$as_me:5564: result: $ac_cv_lib_prot_getprpwnam_lx" >&5
5565 echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam_lx" >&6
5566 if test $ac_cv_lib_prot_getprpwnam_lx = yes; then
5567 cat >>confdefs.h <<\EOF
5568 #define HAVE_GETPRPWNAM 1
5570 SUDO_LIBS="${SUDO_LIBS} -lprot -lx"; LIBS="${LIBS} -lprot -lx"; SECUREWARE=1
5573 echo "$as_me:5573: checking for getspnam in -lgen" >&5
5574 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
5575 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 ac_check_lib_save_LIBS=$LIBS
5580 cat >conftest.$ac_ext <<_ACEOF
5581 #line 5581 "configure"
5582 #include "confdefs.h"
5584 /* Override any gcc2 internal prototype to avoid an error. */
5588 /* We use char because int might match the return type of a gcc2
5589 builtin and then its argument prototype would still apply. */
5599 rm -f conftest.$ac_objext conftest$ac_exeext
5600 if { (eval echo "$as_me:5600: \"$ac_link\"") >&5
5601 (eval $ac_link) 2>&5
5603 echo "$as_me:5603: \$? = $ac_status" >&5
5604 (exit $ac_status); } &&
5605 { ac_try='test -s conftest$ac_exeext'
5606 { (eval echo "$as_me:5606: \"$ac_try\"") >&5
5609 echo "$as_me:5609: \$? = $ac_status" >&5
5610 (exit $ac_status); }; }; then
5611 ac_cv_lib_gen_getspnam=yes
5613 echo "$as_me: failed program was:" >&5
5614 cat conftest.$ac_ext >&5
5615 ac_cv_lib_gen_getspnam=no
5617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5618 LIBS=$ac_check_lib_save_LIBS
5620 echo "$as_me:5620: result: $ac_cv_lib_gen_getspnam" >&5
5621 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
5622 if test $ac_cv_lib_gen_getspnam = yes; then
5623 cat >>confdefs.h <<\EOF
5624 #define HAVE_GETSPNAM 1
5626 SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
5631 test -n "$mansectsu" || mansectsu=1m
5632 test -n "$mansectform" || mansectform=4
5634 m88k-motorola-sysv*)
5635 # motorolla's cc (a variant of gcc) does -O but not -O2
5636 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
5637 test -n "$mansectsu" || mansectsu=1m
5638 test -n "$mansectform" || mansectform=4
5641 if test "$CHECKSHADOW" = "true"; then
5642 echo "$as_me:5642: checking for getspnam in -lsec" >&5
5643 echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
5644 if test "${ac_cv_lib_sec_getspnam+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 ac_check_lib_save_LIBS=$LIBS
5649 cat >conftest.$ac_ext <<_ACEOF
5650 #line 5650 "configure"
5651 #include "confdefs.h"
5653 /* Override any gcc2 internal prototype to avoid an error. */
5657 /* We use char because int might match the return type of a gcc2
5658 builtin and then its argument prototype would still apply. */
5668 rm -f conftest.$ac_objext conftest$ac_exeext
5669 if { (eval echo "$as_me:5669: \"$ac_link\"") >&5
5670 (eval $ac_link) 2>&5
5672 echo "$as_me:5672: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try='test -s conftest$ac_exeext'
5675 { (eval echo "$as_me:5675: \"$ac_try\"") >&5
5678 echo "$as_me:5678: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
5680 ac_cv_lib_sec_getspnam=yes
5682 echo "$as_me: failed program was:" >&5
5683 cat conftest.$ac_ext >&5
5684 ac_cv_lib_sec_getspnam=no
5686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5687 LIBS=$ac_check_lib_save_LIBS
5689 echo "$as_me:5689: result: $ac_cv_lib_sec_getspnam" >&5
5690 echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
5691 if test $ac_cv_lib_sec_getspnam = yes; then
5692 cat >>confdefs.h <<\EOF
5693 #define HAVE_GETSPNAM 1
5695 SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
5700 test -n "$mansectsu" || mansectsu=1m
5701 test -n "$mansectform" || mansectform=4
5703 *-ncr-sysv4*|*-ncr-sysvr4*)
5704 echo "$as_me:5704: checking for strcasecmp in -lc89" >&5
5705 echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6
5706 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 ac_check_lib_save_LIBS=$LIBS
5711 cat >conftest.$ac_ext <<_ACEOF
5712 #line 5712 "configure"
5713 #include "confdefs.h"
5715 /* Override any gcc2 internal prototype to avoid an error. */
5719 /* We use char because int might match the return type of a gcc2
5720 builtin and then its argument prototype would still apply. */
5730 rm -f conftest.$ac_objext conftest$ac_exeext
5731 if { (eval echo "$as_me:5731: \"$ac_link\"") >&5
5732 (eval $ac_link) 2>&5
5734 echo "$as_me:5734: \$? = $ac_status" >&5
5735 (exit $ac_status); } &&
5736 { ac_try='test -s conftest$ac_exeext'
5737 { (eval echo "$as_me:5737: \"$ac_try\"") >&5
5740 echo "$as_me:5740: \$? = $ac_status" >&5
5741 (exit $ac_status); }; }; then
5742 ac_cv_lib_c89_strcasecmp=yes
5744 echo "$as_me: failed program was:" >&5
5745 cat conftest.$ac_ext >&5
5746 ac_cv_lib_c89_strcasecmp=no
5748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5749 LIBS=$ac_check_lib_save_LIBS
5751 echo "$as_me:5751: result: $ac_cv_lib_c89_strcasecmp" >&5
5752 echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6
5753 if test $ac_cv_lib_c89_strcasecmp = yes; then
5754 cat >>confdefs.h <<\EOF
5755 #define HAVE_STRCASECMP 1
5757 LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
5760 test -n "$mansectsu" || mansectsu=1m
5761 test -n "$mansectform" || mansectform=4
5763 *-ccur-sysv4*|*-ccur-sysvr4*)
5764 LIBS="${LIBS} -lgen"
5765 SUDO_LIBS="${SUDO_LIBS} -lgen"
5766 test -n "$mansectsu" || mansectsu=1m
5767 test -n "$mansectform" || mansectform=4
5771 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
5772 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
5774 2|3) echo 'using shlicc as CC'
5775 ac_cv_prog_CC=shlicc
5782 # FreeBSD has a real setreuid(2) starting with 2.1 and
5783 # backported to 2.0.5. We just take 2.1 and above...
5784 case "`echo $host_os | sed 's/^freebsd\([0-9\.]*\).*$/\1/'`" in
5789 if test "$with_logincap" = "yes"; then
5790 SUDO_LIBS="${SUDO_LIBS} -lutil"
5792 if test "$with_skey" = "yes"; then
5793 SUDO_LIBS="${SUDO_LIBS} -lmd"
5795 if test "$CHECKSHADOW" = "true"; then
5801 if test "$CHECKSHADOW" = "true"; then
5806 # NetBSD has a real setreuid(2) starting with 1.3.2
5807 case "`echo $host_os | sed 's/^netbsd\([0-9\.]*\).*$/\1/'`" in
5808 0.9*|1.012*|1.3|1.3.1)
5812 if test "$CHECKSHADOW" = "true"; then
5817 if test "$CHECKSHADOW" = "true"; then
5822 # lockf() on is broken on the NeXT -- use flock instead
5824 ac_cv_func_flock=yes
5827 test -n "$mansectsu" || mansectsu=1m
5828 test -n "$mansectform" || mansectform=4
5832 test -n "$mansectsu" || mansectsu=8
5833 test -n "$mansectform" || mansectform=5
5835 if test "$CHECKSHADOW" = "true"; then
5837 for ac_func in getspnam
5839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5840 echo "$as_me:5840: checking for $ac_func" >&5
5841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5842 if eval "test \"\${$as_ac_var+set}\" = set"; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 cat >conftest.$ac_ext <<_ACEOF
5846 #line 5846 "configure"
5847 #include "confdefs.h"
5848 /* System header to define __stub macros and hopefully few prototypes,
5849 which can conflict with char $ac_func (); below. */
5851 /* Override any gcc2 internal prototype to avoid an error. */
5855 /* We use char because int might match the return type of a gcc2
5856 builtin and then its argument prototype would still apply. */
5863 /* The GNU C library defines this for functions which it implements
5864 to always fail with ENOSYS. Some functions are actually named
5865 something starting with __ and the normal name is an alias. */
5866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5876 rm -f conftest.$ac_objext conftest$ac_exeext
5877 if { (eval echo "$as_me:5877: \"$ac_link\"") >&5
5878 (eval $ac_link) 2>&5
5880 echo "$as_me:5880: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try='test -s conftest$ac_exeext'
5883 { (eval echo "$as_me:5883: \"$ac_try\"") >&5
5886 echo "$as_me:5886: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 eval "$as_ac_var=yes"
5890 echo "$as_me: failed program was:" >&5
5891 cat conftest.$ac_ext >&5
5892 eval "$as_ac_var=no"
5894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5896 echo "$as_me:5896: result: `eval echo '${'$as_ac_var'}'`" >&5
5897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5898 if test `eval echo '${'$as_ac_var'}'` = yes; then
5899 cat >>confdefs.h <<EOF
5900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5904 echo "$as_me:5904: checking for getspnam in -lgen" >&5
5905 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
5906 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 ac_check_lib_save_LIBS=$LIBS
5911 cat >conftest.$ac_ext <<_ACEOF
5912 #line 5912 "configure"
5913 #include "confdefs.h"
5915 /* Override any gcc2 internal prototype to avoid an error. */
5919 /* We use char because int might match the return type of a gcc2
5920 builtin and then its argument prototype would still apply. */
5930 rm -f conftest.$ac_objext conftest$ac_exeext
5931 if { (eval echo "$as_me:5931: \"$ac_link\"") >&5
5932 (eval $ac_link) 2>&5
5934 echo "$as_me:5934: \$? = $ac_status" >&5
5935 (exit $ac_status); } &&
5936 { ac_try='test -s conftest$ac_exeext'
5937 { (eval echo "$as_me:5937: \"$ac_try\"") >&5
5940 echo "$as_me:5940: \$? = $ac_status" >&5
5941 (exit $ac_status); }; }; then
5942 ac_cv_lib_gen_getspnam=yes
5944 echo "$as_me: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5946 ac_cv_lib_gen_getspnam=no
5948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5949 LIBS=$ac_check_lib_save_LIBS
5951 echo "$as_me:5951: result: $ac_cv_lib_gen_getspnam" >&5
5952 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
5953 if test $ac_cv_lib_gen_getspnam = yes; then
5955 cat >>confdefs.h <<\EOF
5956 #define HAVE_GETSPNAM 1
5958 SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
5965 if test "$CHECKSHADOW" = "true"; then
5966 echo "$as_me:5966: checking for getprpwnam" >&5
5967 echo $ECHO_N "checking for getprpwnam... $ECHO_C" >&6
5968 if test "${ac_cv_func_getprpwnam+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 cat >conftest.$ac_ext <<_ACEOF
5972 #line 5972 "configure"
5973 #include "confdefs.h"
5974 /* System header to define __stub macros and hopefully few prototypes,
5975 which can conflict with char getprpwnam (); below. */
5977 /* Override any gcc2 internal prototype to avoid an error. */
5981 /* We use char because int might match the return type of a gcc2
5982 builtin and then its argument prototype would still apply. */
5989 /* The GNU C library defines this for functions which it implements
5990 to always fail with ENOSYS. Some functions are actually named
5991 something starting with __ and the normal name is an alias. */
5992 #if defined (__stub_getprpwnam) || defined (__stub___getprpwnam)
6002 rm -f conftest.$ac_objext conftest$ac_exeext
6003 if { (eval echo "$as_me:6003: \"$ac_link\"") >&5
6004 (eval $ac_link) 2>&5
6006 echo "$as_me:6006: \$? = $ac_status" >&5
6007 (exit $ac_status); } &&
6008 { ac_try='test -s conftest$ac_exeext'
6009 { (eval echo "$as_me:6009: \"$ac_try\"") >&5
6012 echo "$as_me:6012: \$? = $ac_status" >&5
6013 (exit $ac_status); }; }; then
6014 ac_cv_func_getprpwnam=yes
6016 echo "$as_me: failed program was:" >&5
6017 cat conftest.$ac_ext >&5
6018 ac_cv_func_getprpwnam=no
6020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6022 echo "$as_me:6022: result: $ac_cv_func_getprpwnam" >&5
6023 echo "${ECHO_T}$ac_cv_func_getprpwnam" >&6
6024 if test $ac_cv_func_getprpwnam = yes; then
6025 cat >>confdefs.h <<\EOF
6026 #define HAVE_GETPRPWNAM 1
6028 CHECKSHADOW="false"; SECUREWARE=1, echo "$as_me:6028: checking for getprpwnam in -lsec" >&5
6029 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
6030 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 ac_check_lib_save_LIBS=$LIBS
6035 cat >conftest.$ac_ext <<_ACEOF
6036 #line 6036 "configure"
6037 #include "confdefs.h"
6039 /* Override any gcc2 internal prototype to avoid an error. */
6043 /* We use char because int might match the return type of a gcc2
6044 builtin and then its argument prototype would still apply. */
6054 rm -f conftest.$ac_objext conftest$ac_exeext
6055 if { (eval echo "$as_me:6055: \"$ac_link\"") >&5
6056 (eval $ac_link) 2>&5
6058 echo "$as_me:6058: \$? = $ac_status" >&5
6059 (exit $ac_status); } &&
6060 { ac_try='test -s conftest$ac_exeext'
6061 { (eval echo "$as_me:6061: \"$ac_try\"") >&5
6064 echo "$as_me:6064: \$? = $ac_status" >&5
6065 (exit $ac_status); }; }; then
6066 ac_cv_lib_sec_getprpwnam=yes
6068 echo "$as_me: failed program was:" >&5
6069 cat conftest.$ac_ext >&5
6070 ac_cv_lib_sec_getprpwnam=no
6072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6073 LIBS=$ac_check_lib_save_LIBS
6075 echo "$as_me:6075: result: $ac_cv_lib_sec_getprpwnam" >&5
6076 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
6077 if test $ac_cv_lib_sec_getprpwnam = yes; then
6078 cat >>confdefs.h <<\EOF
6079 #define HAVE_GETPRPWNAM 1
6081 CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
6083 echo "$as_me:6083: checking for getprpwnam in -lsecurity" >&5
6084 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
6085 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 ac_check_lib_save_LIBS=$LIBS
6089 LIBS="-lsecurity $LIBS"
6090 cat >conftest.$ac_ext <<_ACEOF
6091 #line 6091 "configure"
6092 #include "confdefs.h"
6094 /* Override any gcc2 internal prototype to avoid an error. */
6098 /* We use char because int might match the return type of a gcc2
6099 builtin and then its argument prototype would still apply. */
6109 rm -f conftest.$ac_objext conftest$ac_exeext
6110 if { (eval echo "$as_me:6110: \"$ac_link\"") >&5
6111 (eval $ac_link) 2>&5
6113 echo "$as_me:6113: \$? = $ac_status" >&5
6114 (exit $ac_status); } &&
6115 { ac_try='test -s conftest$ac_exeext'
6116 { (eval echo "$as_me:6116: \"$ac_try\"") >&5
6119 echo "$as_me:6119: \$? = $ac_status" >&5
6120 (exit $ac_status); }; }; then
6121 ac_cv_lib_security_getprpwnam=yes
6123 echo "$as_me: failed program was:" >&5
6124 cat conftest.$ac_ext >&5
6125 ac_cv_lib_security_getprpwnam=no
6127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6128 LIBS=$ac_check_lib_save_LIBS
6130 echo "$as_me:6130: result: $ac_cv_lib_security_getprpwnam" >&5
6131 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
6132 if test $ac_cv_lib_security_getprpwnam = yes; then
6133 cat >>confdefs.h <<\EOF
6134 #define HAVE_GETPRPWNAM 1
6136 CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"
6138 echo "$as_me:6138: checking for getprpwnam in -lprot" >&5
6139 echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
6140 if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 ac_check_lib_save_LIBS=$LIBS
6145 cat >conftest.$ac_ext <<_ACEOF
6146 #line 6146 "configure"
6147 #include "confdefs.h"
6149 /* Override any gcc2 internal prototype to avoid an error. */
6153 /* We use char because int might match the return type of a gcc2
6154 builtin and then its argument prototype would still apply. */
6164 rm -f conftest.$ac_objext conftest$ac_exeext
6165 if { (eval echo "$as_me:6165: \"$ac_link\"") >&5
6166 (eval $ac_link) 2>&5
6168 echo "$as_me:6168: \$? = $ac_status" >&5
6169 (exit $ac_status); } &&
6170 { ac_try='test -s conftest$ac_exeext'
6171 { (eval echo "$as_me:6171: \"$ac_try\"") >&5
6174 echo "$as_me:6174: \$? = $ac_status" >&5
6175 (exit $ac_status); }; }; then
6176 ac_cv_lib_prot_getprpwnam=yes
6178 echo "$as_me: failed program was:" >&5
6179 cat conftest.$ac_ext >&5
6180 ac_cv_lib_prot_getprpwnam=no
6182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6183 LIBS=$ac_check_lib_save_LIBS
6185 echo "$as_me:6185: result: $ac_cv_lib_prot_getprpwnam" >&5
6186 echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
6187 if test $ac_cv_lib_prot_getprpwnam = yes; then
6188 cat >>confdefs.h <<\EOF
6189 #define HAVE_GETPRPWNAM 1
6191 CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"
6202 if test $ac_cv_c_compiler_gnu = yes; then
6203 echo "$as_me:6203: checking whether $CC needs -traditional" >&5
6204 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
6205 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 ac_pattern="Autoconf.*'x'"
6209 cat >conftest.$ac_ext <<_ACEOF
6210 #line 6210 "configure"
6211 #include "confdefs.h"
6215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6216 egrep "$ac_pattern" >/dev/null 2>&1; then
6217 ac_cv_prog_gcc_traditional=yes
6219 ac_cv_prog_gcc_traditional=no
6223 if test $ac_cv_prog_gcc_traditional = no; then
6224 cat >conftest.$ac_ext <<_ACEOF
6225 #line 6225 "configure"
6226 #include "confdefs.h"
6230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6231 egrep "$ac_pattern" >/dev/null 2>&1; then
6232 ac_cv_prog_gcc_traditional=yes
6238 echo "$as_me:6238: result: $ac_cv_prog_gcc_traditional" >&5
6239 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
6240 if test $ac_cv_prog_gcc_traditional = yes; then
6241 CC="$CC -traditional"
6245 echo "$as_me:6245: checking for an ANSI C-conforming const" >&5
6246 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6247 if test "${ac_cv_c_const+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 cat >conftest.$ac_ext <<_ACEOF
6251 #line 6251 "configure"
6252 #include "confdefs.h"
6257 /* FIXME: Include the comments suggested by Paul. */
6259 /* Ultrix mips cc rejects this. */
6260 typedef int charset[2];
6262 /* SunOS 4.1.1 cc rejects this. */
6263 char const *const *ccp;
6265 /* NEC SVR4.0.2 mips cc rejects this. */
6266 struct point {int x, y;};
6267 static struct point const zero = {0,0};
6268 /* AIX XL C 1.02.0.0 rejects this.
6269 It does not let you subtract one const X* pointer from another in
6270 an arm of an if-expression whose if-part is not a constant
6272 const char *g = "string";
6273 ccp = &g + (g ? g-g : 0);
6274 /* HPUX 7.0 cc rejects these. */
6277 ccp = (char const *const *) p;
6278 { /* SCO 3.2v4 cc rejects this. */
6280 char const *s = 0 ? (char *) 0 : (char const *) 0;
6284 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6286 const int *foo = &x[0];
6289 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6290 typedef const int *iptr;
6294 { /* AIX XL C 1.02.0.0 rejects this saying
6295 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6296 struct s { int j; const int *ap[3]; };
6297 struct s *b; b->j = 5;
6299 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6308 rm -f conftest.$ac_objext
6309 if { (eval echo "$as_me:6309: \"$ac_compile\"") >&5
6310 (eval $ac_compile) 2>&5
6312 echo "$as_me:6312: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
6314 { ac_try='test -s conftest.$ac_objext'
6315 { (eval echo "$as_me:6315: \"$ac_try\"") >&5
6318 echo "$as_me:6318: \$? = $ac_status" >&5
6319 (exit $ac_status); }; }; then
6322 echo "$as_me: failed program was:" >&5
6323 cat conftest.$ac_ext >&5
6326 rm -f conftest.$ac_objext conftest.$ac_ext
6328 echo "$as_me:6328: result: $ac_cv_c_const" >&5
6329 echo "${ECHO_T}$ac_cv_c_const" >&6
6330 if test $ac_cv_c_const = no; then
6332 cat >>confdefs.h <<\EOF
6338 echo "$as_me:6338: checking for working volatile" >&5
6339 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6340 if test "${ac_cv_c_volatile+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 cat >conftest.$ac_ext <<_ACEOF
6344 #line 6344 "configure"
6345 #include "confdefs.h"
6357 rm -f conftest.$ac_objext
6358 if { (eval echo "$as_me:6358: \"$ac_compile\"") >&5
6359 (eval $ac_compile) 2>&5
6361 echo "$as_me:6361: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -s conftest.$ac_objext'
6364 { (eval echo "$as_me:6364: \"$ac_try\"") >&5
6367 echo "$as_me:6367: \$? = $ac_status" >&5
6368 (exit $ac_status); }; }; then
6369 ac_cv_c_volatile=yes
6371 echo "$as_me: failed program was:" >&5
6372 cat conftest.$ac_ext >&5
6375 rm -f conftest.$ac_objext conftest.$ac_ext
6377 echo "$as_me:6377: result: $ac_cv_c_volatile" >&5
6378 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6379 if test $ac_cv_c_volatile = no; then
6381 cat >>confdefs.h <<\EOF
6387 for ac_prog in 'bison -y' byacc
6389 # Extract the first word of "$ac_prog", so it can be a program name with args.
6390 set dummy $ac_prog; ac_word=$2
6391 echo "$as_me:6391: checking for $ac_word" >&5
6392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6393 if test "${ac_cv_prog_YACC+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 if test -n "$YACC"; then
6397 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6399 ac_save_IFS=$IFS; IFS=$ac_path_separator
6401 for ac_dir in $ac_dummy; do
6403 test -z "$ac_dir" && ac_dir=.
6404 $as_executable_p "$ac_dir/$ac_word" || continue
6405 ac_cv_prog_YACC="$ac_prog"
6406 echo "$as_me:6406: found $ac_dir/$ac_word" >&5
6412 YACC=$ac_cv_prog_YACC
6413 if test -n "$YACC"; then
6414 echo "$as_me:6414: result: $YACC" >&5
6415 echo "${ECHO_T}$YACC" >&6
6417 echo "$as_me:6417: result: no" >&5
6418 echo "${ECHO_T}no" >&6
6421 test -n "$YACC" && break
6423 test -n "$YACC" || YACC="yacc"
6425 echo "$as_me:6425: checking for mv" >&5
6426 echo $ECHO_N "checking for mv... $ECHO_C" >&6
6427 if test -f "/usr/bin/mv"; then
6428 echo "$as_me:6428: result: /usr/bin/mv" >&5
6429 echo "${ECHO_T}/usr/bin/mv" >&6
6430 cat >>confdefs.h <<\EOF
6431 #define _PATH_MV "/usr/bin/mv"
6434 elif test -f "/bin/mv"; then
6435 echo "$as_me:6435: result: /bin/mv" >&5
6436 echo "${ECHO_T}/bin/mv" >&6
6437 cat >>confdefs.h <<\EOF
6438 #define _PATH_MV "/bin/mv"
6441 elif test -f "/usr/ucb/mv"; then
6442 echo "$as_me:6442: result: /usr/ucb/mv" >&5
6443 echo "${ECHO_T}/usr/ucb/mv" >&6
6444 cat >>confdefs.h <<\EOF
6445 #define _PATH_MV "/usr/ucb/mv"
6448 elif test -f "/usr/sbin/mv"; then
6449 echo "$as_me:6449: result: /usr/sbin/mv" >&5
6450 echo "${ECHO_T}/usr/sbin/mv" >&6
6451 cat >>confdefs.h <<\EOF
6452 #define _PATH_MV "/usr/sbin/mv"
6456 echo "$as_me:6456: result: not found" >&5
6457 echo "${ECHO_T}not found" >&6
6460 echo "$as_me:6460: checking for bourne shell" >&5
6461 echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6
6462 if test -f "/bin/sh"; then
6463 echo "$as_me:6463: result: /bin/sh" >&5
6464 echo "${ECHO_T}/bin/sh" >&6
6465 cat >>confdefs.h <<\EOF
6466 #define _PATH_BSHELL "/bin/sh"
6469 elif test -f "/usr/bin/sh"; then
6470 echo "$as_me:6470: result: /usr/bin/sh" >&5
6471 echo "${ECHO_T}/usr/bin/sh" >&6
6472 cat >>confdefs.h <<\EOF
6473 #define _PATH_BSHELL "/usr/bin/sh"
6476 elif test -f "/sbin/sh"; then
6477 echo "$as_me:6477: result: /sbin/sh" >&5
6478 echo "${ECHO_T}/sbin/sh" >&6
6479 cat >>confdefs.h <<\EOF
6480 #define _PATH_BSHELL "/sbin/sh"
6483 elif test -f "/usr/sbin/sh"; then
6484 echo "$as_me:6484: result: /usr/sbin/sh" >&5
6485 echo "${ECHO_T}/usr/sbin/sh" >&6
6486 cat >>confdefs.h <<\EOF
6487 #define _PATH_BSHELL "/usr/sbin/sh"
6490 elif test -f "/bin/ksh"; then
6491 echo "$as_me:6491: result: /bin/ksh" >&5
6492 echo "${ECHO_T}/bin/ksh" >&6
6493 cat >>confdefs.h <<\EOF
6494 #define _PATH_BSHELL "/bin/ksh"
6497 elif test -f "/usr/bin/ksh"; then
6498 echo "$as_me:6498: result: /usr/bin/ksh" >&5
6499 echo "${ECHO_T}/usr/bin/ksh" >&6
6500 cat >>confdefs.h <<\EOF
6501 #define _PATH_BSHELL "/usr/bin/ksh"
6504 elif test -f "/bin/bash"; then
6505 echo "$as_me:6505: result: /bin/bash" >&5
6506 echo "${ECHO_T}/bin/bash" >&6
6507 cat >>confdefs.h <<\EOF
6508 #define _PATH_BSHELL "/bin/bash"
6511 elif test -f "/usr/bin/bash"; then
6512 echo "$as_me:6512: result: /usr/bin/bash" >&5
6513 echo "${ECHO_T}/usr/bin/bash" >&6
6514 cat >>confdefs.h <<\EOF
6515 #define _PATH_BSHELL "/usr/bin/bash"
6519 echo "$as_me:6519: result: not found" >&5
6520 echo "${ECHO_T}not found" >&6
6523 if test -z "$with_sendmail"; then
6524 echo "$as_me:6524: checking for sendmail" >&5
6525 echo $ECHO_N "checking for sendmail... $ECHO_C" >&6
6526 if test -f "/usr/sbin/sendmail"; then
6527 echo "$as_me:6527: result: /usr/sbin/sendmail" >&5
6528 echo "${ECHO_T}/usr/sbin/sendmail" >&6
6529 cat >>confdefs.h <<\EOF
6530 #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
6533 elif test -f "/usr/lib/sendmail"; then
6534 echo "$as_me:6534: result: /usr/lib/sendmail" >&5
6535 echo "${ECHO_T}/usr/lib/sendmail" >&6
6536 cat >>confdefs.h <<\EOF
6537 #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
6540 elif test -f "/usr/etc/sendmail"; then
6541 echo "$as_me:6541: result: /usr/etc/sendmail" >&5
6542 echo "${ECHO_T}/usr/etc/sendmail" >&6
6543 cat >>confdefs.h <<\EOF
6544 #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
6547 elif test -f "/usr/ucblib/sendmail"; then
6548 echo "$as_me:6548: result: /usr/ucblib/sendmail" >&5
6549 echo "${ECHO_T}/usr/ucblib/sendmail" >&6
6550 cat >>confdefs.h <<\EOF
6551 #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
6554 elif test -f "/usr/local/lib/sendmail"; then
6555 echo "$as_me:6555: result: /usr/local/lib/sendmail" >&5
6556 echo "${ECHO_T}/usr/local/lib/sendmail" >&6
6557 cat >>confdefs.h <<\EOF
6558 #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
6561 elif test -f "/usr/local/bin/sendmail"; then
6562 echo "$as_me:6562: result: /usr/local/bin/sendmail" >&5
6563 echo "${ECHO_T}/usr/local/bin/sendmail" >&6
6564 cat >>confdefs.h <<\EOF
6565 #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
6569 echo "$as_me:6569: result: not found" >&5
6570 echo "${ECHO_T}not found" >&6
6574 if test -z "$with_editor"; then
6575 echo "$as_me:6575: checking for vi" >&5
6576 echo $ECHO_N "checking for vi... $ECHO_C" >&6
6577 if test -f "/usr/bin/vi"; then
6578 echo "$as_me:6578: result: /usr/bin/vi" >&5
6579 echo "${ECHO_T}/usr/bin/vi" >&6
6580 cat >>confdefs.h <<\EOF
6581 #define _PATH_VI "/usr/bin/vi"
6584 elif test -f "/usr/ucb/vi"; then
6585 echo "$as_me:6585: result: /usr/ucb/vi" >&5
6586 echo "${ECHO_T}/usr/ucb/vi" >&6
6587 cat >>confdefs.h <<\EOF
6588 #define _PATH_VI "/usr/ucb/vi"
6591 elif test -f "/usr/bsd/vi"; then
6592 echo "$as_me:6592: result: /usr/bsd/vi" >&5
6593 echo "${ECHO_T}/usr/bsd/vi" >&6
6594 cat >>confdefs.h <<\EOF
6595 #define _PATH_VI "/usr/bsd/vi"
6598 elif test -f "/bin/vi"; then
6599 echo "$as_me:6599: result: /bin/vi" >&5
6600 echo "${ECHO_T}/bin/vi" >&6
6601 cat >>confdefs.h <<\EOF
6602 #define _PATH_VI "/bin/vi"
6605 elif test -f "/usr/local/bin/vi"; then
6606 echo "$as_me:6606: result: /usr/local/bin/vi" >&5
6607 echo "${ECHO_T}/usr/local/bin/vi" >&6
6608 cat >>confdefs.h <<\EOF
6609 #define _PATH_VI "/usr/local/bin/vi"
6613 echo "$as_me:6613: result: not found" >&5
6614 echo "${ECHO_T}not found" >&6
6618 echo "$as_me:6618: checking for ANSI C header files" >&5
6619 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6620 if test "${ac_cv_header_stdc+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 cat >conftest.$ac_ext <<_ACEOF
6624 #line 6624 "configure"
6625 #include "confdefs.h"
6632 if { (eval echo "$as_me:6632: \"$ac_cpp conftest.$ac_ext\"") >&5
6633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6635 egrep -v '^ *\+' conftest.er1 >conftest.err
6637 cat conftest.err >&5
6638 echo "$as_me:6638: \$? = $ac_status" >&5
6639 (exit $ac_status); } >/dev/null; then
6640 if test -s conftest.err; then
6641 ac_cpp_err=$ac_c_preproc_warn_flag
6648 if test -z "$ac_cpp_err"; then
6649 ac_cv_header_stdc=yes
6651 echo "$as_me: failed program was:" >&5
6652 cat conftest.$ac_ext >&5
6653 ac_cv_header_stdc=no
6655 rm -f conftest.err conftest.$ac_ext
6657 if test $ac_cv_header_stdc = yes; then
6658 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6659 cat >conftest.$ac_ext <<_ACEOF
6660 #line 6660 "configure"
6661 #include "confdefs.h"
6665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6666 egrep "memchr" >/dev/null 2>&1; then
6669 ac_cv_header_stdc=no
6675 if test $ac_cv_header_stdc = yes; then
6676 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6677 cat >conftest.$ac_ext <<_ACEOF
6678 #line 6678 "configure"
6679 #include "confdefs.h"
6683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6684 egrep "free" >/dev/null 2>&1; then
6687 ac_cv_header_stdc=no
6693 if test $ac_cv_header_stdc = yes; then
6694 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6695 if test "$cross_compiling" = yes; then
6698 cat >conftest.$ac_ext <<_ACEOF
6699 #line 6699 "configure"
6700 #include "confdefs.h"
6702 #if ((' ' & 0x0FF) == 0x020)
6703 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6704 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6706 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6707 || ('j' <= (c) && (c) <= 'r') \
6708 || ('s' <= (c) && (c) <= 'z'))
6709 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6712 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6717 for (i = 0; i < 256; i++)
6718 if (XOR (islower (i), ISLOWER (i))
6719 || toupper (i) != TOUPPER (i))
6724 rm -f conftest$ac_exeext
6725 if { (eval echo "$as_me:6725: \"$ac_link\"") >&5
6726 (eval $ac_link) 2>&5
6728 echo "$as_me:6728: \$? = $ac_status" >&5
6729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6730 { (eval echo "$as_me:6730: \"$ac_try\"") >&5
6733 echo "$as_me:6733: \$? = $ac_status" >&5
6734 (exit $ac_status); }; }; then
6737 echo "$as_me: program exited with status $ac_status" >&5
6738 echo "$as_me: failed program was:" >&5
6739 cat conftest.$ac_ext >&5
6740 ac_cv_header_stdc=no
6742 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6746 echo "$as_me:6746: result: $ac_cv_header_stdc" >&5
6747 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6748 if test $ac_cv_header_stdc = yes; then
6750 cat >>confdefs.h <<\EOF
6751 #define STDC_HEADERS 1
6757 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6758 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6759 echo "$as_me:6759: checking for $ac_hdr that defines DIR" >&5
6760 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 cat >conftest.$ac_ext <<_ACEOF
6765 #line 6765 "configure"
6766 #include "confdefs.h"
6767 #include <sys/types.h>
6779 rm -f conftest.$ac_objext
6780 if { (eval echo "$as_me:6780: \"$ac_compile\"") >&5
6781 (eval $ac_compile) 2>&5
6783 echo "$as_me:6783: \$? = $ac_status" >&5
6784 (exit $ac_status); } &&
6785 { ac_try='test -s conftest.$ac_objext'
6786 { (eval echo "$as_me:6786: \"$ac_try\"") >&5
6789 echo "$as_me:6789: \$? = $ac_status" >&5
6790 (exit $ac_status); }; }; then
6791 eval "$as_ac_Header=yes"
6793 echo "$as_me: failed program was:" >&5
6794 cat conftest.$ac_ext >&5
6795 eval "$as_ac_Header=no"
6797 rm -f conftest.$ac_objext conftest.$ac_ext
6799 echo "$as_me:6799: result: `eval echo '${'$as_ac_Header'}'`" >&5
6800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6802 cat >>confdefs.h <<EOF
6803 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6806 ac_header_dirent=$ac_hdr; break
6810 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6811 if test $ac_header_dirent = dirent.h; then
6812 echo "$as_me:6812: checking for opendir in -ldir" >&5
6813 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
6814 if test "${ac_cv_lib_dir_opendir+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6817 ac_check_lib_save_LIBS=$LIBS
6819 cat >conftest.$ac_ext <<_ACEOF
6820 #line 6820 "configure"
6821 #include "confdefs.h"
6823 /* Override any gcc2 internal prototype to avoid an error. */
6827 /* We use char because int might match the return type of a gcc2
6828 builtin and then its argument prototype would still apply. */
6838 rm -f conftest.$ac_objext conftest$ac_exeext
6839 if { (eval echo "$as_me:6839: \"$ac_link\"") >&5
6840 (eval $ac_link) 2>&5
6842 echo "$as_me:6842: \$? = $ac_status" >&5
6843 (exit $ac_status); } &&
6844 { ac_try='test -s conftest$ac_exeext'
6845 { (eval echo "$as_me:6845: \"$ac_try\"") >&5
6848 echo "$as_me:6848: \$? = $ac_status" >&5
6849 (exit $ac_status); }; }; then
6850 ac_cv_lib_dir_opendir=yes
6852 echo "$as_me: failed program was:" >&5
6853 cat conftest.$ac_ext >&5
6854 ac_cv_lib_dir_opendir=no
6856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6857 LIBS=$ac_check_lib_save_LIBS
6859 echo "$as_me:6859: result: $ac_cv_lib_dir_opendir" >&5
6860 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
6861 if test $ac_cv_lib_dir_opendir = yes; then
6866 echo "$as_me:6866: checking for opendir in -lx" >&5
6867 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
6868 if test "${ac_cv_lib_x_opendir+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 ac_check_lib_save_LIBS=$LIBS
6873 cat >conftest.$ac_ext <<_ACEOF
6874 #line 6874 "configure"
6875 #include "confdefs.h"
6877 /* Override any gcc2 internal prototype to avoid an error. */
6881 /* We use char because int might match the return type of a gcc2
6882 builtin and then its argument prototype would still apply. */
6892 rm -f conftest.$ac_objext conftest$ac_exeext
6893 if { (eval echo "$as_me:6893: \"$ac_link\"") >&5
6894 (eval $ac_link) 2>&5
6896 echo "$as_me:6896: \$? = $ac_status" >&5
6897 (exit $ac_status); } &&
6898 { ac_try='test -s conftest$ac_exeext'
6899 { (eval echo "$as_me:6899: \"$ac_try\"") >&5
6902 echo "$as_me:6902: \$? = $ac_status" >&5
6903 (exit $ac_status); }; }; then
6904 ac_cv_lib_x_opendir=yes
6906 echo "$as_me: failed program was:" >&5
6907 cat conftest.$ac_ext >&5
6908 ac_cv_lib_x_opendir=no
6910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6911 LIBS=$ac_check_lib_save_LIBS
6913 echo "$as_me:6913: result: $ac_cv_lib_x_opendir" >&5
6914 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
6915 if test $ac_cv_lib_x_opendir = yes; then
6921 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
6923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6924 echo "$as_me:6924: checking for $ac_header" >&5
6925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 cat >conftest.$ac_ext <<_ACEOF
6930 #line 6930 "configure"
6931 #include "confdefs.h"
6932 #include <$ac_header>
6934 if { (eval echo "$as_me:6934: \"$ac_cpp conftest.$ac_ext\"") >&5
6935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6937 egrep -v '^ *\+' conftest.er1 >conftest.err
6939 cat conftest.err >&5
6940 echo "$as_me:6940: \$? = $ac_status" >&5
6941 (exit $ac_status); } >/dev/null; then
6942 if test -s conftest.err; then
6943 ac_cpp_err=$ac_c_preproc_warn_flag
6950 if test -z "$ac_cpp_err"; then
6951 eval "$as_ac_Header=yes"
6953 echo "$as_me: failed program was:" >&5
6954 cat conftest.$ac_ext >&5
6955 eval "$as_ac_Header=no"
6957 rm -f conftest.err conftest.$ac_ext
6959 echo "$as_me:6959: result: `eval echo '${'$as_ac_Header'}'`" >&5
6960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6962 cat >>confdefs.h <<EOF
6963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6969 if test "$OS" != "ultrix"; then
6970 echo "$as_me:6970: checking POSIX termios" >&5
6971 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
6972 if test "${ac_cv_sys_posix_termios+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
6975 cat >conftest.$ac_ext <<_ACEOF
6976 #line 6976 "configure"
6977 #include "confdefs.h"
6978 #include <sys/types.h>
6980 #include <termios.h>
6984 /* SunOS 4.0.3 has termios.h but not the library calls. */
6990 rm -f conftest.$ac_objext conftest$ac_exeext
6991 if { (eval echo "$as_me:6991: \"$ac_link\"") >&5
6992 (eval $ac_link) 2>&5
6994 echo "$as_me:6994: \$? = $ac_status" >&5
6995 (exit $ac_status); } &&
6996 { ac_try='test -s conftest$ac_exeext'
6997 { (eval echo "$as_me:6997: \"$ac_try\"") >&5
7000 echo "$as_me:7000: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
7002 ac_cv_sys_posix_termios=yes
7004 echo "$as_me: failed program was:" >&5
7005 cat conftest.$ac_ext >&5
7006 ac_cv_sys_posix_termios=no
7008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7010 echo "$as_me:7010: result: $ac_cv_sys_posix_termios" >&5
7011 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
7013 if test "$ac_cv_sys_posix_termios" = "yes"; then
7015 cat >>confdefs.h <<\EOF
7016 #define HAVE_TERMIOS_H 1
7021 for ac_header in termio.h
7023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7024 echo "$as_me:7024: checking for $ac_header" >&5
7025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 cat >conftest.$ac_ext <<_ACEOF
7030 #line 7030 "configure"
7031 #include "confdefs.h"
7032 #include <$ac_header>
7034 if { (eval echo "$as_me:7034: \"$ac_cpp conftest.$ac_ext\"") >&5
7035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7037 egrep -v '^ *\+' conftest.er1 >conftest.err
7039 cat conftest.err >&5
7040 echo "$as_me:7040: \$? = $ac_status" >&5
7041 (exit $ac_status); } >/dev/null; then
7042 if test -s conftest.err; then
7043 ac_cpp_err=$ac_c_preproc_warn_flag
7050 if test -z "$ac_cpp_err"; then
7051 eval "$as_ac_Header=yes"
7053 echo "$as_me: failed program was:" >&5
7054 cat conftest.$ac_ext >&5
7055 eval "$as_ac_Header=no"
7057 rm -f conftest.err conftest.$ac_ext
7059 echo "$as_me:7059: result: `eval echo '${'$as_ac_Header'}'`" >&5
7060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7062 cat >>confdefs.h <<EOF
7063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7071 if test "$with_logincap" = "yes"; then
7073 for ac_header in login_cap.h
7075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7076 echo "$as_me:7076: checking for $ac_header" >&5
7077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 cat >conftest.$ac_ext <<_ACEOF
7082 #line 7082 "configure"
7083 #include "confdefs.h"
7084 #include <$ac_header>
7086 if { (eval echo "$as_me:7086: \"$ac_cpp conftest.$ac_ext\"") >&5
7087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7089 egrep -v '^ *\+' conftest.er1 >conftest.err
7091 cat conftest.err >&5
7092 echo "$as_me:7092: \$? = $ac_status" >&5
7093 (exit $ac_status); } >/dev/null; then
7094 if test -s conftest.err; then
7095 ac_cpp_err=$ac_c_preproc_warn_flag
7102 if test -z "$ac_cpp_err"; then
7103 eval "$as_ac_Header=yes"
7105 echo "$as_me: failed program was:" >&5
7106 cat conftest.$ac_ext >&5
7107 eval "$as_ac_Header=no"
7109 rm -f conftest.err conftest.$ac_ext
7111 echo "$as_me:7111: result: `eval echo '${'$as_ac_Header'}'`" >&5
7112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7114 cat >>confdefs.h <<EOF
7115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7122 if test "$with_bsdauth" = "yes"; then
7123 echo "$as_me:7123: checking for bsd_auth.h" >&5
7124 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6
7125 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 cat >conftest.$ac_ext <<_ACEOF
7129 #line 7129 "configure"
7130 #include "confdefs.h"
7131 #include <bsd_auth.h>
7133 if { (eval echo "$as_me:7133: \"$ac_cpp conftest.$ac_ext\"") >&5
7134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7136 egrep -v '^ *\+' conftest.er1 >conftest.err
7138 cat conftest.err >&5
7139 echo "$as_me:7139: \$? = $ac_status" >&5
7140 (exit $ac_status); } >/dev/null; then
7141 if test -s conftest.err; then
7142 ac_cpp_err=$ac_c_preproc_warn_flag
7149 if test -z "$ac_cpp_err"; then
7150 ac_cv_header_bsd_auth_h=yes
7152 echo "$as_me: failed program was:" >&5
7153 cat conftest.$ac_ext >&5
7154 ac_cv_header_bsd_auth_h=no
7156 rm -f conftest.err conftest.$ac_ext
7158 echo "$as_me:7158: result: $ac_cv_header_bsd_auth_h" >&5
7159 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6
7160 if test $ac_cv_header_bsd_auth_h = yes; then
7162 cat >>confdefs.h <<\EOF
7163 #define HAVE_BSD_AUTH_H 1
7165 with_passwd=no; AUTH_OBJS=bsdauth.o
7169 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7171 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7172 inttypes.h stdint.h unistd.h
7174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7175 echo "$as_me:7175: checking for $ac_header" >&5
7176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 cat >conftest.$ac_ext <<_ACEOF
7181 #line 7181 "configure"
7182 #include "confdefs.h"
7183 $ac_includes_default
7184 #include <$ac_header>
7186 rm -f conftest.$ac_objext
7187 if { (eval echo "$as_me:7187: \"$ac_compile\"") >&5
7188 (eval $ac_compile) 2>&5
7190 echo "$as_me:7190: \$? = $ac_status" >&5
7191 (exit $ac_status); } &&
7192 { ac_try='test -s conftest.$ac_objext'
7193 { (eval echo "$as_me:7193: \"$ac_try\"") >&5
7196 echo "$as_me:7196: \$? = $ac_status" >&5
7197 (exit $ac_status); }; }; then
7198 eval "$as_ac_Header=yes"
7200 echo "$as_me: failed program was:" >&5
7201 cat conftest.$ac_ext >&5
7202 eval "$as_ac_Header=no"
7204 rm -f conftest.$ac_objext conftest.$ac_ext
7206 echo "$as_me:7206: result: `eval echo '${'$as_ac_Header'}'`" >&5
7207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7209 cat >>confdefs.h <<EOF
7210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7216 echo "$as_me:7216: checking for mode_t" >&5
7217 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7218 if test "${ac_cv_type_mode_t+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 cat >conftest.$ac_ext <<_ACEOF
7222 #line 7222 "configure"
7223 #include "confdefs.h"
7224 $ac_includes_default
7230 if (sizeof (mode_t))
7236 rm -f conftest.$ac_objext
7237 if { (eval echo "$as_me:7237: \"$ac_compile\"") >&5
7238 (eval $ac_compile) 2>&5
7240 echo "$as_me:7240: \$? = $ac_status" >&5
7241 (exit $ac_status); } &&
7242 { ac_try='test -s conftest.$ac_objext'
7243 { (eval echo "$as_me:7243: \"$ac_try\"") >&5
7246 echo "$as_me:7246: \$? = $ac_status" >&5
7247 (exit $ac_status); }; }; then
7248 ac_cv_type_mode_t=yes
7250 echo "$as_me: failed program was:" >&5
7251 cat conftest.$ac_ext >&5
7252 ac_cv_type_mode_t=no
7254 rm -f conftest.$ac_objext conftest.$ac_ext
7256 echo "$as_me:7256: result: $ac_cv_type_mode_t" >&5
7257 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7258 if test $ac_cv_type_mode_t = yes; then
7262 cat >>confdefs.h <<EOF
7268 echo "$as_me:7268: checking for uid_t in sys/types.h" >&5
7269 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7270 if test "${ac_cv_type_uid_t+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 cat >conftest.$ac_ext <<_ACEOF
7274 #line 7274 "configure"
7275 #include "confdefs.h"
7276 #include <sys/types.h>
7279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7280 egrep "uid_t" >/dev/null 2>&1; then
7281 ac_cv_type_uid_t=yes
7288 echo "$as_me:7288: result: $ac_cv_type_uid_t" >&5
7289 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7290 if test $ac_cv_type_uid_t = no; then
7292 cat >>confdefs.h <<\EOF
7296 cat >>confdefs.h <<\EOF
7302 echo "$as_me:7302: checking for sig_atomic_t" >&5
7303 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
7304 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 cat >conftest.$ac_ext <<_ACEOF
7308 #line 7308 "configure"
7309 #include "confdefs.h"
7310 #include <sys/types.h>
7316 if ((sig_atomic_t *) 0)
7318 if (sizeof (sig_atomic_t))
7324 rm -f conftest.$ac_objext
7325 if { (eval echo "$as_me:7325: \"$ac_compile\"") >&5
7326 (eval $ac_compile) 2>&5
7328 echo "$as_me:7328: \$? = $ac_status" >&5
7329 (exit $ac_status); } &&
7330 { ac_try='test -s conftest.$ac_objext'
7331 { (eval echo "$as_me:7331: \"$ac_try\"") >&5
7334 echo "$as_me:7334: \$? = $ac_status" >&5
7335 (exit $ac_status); }; }; then
7336 ac_cv_type_sig_atomic_t=yes
7338 echo "$as_me: failed program was:" >&5
7339 cat conftest.$ac_ext >&5
7340 ac_cv_type_sig_atomic_t=no
7342 rm -f conftest.$ac_objext conftest.$ac_ext
7344 echo "$as_me:7344: result: $ac_cv_type_sig_atomic_t" >&5
7345 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
7346 if test $ac_cv_type_sig_atomic_t = yes; then
7348 cat >>confdefs.h <<EOF
7349 #define HAVE_SIG_ATOMIC_T 1
7354 cat >>confdefs.h <<\EOF
7355 #define sig_atomic_t int
7360 echo "$as_me:7360: checking for sigaction_t" >&5
7361 echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6
7362 if test "${ac_cv_type_sigaction_t+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 cat >conftest.$ac_ext <<_ACEOF
7366 #line 7366 "configure"
7367 #include "confdefs.h"
7368 #include <sys/types.h>
7374 if ((sigaction_t *) 0)
7376 if (sizeof (sigaction_t))
7382 rm -f conftest.$ac_objext
7383 if { (eval echo "$as_me:7383: \"$ac_compile\"") >&5
7384 (eval $ac_compile) 2>&5
7386 echo "$as_me:7386: \$? = $ac_status" >&5
7387 (exit $ac_status); } &&
7388 { ac_try='test -s conftest.$ac_objext'
7389 { (eval echo "$as_me:7389: \"$ac_try\"") >&5
7392 echo "$as_me:7392: \$? = $ac_status" >&5
7393 (exit $ac_status); }; }; then
7394 ac_cv_type_sigaction_t=yes
7396 echo "$as_me: failed program was:" >&5
7397 cat conftest.$ac_ext >&5
7398 ac_cv_type_sigaction_t=no
7400 rm -f conftest.$ac_objext conftest.$ac_ext
7402 echo "$as_me:7402: result: $ac_cv_type_sigaction_t" >&5
7403 echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6
7404 if test $ac_cv_type_sigaction_t = yes; then
7406 cat >>confdefs.h <<EOF
7407 #define HAVE_SIGACTION_T 1
7410 cat >>confdefs.h <<\EOF
7411 #define HAVE_SIGACTION_T 1
7416 echo "$as_me:7416: checking for size_t" >&5
7417 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7418 if test "${sudo_cv_type_size_t+set}" = set; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 cat >conftest.$ac_ext <<_ACEOF
7422 #line 7422 "configure"
7423 #include "confdefs.h"
7424 #include <sys/types.h>
7433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7434 egrep "size_t" >/dev/null 2>&1; then
7435 sudo_cv_type_size_t=yes
7437 sudo_cv_type_size_t=no
7442 echo "$as_me:7442: result: $sudo_cv_type_size_t" >&5
7443 echo "${ECHO_T}$sudo_cv_type_size_t" >&6
7444 if test $sudo_cv_type_size_t = no; then
7446 cat >>confdefs.h <<\EOF
7452 echo "$as_me:7452: checking for ssize_t" >&5
7453 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7454 if test "${sudo_cv_type_ssize_t+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 cat >conftest.$ac_ext <<_ACEOF
7458 #line 7458 "configure"
7459 #include "confdefs.h"
7460 #include <sys/types.h>
7469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7470 egrep "ssize_t" >/dev/null 2>&1; then
7471 sudo_cv_type_ssize_t=yes
7473 sudo_cv_type_ssize_t=no
7478 echo "$as_me:7478: result: $sudo_cv_type_ssize_t" >&5
7479 echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6
7480 if test $sudo_cv_type_ssize_t = no; then
7482 cat >>confdefs.h <<\EOF
7488 echo "$as_me:7488: checking for dev_t" >&5
7489 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
7490 if test "${sudo_cv_type_dev_t+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 cat >conftest.$ac_ext <<_ACEOF
7494 #line 7494 "configure"
7495 #include "confdefs.h"
7496 #include <sys/types.h>
7505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7506 egrep "dev_t" >/dev/null 2>&1; then
7507 sudo_cv_type_dev_t=yes
7509 sudo_cv_type_dev_t=no
7514 echo "$as_me:7514: result: $sudo_cv_type_dev_t" >&5
7515 echo "${ECHO_T}$sudo_cv_type_dev_t" >&6
7516 if test $sudo_cv_type_dev_t = no; then
7518 cat >>confdefs.h <<\EOF
7524 echo "$as_me:7524: checking for ino_t" >&5
7525 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
7526 if test "${sudo_cv_type_ino_t+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 cat >conftest.$ac_ext <<_ACEOF
7530 #line 7530 "configure"
7531 #include "confdefs.h"
7532 #include <sys/types.h>
7541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7542 egrep "ino_t" >/dev/null 2>&1; then
7543 sudo_cv_type_ino_t=yes
7545 sudo_cv_type_ino_t=no
7550 echo "$as_me:7550: result: $sudo_cv_type_ino_t" >&5
7551 echo "${ECHO_T}$sudo_cv_type_ino_t" >&6
7552 if test $sudo_cv_type_ino_t = no; then
7554 cat >>confdefs.h <<\EOF
7555 #define ino_t unsigned int
7560 echo "$as_me:7560: checking for full void implementation" >&5
7561 echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6
7562 cat >conftest.$ac_ext <<_ACEOF
7563 #line 7563 "configure"
7564 #include "confdefs.h"
7570 foo = (void *)0; (void *)"test";
7575 rm -f conftest.$ac_objext
7576 if { (eval echo "$as_me:7576: \"$ac_compile\"") >&5
7577 (eval $ac_compile) 2>&5
7579 echo "$as_me:7579: \$? = $ac_status" >&5
7580 (exit $ac_status); } &&
7581 { ac_try='test -s conftest.$ac_objext'
7582 { (eval echo "$as_me:7582: \"$ac_try\"") >&5
7585 echo "$as_me:7585: \$? = $ac_status" >&5
7586 (exit $ac_status); }; }; then
7588 cat >>confdefs.h <<\EOF
7592 echo "$as_me:7592: result: yes" >&5
7593 echo "${ECHO_T}yes" >&6
7595 echo "$as_me: failed program was:" >&5
7596 cat conftest.$ac_ext >&5
7597 cat >>confdefs.h <<\EOF
7601 echo "$as_me:7601: result: no" >&5
7602 echo "${ECHO_T}no" >&6
7604 rm -f conftest.$ac_objext conftest.$ac_ext
7606 echo "$as_me:7606: checking max length of uid_t" >&5
7607 echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6
7608 if test "${sudo_cv_uid_t_len+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 if test "$cross_compiling" = yes; then
7613 { { echo "$as_me:7613: error: cannot run test program while cross compiling" >&5
7614 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7615 { (exit 1); exit 1; }; }
7617 cat >conftest.$ac_ext <<_ACEOF
7618 #line 7618 "configure"
7619 #include "confdefs.h"
7623 #include <sys/types.h>
7624 #include <sys/param.h>
7628 uid_t u = (uid_t) -1;
7630 if ((f = fopen("conftestdata", "w")) == NULL)
7633 (void) sprintf(b, "%u", u);
7634 (void) fprintf(f, "%d\n", strlen(b));
7639 rm -f conftest$ac_exeext
7640 if { (eval echo "$as_me:7640: \"$ac_link\"") >&5
7641 (eval $ac_link) 2>&5
7643 echo "$as_me:7643: \$? = $ac_status" >&5
7644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7645 { (eval echo "$as_me:7645: \"$ac_try\"") >&5
7648 echo "$as_me:7648: \$? = $ac_status" >&5
7649 (exit $ac_status); }; }; then
7650 sudo_cv_uid_t_len=`cat conftestdata`
7652 echo "$as_me: program exited with status $ac_status" >&5
7653 echo "$as_me: failed program was:" >&5
7654 cat conftest.$ac_ext >&5
7655 sudo_cv_uid_t_len=10
7657 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7663 echo "$as_me:7663: result: $sudo_cv_uid_t_len" >&5
7664 echo "${ECHO_T}$sudo_cv_uid_t_len" >&6
7666 cat >>confdefs.h <<EOF
7667 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
7670 echo "$as_me:7670: checking for long long support" >&5
7671 echo $ECHO_N "checking for long long support... $ECHO_C" >&6
7672 cat >conftest.$ac_ext <<_ACEOF
7673 #line 7673 "configure"
7674 #include "confdefs.h"
7679 long long foo = 1000; foo /= 10;
7684 rm -f conftest.$ac_objext conftest$ac_exeext
7685 if { (eval echo "$as_me:7685: \"$ac_link\"") >&5
7686 (eval $ac_link) 2>&5
7688 echo "$as_me:7688: \$? = $ac_status" >&5
7689 (exit $ac_status); } &&
7690 { ac_try='test -s conftest$ac_exeext'
7691 { (eval echo "$as_me:7691: \"$ac_try\"") >&5
7694 echo "$as_me:7694: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7697 cat >>confdefs.h <<\EOF
7698 #define HAVE_LONG_LONG 1
7701 if test "$cross_compiling" = yes; then
7702 { { echo "$as_me:7702: error: cannot run test program while cross compiling" >&5
7703 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7704 { (exit 1); exit 1; }; }
7706 cat >conftest.$ac_ext <<_ACEOF
7707 #line 7707 "configure"
7708 #include "confdefs.h"
7709 main() {if (sizeof(long long) == sizeof(long)) exit(0); else exit(1);}
7711 rm -f conftest$ac_exeext
7712 if { (eval echo "$as_me:7712: \"$ac_link\"") >&5
7713 (eval $ac_link) 2>&5
7715 echo "$as_me:7715: \$? = $ac_status" >&5
7716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7717 { (eval echo "$as_me:7717: \"$ac_try\"") >&5
7720 echo "$as_me:7720: \$? = $ac_status" >&5
7721 (exit $ac_status); }; }; then
7723 cat >>confdefs.h <<\EOF
7724 #define LONG_IS_QUAD 1
7728 echo "$as_me: program exited with status $ac_status" >&5
7729 echo "$as_me: failed program was:" >&5
7730 cat conftest.$ac_ext >&5
7732 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7734 echo "$as_me:7734: result: yes" >&5
7735 echo "${ECHO_T}yes" >&6
7737 echo "$as_me: failed program was:" >&5
7738 cat conftest.$ac_ext >&5
7739 echo "$as_me:7739: result: no" >&5
7740 echo "${ECHO_T}no" >&6
7742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7743 echo "$as_me:7743: checking for sa_len field in struct sockaddr" >&5
7744 echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6
7745 if test "${sudo_cv_sock_sa_len+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 if test "$cross_compiling" = yes; then
7749 sudo_cv_sock_sa_len=no
7751 cat >conftest.$ac_ext <<_ACEOF
7752 #line 7752 "configure"
7753 #include "confdefs.h"
7754 #include <sys/types.h>
7755 #include <sys/socket.h>
7762 rm -f conftest$ac_exeext
7763 if { (eval echo "$as_me:7763: \"$ac_link\"") >&5
7764 (eval $ac_link) 2>&5
7766 echo "$as_me:7766: \$? = $ac_status" >&5
7767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7768 { (eval echo "$as_me:7768: \"$ac_try\"") >&5
7771 echo "$as_me:7771: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7773 sudo_cv_sock_sa_len=yes
7775 echo "$as_me: program exited with status $ac_status" >&5
7776 echo "$as_me: failed program was:" >&5
7777 cat conftest.$ac_ext >&5
7778 sudo_cv_sock_sa_len=no
7780 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7782 rm -f core core.* *.core
7784 echo "$as_me:7784: result: $sudo_cv_sock_sa_len" >&5
7785 echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6
7786 if test $sudo_cv_sock_sa_len = yes; then
7788 cat >>confdefs.h <<\EOF
7789 #define HAVE_SA_LEN 1
7796 *) echo "$as_me:7796: checking return type of signal handlers" >&5
7797 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7798 if test "${ac_cv_type_signal+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 cat >conftest.$ac_ext <<_ACEOF
7802 #line 7802 "configure"
7803 #include "confdefs.h"
7804 #include <sys/types.h>
7810 extern "C" void (*signal (int, void (*)(int)))(int);
7812 void (*signal ()) ();
7823 rm -f conftest.$ac_objext
7824 if { (eval echo "$as_me:7824: \"$ac_compile\"") >&5
7825 (eval $ac_compile) 2>&5
7827 echo "$as_me:7827: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try='test -s conftest.$ac_objext'
7830 { (eval echo "$as_me:7830: \"$ac_try\"") >&5
7833 echo "$as_me:7833: \$? = $ac_status" >&5
7834 (exit $ac_status); }; }; then
7835 ac_cv_type_signal=void
7837 echo "$as_me: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7839 ac_cv_type_signal=int
7841 rm -f conftest.$ac_objext conftest.$ac_ext
7843 echo "$as_me:7843: result: $ac_cv_type_signal" >&5
7844 echo "${ECHO_T}$ac_cv_type_signal" >&6
7846 cat >>confdefs.h <<EOF
7847 #define RETSIGTYPE $ac_cv_type_signal
7853 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
7854 seteuid setegid strftime setrlimit initgroups fstat
7856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7857 echo "$as_me:7857: checking for $ac_func" >&5
7858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7859 if eval "test \"\${$as_ac_var+set}\" = set"; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 cat >conftest.$ac_ext <<_ACEOF
7863 #line 7863 "configure"
7864 #include "confdefs.h"
7865 /* System header to define __stub macros and hopefully few prototypes,
7866 which can conflict with char $ac_func (); below. */
7868 /* Override any gcc2 internal prototype to avoid an error. */
7872 /* We use char because int might match the return type of a gcc2
7873 builtin and then its argument prototype would still apply. */
7880 /* The GNU C library defines this for functions which it implements
7881 to always fail with ENOSYS. Some functions are actually named
7882 something starting with __ and the normal name is an alias. */
7883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7893 rm -f conftest.$ac_objext conftest$ac_exeext
7894 if { (eval echo "$as_me:7894: \"$ac_link\"") >&5
7895 (eval $ac_link) 2>&5
7897 echo "$as_me:7897: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -s conftest$ac_exeext'
7900 { (eval echo "$as_me:7900: \"$ac_try\"") >&5
7903 echo "$as_me:7903: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 eval "$as_ac_var=yes"
7907 echo "$as_me: failed program was:" >&5
7908 cat conftest.$ac_ext >&5
7909 eval "$as_ac_var=no"
7911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7913 echo "$as_me:7913: result: `eval echo '${'$as_ac_var'}'`" >&5
7914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7915 if test `eval echo '${'$as_ac_var'}'` = yes; then
7916 cat >>confdefs.h <<EOF
7917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7923 if test -z "$BROKEN_SETREUID"; then
7925 for ac_func in setreuid
7927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7928 echo "$as_me:7928: checking for $ac_func" >&5
7929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7930 if eval "test \"\${$as_ac_var+set}\" = set"; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 cat >conftest.$ac_ext <<_ACEOF
7934 #line 7934 "configure"
7935 #include "confdefs.h"
7936 /* System header to define __stub macros and hopefully few prototypes,
7937 which can conflict with char $ac_func (); below. */
7939 /* Override any gcc2 internal prototype to avoid an error. */
7943 /* We use char because int might match the return type of a gcc2
7944 builtin and then its argument prototype would still apply. */
7951 /* The GNU C library defines this for functions which it implements
7952 to always fail with ENOSYS. Some functions are actually named
7953 something starting with __ and the normal name is an alias. */
7954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7964 rm -f conftest.$ac_objext conftest$ac_exeext
7965 if { (eval echo "$as_me:7965: \"$ac_link\"") >&5
7966 (eval $ac_link) 2>&5
7968 echo "$as_me:7968: \$? = $ac_status" >&5
7969 (exit $ac_status); } &&
7970 { ac_try='test -s conftest$ac_exeext'
7971 { (eval echo "$as_me:7971: \"$ac_try\"") >&5
7974 echo "$as_me:7974: \$? = $ac_status" >&5
7975 (exit $ac_status); }; }; then
7976 eval "$as_ac_var=yes"
7978 echo "$as_me: failed program was:" >&5
7979 cat conftest.$ac_ext >&5
7980 eval "$as_ac_var=no"
7982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7984 echo "$as_me:7984: result: `eval echo '${'$as_ac_var'}'`" >&5
7985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7986 if test `eval echo '${'$as_ac_var'}'` = yes; then
7987 cat >>confdefs.h <<EOF
7988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7995 if test X"$with_interfaces" != X"no"; then
7997 for ac_func in getifaddrs
7999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8000 echo "$as_me:8000: checking for $ac_func" >&5
8001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8002 if eval "test \"\${$as_ac_var+set}\" = set"; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8005 cat >conftest.$ac_ext <<_ACEOF
8006 #line 8006 "configure"
8007 #include "confdefs.h"
8008 /* System header to define __stub macros and hopefully few prototypes,
8009 which can conflict with char $ac_func (); below. */
8011 /* Override any gcc2 internal prototype to avoid an error. */
8015 /* We use char because int might match the return type of a gcc2
8016 builtin and then its argument prototype would still apply. */
8023 /* The GNU C library defines this for functions which it implements
8024 to always fail with ENOSYS. Some functions are actually named
8025 something starting with __ and the normal name is an alias. */
8026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8036 rm -f conftest.$ac_objext conftest$ac_exeext
8037 if { (eval echo "$as_me:8037: \"$ac_link\"") >&5
8038 (eval $ac_link) 2>&5
8040 echo "$as_me:8040: \$? = $ac_status" >&5
8041 (exit $ac_status); } &&
8042 { ac_try='test -s conftest$ac_exeext'
8043 { (eval echo "$as_me:8043: \"$ac_try\"") >&5
8046 echo "$as_me:8046: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8048 eval "$as_ac_var=yes"
8050 echo "$as_me: failed program was:" >&5
8051 cat conftest.$ac_ext >&5
8052 eval "$as_ac_var=no"
8054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8056 echo "$as_me:8056: result: `eval echo '${'$as_ac_var'}'`" >&5
8057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8058 if test `eval echo '${'$as_ac_var'}'` = yes; then
8059 cat >>confdefs.h <<EOF
8060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8063 for ac_func in freeifaddrs
8065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8066 echo "$as_me:8066: checking for $ac_func" >&5
8067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8068 if eval "test \"\${$as_ac_var+set}\" = set"; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 cat >conftest.$ac_ext <<_ACEOF
8072 #line 8072 "configure"
8073 #include "confdefs.h"
8074 /* System header to define __stub macros and hopefully few prototypes
8076 which can conflict with char $ac_func (); below. */
8078 /* Override any gcc2 internal prototype to avoid an error. */
8082 /* We use char because int might match the return type of a gcc2
8083 builtin and then its argument prototype would still apply. */
8090 /* The GNU C library defines this for functions which it implements
8091 to always fail with ENOSYS. Some functions are actually named
8092 something starting with __ and the normal name is an alias. */
8093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8103 rm -f conftest.$ac_objext conftest$ac_exeext
8104 if { (eval echo "$as_me:8104: \"$ac_link\"") >&5
8105 (eval $ac_link) 2>&5
8107 echo "$as_me:8107: \$? = $ac_status" >&5
8108 (exit $ac_status); } &&
8109 { ac_try='test -s conftest$ac_exeext'
8110 { (eval echo "$as_me:8110: \"$ac_try\"") >&5
8113 echo "$as_me:8113: \$? = $ac_status" >&5
8114 (exit $ac_status); }; }; then
8115 eval "$as_ac_var=yes"
8117 echo "$as_me: failed program was:" >&5
8118 cat conftest.$ac_ext >&5
8119 eval "$as_ac_var=no"
8121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8123 echo "$as_me:8123: result: `eval echo '${'$as_ac_var'}'`" >&5
8124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8125 if test `eval echo '${'$as_ac_var'}'` = yes; then
8126 cat >>confdefs.h <<EOF
8127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8137 if test -n "$SECUREWARE"; then
8139 for ac_func in bigcrypt set_auth_parameters initprivs
8141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8142 echo "$as_me:8142: checking for $ac_func" >&5
8143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8144 if eval "test \"\${$as_ac_var+set}\" = set"; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 cat >conftest.$ac_ext <<_ACEOF
8148 #line 8148 "configure"
8149 #include "confdefs.h"
8150 /* System header to define __stub macros and hopefully few prototypes,
8151 which can conflict with char $ac_func (); below. */
8153 /* Override any gcc2 internal prototype to avoid an error. */
8157 /* We use char because int might match the return type of a gcc2
8158 builtin and then its argument prototype would still apply. */
8165 /* The GNU C library defines this for functions which it implements
8166 to always fail with ENOSYS. Some functions are actually named
8167 something starting with __ and the normal name is an alias. */
8168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8178 rm -f conftest.$ac_objext conftest$ac_exeext
8179 if { (eval echo "$as_me:8179: \"$ac_link\"") >&5
8180 (eval $ac_link) 2>&5
8182 echo "$as_me:8182: \$? = $ac_status" >&5
8183 (exit $ac_status); } &&
8184 { ac_try='test -s conftest$ac_exeext'
8185 { (eval echo "$as_me:8185: \"$ac_try\"") >&5
8188 echo "$as_me:8188: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 eval "$as_ac_var=yes"
8192 echo "$as_me: failed program was:" >&5
8193 cat conftest.$ac_ext >&5
8194 eval "$as_ac_var=no"
8196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8198 echo "$as_me:8198: result: `eval echo '${'$as_ac_var'}'`" >&5
8199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8200 if test `eval echo '${'$as_ac_var'}'` = yes; then
8201 cat >>confdefs.h <<EOF
8202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8209 if test -z "$BROKEN_GETCWD"; then
8211 for ac_func in getcwd
8213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8214 echo "$as_me:8214: checking for $ac_func" >&5
8215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8216 if eval "test \"\${$as_ac_var+set}\" = set"; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 cat >conftest.$ac_ext <<_ACEOF
8220 #line 8220 "configure"
8221 #include "confdefs.h"
8222 /* System header to define __stub macros and hopefully few prototypes,
8223 which can conflict with char $ac_func (); below. */
8225 /* Override any gcc2 internal prototype to avoid an error. */
8229 /* We use char because int might match the return type of a gcc2
8230 builtin and then its argument prototype would still apply. */
8237 /* The GNU C library defines this for functions which it implements
8238 to always fail with ENOSYS. Some functions are actually named
8239 something starting with __ and the normal name is an alias. */
8240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8250 rm -f conftest.$ac_objext conftest$ac_exeext
8251 if { (eval echo "$as_me:8251: \"$ac_link\"") >&5
8252 (eval $ac_link) 2>&5
8254 echo "$as_me:8254: \$? = $ac_status" >&5
8255 (exit $ac_status); } &&
8256 { ac_try='test -s conftest$ac_exeext'
8257 { (eval echo "$as_me:8257: \"$ac_try\"") >&5
8260 echo "$as_me:8260: \$? = $ac_status" >&5
8261 (exit $ac_status); }; }; then
8262 eval "$as_ac_var=yes"
8264 echo "$as_me: failed program was:" >&5
8265 cat conftest.$ac_ext >&5
8266 eval "$as_ac_var=no"
8268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8270 echo "$as_me:8270: result: `eval echo '${'$as_ac_var'}'`" >&5
8271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8272 if test `eval echo '${'$as_ac_var'}'` = yes; then
8273 cat >>confdefs.h <<EOF
8274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8278 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8284 for ac_func in lockf flock
8286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8287 echo "$as_me:8287: checking for $ac_func" >&5
8288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8289 if eval "test \"\${$as_ac_var+set}\" = set"; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 cat >conftest.$ac_ext <<_ACEOF
8293 #line 8293 "configure"
8294 #include "confdefs.h"
8295 /* System header to define __stub macros and hopefully few prototypes,
8296 which can conflict with char $ac_func (); below. */
8298 /* Override any gcc2 internal prototype to avoid an error. */
8302 /* We use char because int might match the return type of a gcc2
8303 builtin and then its argument prototype would still apply. */
8310 /* The GNU C library defines this for functions which it implements
8311 to always fail with ENOSYS. Some functions are actually named
8312 something starting with __ and the normal name is an alias. */
8313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8323 rm -f conftest.$ac_objext conftest$ac_exeext
8324 if { (eval echo "$as_me:8324: \"$ac_link\"") >&5
8325 (eval $ac_link) 2>&5
8327 echo "$as_me:8327: \$? = $ac_status" >&5
8328 (exit $ac_status); } &&
8329 { ac_try='test -s conftest$ac_exeext'
8330 { (eval echo "$as_me:8330: \"$ac_try\"") >&5
8333 echo "$as_me:8333: \$? = $ac_status" >&5
8334 (exit $ac_status); }; }; then
8335 eval "$as_ac_var=yes"
8337 echo "$as_me: failed program was:" >&5
8338 cat conftest.$ac_ext >&5
8339 eval "$as_ac_var=no"
8341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8343 echo "$as_me:8343: result: `eval echo '${'$as_ac_var'}'`" >&5
8344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8345 if test `eval echo '${'$as_ac_var'}'` = yes; then
8346 cat >>confdefs.h <<EOF
8347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8353 for ac_func in waitpid wait3
8355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8356 echo "$as_me:8356: checking for $ac_func" >&5
8357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8358 if eval "test \"\${$as_ac_var+set}\" = set"; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 cat >conftest.$ac_ext <<_ACEOF
8362 #line 8362 "configure"
8363 #include "confdefs.h"
8364 /* System header to define __stub macros and hopefully few prototypes,
8365 which can conflict with char $ac_func (); below. */
8367 /* Override any gcc2 internal prototype to avoid an error. */
8371 /* We use char because int might match the return type of a gcc2
8372 builtin and then its argument prototype would still apply. */
8379 /* The GNU C library defines this for functions which it implements
8380 to always fail with ENOSYS. Some functions are actually named
8381 something starting with __ and the normal name is an alias. */
8382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8392 rm -f conftest.$ac_objext conftest$ac_exeext
8393 if { (eval echo "$as_me:8393: \"$ac_link\"") >&5
8394 (eval $ac_link) 2>&5
8396 echo "$as_me:8396: \$? = $ac_status" >&5
8397 (exit $ac_status); } &&
8398 { ac_try='test -s conftest$ac_exeext'
8399 { (eval echo "$as_me:8399: \"$ac_try\"") >&5
8402 echo "$as_me:8402: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 eval "$as_ac_var=yes"
8406 echo "$as_me: failed program was:" >&5
8407 cat conftest.$ac_ext >&5
8408 eval "$as_ac_var=no"
8410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8412 echo "$as_me:8412: result: `eval echo '${'$as_ac_var'}'`" >&5
8413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8414 if test `eval echo '${'$as_ac_var'}'` = yes; then
8415 cat >>confdefs.h <<EOF
8416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8422 for ac_func in innetgr _innetgr
8424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8425 echo "$as_me:8425: checking for $ac_func" >&5
8426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8427 if eval "test \"\${$as_ac_var+set}\" = set"; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8430 cat >conftest.$ac_ext <<_ACEOF
8431 #line 8431 "configure"
8432 #include "confdefs.h"
8433 /* System header to define __stub macros and hopefully few prototypes,
8434 which can conflict with char $ac_func (); below. */
8436 /* Override any gcc2 internal prototype to avoid an error. */
8440 /* We use char because int might match the return type of a gcc2
8441 builtin and then its argument prototype would still apply. */
8448 /* The GNU C library defines this for functions which it implements
8449 to always fail with ENOSYS. Some functions are actually named
8450 something starting with __ and the normal name is an alias. */
8451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8461 rm -f conftest.$ac_objext conftest$ac_exeext
8462 if { (eval echo "$as_me:8462: \"$ac_link\"") >&5
8463 (eval $ac_link) 2>&5
8465 echo "$as_me:8465: \$? = $ac_status" >&5
8466 (exit $ac_status); } &&
8467 { ac_try='test -s conftest$ac_exeext'
8468 { (eval echo "$as_me:8468: \"$ac_try\"") >&5
8471 echo "$as_me:8471: \$? = $ac_status" >&5
8472 (exit $ac_status); }; }; then
8473 eval "$as_ac_var=yes"
8475 echo "$as_me: failed program was:" >&5
8476 cat conftest.$ac_ext >&5
8477 eval "$as_ac_var=no"
8479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8481 echo "$as_me:8481: result: `eval echo '${'$as_ac_var'}'`" >&5
8482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8483 if test `eval echo '${'$as_ac_var'}'` = yes; then
8484 cat >>confdefs.h <<EOF
8485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8488 for ac_func in getdomainname
8490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8491 echo "$as_me:8491: checking for $ac_func" >&5
8492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8493 if eval "test \"\${$as_ac_var+set}\" = set"; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 cat >conftest.$ac_ext <<_ACEOF
8497 #line 8497 "configure"
8498 #include "confdefs.h"
8499 /* System header to define __stub macros and hopefully few prototypes
8501 which can conflict with char $ac_func (); below. */
8503 /* Override any gcc2 internal prototype to avoid an error. */
8507 /* We use char because int might match the return type of a gcc2
8508 builtin and then its argument prototype would still apply. */
8515 /* The GNU C library defines this for functions which it implements
8516 to always fail with ENOSYS. Some functions are actually named
8517 something starting with __ and the normal name is an alias. */
8518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8528 rm -f conftest.$ac_objext conftest$ac_exeext
8529 if { (eval echo "$as_me:8529: \"$ac_link\"") >&5
8530 (eval $ac_link) 2>&5
8532 echo "$as_me:8532: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try='test -s conftest$ac_exeext'
8535 { (eval echo "$as_me:8535: \"$ac_try\"") >&5
8538 echo "$as_me:8538: \$? = $ac_status" >&5
8539 (exit $ac_status); }; }; then
8540 eval "$as_ac_var=yes"
8542 echo "$as_me: failed program was:" >&5
8543 cat conftest.$ac_ext >&5
8544 eval "$as_ac_var=no"
8546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8548 echo "$as_me:8548: result: `eval echo '${'$as_ac_var'}'`" >&5
8549 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8550 if test `eval echo '${'$as_ac_var'}'` = yes; then
8551 cat >>confdefs.h <<EOF
8552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8561 for ac_func in lsearch
8563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8564 echo "$as_me:8564: checking for $ac_func" >&5
8565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8566 if eval "test \"\${$as_ac_var+set}\" = set"; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8569 cat >conftest.$ac_ext <<_ACEOF
8570 #line 8570 "configure"
8571 #include "confdefs.h"
8572 /* System header to define __stub macros and hopefully few prototypes,
8573 which can conflict with char $ac_func (); below. */
8575 /* Override any gcc2 internal prototype to avoid an error. */
8579 /* We use char because int might match the return type of a gcc2
8580 builtin and then its argument prototype would still apply. */
8587 /* The GNU C library defines this for functions which it implements
8588 to always fail with ENOSYS. Some functions are actually named
8589 something starting with __ and the normal name is an alias. */
8590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (eval echo "$as_me:8601: \"$ac_link\"") >&5
8602 (eval $ac_link) 2>&5
8604 echo "$as_me:8604: \$? = $ac_status" >&5
8605 (exit $ac_status); } &&
8606 { ac_try='test -s conftest$ac_exeext'
8607 { (eval echo "$as_me:8607: \"$ac_try\"") >&5
8610 echo "$as_me:8610: \$? = $ac_status" >&5
8611 (exit $ac_status); }; }; then
8612 eval "$as_ac_var=yes"
8614 echo "$as_me: failed program was:" >&5
8615 cat conftest.$ac_ext >&5
8616 eval "$as_ac_var=no"
8618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8620 echo "$as_me:8620: result: `eval echo '${'$as_ac_var'}'`" >&5
8621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8622 if test `eval echo '${'$as_ac_var'}'` = yes; then
8623 cat >>confdefs.h <<EOF
8624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8628 echo "$as_me:8628: checking for lsearch in -lcompat" >&5
8629 echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6
8630 if test "${ac_cv_lib_compat_lsearch+set}" = set; then
8631 echo $ECHO_N "(cached) $ECHO_C" >&6
8633 ac_check_lib_save_LIBS=$LIBS
8634 LIBS="-lcompat $LIBS"
8635 cat >conftest.$ac_ext <<_ACEOF
8636 #line 8636 "configure"
8637 #include "confdefs.h"
8639 /* Override any gcc2 internal prototype to avoid an error. */
8643 /* We use char because int might match the return type of a gcc2
8644 builtin and then its argument prototype would still apply. */
8654 rm -f conftest.$ac_objext conftest$ac_exeext
8655 if { (eval echo "$as_me:8655: \"$ac_link\"") >&5
8656 (eval $ac_link) 2>&5
8658 echo "$as_me:8658: \$? = $ac_status" >&5
8659 (exit $ac_status); } &&
8660 { ac_try='test -s conftest$ac_exeext'
8661 { (eval echo "$as_me:8661: \"$ac_try\"") >&5
8664 echo "$as_me:8664: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 ac_cv_lib_compat_lsearch=yes
8668 echo "$as_me: failed program was:" >&5
8669 cat conftest.$ac_ext >&5
8670 ac_cv_lib_compat_lsearch=no
8672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8673 LIBS=$ac_check_lib_save_LIBS
8675 echo "$as_me:8675: result: $ac_cv_lib_compat_lsearch" >&5
8676 echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6
8677 if test $ac_cv_lib_compat_lsearch = yes; then
8678 echo "$as_me:8678: checking for search.h" >&5
8679 echo $ECHO_N "checking for search.h... $ECHO_C" >&6
8680 if test "${ac_cv_header_search_h+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 cat >conftest.$ac_ext <<_ACEOF
8684 #line 8684 "configure"
8685 #include "confdefs.h"
8688 if { (eval echo "$as_me:8688: \"$ac_cpp conftest.$ac_ext\"") >&5
8689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8691 egrep -v '^ *\+' conftest.er1 >conftest.err
8693 cat conftest.err >&5
8694 echo "$as_me:8694: \$? = $ac_status" >&5
8695 (exit $ac_status); } >/dev/null; then
8696 if test -s conftest.err; then
8697 ac_cpp_err=$ac_c_preproc_warn_flag
8704 if test -z "$ac_cpp_err"; then
8705 ac_cv_header_search_h=yes
8707 echo "$as_me: failed program was:" >&5
8708 cat conftest.$ac_ext >&5
8709 ac_cv_header_search_h=no
8711 rm -f conftest.err conftest.$ac_ext
8713 echo "$as_me:8713: result: $ac_cv_header_search_h" >&5
8714 echo "${ECHO_T}$ac_cv_header_search_h" >&6
8715 if test $ac_cv_header_search_h = yes; then
8716 cat >>confdefs.h <<\EOF
8717 #define HAVE_LSEARCH 1
8719 LIBS="${LIBS} -lcompat"
8721 LIBOBJS="$LIBOBJS lsearch.$ac_objext"
8725 LIBOBJS="$LIBOBJS lsearch.$ac_objext"
8731 for ac_func in utime
8733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8734 echo "$as_me:8734: checking for $ac_func" >&5
8735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8736 if eval "test \"\${$as_ac_var+set}\" = set"; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8739 cat >conftest.$ac_ext <<_ACEOF
8740 #line 8740 "configure"
8741 #include "confdefs.h"
8742 /* System header to define __stub macros and hopefully few prototypes,
8743 which can conflict with char $ac_func (); below. */
8745 /* Override any gcc2 internal prototype to avoid an error. */
8749 /* We use char because int might match the return type of a gcc2
8750 builtin and then its argument prototype would still apply. */
8757 /* The GNU C library defines this for functions which it implements
8758 to always fail with ENOSYS. Some functions are actually named
8759 something starting with __ and the normal name is an alias. */
8760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8770 rm -f conftest.$ac_objext conftest$ac_exeext
8771 if { (eval echo "$as_me:8771: \"$ac_link\"") >&5
8772 (eval $ac_link) 2>&5
8774 echo "$as_me:8774: \$? = $ac_status" >&5
8775 (exit $ac_status); } &&
8776 { ac_try='test -s conftest$ac_exeext'
8777 { (eval echo "$as_me:8777: \"$ac_try\"") >&5
8780 echo "$as_me:8780: \$? = $ac_status" >&5
8781 (exit $ac_status); }; }; then
8782 eval "$as_ac_var=yes"
8784 echo "$as_me: failed program was:" >&5
8785 cat conftest.$ac_ext >&5
8786 eval "$as_ac_var=no"
8788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8790 echo "$as_me:8790: result: `eval echo '${'$as_ac_var'}'`" >&5
8791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8792 if test `eval echo '${'$as_ac_var'}'` = yes; then
8793 cat >>confdefs.h <<EOF
8794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8796 echo "$as_me:8796: checking for POSIX utime" >&5
8797 echo $ECHO_N "checking for POSIX utime... $ECHO_C" >&6
8798 if test "${sudo_cv_func_utime_posix+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 rm -f conftestdata; > conftestdata
8802 if test "$cross_compiling" = yes; then
8803 sudo_cv_func_utime_posix=no
8805 cat >conftest.$ac_ext <<_ACEOF
8806 #line 8806 "configure"
8807 #include "confdefs.h"
8808 #include <sys/types.h>
8809 #include <sys/time.h>
8813 ut.actime = ut.modtime = time(0);
8814 utime("conftestdata", &ut);
8818 rm -f conftest$ac_exeext
8819 if { (eval echo "$as_me:8819: \"$ac_link\"") >&5
8820 (eval $ac_link) 2>&5
8822 echo "$as_me:8822: \$? = $ac_status" >&5
8823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8824 { (eval echo "$as_me:8824: \"$ac_try\"") >&5
8827 echo "$as_me:8827: \$? = $ac_status" >&5
8828 (exit $ac_status); }; }; then
8829 sudo_cv_func_utime_posix=yes
8831 echo "$as_me: program exited with status $ac_status" >&5
8832 echo "$as_me: failed program was:" >&5
8833 cat conftest.$ac_ext >&5
8834 sudo_cv_func_utime_posix=no
8836 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8838 rm -f core core.* *.core
8840 echo "$as_me:8840: result: $sudo_cv_func_utime_posix" >&5
8841 echo "${ECHO_T}$sudo_cv_func_utime_posix" >&6
8842 if test $sudo_cv_func_utime_posix = yes; then
8844 cat >>confdefs.h <<\EOF
8845 #define HAVE_UTIME_POSIX 1
8851 LIBOBJS="$LIBOBJS utime.$ac_objext"
8855 echo "$as_me:8855: checking for working fnmatch with FNM_CASEFOLD" >&5
8856 echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6
8857 if test "${sudo_cv_func_fnmatch+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8860 rm -f conftestdata; > conftestdata
8861 if test "$cross_compiling" = yes; then
8862 sudo_cv_func_fnmatch=no
8864 cat >conftest.$ac_ext <<_ACEOF
8865 #line 8865 "configure"
8866 #include "confdefs.h"
8867 #include <fnmatch.h>
8868 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
8871 rm -f conftest$ac_exeext
8872 if { (eval echo "$as_me:8872: \"$ac_link\"") >&5
8873 (eval $ac_link) 2>&5
8875 echo "$as_me:8875: \$? = $ac_status" >&5
8876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8877 { (eval echo "$as_me:8877: \"$ac_try\"") >&5
8880 echo "$as_me:8880: \$? = $ac_status" >&5
8881 (exit $ac_status); }; }; then
8882 sudo_cv_func_fnmatch=yes
8884 echo "$as_me: program exited with status $ac_status" >&5
8885 echo "$as_me: failed program was:" >&5
8886 cat conftest.$ac_ext >&5
8887 sudo_cv_func_fnmatch=no
8889 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8891 rm -f core core.* *.core
8893 echo "$as_me:8893: result: $sudo_cv_func_fnmatch" >&5
8894 echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6
8895 if test $sudo_cv_func_fnmatch = yes; then
8897 cat >>confdefs.h <<\EOF
8898 #define HAVE_FNMATCH 1
8902 LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
8905 echo "$as_me:8905: checking for isblank" >&5
8906 echo $ECHO_N "checking for isblank... $ECHO_C" >&6
8907 if test "${sudo_cv_func_isblank+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 cat >conftest.$ac_ext <<_ACEOF
8911 #line 8911 "configure"
8912 #include "confdefs.h"
8922 rm -f conftest.$ac_objext conftest$ac_exeext
8923 if { (eval echo "$as_me:8923: \"$ac_link\"") >&5
8924 (eval $ac_link) 2>&5
8926 echo "$as_me:8926: \$? = $ac_status" >&5
8927 (exit $ac_status); } &&
8928 { ac_try='test -s conftest$ac_exeext'
8929 { (eval echo "$as_me:8929: \"$ac_try\"") >&5
8932 echo "$as_me:8932: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 sudo_cv_func_isblank=yes
8936 echo "$as_me: failed program was:" >&5
8937 cat conftest.$ac_ext >&5
8938 sudo_cv_func_isblank=no
8940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8942 echo "$as_me:8942: result: $sudo_cv_func_isblank" >&5
8943 echo "${ECHO_T}$sudo_cv_func_isblank" >&6
8945 if test "$sudo_cv_func_isblank" = "yes"; then
8947 cat >>confdefs.h <<\EOF
8948 #define HAVE_ISBLANK 1
8953 for ac_func in strerror strcasecmp sigaction
8955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8956 echo "$as_me:8956: checking for $ac_func" >&5
8957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8958 if eval "test \"\${$as_ac_var+set}\" = set"; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 cat >conftest.$ac_ext <<_ACEOF
8962 #line 8962 "configure"
8963 #include "confdefs.h"
8964 /* System header to define __stub macros and hopefully few prototypes,
8965 which can conflict with char $ac_func (); below. */
8967 /* Override any gcc2 internal prototype to avoid an error. */
8971 /* We use char because int might match the return type of a gcc2
8972 builtin and then its argument prototype would still apply. */
8979 /* The GNU C library defines this for functions which it implements
8980 to always fail with ENOSYS. Some functions are actually named
8981 something starting with __ and the normal name is an alias. */
8982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8992 rm -f conftest.$ac_objext conftest$ac_exeext
8993 if { (eval echo "$as_me:8993: \"$ac_link\"") >&5
8994 (eval $ac_link) 2>&5
8996 echo "$as_me:8996: \$? = $ac_status" >&5
8997 (exit $ac_status); } &&
8998 { ac_try='test -s conftest$ac_exeext'
8999 { (eval echo "$as_me:8999: \"$ac_try\"") >&5
9002 echo "$as_me:9002: \$? = $ac_status" >&5
9003 (exit $ac_status); }; }; then
9004 eval "$as_ac_var=yes"
9006 echo "$as_me: failed program was:" >&5
9007 cat conftest.$ac_ext >&5
9008 eval "$as_ac_var=no"
9010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9012 echo "$as_me:9012: result: `eval echo '${'$as_ac_var'}'`" >&5
9013 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9014 if test `eval echo '${'$as_ac_var'}'` = yes; then
9015 cat >>confdefs.h <<EOF
9016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9020 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9024 for ac_func in snprintf vsnprintf asprintf vasprintf
9026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9027 echo "$as_me:9027: checking for $ac_func" >&5
9028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9029 if eval "test \"\${$as_ac_var+set}\" = set"; then
9030 echo $ECHO_N "(cached) $ECHO_C" >&6
9032 cat >conftest.$ac_ext <<_ACEOF
9033 #line 9033 "configure"
9034 #include "confdefs.h"
9035 /* System header to define __stub macros and hopefully few prototypes,
9036 which can conflict with char $ac_func (); below. */
9038 /* Override any gcc2 internal prototype to avoid an error. */
9042 /* We use char because int might match the return type of a gcc2
9043 builtin and then its argument prototype would still apply. */
9050 /* The GNU C library defines this for functions which it implements
9051 to always fail with ENOSYS. Some functions are actually named
9052 something starting with __ and the normal name is an alias. */
9053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9063 rm -f conftest.$ac_objext conftest$ac_exeext
9064 if { (eval echo "$as_me:9064: \"$ac_link\"") >&5
9065 (eval $ac_link) 2>&5
9067 echo "$as_me:9067: \$? = $ac_status" >&5
9068 (exit $ac_status); } &&
9069 { ac_try='test -s conftest$ac_exeext'
9070 { (eval echo "$as_me:9070: \"$ac_try\"") >&5
9073 echo "$as_me:9073: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 eval "$as_ac_var=yes"
9077 echo "$as_me: failed program was:" >&5
9078 cat conftest.$ac_ext >&5
9079 eval "$as_ac_var=no"
9081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9083 echo "$as_me:9083: result: `eval echo '${'$as_ac_var'}'`" >&5
9084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9085 if test `eval echo '${'$as_ac_var'}'` = yes; then
9086 cat >>confdefs.h <<EOF
9087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9095 if test -n "$NEED_SNPRINTF"; then
9096 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
9098 if test -z "$LIB_CRYPT"; then
9099 echo "$as_me:9099: checking for crypt" >&5
9100 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
9101 if test "${ac_cv_func_crypt+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 cat >conftest.$ac_ext <<_ACEOF
9105 #line 9105 "configure"
9106 #include "confdefs.h"
9107 /* System header to define __stub macros and hopefully few prototypes,
9108 which can conflict with char crypt (); below. */
9110 /* Override any gcc2 internal prototype to avoid an error. */
9114 /* We use char because int might match the return type of a gcc2
9115 builtin and then its argument prototype would still apply. */
9122 /* The GNU C library defines this for functions which it implements
9123 to always fail with ENOSYS. Some functions are actually named
9124 something starting with __ and the normal name is an alias. */
9125 #if defined (__stub_crypt) || defined (__stub___crypt)
9135 rm -f conftest.$ac_objext conftest$ac_exeext
9136 if { (eval echo "$as_me:9136: \"$ac_link\"") >&5
9137 (eval $ac_link) 2>&5
9139 echo "$as_me:9139: \$? = $ac_status" >&5
9140 (exit $ac_status); } &&
9141 { ac_try='test -s conftest$ac_exeext'
9142 { (eval echo "$as_me:9142: \"$ac_try\"") >&5
9145 echo "$as_me:9145: \$? = $ac_status" >&5
9146 (exit $ac_status); }; }; then
9147 ac_cv_func_crypt=yes
9149 echo "$as_me: failed program was:" >&5
9150 cat conftest.$ac_ext >&5
9153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9155 echo "$as_me:9155: result: $ac_cv_func_crypt" >&5
9156 echo "${ECHO_T}$ac_cv_func_crypt" >&6
9157 if test $ac_cv_func_crypt = yes; then
9160 echo "$as_me:9160: checking for crypt in -lcrypt" >&5
9161 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9162 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9165 ac_check_lib_save_LIBS=$LIBS
9166 LIBS="-lcrypt $LIBS"
9167 cat >conftest.$ac_ext <<_ACEOF
9168 #line 9168 "configure"
9169 #include "confdefs.h"
9171 /* Override any gcc2 internal prototype to avoid an error. */
9175 /* We use char because int might match the return type of a gcc2
9176 builtin and then its argument prototype would still apply. */
9186 rm -f conftest.$ac_objext conftest$ac_exeext
9187 if { (eval echo "$as_me:9187: \"$ac_link\"") >&5
9188 (eval $ac_link) 2>&5
9190 echo "$as_me:9190: \$? = $ac_status" >&5
9191 (exit $ac_status); } &&
9192 { ac_try='test -s conftest$ac_exeext'
9193 { (eval echo "$as_me:9193: \"$ac_try\"") >&5
9196 echo "$as_me:9196: \$? = $ac_status" >&5
9197 (exit $ac_status); }; }; then
9198 ac_cv_lib_crypt_crypt=yes
9200 echo "$as_me: failed program was:" >&5
9201 cat conftest.$ac_ext >&5
9202 ac_cv_lib_crypt_crypt=no
9204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9205 LIBS=$ac_check_lib_save_LIBS
9207 echo "$as_me:9207: result: $ac_cv_lib_crypt_crypt" >&5
9208 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9209 if test $ac_cv_lib_crypt_crypt = yes; then
9210 SUDO_LIBS="${SUDO_LIBS} -lcrypt"; LIBS="${LIBS} -lcrypt"
9212 echo "$as_me:9212: checking for crypt in -lcrypt_d" >&5
9213 echo $ECHO_N "checking for crypt in -lcrypt_d... $ECHO_C" >&6
9214 if test "${ac_cv_lib_crypt_d_crypt+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 ac_check_lib_save_LIBS=$LIBS
9218 LIBS="-lcrypt_d $LIBS"
9219 cat >conftest.$ac_ext <<_ACEOF
9220 #line 9220 "configure"
9221 #include "confdefs.h"
9223 /* Override any gcc2 internal prototype to avoid an error. */
9227 /* We use char because int might match the return type of a gcc2
9228 builtin and then its argument prototype would still apply. */
9238 rm -f conftest.$ac_objext conftest$ac_exeext
9239 if { (eval echo "$as_me:9239: \"$ac_link\"") >&5
9240 (eval $ac_link) 2>&5
9242 echo "$as_me:9242: \$? = $ac_status" >&5
9243 (exit $ac_status); } &&
9244 { ac_try='test -s conftest$ac_exeext'
9245 { (eval echo "$as_me:9245: \"$ac_try\"") >&5
9248 echo "$as_me:9248: \$? = $ac_status" >&5
9249 (exit $ac_status); }; }; then
9250 ac_cv_lib_crypt_d_crypt=yes
9252 echo "$as_me: failed program was:" >&5
9253 cat conftest.$ac_ext >&5
9254 ac_cv_lib_crypt_d_crypt=no
9256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9257 LIBS=$ac_check_lib_save_LIBS
9259 echo "$as_me:9259: result: $ac_cv_lib_crypt_d_crypt" >&5
9260 echo "${ECHO_T}$ac_cv_lib_crypt_d_crypt" >&6
9261 if test $ac_cv_lib_crypt_d_crypt = yes; then
9262 SUDO_LIBS="${SUDO_LIBS} -lcrypt_d"; LIBS="${LIBS} -lcrypt_d"
9264 echo "$as_me:9264: checking for crypt in -lufc" >&5
9265 echo $ECHO_N "checking for crypt in -lufc... $ECHO_C" >&6
9266 if test "${ac_cv_lib_ufc_crypt+set}" = set; then
9267 echo $ECHO_N "(cached) $ECHO_C" >&6
9269 ac_check_lib_save_LIBS=$LIBS
9271 cat >conftest.$ac_ext <<_ACEOF
9272 #line 9272 "configure"
9273 #include "confdefs.h"
9275 /* Override any gcc2 internal prototype to avoid an error. */
9279 /* We use char because int might match the return type of a gcc2
9280 builtin and then its argument prototype would still apply. */
9290 rm -f conftest.$ac_objext conftest$ac_exeext
9291 if { (eval echo "$as_me:9291: \"$ac_link\"") >&5
9292 (eval $ac_link) 2>&5
9294 echo "$as_me:9294: \$? = $ac_status" >&5
9295 (exit $ac_status); } &&
9296 { ac_try='test -s conftest$ac_exeext'
9297 { (eval echo "$as_me:9297: \"$ac_try\"") >&5
9300 echo "$as_me:9300: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9302 ac_cv_lib_ufc_crypt=yes
9304 echo "$as_me: failed program was:" >&5
9305 cat conftest.$ac_ext >&5
9306 ac_cv_lib_ufc_crypt=no
9308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9309 LIBS=$ac_check_lib_save_LIBS
9311 echo "$as_me:9311: result: $ac_cv_lib_ufc_crypt" >&5
9312 echo "${ECHO_T}$ac_cv_lib_ufc_crypt" >&6
9313 if test $ac_cv_lib_ufc_crypt = yes; then
9314 SUDO_LIBS="${SUDO_LIBS} -lufc"; LIBS="${LIBS} -lufc"
9324 echo "$as_me:9324: checking for socket" >&5
9325 echo $ECHO_N "checking for socket... $ECHO_C" >&6
9326 if test "${ac_cv_func_socket+set}" = set; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 cat >conftest.$ac_ext <<_ACEOF
9330 #line 9330 "configure"
9331 #include "confdefs.h"
9332 /* System header to define __stub macros and hopefully few prototypes,
9333 which can conflict with char socket (); below. */
9335 /* Override any gcc2 internal prototype to avoid an error. */
9339 /* We use char because int might match the return type of a gcc2
9340 builtin and then its argument prototype would still apply. */
9347 /* The GNU C library defines this for functions which it implements
9348 to always fail with ENOSYS. Some functions are actually named
9349 something starting with __ and the normal name is an alias. */
9350 #if defined (__stub_socket) || defined (__stub___socket)
9360 rm -f conftest.$ac_objext conftest$ac_exeext
9361 if { (eval echo "$as_me:9361: \"$ac_link\"") >&5
9362 (eval $ac_link) 2>&5
9364 echo "$as_me:9364: \$? = $ac_status" >&5
9365 (exit $ac_status); } &&
9366 { ac_try='test -s conftest$ac_exeext'
9367 { (eval echo "$as_me:9367: \"$ac_try\"") >&5
9370 echo "$as_me:9370: \$? = $ac_status" >&5
9371 (exit $ac_status); }; }; then
9372 ac_cv_func_socket=yes
9374 echo "$as_me: failed program was:" >&5
9375 cat conftest.$ac_ext >&5
9376 ac_cv_func_socket=no
9378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9380 echo "$as_me:9380: result: $ac_cv_func_socket" >&5
9381 echo "${ECHO_T}$ac_cv_func_socket" >&6
9382 if test $ac_cv_func_socket = yes; then
9385 echo "$as_me:9385: checking for socket in -lsocket" >&5
9386 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9387 if test "${ac_cv_lib_socket_socket+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 ac_check_lib_save_LIBS=$LIBS
9391 LIBS="-lsocket $LIBS"
9392 cat >conftest.$ac_ext <<_ACEOF
9393 #line 9393 "configure"
9394 #include "confdefs.h"
9396 /* Override any gcc2 internal prototype to avoid an error. */
9400 /* We use char because int might match the return type of a gcc2
9401 builtin and then its argument prototype would still apply. */
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (eval echo "$as_me:9412: \"$ac_link\"") >&5
9413 (eval $ac_link) 2>&5
9415 echo "$as_me:9415: \$? = $ac_status" >&5
9416 (exit $ac_status); } &&
9417 { ac_try='test -s conftest$ac_exeext'
9418 { (eval echo "$as_me:9418: \"$ac_try\"") >&5
9421 echo "$as_me:9421: \$? = $ac_status" >&5
9422 (exit $ac_status); }; }; then
9423 ac_cv_lib_socket_socket=yes
9425 echo "$as_me: failed program was:" >&5
9426 cat conftest.$ac_ext >&5
9427 ac_cv_lib_socket_socket=no
9429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9430 LIBS=$ac_check_lib_save_LIBS
9432 echo "$as_me:9432: result: $ac_cv_lib_socket_socket" >&5
9433 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9434 if test $ac_cv_lib_socket_socket = yes; then
9435 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
9437 echo "$as_me:9437: checking for socket in -linet" >&5
9438 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
9439 if test "${ac_cv_lib_inet_socket+set}" = set; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 ac_check_lib_save_LIBS=$LIBS
9444 cat >conftest.$ac_ext <<_ACEOF
9445 #line 9445 "configure"
9446 #include "confdefs.h"
9448 /* Override any gcc2 internal prototype to avoid an error. */
9452 /* We use char because int might match the return type of a gcc2
9453 builtin and then its argument prototype would still apply. */
9463 rm -f conftest.$ac_objext conftest$ac_exeext
9464 if { (eval echo "$as_me:9464: \"$ac_link\"") >&5
9465 (eval $ac_link) 2>&5
9467 echo "$as_me:9467: \$? = $ac_status" >&5
9468 (exit $ac_status); } &&
9469 { ac_try='test -s conftest$ac_exeext'
9470 { (eval echo "$as_me:9470: \"$ac_try\"") >&5
9473 echo "$as_me:9473: \$? = $ac_status" >&5
9474 (exit $ac_status); }; }; then
9475 ac_cv_lib_inet_socket=yes
9477 echo "$as_me: failed program was:" >&5
9478 cat conftest.$ac_ext >&5
9479 ac_cv_lib_inet_socket=no
9481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9482 LIBS=$ac_check_lib_save_LIBS
9484 echo "$as_me:9484: result: $ac_cv_lib_inet_socket" >&5
9485 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
9486 if test $ac_cv_lib_inet_socket = yes; then
9487 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
9489 { echo "$as_me:9489: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
9490 echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
9491 echo "$as_me:9491: checking for socket in -lsocket" >&5
9492 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9493 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 ac_check_lib_save_LIBS=$LIBS
9497 LIBS="-lsocket -lnsl $LIBS"
9498 cat >conftest.$ac_ext <<_ACEOF
9499 #line 9499 "configure"
9500 #include "confdefs.h"
9502 /* Override any gcc2 internal prototype to avoid an error. */
9506 /* We use char because int might match the return type of a gcc2
9507 builtin and then its argument prototype would still apply. */
9517 rm -f conftest.$ac_objext conftest$ac_exeext
9518 if { (eval echo "$as_me:9518: \"$ac_link\"") >&5
9519 (eval $ac_link) 2>&5
9521 echo "$as_me:9521: \$? = $ac_status" >&5
9522 (exit $ac_status); } &&
9523 { ac_try='test -s conftest$ac_exeext'
9524 { (eval echo "$as_me:9524: \"$ac_try\"") >&5
9527 echo "$as_me:9527: \$? = $ac_status" >&5
9528 (exit $ac_status); }; }; then
9529 ac_cv_lib_socket_socket_lnsl=yes
9531 echo "$as_me: failed program was:" >&5
9532 cat conftest.$ac_ext >&5
9533 ac_cv_lib_socket_socket_lnsl=no
9535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9536 LIBS=$ac_check_lib_save_LIBS
9538 echo "$as_me:9538: result: $ac_cv_lib_socket_socket_lnsl" >&5
9539 echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6
9540 if test $ac_cv_lib_socket_socket_lnsl = yes; then
9541 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
9550 echo "$as_me:9550: checking for inet_addr" >&5
9551 echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6
9552 if test "${ac_cv_func_inet_addr+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 cat >conftest.$ac_ext <<_ACEOF
9556 #line 9556 "configure"
9557 #include "confdefs.h"
9558 /* System header to define __stub macros and hopefully few prototypes,
9559 which can conflict with char inet_addr (); below. */
9561 /* Override any gcc2 internal prototype to avoid an error. */
9565 /* We use char because int might match the return type of a gcc2
9566 builtin and then its argument prototype would still apply. */
9573 /* The GNU C library defines this for functions which it implements
9574 to always fail with ENOSYS. Some functions are actually named
9575 something starting with __ and the normal name is an alias. */
9576 #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
9586 rm -f conftest.$ac_objext conftest$ac_exeext
9587 if { (eval echo "$as_me:9587: \"$ac_link\"") >&5
9588 (eval $ac_link) 2>&5
9590 echo "$as_me:9590: \$? = $ac_status" >&5
9591 (exit $ac_status); } &&
9592 { ac_try='test -s conftest$ac_exeext'
9593 { (eval echo "$as_me:9593: \"$ac_try\"") >&5
9596 echo "$as_me:9596: \$? = $ac_status" >&5
9597 (exit $ac_status); }; }; then
9598 ac_cv_func_inet_addr=yes
9600 echo "$as_me: failed program was:" >&5
9601 cat conftest.$ac_ext >&5
9602 ac_cv_func_inet_addr=no
9604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9606 echo "$as_me:9606: result: $ac_cv_func_inet_addr" >&5
9607 echo "${ECHO_T}$ac_cv_func_inet_addr" >&6
9608 if test $ac_cv_func_inet_addr = yes; then
9611 echo "$as_me:9611: checking for __inet_addr" >&5
9612 echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6
9613 if test "${ac_cv_func___inet_addr+set}" = set; then
9614 echo $ECHO_N "(cached) $ECHO_C" >&6
9616 cat >conftest.$ac_ext <<_ACEOF
9617 #line 9617 "configure"
9618 #include "confdefs.h"
9619 /* System header to define __stub macros and hopefully few prototypes,
9620 which can conflict with char __inet_addr (); below. */
9622 /* Override any gcc2 internal prototype to avoid an error. */
9626 /* We use char because int might match the return type of a gcc2
9627 builtin and then its argument prototype would still apply. */
9628 char __inet_addr ();
9634 /* The GNU C library defines this for functions which it implements
9635 to always fail with ENOSYS. Some functions are actually named
9636 something starting with __ and the normal name is an alias. */
9637 #if defined (__stub___inet_addr) || defined (__stub_____inet_addr)
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (eval echo "$as_me:9648: \"$ac_link\"") >&5
9649 (eval $ac_link) 2>&5
9651 echo "$as_me:9651: \$? = $ac_status" >&5
9652 (exit $ac_status); } &&
9653 { ac_try='test -s conftest$ac_exeext'
9654 { (eval echo "$as_me:9654: \"$ac_try\"") >&5
9657 echo "$as_me:9657: \$? = $ac_status" >&5
9658 (exit $ac_status); }; }; then
9659 ac_cv_func___inet_addr=yes
9661 echo "$as_me: failed program was:" >&5
9662 cat conftest.$ac_ext >&5
9663 ac_cv_func___inet_addr=no
9665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9667 echo "$as_me:9667: result: $ac_cv_func___inet_addr" >&5
9668 echo "${ECHO_T}$ac_cv_func___inet_addr" >&6
9669 if test $ac_cv_func___inet_addr = yes; then
9672 echo "$as_me:9672: checking for inet_addr in -lnsl" >&5
9673 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
9674 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 ac_check_lib_save_LIBS=$LIBS
9679 cat >conftest.$ac_ext <<_ACEOF
9680 #line 9680 "configure"
9681 #include "confdefs.h"
9683 /* Override any gcc2 internal prototype to avoid an error. */
9687 /* We use char because int might match the return type of a gcc2
9688 builtin and then its argument prototype would still apply. */
9698 rm -f conftest.$ac_objext conftest$ac_exeext
9699 if { (eval echo "$as_me:9699: \"$ac_link\"") >&5
9700 (eval $ac_link) 2>&5
9702 echo "$as_me:9702: \$? = $ac_status" >&5
9703 (exit $ac_status); } &&
9704 { ac_try='test -s conftest$ac_exeext'
9705 { (eval echo "$as_me:9705: \"$ac_try\"") >&5
9708 echo "$as_me:9708: \$? = $ac_status" >&5
9709 (exit $ac_status); }; }; then
9710 ac_cv_lib_nsl_inet_addr=yes
9712 echo "$as_me: failed program was:" >&5
9713 cat conftest.$ac_ext >&5
9714 ac_cv_lib_nsl_inet_addr=no
9716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9717 LIBS=$ac_check_lib_save_LIBS
9719 echo "$as_me:9719: result: $ac_cv_lib_nsl_inet_addr" >&5
9720 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
9721 if test $ac_cv_lib_nsl_inet_addr = yes; then
9722 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
9724 echo "$as_me:9724: checking for inet_addr in -linet" >&5
9725 echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6
9726 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9729 ac_check_lib_save_LIBS=$LIBS
9731 cat >conftest.$ac_ext <<_ACEOF
9732 #line 9732 "configure"
9733 #include "confdefs.h"
9735 /* Override any gcc2 internal prototype to avoid an error. */
9739 /* We use char because int might match the return type of a gcc2
9740 builtin and then its argument prototype would still apply. */
9750 rm -f conftest.$ac_objext conftest$ac_exeext
9751 if { (eval echo "$as_me:9751: \"$ac_link\"") >&5
9752 (eval $ac_link) 2>&5
9754 echo "$as_me:9754: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
9756 { ac_try='test -s conftest$ac_exeext'
9757 { (eval echo "$as_me:9757: \"$ac_try\"") >&5
9760 echo "$as_me:9760: \$? = $ac_status" >&5
9761 (exit $ac_status); }; }; then
9762 ac_cv_lib_inet_inet_addr=yes
9764 echo "$as_me: failed program was:" >&5
9765 cat conftest.$ac_ext >&5
9766 ac_cv_lib_inet_inet_addr=no
9768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9769 LIBS=$ac_check_lib_save_LIBS
9771 echo "$as_me:9771: result: $ac_cv_lib_inet_inet_addr" >&5
9772 echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6
9773 if test $ac_cv_lib_inet_inet_addr = yes; then
9774 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
9776 { echo "$as_me:9776: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
9777 echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
9778 echo "$as_me:9778: checking for inet_addr in -lsocket" >&5
9779 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
9780 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 ac_check_lib_save_LIBS=$LIBS
9784 LIBS="-lsocket -lnsl $LIBS"
9785 cat >conftest.$ac_ext <<_ACEOF
9786 #line 9786 "configure"
9787 #include "confdefs.h"
9789 /* Override any gcc2 internal prototype to avoid an error. */
9793 /* We use char because int might match the return type of a gcc2
9794 builtin and then its argument prototype would still apply. */
9804 rm -f conftest.$ac_objext conftest$ac_exeext
9805 if { (eval echo "$as_me:9805: \"$ac_link\"") >&5
9806 (eval $ac_link) 2>&5
9808 echo "$as_me:9808: \$? = $ac_status" >&5
9809 (exit $ac_status); } &&
9810 { ac_try='test -s conftest$ac_exeext'
9811 { (eval echo "$as_me:9811: \"$ac_try\"") >&5
9814 echo "$as_me:9814: \$? = $ac_status" >&5
9815 (exit $ac_status); }; }; then
9816 ac_cv_lib_socket_inet_addr_lnsl=yes
9818 echo "$as_me: failed program was:" >&5
9819 cat conftest.$ac_ext >&5
9820 ac_cv_lib_socket_inet_addr_lnsl=no
9822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9823 LIBS=$ac_check_lib_save_LIBS
9825 echo "$as_me:9825: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
9826 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6
9827 if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
9828 NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
9839 echo "$as_me:9839: checking for syslog" >&5
9840 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
9841 if test "${ac_cv_func_syslog+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 cat >conftest.$ac_ext <<_ACEOF
9845 #line 9845 "configure"
9846 #include "confdefs.h"
9847 /* System header to define __stub macros and hopefully few prototypes,
9848 which can conflict with char syslog (); below. */
9850 /* Override any gcc2 internal prototype to avoid an error. */
9854 /* We use char because int might match the return type of a gcc2
9855 builtin and then its argument prototype would still apply. */
9862 /* The GNU C library defines this for functions which it implements
9863 to always fail with ENOSYS. Some functions are actually named
9864 something starting with __ and the normal name is an alias. */
9865 #if defined (__stub_syslog) || defined (__stub___syslog)
9875 rm -f conftest.$ac_objext conftest$ac_exeext
9876 if { (eval echo "$as_me:9876: \"$ac_link\"") >&5
9877 (eval $ac_link) 2>&5
9879 echo "$as_me:9879: \$? = $ac_status" >&5
9880 (exit $ac_status); } &&
9881 { ac_try='test -s conftest$ac_exeext'
9882 { (eval echo "$as_me:9882: \"$ac_try\"") >&5
9885 echo "$as_me:9885: \$? = $ac_status" >&5
9886 (exit $ac_status); }; }; then
9887 ac_cv_func_syslog=yes
9889 echo "$as_me: failed program was:" >&5
9890 cat conftest.$ac_ext >&5
9891 ac_cv_func_syslog=no
9893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9895 echo "$as_me:9895: result: $ac_cv_func_syslog" >&5
9896 echo "${ECHO_T}$ac_cv_func_syslog" >&6
9897 if test $ac_cv_func_syslog = yes; then
9900 echo "$as_me:9900: checking for syslog in -lsocket" >&5
9901 echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6
9902 if test "${ac_cv_lib_socket_syslog+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 ac_check_lib_save_LIBS=$LIBS
9906 LIBS="-lsocket $LIBS"
9907 cat >conftest.$ac_ext <<_ACEOF
9908 #line 9908 "configure"
9909 #include "confdefs.h"
9911 /* Override any gcc2 internal prototype to avoid an error. */
9915 /* We use char because int might match the return type of a gcc2
9916 builtin and then its argument prototype would still apply. */
9926 rm -f conftest.$ac_objext conftest$ac_exeext
9927 if { (eval echo "$as_me:9927: \"$ac_link\"") >&5
9928 (eval $ac_link) 2>&5
9930 echo "$as_me:9930: \$? = $ac_status" >&5
9931 (exit $ac_status); } &&
9932 { ac_try='test -s conftest$ac_exeext'
9933 { (eval echo "$as_me:9933: \"$ac_try\"") >&5
9936 echo "$as_me:9936: \$? = $ac_status" >&5
9937 (exit $ac_status); }; }; then
9938 ac_cv_lib_socket_syslog=yes
9940 echo "$as_me: failed program was:" >&5
9941 cat conftest.$ac_ext >&5
9942 ac_cv_lib_socket_syslog=no
9944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9945 LIBS=$ac_check_lib_save_LIBS
9947 echo "$as_me:9947: result: $ac_cv_lib_socket_syslog" >&5
9948 echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6
9949 if test $ac_cv_lib_socket_syslog = yes; then
9950 NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
9952 echo "$as_me:9952: checking for syslog in -lnsl" >&5
9953 echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6
9954 if test "${ac_cv_lib_nsl_syslog+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 ac_check_lib_save_LIBS=$LIBS
9959 cat >conftest.$ac_ext <<_ACEOF
9960 #line 9960 "configure"
9961 #include "confdefs.h"
9963 /* Override any gcc2 internal prototype to avoid an error. */
9967 /* We use char because int might match the return type of a gcc2
9968 builtin and then its argument prototype would still apply. */
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979 if { (eval echo "$as_me:9979: \"$ac_link\"") >&5
9980 (eval $ac_link) 2>&5
9982 echo "$as_me:9982: \$? = $ac_status" >&5
9983 (exit $ac_status); } &&
9984 { ac_try='test -s conftest$ac_exeext'
9985 { (eval echo "$as_me:9985: \"$ac_try\"") >&5
9988 echo "$as_me:9988: \$? = $ac_status" >&5
9989 (exit $ac_status); }; }; then
9990 ac_cv_lib_nsl_syslog=yes
9992 echo "$as_me: failed program was:" >&5
9993 cat conftest.$ac_ext >&5
9994 ac_cv_lib_nsl_syslog=no
9996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9997 LIBS=$ac_check_lib_save_LIBS
9999 echo "$as_me:9999: result: $ac_cv_lib_nsl_syslog" >&5
10000 echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6
10001 if test $ac_cv_lib_nsl_syslog = yes; then
10002 NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
10004 echo "$as_me:10004: checking for syslog in -linet" >&5
10005 echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6
10006 if test "${ac_cv_lib_inet_syslog+set}" = set; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10009 ac_check_lib_save_LIBS=$LIBS
10010 LIBS="-linet $LIBS"
10011 cat >conftest.$ac_ext <<_ACEOF
10012 #line 10012 "configure"
10013 #include "confdefs.h"
10015 /* Override any gcc2 internal prototype to avoid an error. */
10019 /* We use char because int might match the return type of a gcc2
10020 builtin and then its argument prototype would still apply. */
10030 rm -f conftest.$ac_objext conftest$ac_exeext
10031 if { (eval echo "$as_me:10031: \"$ac_link\"") >&5
10032 (eval $ac_link) 2>&5
10034 echo "$as_me:10034: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
10036 { ac_try='test -s conftest$ac_exeext'
10037 { (eval echo "$as_me:10037: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10040 echo "$as_me:10040: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
10042 ac_cv_lib_inet_syslog=yes
10044 echo "$as_me: failed program was:" >&5
10045 cat conftest.$ac_ext >&5
10046 ac_cv_lib_inet_syslog=no
10048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10049 LIBS=$ac_check_lib_save_LIBS
10051 echo "$as_me:10051: result: $ac_cv_lib_inet_syslog" >&5
10052 echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6
10053 if test $ac_cv_lib_inet_syslog = yes; then
10054 NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
10063 if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
10064 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10065 # for constant arguments. Useless!
10066 echo "$as_me:10066: checking for working alloca.h" >&5
10067 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10068 if test "${ac_cv_working_alloca_h+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 cat >conftest.$ac_ext <<_ACEOF
10072 #line 10072 "configure"
10073 #include "confdefs.h"
10074 #include <alloca.h>
10078 char *p = (char *) alloca (2 * sizeof (int));
10083 rm -f conftest.$ac_objext conftest$ac_exeext
10084 if { (eval echo "$as_me:10084: \"$ac_link\"") >&5
10085 (eval $ac_link) 2>&5
10087 echo "$as_me:10087: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -s conftest$ac_exeext'
10090 { (eval echo "$as_me:10090: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10093 echo "$as_me:10093: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10095 ac_cv_working_alloca_h=yes
10097 echo "$as_me: failed program was:" >&5
10098 cat conftest.$ac_ext >&5
10099 ac_cv_working_alloca_h=no
10101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10103 echo "$as_me:10103: result: $ac_cv_working_alloca_h" >&5
10104 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10105 if test $ac_cv_working_alloca_h = yes; then
10107 cat >>confdefs.h <<\EOF
10108 #define HAVE_ALLOCA_H 1
10113 echo "$as_me:10113: checking for alloca" >&5
10114 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10115 if test "${ac_cv_func_alloca_works+set}" = set; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 cat >conftest.$ac_ext <<_ACEOF
10119 #line 10119 "configure"
10120 #include "confdefs.h"
10122 # define alloca __builtin_alloca
10125 # include <malloc.h>
10126 # define alloca _alloca
10129 # include <alloca.h>
10134 # ifndef alloca /* predefined by HP cc +Olibcalls */
10145 char *p = (char *) alloca (1);
10150 rm -f conftest.$ac_objext conftest$ac_exeext
10151 if { (eval echo "$as_me:10151: \"$ac_link\"") >&5
10152 (eval $ac_link) 2>&5
10154 echo "$as_me:10154: \$? = $ac_status" >&5
10155 (exit $ac_status); } &&
10156 { ac_try='test -s conftest$ac_exeext'
10157 { (eval echo "$as_me:10157: \"$ac_try\"") >&5
10158 (eval $ac_try) 2>&5
10160 echo "$as_me:10160: \$? = $ac_status" >&5
10161 (exit $ac_status); }; }; then
10162 ac_cv_func_alloca_works=yes
10164 echo "$as_me: failed program was:" >&5
10165 cat conftest.$ac_ext >&5
10166 ac_cv_func_alloca_works=no
10168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10170 echo "$as_me:10170: result: $ac_cv_func_alloca_works" >&5
10171 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10173 if test $ac_cv_func_alloca_works = yes; then
10175 cat >>confdefs.h <<\EOF
10176 #define HAVE_ALLOCA 1
10180 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10181 # that cause trouble. Some versions do not even contain alloca or
10182 # contain a buggy version. If you still want to use their alloca,
10183 # use ar to extract alloca.o from them instead of compiling alloca.c.
10185 ALLOCA=alloca.$ac_objext
10187 cat >>confdefs.h <<\EOF
10191 echo "$as_me:10191: checking whether \`alloca.c' needs Cray hooks" >&5
10192 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10193 if test "${ac_cv_os_cray+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10196 cat >conftest.$ac_ext <<_ACEOF
10197 #line 10197 "configure"
10198 #include "confdefs.h"
10199 #if defined(CRAY) && ! defined(CRAY2)
10206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10207 egrep "webecray" >/dev/null 2>&1; then
10215 echo "$as_me:10215: result: $ac_cv_os_cray" >&5
10216 echo "${ECHO_T}$ac_cv_os_cray" >&6
10217 if test $ac_cv_os_cray = yes; then
10218 for ac_func in _getb67 GETB67 getb67; do
10219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10220 echo "$as_me:10220: checking for $ac_func" >&5
10221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10222 if eval "test \"\${$as_ac_var+set}\" = set"; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10225 cat >conftest.$ac_ext <<_ACEOF
10226 #line 10226 "configure"
10227 #include "confdefs.h"
10228 /* System header to define __stub macros and hopefully few prototypes,
10229 which can conflict with char $ac_func (); below. */
10230 #include <assert.h>
10231 /* Override any gcc2 internal prototype to avoid an error. */
10235 /* We use char because int might match the return type of a gcc2
10236 builtin and then its argument prototype would still apply. */
10243 /* The GNU C library defines this for functions which it implements
10244 to always fail with ENOSYS. Some functions are actually named
10245 something starting with __ and the normal name is an alias. */
10246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10256 rm -f conftest.$ac_objext conftest$ac_exeext
10257 if { (eval echo "$as_me:10257: \"$ac_link\"") >&5
10258 (eval $ac_link) 2>&5
10260 echo "$as_me:10260: \$? = $ac_status" >&5
10261 (exit $ac_status); } &&
10262 { ac_try='test -s conftest$ac_exeext'
10263 { (eval echo "$as_me:10263: \"$ac_try\"") >&5
10264 (eval $ac_try) 2>&5
10266 echo "$as_me:10266: \$? = $ac_status" >&5
10267 (exit $ac_status); }; }; then
10268 eval "$as_ac_var=yes"
10270 echo "$as_me: failed program was:" >&5
10271 cat conftest.$ac_ext >&5
10272 eval "$as_ac_var=no"
10274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10276 echo "$as_me:10276: result: `eval echo '${'$as_ac_var'}'`" >&5
10277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10278 if test `eval echo '${'$as_ac_var'}'` = yes; then
10280 cat >>confdefs.h <<EOF
10281 #define CRAY_STACKSEG_END $ac_func
10290 echo "$as_me:10290: checking stack direction for C alloca" >&5
10291 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10292 if test "${ac_cv_c_stack_direction+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 if test "$cross_compiling" = yes; then
10296 ac_cv_c_stack_direction=0
10298 cat >conftest.$ac_ext <<_ACEOF
10299 #line 10299 "configure"
10300 #include "confdefs.h"
10302 find_stack_direction ()
10304 static char *addr = 0;
10309 return find_stack_direction ();
10312 return (&dummy > addr) ? 1 : -1;
10318 exit (find_stack_direction () < 0);
10321 rm -f conftest$ac_exeext
10322 if { (eval echo "$as_me:10322: \"$ac_link\"") >&5
10323 (eval $ac_link) 2>&5
10325 echo "$as_me:10325: \$? = $ac_status" >&5
10326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10327 { (eval echo "$as_me:10327: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10330 echo "$as_me:10330: \$? = $ac_status" >&5
10331 (exit $ac_status); }; }; then
10332 ac_cv_c_stack_direction=1
10334 echo "$as_me: program exited with status $ac_status" >&5
10335 echo "$as_me: failed program was:" >&5
10336 cat conftest.$ac_ext >&5
10337 ac_cv_c_stack_direction=-1
10339 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10342 echo "$as_me:10342: result: $ac_cv_c_stack_direction" >&5
10343 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10345 cat >>confdefs.h <<EOF
10346 #define STACK_DIRECTION $ac_cv_c_stack_direction
10353 if test "$with_kerb5" = "yes"; then
10355 cat >>confdefs.h <<\EOF
10356 #define HAVE_KERB5 1
10359 if test -f "/usr/local/include/krb5.h"; then
10360 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
10361 elif test -f "/usr/local/kerberos/include/krb5.h"; then
10362 CPPFLAGS="$CPPFLAGS -I/usr/local/kerberos/include"
10363 elif test -f "/usr/krb5/include/krb5.h"; then
10364 CPPFLAGS="$CPPFLAGS -I/usr/krb5/include"
10365 elif test -f "/usr/local/krb5/include/krb5.h"; then
10366 CPPFLAGS="$CPPFLAGS -I/usr/local/krb5/include"
10368 echo 'Unable to locate kerberos 5 include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS'
10371 if test -f "/usr/local/lib/libkrb5.a"; then
10372 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
10373 elif test -f "/usr/local/kerberos/lib/libkrb5.a"; then
10374 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/kerberos/lib"
10375 elif test -f "/usr/krb5/lib/libkrb5.a"; then
10376 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/krb5/lib"
10377 elif test -f "/usr/local/krb5/lib/libkrb5.a"; then
10378 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/krb5/lib"
10380 echo 'Unable to locate kerberos 5 libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS'
10383 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
10384 AUTH_OBJS="${AUTH_OBJS} kerb5.o"
10387 if test "$with_pam" = "yes"; then
10388 echo "$as_me:10388: checking for main in -ldl" >&5
10389 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
10390 if test "${ac_cv_lib_dl_main+set}" = set; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 ac_check_lib_save_LIBS=$LIBS
10395 cat >conftest.$ac_ext <<_ACEOF
10396 #line 10396 "configure"
10397 #include "confdefs.h"
10407 rm -f conftest.$ac_objext conftest$ac_exeext
10408 if { (eval echo "$as_me:10408: \"$ac_link\"") >&5
10409 (eval $ac_link) 2>&5
10411 echo "$as_me:10411: \$? = $ac_status" >&5
10412 (exit $ac_status); } &&
10413 { ac_try='test -s conftest$ac_exeext'
10414 { (eval echo "$as_me:10414: \"$ac_try\"") >&5
10415 (eval $ac_try) 2>&5
10417 echo "$as_me:10417: \$? = $ac_status" >&5
10418 (exit $ac_status); }; }; then
10419 ac_cv_lib_dl_main=yes
10421 echo "$as_me: failed program was:" >&5
10422 cat conftest.$ac_ext >&5
10423 ac_cv_lib_dl_main=no
10425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10426 LIBS=$ac_check_lib_save_LIBS
10428 echo "$as_me:10428: result: $ac_cv_lib_dl_main" >&5
10429 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
10430 if test $ac_cv_lib_dl_main = yes; then
10431 SUDO_LIBS="${SUDO_LIBS} -ldl -lpam"
10433 SUDO_LIBS="${SUDO_LIBS} -lpam"
10435 ac_cv_lib_dl=ac_cv_lib_dl_main
10439 if test "$with_kerb4" = "yes"; then
10441 cat >>confdefs.h <<\EOF
10442 #define HAVE_KERB4 1
10445 if test -f "/usr/include/kerberosIV/krb.h"; then
10446 CPPFLAGS="${CPPFLAGS} -I/usr/include/kerberosIV"
10447 elif test -f "/usr/local/include/kerberosIV/krb.h"; then
10448 CPPFLAGS="${CPPFLAGS} -I/usr/local/include/kerberosIV"
10449 elif test -f "/usr/kerberos/include/krb.h"; then
10450 CPPFLAGS="${CPPFLAGS} -I/usr/kerberos/include"
10451 elif test -f "/usr/local/kerberos/include/krb.h"; then
10452 CPPFLAGS="${CPPFLAGS} -I/usr/local/kerberos/include"
10454 echo 'Unable to locate kerberos 4 include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS'
10457 if test -d "/usr/kerberos/lib"; then
10458 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/kerberos/lib"
10459 elif test -d "/usr/lib/kerberos"; then
10460 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/lib/kerberos"
10461 elif test -f "/usr/local/lib/libkrb.a"; then
10462 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
10463 elif test ! -f "/usr/lib/libkrb.a"; then
10464 echo 'Unable to locate kerberos 4 libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS'
10467 echo "$as_me:10467: checking for main in -ldes" >&5
10468 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
10469 if test "${ac_cv_lib_des_main+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 ac_check_lib_save_LIBS=$LIBS
10474 cat >conftest.$ac_ext <<_ACEOF
10475 #line 10475 "configure"
10476 #include "confdefs.h"
10486 rm -f conftest.$ac_objext conftest$ac_exeext
10487 if { (eval echo "$as_me:10487: \"$ac_link\"") >&5
10488 (eval $ac_link) 2>&5
10490 echo "$as_me:10490: \$? = $ac_status" >&5
10491 (exit $ac_status); } &&
10492 { ac_try='test -s conftest$ac_exeext'
10493 { (eval echo "$as_me:10493: \"$ac_try\"") >&5
10494 (eval $ac_try) 2>&5
10496 echo "$as_me:10496: \$? = $ac_status" >&5
10497 (exit $ac_status); }; }; then
10498 ac_cv_lib_des_main=yes
10500 echo "$as_me: failed program was:" >&5
10501 cat conftest.$ac_ext >&5
10502 ac_cv_lib_des_main=no
10504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10505 LIBS=$ac_check_lib_save_LIBS
10507 echo "$as_me:10507: result: $ac_cv_lib_des_main" >&5
10508 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
10509 if test $ac_cv_lib_des_main = yes; then
10510 SUDO_LIBS="${SUDO_LIBS} -lkrb -ldes"
10512 SUDO_LIBS="${SUDO_LIBS} -lkrb"
10514 ac_cv_lib_des=ac_cv_lib_des_main
10516 AUTH_OBJS="${AUTH_OBJS} kerb4.o"
10519 if test "$with_AFS" = "yes"; then
10521 # looks like the "standard" place for AFS libs is /usr/afsws/lib
10522 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
10523 for i in $AFSLIBDIRS; do
10524 if test -d ${i}; then
10525 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${i}"
10526 FOUND_AFSLIBDIR=true
10529 if test -z "$FOUND_AFSLIBDIR"; then
10530 echo 'Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options.'
10533 # Order is important here. Note that we build AFS_LIBS from right to left
10534 # since AFS_LIBS may be initialized with BSD compat libs that must go last
10535 AFS_LIBS="-laudit ${AFS_LIBS}"
10536 for i in $AFSLIBDIRS; do
10537 if test -f ${i}/util.a; then
10538 AFS_LIBS="${i}/util.a ${AFS_LIBS}"
10543 if test -z "$FOUND_UTIL_A"; then
10544 AFS_LIBS="-lutil ${AFS_LIBS}"
10546 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
10548 # AFS includes may live in /usr/include on some machines...
10549 for i in /usr/afsws/include; do
10550 if test -d ${i}; then
10551 CPPFLAGS="${CPPFLAGS} -I${i}"
10552 FOUND_AFSINCDIR=true
10556 if test -z "$FOUND_AFSLIBDIR"; then
10557 echo 'Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options.'
10561 if test "$with_DCE" = "yes"; then
10562 DCE_OBJS="${DCE_OBJS} dce_pwent.o"
10563 SUDO_LIBS="${SUDO_LIBS} -ldce"
10566 if test "$with_skey" = "yes"; then
10567 SUDO_LIBS="${SUDO_LIBS} -lskey"
10568 if test -f /usr/include/skey.h -a -f /usr/lib/libskey.a; then
10570 elif test -f /usr/local/include/skey.h; then
10571 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
10572 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
10573 elif test "$with_csops" = "yes" -a -f /tools/cs/skey/include/skey.h -a -f /tools/cs/skey/lib/libskey.a; then
10574 CPPFLAGS="${CPPFLAGS} -I/tools/cs/skey/include"
10575 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/tools/cs/skey/lib"
10577 echo 'Unable to locate libskey.a and/or skey.h, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS and/or -I/path/to/skey.h to CPPFLAGS'
10579 echo "$as_me:10579: checking for skeyaccess in -lskey" >&5
10580 echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6
10581 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10584 ac_check_lib_save_LIBS=$LIBS
10585 LIBS="-lskey $LIBS"
10586 cat >conftest.$ac_ext <<_ACEOF
10587 #line 10587 "configure"
10588 #include "confdefs.h"
10590 /* Override any gcc2 internal prototype to avoid an error. */
10594 /* We use char because int might match the return type of a gcc2
10595 builtin and then its argument prototype would still apply. */
10596 char skeyaccess ();
10605 rm -f conftest.$ac_objext conftest$ac_exeext
10606 if { (eval echo "$as_me:10606: \"$ac_link\"") >&5
10607 (eval $ac_link) 2>&5
10609 echo "$as_me:10609: \$? = $ac_status" >&5
10610 (exit $ac_status); } &&
10611 { ac_try='test -s conftest$ac_exeext'
10612 { (eval echo "$as_me:10612: \"$ac_try\"") >&5
10613 (eval $ac_try) 2>&5
10615 echo "$as_me:10615: \$? = $ac_status" >&5
10616 (exit $ac_status); }; }; then
10617 ac_cv_lib_skey_skeyaccess=yes
10619 echo "$as_me: failed program was:" >&5
10620 cat conftest.$ac_ext >&5
10621 ac_cv_lib_skey_skeyaccess=no
10623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10624 LIBS=$ac_check_lib_save_LIBS
10626 echo "$as_me:10626: result: $ac_cv_lib_skey_skeyaccess" >&5
10627 echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6
10628 if test $ac_cv_lib_skey_skeyaccess = yes; then
10630 cat >>confdefs.h <<\EOF
10631 #define HAVE_SKEYACCESS 1
10638 if test "$with_opie" = "yes"; then
10639 SUDO_LIBS="${SUDO_LIBS} -lopie"
10640 if test -f /usr/include/opie.h -a -f /usr/lib/libopie.a; then
10642 elif test -f /usr/local/include/opie.h; then
10643 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
10644 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
10646 echo 'Unable to locate libopie.a and/or opie.h, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS and/or -I/path/to/opie.h to CPPFLAGS'
10650 if test -n "$with_SecurID" -a "$with_SecurID" != "no"; then
10651 if test "$with_SecurID" != "yes"; then
10652 SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
10653 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
10654 elif test -f /usr/ace/examples/sdiclient.a; then
10655 SUDO_LIBS="${SUDO_LIBS} /usr/ace/examples/sdiclient.a"
10656 CPPFLAGS="${CPPFLAGS} -I/usr/ace/examples"
10658 SUDO_LIBS="${SUDO_LIBS} /usr/ace/sdiclient.a"
10659 CPPFLAGS="${CPPFLAGS} -I/usr/ace"
10663 if test "$with_fwtk" = "yes"; then
10664 SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
10667 if test "$with_authenticate" = "yes"; then
10668 SUDO_LIBS="${SUDO_LIBS} -ls"
10671 echo "$as_me:10671: checking for log file location" >&5
10672 echo $ECHO_N "checking for log file location... $ECHO_C" >&6
10673 if test -n "$with_logpath"; then
10674 echo "$as_me:10674: result: $with_logpath" >&5
10675 echo "${ECHO_T}$with_logpath" >&6
10676 cat >>confdefs.h <<EOF
10677 #define _PATH_SUDO_LOGFILE "$with_logpath"
10680 elif test -d "/var/log"; then
10681 echo "$as_me:10681: result: /var/log/sudo.log" >&5
10682 echo "${ECHO_T}/var/log/sudo.log" >&6
10683 cat >>confdefs.h <<\EOF
10684 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
10687 elif test -d "/var/adm"; then
10688 echo "$as_me:10688: result: /var/adm/sudo.log" >&5
10689 echo "${ECHO_T}/var/adm/sudo.log" >&6
10690 cat >>confdefs.h <<\EOF
10691 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
10694 elif test -d "/usr/adm"; then
10695 echo "$as_me:10695: result: /usr/adm/sudo.log" >&5
10696 echo "${ECHO_T}/usr/adm/sudo.log" >&6
10697 cat >>confdefs.h <<\EOF
10698 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
10702 echo "$as_me:10702: result: unknown" >&5
10703 echo "${ECHO_T}unknown" >&6
10706 echo "$as_me:10706: checking for timestamp file location" >&5
10707 echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6
10708 if test -n "$with_timedir"; then
10709 echo "$as_me:10709: result: $with_timedir" >&5
10710 echo "${ECHO_T}$with_timedir" >&6
10711 cat >>confdefs.h <<EOF
10712 #define _PATH_SUDO_TIMEDIR "$with_timedir"
10715 timedir="$with_timedir"
10716 elif test -d "/var/run"; then
10717 echo "$as_me:10717: result: /var/run/sudo" >&5
10718 echo "${ECHO_T}/var/run/sudo" >&6
10719 cat >>confdefs.h <<\EOF
10720 #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
10723 timedir="/var/run/sudo"
10725 echo "$as_me:10725: result: /tmp/.odus" >&5
10726 echo "${ECHO_T}/tmp/.odus" >&6
10727 cat >>confdefs.h <<\EOF
10728 #define _PATH_SUDO_TIMEDIR "/tmp/.odus"
10731 timedir="/tmp/.odus"
10734 if test "$with_passwd" = "no"; then
10735 cat >>confdefs.h <<\EOF
10736 #define WITHOUT_PASSWD 1. Define to avoid using the passwd/shadow file for authentication.
10739 if test -z "$AUTH_OBJS"; then
10740 { { echo "$as_me:10740: error: no authentication methods defined." >&5
10741 echo "$as_me: error: no authentication methods defined." >&2;}
10742 { (exit 1); exit 1; }; }
10745 if test -n "$SECUREWARE"; then
10746 AUTH_OBJS="${AUTH_OBJS} passwd.o secureware.o"
10748 AUTH_OBJS="${AUTH_OBJS} passwd.o"
10752 if test -n "$LIBS"; then
10757 for sl in ${SUDO_LIBS} ${NET_LIBS}; do
10758 test $l = $sl && dupe=1
10760 test $dupe = 0 && LIBS="${LIBS} $l"
10764 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
10766 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
10767 cat >confcache <<\_ACEOF
10768 # This file is a shell script that caches the results of configure
10769 # tests run on this system so they can be shared between configure
10770 # scripts and configure runs, see configure's option --config-cache.
10771 # It is not useful on other systems. If it contains results you don't
10772 # want to keep, you may remove or edit it.
10774 # config.status only pays attention to the cache file if you give it
10775 # the --recheck option to rerun configure.
10777 # `ac_cv_env_foo' variables (set or unset) will be overriden when
10778 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10779 # following values.
10783 # The following way of writing the cache mishandles newlines in values,
10784 # but we know of no workaround that is simple, portable, and efficient.
10785 # So, don't put newlines in cache variables' values.
10786 # Ultrix sh set writes to stderr and can't be redirected directly,
10787 # and sets the high bit in the cache file unless we assign to the vars.
10790 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10792 # `set' does not quote correctly, so add quotes (double-quote
10793 # substitution turns \\\\ into \\, and sed turns \\ into \).
10796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10799 # `set' quotes correctly as required by POSIX, so do not add quotes.
10801 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10808 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10810 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10812 if cmp -s $cache_file confcache; then :; else
10813 if test -w $cache_file; then
10814 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10815 cat confcache >$cache_file
10817 echo "not updating unwritable cache $cache_file"
10822 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10823 # Let make expand exec_prefix.
10824 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10826 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10827 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10828 # trailing colons and then remove the whole line if VPATH becomes empty
10829 # (actually we leave an empty line to preserve line numbers).
10830 if test "x$srcdir" = x.; then
10831 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10832 s/:*\$(srcdir):*/:/;
10833 s/:*\${srcdir}:*/:/;
10835 s/^\([^=]*=[ ]*\):*/\1/;
10841 DEFS=-DHAVE_CONFIG_H
10843 : ${CONFIG_STATUS=./config.status}
10844 ac_clean_files_save=$ac_clean_files
10845 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10846 { echo "$as_me:10846: creating $CONFIG_STATUS" >&5
10847 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10848 cat >$CONFIG_STATUS <<_ACEOF
10850 # Generated automatically by configure.
10851 # Run this file to recreate the current configuration.
10852 # Compiler output produced by configure, useful for debugging
10853 # configure, is in config.log if it exists.
10856 SHELL=\${CONFIG_SHELL-$SHELL}
10857 ac_cs_invocation="\$0 \$@"
10861 cat >>$CONFIG_STATUS <<\_ACEOF
10862 # Be Bourne compatible
10863 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10866 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10870 # Name of the executable.
10871 as_me=`echo "$0" |sed 's,.*[\\/],,'`
10873 if expr a : '\(a\)' >/dev/null 2>&1; then
10879 rm -f conf$$ conf$$.exe conf$$.file
10881 if ln -s conf$$.file conf$$ 2>/dev/null; then
10882 # We could just check for DJGPP; but this test a) works b) is more generic
10883 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10884 if test -f conf$$.exe; then
10885 # Don't use ln at all; we don't have any links
10890 elif ln conf$$.file conf$$ 2>/dev/null; then
10895 rm -f conf$$ conf$$.exe conf$$.file
10897 as_executable_p="test -f"
10899 # Support unset when possible.
10900 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10907 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
10908 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
10909 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
10910 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
10911 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
10912 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
10913 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
10914 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
10917 # We need space, tab and new line, in precisely that order.
10923 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
10929 # Files that config.status was made for.
10930 if test -n "$ac_config_files"; then
10931 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10934 if test -n "$ac_config_headers"; then
10935 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10938 if test -n "$ac_config_links"; then
10939 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10942 if test -n "$ac_config_commands"; then
10943 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10946 cat >>$CONFIG_STATUS <<\EOF
10949 \`$as_me' instantiates files from templates according to the
10950 current configuration.
10952 Usage: $0 [OPTIONS] [FILE]...
10954 -h, --help print this help, then exit
10955 -V, --version print version number, then exit
10956 -d, --debug don't remove temporary files
10957 --recheck update $as_me by reconfiguring in the same conditions
10958 --file=FILE[:TEMPLATE]
10959 instantiate the configuration file FILE
10960 --header=FILE[:TEMPLATE]
10961 instantiate the configuration header FILE
10963 Configuration files:
10966 Configuration headers:
10969 Report bugs to <bug-autoconf@gnu.org>."
10972 cat >>$CONFIG_STATUS <<EOF
10974 sudo config.status 1.6.6
10975 configured by $0, generated by GNU Autoconf 2.52,
10976 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10978 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10979 Free Software Foundation, Inc.
10980 This config.status script is free software; the Free Software Foundation
10981 gives unlimited permission to copy, distribute and modify it."
10985 cat >>$CONFIG_STATUS <<\EOF
10986 # If no file are specified by the user, then we need to provide default
10987 # value. By we need to know if files were specified by the user.
10993 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10994 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10996 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
11000 *) # This is not an option, so the user has probably given explicit
11002 ac_need_defaults=false;;
11006 # Handling of the options.
11008 cat >>$CONFIG_STATUS <<EOF
11009 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11010 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
11011 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
11013 cat >>$CONFIG_STATUS <<\EOF
11014 --version | --vers* | -V )
11015 echo "$ac_cs_version"; exit 0 ;;
11017 # Conflict between --help and --header
11018 { { echo "$as_me:11018: error: ambiguous option: $1
11019 Try \`$0 --help' for more information." >&5
11020 echo "$as_me: error: ambiguous option: $1
11021 Try \`$0 --help' for more information." >&2;}
11022 { (exit 1); exit 1; }; };;
11023 --help | --hel | -h )
11024 echo "$ac_cs_usage"; exit 0 ;;
11025 --debug | --d* | -d )
11027 --file | --fil | --fi | --f )
11029 CONFIG_FILES="$CONFIG_FILES $1"
11030 ac_need_defaults=false;;
11031 --header | --heade | --head | --hea )
11033 CONFIG_HEADERS="$CONFIG_HEADERS $1"
11034 ac_need_defaults=false;;
11036 # This is an error.
11037 -*) { { echo "$as_me:11037: error: unrecognized option: $1
11038 Try \`$0 --help' for more information." >&5
11039 echo "$as_me: error: unrecognized option: $1
11040 Try \`$0 --help' for more information." >&2;}
11041 { (exit 1); exit 1; }; } ;;
11043 *) ac_config_targets="$ac_config_targets $1" ;;
11052 ## ----------------------- ##
11053 ## Running config.status. ##
11054 ## ----------------------- ##
11056 This file was extended by $as_me (sudo 1.6.6) 2.52, executed with
11057 CONFIG_FILES = $CONFIG_FILES
11058 CONFIG_HEADERS = $CONFIG_HEADERS
11059 CONFIG_LINKS = $CONFIG_LINKS
11060 CONFIG_COMMANDS = $CONFIG_COMMANDS
11061 > $ac_cs_invocation
11062 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11067 cat >>$CONFIG_STATUS <<\EOF
11068 for ac_config_target in $ac_config_targets
11070 case "$ac_config_target" in
11071 # Handling of arguments.
11072 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11073 "sudo.man" ) CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
11074 "visudo.man" ) CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
11075 "sudoers.man" ) CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
11076 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11077 "pathnames.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
11078 *) { { echo "$as_me:11078: error: invalid argument: $ac_config_target" >&5
11079 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11080 { (exit 1); exit 1; }; };;
11084 # If the user did not use the arguments to specify the items to instantiate,
11085 # then the envvar interface is used. Set only those that are not.
11086 # We use the long form for the default assignment because of an extremely
11087 # bizarre bug on SunOS 4.1.3.
11088 if $ac_need_defaults; then
11089 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11090 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11093 # Create a temporary directory, and hook for its removal unless debugging.
11096 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11097 trap '{ (exit 1); exit 1; }' 1 2 13 15
11100 # Create a (secure) tmp directory for tmp files.
11103 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
11104 test -n "$tmp" && test -d "$tmp"
11107 tmp=$TMPDIR/cs$$-$RANDOM
11108 (umask 077 && mkdir $tmp)
11111 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
11112 { (exit 1); exit 1; }
11117 cat >>$CONFIG_STATUS <<EOF
11120 # CONFIG_FILES section.
11123 # No need to generate the scripts if there are no CONFIG_FILES.
11124 # This happens for instance when ./config.status config.h
11125 if test -n "\$CONFIG_FILES"; then
11126 # Protect against being on the right side of a sed subst in config.status.
11127 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11128 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11129 s,@SHELL@,$SHELL,;t t
11130 s,@exec_prefix@,$exec_prefix,;t t
11131 s,@prefix@,$prefix,;t t
11132 s,@program_transform_name@,$program_transform_name,;t t
11133 s,@bindir@,$bindir,;t t
11134 s,@sbindir@,$sbindir,;t t
11135 s,@libexecdir@,$libexecdir,;t t
11136 s,@datadir@,$datadir,;t t
11137 s,@sysconfdir@,$sysconfdir,;t t
11138 s,@sharedstatedir@,$sharedstatedir,;t t
11139 s,@localstatedir@,$localstatedir,;t t
11140 s,@libdir@,$libdir,;t t
11141 s,@includedir@,$includedir,;t t
11142 s,@oldincludedir@,$oldincludedir,;t t
11143 s,@infodir@,$infodir,;t t
11144 s,@mandir@,$mandir,;t t
11145 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11146 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11147 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11148 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11149 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11150 s,@build_alias@,$build_alias,;t t
11151 s,@host_alias@,$host_alias,;t t
11152 s,@target_alias@,$target_alias,;t t
11153 s,@ECHO_C@,$ECHO_C,;t t
11154 s,@ECHO_N@,$ECHO_N,;t t
11155 s,@ECHO_T@,$ECHO_T,;t t
11156 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11157 s,@DEFS@,$DEFS,;t t
11158 s,@LIBS@,$LIBS,;t t
11159 s,@CFLAGS@,$CFLAGS,;t t
11160 s,@PROGS@,$PROGS,;t t
11161 s,@CPPFLAGS@,$CPPFLAGS,;t t
11162 s,@LDFLAGS@,$LDFLAGS,;t t
11163 s,@SUDO_LDFLAGS@,$SUDO_LDFLAGS,;t t
11164 s,@SUDO_LIBS@,$SUDO_LIBS,;t t
11165 s,@NET_LIBS@,$NET_LIBS,;t t
11166 s,@AFS_LIBS@,$AFS_LIBS,;t t
11167 s,@OSDEFS@,$OSDEFS,;t t
11168 s,@AUTH_OBJS@,$AUTH_OBJS,;t t
11169 s,@LIBOBJS@,$LIBOBJS,;t t
11170 s,@MANTYPE@,$MANTYPE,;t t
11171 s,@MAN_POSTINSTALL@,$MAN_POSTINSTALL,;t t
11172 s,@SUDOERS_MODE@,$SUDOERS_MODE,;t t
11173 s,@SUDOERS_UID@,$SUDOERS_UID,;t t
11174 s,@SUDOERS_GID@,$SUDOERS_GID,;t t
11176 s,@mansectsu@,$mansectsu,;t t
11177 s,@mansectform@,$mansectform,;t t
11178 s,@mansrcdir@,$mansrcdir,;t t
11179 s,@timedir@,$timedir,;t t
11180 s,@timeout@,$timeout,;t t
11181 s,@password_timeout@,$password_timeout,;t t
11182 s,@sudo_umask@,$sudo_umask,;t t
11183 s,@passprompt@,$passprompt,;t t
11184 s,@long_otp_prompt@,$long_otp_prompt,;t t
11185 s,@lecture@,$lecture,;t t
11186 s,@logfac@,$logfac,;t t
11187 s,@goodpri@,$goodpri,;t t
11188 s,@badpri@,$badpri,;t t
11189 s,@loglen@,$loglen,;t t
11190 s,@ignore_dot@,$ignore_dot,;t t
11191 s,@mail_no_user@,$mail_no_user,;t t
11192 s,@mail_no_host@,$mail_no_host,;t t
11193 s,@mail_no_perms@,$mail_no_perms,;t t
11194 s,@mailto@,$mailto,;t t
11195 s,@mailsub@,$mailsub,;t t
11196 s,@badpass_message@,$badpass_message,;t t
11197 s,@fqdn@,$fqdn,;t t
11198 s,@runas_default@,$runas_default,;t t
11199 s,@env_editor@,$env_editor,;t t
11200 s,@passwd_tries@,$passwd_tries,;t t
11201 s,@tty_tickets@,$tty_tickets,;t t
11202 s,@insults@,$insults,;t t
11203 s,@EGREPPROG@,$EGREPPROG,;t t
11205 s,@ac_ct_CC@,$ac_ct_CC,;t t
11206 s,@EXEEXT@,$EXEEXT,;t t
11207 s,@OBJEXT@,$OBJEXT,;t t
11209 s,@UNAMEPROG@,$UNAMEPROG,;t t
11210 s,@TRPROG@,$TRPROG,;t t
11211 s,@SEDPROG@,$SEDPROG,;t t
11212 s,@NROFFPROG@,$NROFFPROG,;t t
11213 s,@build@,$build,;t t
11214 s,@build_cpu@,$build_cpu,;t t
11215 s,@build_vendor@,$build_vendor,;t t
11216 s,@build_os@,$build_os,;t t
11217 s,@host@,$host,;t t
11218 s,@host_cpu@,$host_cpu,;t t
11219 s,@host_vendor@,$host_vendor,;t t
11220 s,@host_os@,$host_os,;t t
11221 s,@YACC@,$YACC,;t t
11222 s,@ALLOCA@,$ALLOCA,;t t
11227 cat >>$CONFIG_STATUS <<\EOF
11228 # Split the substitutions into bite-sized pieces for seds with
11229 # small command number limits, like on Digital OSF/1 and HP-UX.
11230 ac_max_sed_lines=48
11231 ac_sed_frag=1 # Number of current file.
11232 ac_beg=1 # First line for current file.
11233 ac_end=$ac_max_sed_lines # Line after last line for current file.
11236 while $ac_more_lines; do
11237 if test $ac_beg -gt 1; then
11238 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11240 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11242 if test ! -s $tmp/subs.frag; then
11243 ac_more_lines=false
11245 # The purpose of the label and of the branching condition is to
11246 # speed up the sed processing (if there are no `@' at all, there
11247 # is no need to browse any of the substitutions).
11248 # These are the two extra sed commands mentioned above.
11250 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11251 if test -z "$ac_sed_cmds"; then
11252 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11254 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11256 ac_sed_frag=`expr $ac_sed_frag + 1`
11258 ac_end=`expr $ac_end + $ac_max_sed_lines`
11261 if test -z "$ac_sed_cmds"; then
11264 fi # test -n "$CONFIG_FILES"
11267 cat >>$CONFIG_STATUS <<\EOF
11268 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11269 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11271 - | *:- | *:-:* ) # input from stdin
11273 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11274 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11275 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11276 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11277 * ) ac_file_in=$ac_file.in ;;
11280 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11281 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11282 X"$ac_file" : 'X\(//\)[^/]' \| \
11283 X"$ac_file" : 'X\(//\)$' \| \
11284 X"$ac_file" : 'X\(/\)' \| \
11285 . : '\(.\)' 2>/dev/null ||
11287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11288 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11289 /^X\(\/\/\)$/{ s//\1/; q; }
11290 /^X\(\/\).*/{ s//\1/; q; }
11292 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11293 { case "$ac_dir" in
11294 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11298 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11299 case $as_mkdir_dir in
11300 # Skip DOS drivespec
11301 ?:) as_incr_dir=$as_mkdir_dir ;;
11303 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11304 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
11309 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
11310 # A "../" for each directory in $ac_dir_suffix.
11311 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
11313 ac_dir_suffix= ac_dots=
11318 if test -z "$ac_dots"; then
11321 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
11323 [\\/]* | ?:[\\/]* )
11324 ac_srcdir=$srcdir$ac_dir_suffix;
11325 ac_top_srcdir=$srcdir ;;
11326 *) # Relative path.
11327 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
11328 ac_top_srcdir=$ac_dots$srcdir ;;
11331 if test x"$ac_file" != x-; then
11332 { echo "$as_me:11332: creating $ac_file" >&5
11333 echo "$as_me: creating $ac_file" >&6;}
11336 # Let's still pretend it is `configure' which instantiates (i.e., don't
11337 # use $as_me), people would be surprised to read:
11338 # /* config.h. Generated automatically by config.status. */
11339 configure_input="Generated automatically from `echo $ac_file_in |
11340 sed 's,.*/,,'` by configure."
11342 # First look for the input files in the build tree, otherwise in the
11344 ac_file_inputs=`IFS=:
11345 for f in $ac_file_in; do
11347 -) echo $tmp/stdin ;;
11349 # Absolute (can't be DOS-style, as IFS=:)
11350 test -f "$f" || { { echo "$as_me:11350: error: cannot find input file: $f" >&5
11351 echo "$as_me: error: cannot find input file: $f" >&2;}
11352 { (exit 1); exit 1; }; }
11355 if test -f "$f"; then
11358 elif test -f "$srcdir/$f"; then
11363 { { echo "$as_me:11363: error: cannot find input file: $f" >&5
11364 echo "$as_me: error: cannot find input file: $f" >&2;}
11365 { (exit 1); exit 1; }; }
11368 done` || { (exit 1); exit 1; }
11370 cat >>$CONFIG_STATUS <<EOF
11374 cat >>$CONFIG_STATUS <<\EOF
11376 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11377 s,@configure_input@,$configure_input,;t t
11378 s,@srcdir@,$ac_srcdir,;t t
11379 s,@top_srcdir@,$ac_top_srcdir,;t t
11380 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11382 if test x"$ac_file" != x-; then
11383 mv $tmp/out $ac_file
11391 cat >>$CONFIG_STATUS <<\EOF
11394 # CONFIG_HEADER section.
11397 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11398 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11400 # ac_d sets the value in "#define NAME VALUE" lines.
11401 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11402 ac_dB='[ ].*$,\1#\2'
11405 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11406 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11407 ac_uB='$,\1#\2define\3'
11411 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11412 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11414 - | *:- | *:-:* ) # input from stdin
11416 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11417 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11418 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11419 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11420 * ) ac_file_in=$ac_file.in ;;
11423 test x"$ac_file" != x- && { echo "$as_me:11423: creating $ac_file" >&5
11424 echo "$as_me: creating $ac_file" >&6;}
11426 # First look for the input files in the build tree, otherwise in the
11428 ac_file_inputs=`IFS=:
11429 for f in $ac_file_in; do
11431 -) echo $tmp/stdin ;;
11433 # Absolute (can't be DOS-style, as IFS=:)
11434 test -f "$f" || { { echo "$as_me:11434: error: cannot find input file: $f" >&5
11435 echo "$as_me: error: cannot find input file: $f" >&2;}
11436 { (exit 1); exit 1; }; }
11439 if test -f "$f"; then
11442 elif test -f "$srcdir/$f"; then
11447 { { echo "$as_me:11447: error: cannot find input file: $f" >&5
11448 echo "$as_me: error: cannot find input file: $f" >&2;}
11449 { (exit 1); exit 1; }; }
11452 done` || { (exit 1); exit 1; }
11453 # Remove the trailing spaces.
11454 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11458 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11459 # `conftest.undefs', that substitutes the proper values into
11460 # config.h.in to produce config.h. The first handles `#define'
11461 # templates, and the second `#undef' templates.
11462 # And first: Protect against being on the right side of a sed subst in
11463 # config.status. Protect against being in an unquoted here document
11464 # in config.status.
11465 rm -f conftest.defines conftest.undefs
11466 # Using a here document instead of a string reduces the quoting nightmare.
11467 # Putting comments in sed scripts is not portable.
11469 # `end' is used to avoid that the second main sed command (meant for
11470 # 0-ary CPP macros) applies to n-ary macro definitions.
11471 # See the Autoconf documentation for `clear'.
11472 cat >confdef2sed.sed <<\EOF
11477 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
11479 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11482 # If some macros were called several times there might be several times
11483 # the same #defines, which is useless. Nevertheless, we may not want to
11484 # sort them, since we want the *last* AC-DEFINE to be honored.
11485 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11486 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11487 rm -f confdef2sed.sed
11489 # This sed command replaces #undef with comments. This is necessary, for
11490 # example, in the case of _POSIX_SOURCE, which is predefined and required
11491 # on some systems where configure will not decide to define it.
11492 cat >>conftest.undefs <<\EOF
11493 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11496 # Break up conftest.defines because some shells have a limit on the size
11497 # of here documents, and old seds have small limits too (100 cmds).
11498 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11499 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11500 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11501 echo ' :' >>$CONFIG_STATUS
11502 rm -f conftest.tail
11503 while grep . conftest.defines >/dev/null
11505 # Write a limited-size here document to $tmp/defines.sed.
11506 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11507 # Speed up: don't consider the non `#define' lines.
11508 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11509 # Work around the forget-to-reset-the-flag bug.
11510 echo 't clr' >>$CONFIG_STATUS
11511 echo ': clr' >>$CONFIG_STATUS
11512 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11514 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11516 mv $tmp/out $tmp/in
11518 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11519 rm -f conftest.defines
11520 mv conftest.tail conftest.defines
11522 rm -f conftest.defines
11523 echo ' fi # egrep' >>$CONFIG_STATUS
11524 echo >>$CONFIG_STATUS
11526 # Break up conftest.undefs because some shells have a limit on the size
11527 # of here documents, and old seds have small limits too (100 cmds).
11528 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11529 rm -f conftest.tail
11530 while grep . conftest.undefs >/dev/null
11532 # Write a limited-size here document to $tmp/undefs.sed.
11533 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11534 # Speed up: don't consider the non `#undef'
11535 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11536 # Work around the forget-to-reset-the-flag bug.
11537 echo 't clr' >>$CONFIG_STATUS
11538 echo ': clr' >>$CONFIG_STATUS
11539 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11541 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11543 mv $tmp/out $tmp/in
11545 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11546 rm -f conftest.undefs
11547 mv conftest.tail conftest.undefs
11549 rm -f conftest.undefs
11551 cat >>$CONFIG_STATUS <<\EOF
11552 # Let's still pretend it is `configure' which instantiates (i.e., don't
11553 # use $as_me), people would be surprised to read:
11554 # /* config.h. Generated automatically by config.status. */
11555 if test x"$ac_file" = x-; then
11556 echo "/* Generated automatically by configure. */" >$tmp/config.h
11558 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
11560 cat $tmp/in >>$tmp/config.h
11562 if test x"$ac_file" != x-; then
11563 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
11564 { echo "$as_me:11564: $ac_file is unchanged" >&5
11565 echo "$as_me: $ac_file is unchanged" >&6;}
11567 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11568 X"$ac_file" : 'X\(//\)[^/]' \| \
11569 X"$ac_file" : 'X\(//\)$' \| \
11570 X"$ac_file" : 'X\(/\)' \| \
11571 . : '\(.\)' 2>/dev/null ||
11573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11574 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11575 /^X\(\/\/\)$/{ s//\1/; q; }
11576 /^X\(\/\).*/{ s//\1/; q; }
11578 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11579 { case "$ac_dir" in
11580 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11584 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11585 case $as_mkdir_dir in
11586 # Skip DOS drivespec
11587 ?:) as_incr_dir=$as_mkdir_dir ;;
11589 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11590 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
11597 mv $tmp/config.h $ac_file
11601 rm -f $tmp/config.h
11606 cat >>$CONFIG_STATUS <<\EOF
11608 { (exit 0); exit 0; }
11610 chmod +x $CONFIG_STATUS
11611 ac_clean_files=$ac_clean_files_save
11613 # configure is writing to config.log, and then calls config.status.
11614 # config.status does its own redirection, appending to config.log.
11615 # Unfortunately, on DOS this fails, as config.log is still kept open
11616 # by configure, so config.status won't be able to write to it; its
11617 # output is simply discarded. So we exec the FD to /dev/null,
11618 # effectively closing config.log, so it can be properly (re)opened and
11619 # appended to by config.status. When coming back to configure, we
11620 # need to make the FD available again.
11621 if test "$no_create" != yes; then
11624 $SHELL $CONFIG_STATUS || ac_cs_success=false
11626 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11627 # would make configure fail if this is the last instruction.
11628 $ac_cs_success || { (exit 1); exit 1; }
11631 if test "$with_pam" = "yes"; then
11635 echo "You will need to customize sample.pam and install it as /etc/pam.d/sudo"