Imported Upstream version 1.6.6
[debian/sudo] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52 for sudo 1.6.6.
4 #
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.
9
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
16
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
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"
22
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25   emulate sh
26   NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28   set -o posix
29 fi
30
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
33
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35   as_expr=expr
36 else
37   as_expr=false
38 fi
39
40 rm -f conf$$ conf$$.exe conf$$.file
41 echo >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
47     as_ln_s='cp -p'
48   else
49     as_ln_s='ln -s'
50   fi
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52   as_ln_s=ln
53 else
54   as_ln_s='cp -p'
55 fi
56 rm -f conf$$ conf$$.exe conf$$.file
57
58 as_executable_p="test -f"
59
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62   as_unset=unset
63 else
64   as_unset=false
65 fi
66
67 # NLS nuisances.
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; }
76
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
80 '
81 IFS="   $as_nl"
82
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85
86 # Name of the host.
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`
90
91 exec 6>&1
92
93 #
94 # Initializations.
95 #
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh}
101
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}
106
107 # Factoring default headers for most tests.
108 ac_includes_default="\
109 #include <stdio.h>
110 #if HAVE_SYS_TYPES_H
111 # include <sys/types.h>
112 #endif
113 #if HAVE_SYS_STAT_H
114 # include <sys/stat.h>
115 #endif
116 #if STDC_HEADERS
117 # include <stdlib.h>
118 # include <stddef.h>
119 #else
120 # if HAVE_STDLIB_H
121 #  include <stdlib.h>
122 # endif
123 #endif
124 #if HAVE_STRING_H
125 # if !STDC_HEADERS && HAVE_MEMORY_H
126 #  include <memory.h>
127 # endif
128 # include <string.h>
129 #endif
130 #if HAVE_STRINGS_H
131 # include <strings.h>
132 #endif
133 #if HAVE_INTTYPES_H
134 # include <inttypes.h>
135 #else
136 # if HAVE_STDINT_H
137 #  include <stdint.h>
138 # endif
139 #endif
140 #if HAVE_UNISTD_H
141 # include <unistd.h>
142 #endif"
143
144 # Initialize some variables set by options.
145 ac_init_help=
146 ac_init_version=false
147 # The variables have the same names as the options, with
148 # dashes changed to underlines.
149 cache_file=/dev/null
150 exec_prefix=NONE
151 no_create=
152 no_recursion=
153 prefix=NONE
154 program_prefix=NONE
155 program_suffix=NONE
156 program_transform_name=s,x,x,
157 silent=
158 site=
159 srcdir=
160 verbose=
161 x_includes=NONE
162 x_libraries=NONE
163
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'
181
182 # Identity of this package.
183 PACKAGE_NAME='sudo'
184 PACKAGE_TARNAME='sudo'
185 PACKAGE_VERSION='1.6.6'
186 PACKAGE_STRING='sudo 1.6.6'
187 PACKAGE_BUGREPORT=''
188
189 ac_prev=
190 for ac_option
191 do
192   # If the previous option needs an argument, assign it.
193   if test -n "$ac_prev"; then
194     eval "$ac_prev=\$ac_option"
195     ac_prev=
196     continue
197   fi
198
199   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
200
201   # Accept the important Cygnus configure options, so we can diagnose typos.
202
203   case $ac_option in
204
205   -bindir | --bindir | --bindi | --bind | --bin | --bi)
206     ac_prev=bindir ;;
207   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
208     bindir=$ac_optarg ;;
209
210   -build | --build | --buil | --bui | --bu)
211     ac_prev=build_alias ;;
212   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
213     build_alias=$ac_optarg ;;
214
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 ;;
221
222   --config-cache | -C)
223     cache_file=config.cache ;;
224
225   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
226     ac_prev=datadir ;;
227   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
228   | --da=*)
229     datadir=$ac_optarg ;;
230
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" ;;
239
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'`
247     case $ac_option in
248       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
249       *) ac_optarg=yes ;;
250     esac
251     eval enable_$ac_feature='$ac_optarg' ;;
252
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 ;;
261
262   -gas | --gas | --ga | --g)
263     # Obsolete; use --with-gas.
264     with_gas=yes ;;
265
266   -help | --help | --hel | --he | -h)
267     ac_init_help=long ;;
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 ;;
272
273   -host | --host | --hos | --ho)
274     ac_prev=host_alias ;;
275   -host=* | --host=* | --hos=* | --ho=*)
276     host_alias=$ac_optarg ;;
277
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 ;;
284
285   -infodir | --infodir | --infodi | --infod | --info | --inf)
286     ac_prev=infodir ;;
287   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
288     infodir=$ac_optarg ;;
289
290   -libdir | --libdir | --libdi | --libd)
291     ac_prev=libdir ;;
292   -libdir=* | --libdir=* | --libdi=* | --libd=*)
293     libdir=$ac_optarg ;;
294
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 ;;
301
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 ;;
310
311   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
312     ac_prev=mandir ;;
313   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
314     mandir=$ac_optarg ;;
315
316   -nfp | --nfp | --nf)
317     # Obsolete; use --without-fp.
318     with_fp=no ;;
319
320   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
321   | --no-cr | --no-c)
322     no_create=yes ;;
323
324   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
325   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
326     no_recursion=yes ;;
327
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 ;;
336
337   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
338     ac_prev=prefix ;;
339   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
340     prefix=$ac_optarg ;;
341
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 ;;
348
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 ;;
355
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 ;;
372
373   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
374   | -silent | --silent | --silen | --sile | --sil)
375     silent=yes ;;
376
377   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
378     ac_prev=sbindir ;;
379   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
380   | --sbi=* | --sb=*)
381     sbindir=$ac_optarg ;;
382
383   -sharedstatedir | --sharedstatedir | --sharedstatedi \
384   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
385   | --sharedst | --shareds | --shared | --share | --shar \
386   | --sha | --sh)
387     ac_prev=sharedstatedir ;;
388   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
389   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
390   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
391   | --sha=* | --sh=*)
392     sharedstatedir=$ac_optarg ;;
393
394   -site | --site | --sit)
395     ac_prev=site ;;
396   -site=* | --site=* | --sit=*)
397     site=$ac_optarg ;;
398
399   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
400     ac_prev=srcdir ;;
401   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
402     srcdir=$ac_optarg ;;
403
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 ;;
410
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 ;;
415
416   -v | -verbose | --verbose | --verbos | --verbo | --verb)
417     verbose=yes ;;
418
419   -version | --version | --versio | --versi | --vers | -V)
420     ac_init_version=: ;;
421
422   -with-* | --with-*)
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'`
429     case $ac_option in
430       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
431       *) ac_optarg=yes ;;
432     esac
433     eval with_$ac_package='$ac_optarg' ;;
434
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" ;;
443
444   --x)
445     # Obsolete; use --with-x.
446     with_x=yes ;;
447
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 ;;
454
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 ;;
461
462   -*) { echo "$as_me: error: unrecognized option: $ac_option
463 Try \`$0 --help' for more information." >&2
464    { (exit 1); exit 1; }; }
465     ;;
466
467   *=*)
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'"
475     export $ac_envvar ;;
476
477   *)
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}
483     ;;
484
485   esac
486 done
487
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; }; }
492 fi
493
494 # Be sure to have absolute paths.
495 for ac_var in exec_prefix prefix
496 do
497   eval ac_val=$`echo $ac_var`
498   case $ac_val in
499     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
500     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
501    { (exit 1); exit 1; }; };;
502   esac
503 done
504
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
508 do
509   eval ac_val=$`echo $ac_var`
510   case $ac_val in
511     [\\/$]* | ?:[\\/]* ) ;;
512     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
513    { (exit 1); exit 1; }; };;
514   esac
515 done
516
517 # There might be people who depend on the old broken behavior: `$host'
518 # used to hold the argument of --host etc.
519 build=$build_alias
520 host=$host_alias
521 target=$target_alias
522
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
530     cross_compiling=yes
531   fi
532 fi
533
534 ac_tool_prefix=
535 test -n "$host_alias" && ac_tool_prefix=$host_alias-
536
537 test "$silent" = yes && exec 6>/dev/null
538
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.
543   ac_prog=$0
544   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
545   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
546   srcdir=$ac_confdir
547   if test ! -r $srcdir/$ac_unique_file; then
548     srcdir=..
549   fi
550 else
551   ac_srcdir_defaulted=no
552 fi
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; }; }
557   else
558     { echo "$as_me: error: cannot find sources in $srcdir" >&2
559    { (exit 1); exit 1; }; }
560   fi
561 fi
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}
576 ac_env_CC_value=$CC
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
595
596 #
597 # Report the --help message.
598 #
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.
602   cat <<EOF
603 \`configure' configures sudo 1.6.6 to adapt to many kinds of systems.
604
605 Usage: $0 [OPTION]... [VAR=VALUE]...
606
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.
609
610 Defaults for the options are specified in brackets.
611
612 Configuration:
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 \`..']
622
623 EOF
624
625   cat <<EOF
626 Installation directories:
627   --prefix=PREFIX         install architecture-independent files in PREFIX
628                           [$ac_default_prefix]
629   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
630                           [PREFIX]
631
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'.
636
637 For better control, use the options below.
638
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]
652 EOF
653
654   cat <<\EOF
655
656 System types:
657   --build=BUILD     configure for building on BUILD [guessed]
658   --host=HOST       build programs to run on HOST [BUILD]
659 EOF
660 fi
661
662 if test -n "$ac_init_help"; then
663   case $ac_init_help in
664      short | recursive ) echo "Configuration of sudo 1.6.6:";;
665    esac
666   cat <<\EOF
667
668 Optional Features:
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
684
685 Optional Packages:
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
752
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>
760   CPP         C preprocessor
761
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.
764
765 EOF
766 fi
767
768 if test "$ac_init_help" = "recursive"; then
769   # If there are subdirs, report their specific --help.
770   ac_popdir=`pwd`
771   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
772     cd $ac_subdir
773     # A "../" for each directory in /$ac_subdir.
774     ac_dots=`echo $ac_subdir |
775              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
776
777     case $srcdir in
778     .) # No --srcdir option.  We are building in place.
779       ac_sub_srcdir=$srcdir ;;
780     [\\/]* | ?:[\\/]* ) # Absolute path.
781       ac_sub_srcdir=$srcdir/$ac_subdir ;;
782     *) # Relative path.
783       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
784     esac
785
786     # Check for guested configure; otherwise get Cygnus style configure.
787     if test -f $ac_sub_srcdir/configure.gnu; then
788       echo
789       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
790     elif test -f $ac_sub_srcdir/configure; then
791       echo
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
795       echo
796       $ac_configure --help
797     else
798       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
799     fi
800     cd $ac_popdir
801   done
802 fi
803
804 test -n "$ac_init_help" && exit 0
805 if $ac_init_version; then
806   cat <<\EOF
807 sudo configure 1.6.6
808 generated by GNU Autoconf 2.52
809
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.
814 EOF
815   exit 0
816 fi
817 exec 5>config.log
818 cat >&5 <<EOF
819 This file contains any messages produced by compilers while
820 running configure, to aid debugging if configure makes a mistake.
821
822 It was created by sudo $as_me 1.6.6, which was
823 generated by GNU Autoconf 2.52.  Invocation command line was
824
825   $ $0 $@
826
827 EOF
828 {
829 cat <<_ASUNAME
830 ## ---------- ##
831 ## Platform.  ##
832 ## ---------- ##
833
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`
839
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`
842
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`
850
851 PATH = $PATH
852
853 _ASUNAME
854 } >&5
855
856 cat >&5 <<EOF
857 ## ------------ ##
858 ## Core tests.  ##
859 ## ------------ ##
860
861 EOF
862
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.
866 ac_configure_args=
867 ac_sep=
868 for ac_arg
869 do
870   case $ac_arg in
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\""
878     ac_sep=" " ;;
879   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
880      ac_sep=" " ;;
881   esac
882   # Get rid of the leading space.
883 done
884
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.
888 trap 'exit_status=$?
889   # Save into config.log some information that might help in debugging.
890   echo >&5
891   echo "## ----------------- ##" >&5
892   echo "## Cache variables.  ##" >&5
893   echo "## ----------------- ##" >&5
894   echo >&5
895   # The following way of writing the cache mishandles newlines in values,
896 {
897   (set) 2>&1 |
898     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
899     *ac_space=\ *)
900       sed -n \
901         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
902           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
903       ;;
904     *)
905       sed -n \
906         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
907       ;;
908     esac;
909 } >&5
910   sed "/^$/d" confdefs.h >conftest.log
911   if test -s conftest.log; then
912     echo >&5
913     echo "## ------------ ##" >&5
914     echo "## confdefs.h.  ##" >&5
915     echo "## ------------ ##" >&5
916     echo >&5
917     cat conftest.log >&5
918   fi
919   (echo; 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 &&
924     exit $exit_status
925      ' 0
926 for ac_signal in 1 2 13 15; do
927   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
928 done
929 ac_signal=0
930
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.
934 echo >confdefs.h
935
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"
941   else
942     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
943   fi
944 fi
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
950     . "$ac_site_file"
951   fi
952 done
953
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;}
960     case $cache_file in
961       [\\/]* | ?:[\\/]* ) . $cache_file;;
962       *)                      . ./$cache_file;;
963     esac
964   fi
965 else
966   { echo "$as_me:966: creating cache $cache_file" >&5
967 echo "$as_me: creating cache $cache_file" >&6;}
968   >$cache_file
969 fi
970
971 # Check that the precious variables saved in the cache have kept the same
972 # value.
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
981     set,)
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=: ;;
985     ,set)
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=: ;;
989     ,);;
990     *)
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;}
998         ac_cache_corrupted=:
999       fi;;
1000   esac
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
1004     case $ac_new_val in
1005     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1006       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1007       ac_configure_args="$ac_configure_args '$ac_arg'"
1008       ;;
1009     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1010        ;;
1011     esac
1012   fi
1013 done
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; }; }
1020 fi
1021
1022 ac_ext=c
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
1027
1028 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1029   *c*,-n*) ECHO_N= ECHO_C='
1030 ' ECHO_T='      ' ;;
1031   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1032   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1033 esac
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
1039   ac_status=$?
1040   echo "$as_me:1040: \$? = $ac_status" >&5
1041   (exit $ac_status); }; then
1042   ac_path_separator=';'
1043 else
1044   ac_path_separator=:
1045 fi
1046 PATH_SEPARATOR="$ac_path_separator"
1047 rm -f conftest.sh
1048
1049 ac_config_headers="$ac_config_headers config.h pathnames.h"
1050
1051 echo "Configuring Sudo version 1.6.6"
1052
1053 timeout=5
1054 password_timeout=5
1055 sudo_umask=0022
1056 passprompt="Password:"
1057 long_otp_prompt=off
1058 lecture=on
1059 logfac=local2
1060 goodpri=notice
1061 badpri=alert
1062 loglen=80
1063 ignore_dot=off
1064 mail_no_user=on
1065 mail_no_host=off
1066 mail_no_perms=off
1067 mailto=root
1068 mailsub='*** SECURITY information for %h ***'
1069 badpass_message='Sorry, try again.'
1070 fqdn=off
1071 runas_default=root
1072 env_editor=off
1073 passwd_tries=3
1074 tty_tickets=off
1075 insults=off
1076 PROGS="sudo visudo"
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
1082 DEV="#"
1083
1084 CHECKSHADOW=true
1085 CHECKSIA=true
1086
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'
1091
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
1096     yes)        with_passwd=no
1097
1098 cat >>confdefs.h <<\EOF
1099 #define WITHOUT_PASSWD 1
1100 EOF
1101
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;}
1104                 ;;
1105 esac
1106 fi;
1107
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;}
1115                 ;;
1116 esac
1117 fi;
1118
1119 # Check whether --with-CC or --without-CC was given.
1120 if test "${with_CC+set}" = set; then
1121   withval="$with_CC"
1122   case $with_CC in
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; }; }
1126                 ;;
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; }; }
1130                 ;;
1131     *)          CC=$with_CC
1132                 ;;
1133 esac
1134 fi;
1135
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; }; }
1143                 ;;
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; }; }
1147                 ;;
1148     *)          echo "Adding ${with_incpath} to CPPFLAGS"
1149                 for i in ${with_incpath}; do
1150                     CPPFLAGS="${CPPFLAGS} -I${i}"
1151                 done
1152                 ;;
1153 esac
1154 fi;
1155
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; }; }
1163                 ;;
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; }; }
1167                 ;;
1168     *)          echo "Adding ${with_libpath} to LDFLAGS"
1169                 for i in ${with_libpath}; do
1170                     LDFLAGS="${LDFLAGS} -L${i}"
1171                 done
1172                 ;;
1173 esac
1174 fi;
1175
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; }; }
1183                 ;;
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; }; }
1187                 ;;
1188     *)          echo "Adding ${with_libraries} to LIBS"
1189                 for i in ${with_libraries}; do
1190                     case $i in
1191                         -l*)    ;;
1192                         *.a)    ;;
1193                         *.o)    ;;
1194                         *)      i="-l${i}";;
1195                     esac
1196                     LIBS="${LIBS} ${i}"
1197                 done
1198                 ;;
1199 esac
1200 fi;
1201
1202 # Check whether --with-devel or --without-devel was given.
1203 if test "${with_devel+set}" = set; then
1204   withval="$with_devel"
1205   case $with_devel in
1206     yes)        echo 'Setting up for developement: -Wall, flex, yacc'
1207                 PROGS="${PROGS} testsudoers"
1208                 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
1209                 DEV=""
1210                 ;;
1211     no)         ;;
1212     *)          echo "Ignoring unknown argument to --with-devel: $with_devel"
1213                 ;;
1214 esac
1215 fi;
1216
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"
1225                 fi
1226                 ;;
1227     no)         ;;
1228     *)          echo "Ignoring unknown argument to --with-efence: $with_efence"
1229                 ;;
1230 esac
1231 fi;
1232
1233 # Check whether --with-csops or --without-csops was given.
1234 if test "${with_csops+set}" = set; then
1235   withval="$with_csops"
1236   case $with_csops in
1237     yes)        echo 'Adding CSOps standard options'
1238                 CHECKSIA=false
1239                 with_ignore_dot=yes
1240                 insults=on
1241                 with_classic_insults=yes
1242                 with_csops_insults=yes
1243                 with_env_editor=yes
1244                 ;;
1245     no)         ;;
1246     *)          echo "Ignoring unknown argument to --with-csops: $with_csops"
1247                 ;;
1248 esac
1249 fi;
1250
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
1255     yes)        ;;
1256     no)         cat >>confdefs.h <<\EOF
1257 #define WITHOUT_PASSWD 1
1258 EOF
1259
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
1264                 ;;
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; }; }
1268                 ;;
1269 esac
1270 fi;
1271
1272 # Check whether --with-skey or --without-skey was given.
1273 if test "${with_skey+set}" = set; then
1274   withval="$with_skey"
1275   case $with_skey in
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; }; }
1280                 fi
1281
1282 cat >>confdefs.h <<\EOF
1283 #define HAVE_SKEY 1
1284 EOF
1285
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"
1291                 ;;
1292     no)         ;;
1293     *)          echo "Ignoring unknown argument to --with-skey: $with_skey"
1294                 ;;
1295 esac
1296 fi;
1297
1298 # Check whether --with-opie or --without-opie was given.
1299 if test "${with_opie+set}" = set; then
1300   withval="$with_opie"
1301   case $with_opie in
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; }; }
1306                 fi
1307
1308 cat >>confdefs.h <<\EOF
1309 #define HAVE_OPIE 1
1310 EOF
1311
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"
1317                 ;;
1318     no)         ;;
1319     *)          echo "Ignoring unknown argument to --with-opie: $with_opie"
1320                 ;;
1321 esac
1322 fi;
1323
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
1328     yes)
1329 cat >>confdefs.h <<\EOF
1330 #define LONG_OTP_PROMPT 1
1331 EOF
1332
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
1337                 long_otp_prompt=on
1338                 ;;
1339     no)         long_otp_prompt=off
1340                 ;;
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; }; }
1344                 ;;
1345 esac
1346 fi;
1347
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
1352     no)         ;;
1353     *)
1354 cat >>confdefs.h <<\EOF
1355 #define HAVE_SECURID 1
1356 EOF
1357
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
1362                 with_passwd=no
1363                 AUTH_OBJS="securid.o"
1364                 ;;
1365 esac
1366 fi;
1367
1368 # Check whether --with-fwtk or --without-fwtk was given.
1369 if test "${with_fwtk+set}" = set; then
1370   withval="$with_fwtk"
1371   case $with_fwtk in
1372     no)         ;;
1373     *)
1374 cat >>confdefs.h <<\EOF
1375 #define HAVE_FWTK 1
1376 EOF
1377
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
1382                 with_passwd=no
1383                 AUTH_OBJS="fwtk.o"
1384                 if test "$with_fwtk" != "yes"; then
1385                     SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
1386                     CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
1387                     with_fwtk=yes
1388                 fi
1389                 ;;
1390 esac
1391 fi;
1392
1393 # Check whether --with-kerb4 or --without-kerb4 was given.
1394 if test "${with_kerb4+set}" = set; then
1395   withval="$with_kerb4"
1396   case $with_kerb4 in
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
1401                 ;;
1402     no)         ;;
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; }; }
1406                 ;;
1407 esac
1408 fi;
1409
1410 # Check whether --with-kerb5 or --without-kerb5 was given.
1411 if test "${with_kerb5+set}" = set; then
1412   withval="$with_kerb5"
1413   case $with_kerb5 in
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
1418                 ;;
1419     no)         ;;
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; }; }
1423                 ;;
1424 esac
1425 fi;
1426
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
1431     yes)
1432 cat >>confdefs.h <<\EOF
1433 #define HAVE_AUTHENTICATE 1
1434 EOF
1435
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
1440                 with_passwd=no
1441                 AUTH_OBJS="aix_auth.o"
1442                 ;;
1443     no)         ;;
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; }; }
1447                 ;;
1448 esac
1449 fi;
1450
1451 # Check whether --with-pam or --without-pam was given.
1452 if test "${with_pam+set}" = set; then
1453   withval="$with_pam"
1454   case $with_pam in
1455     yes)
1456 cat >>confdefs.h <<\EOF
1457 #define HAVE_PAM 1
1458 EOF
1459
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
1464                 with_passwd=no
1465                 AUTH_OBJS="pam.o"
1466                 ;;
1467     no)         ;;
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; }; }
1471                 ;;
1472 esac
1473 fi;
1474
1475 # Check whether --with-AFS or --without-AFS was given.
1476 if test "${with_AFS+set}" = set; then
1477   withval="$with_AFS"
1478   case $with_AFS in
1479     yes)
1480 cat >>confdefs.h <<\EOF
1481 #define HAVE_AFS 1
1482 EOF
1483
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"
1489                 ;;
1490     no)         ;;
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; }; }
1494                 ;;
1495 esac
1496 fi;
1497
1498 # Check whether --with-DCE or --without-DCE was given.
1499 if test "${with_DCE+set}" = set; then
1500   withval="$with_DCE"
1501   case $with_DCE in
1502     yes)
1503 cat >>confdefs.h <<\EOF
1504 #define HAVE_DCE 1
1505 EOF
1506
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"
1512                 ;;
1513     no)         ;;
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; }; }
1517                 ;;
1518 esac
1519 fi;
1520
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
1525     yes|no)     ;;
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; }; }
1529                 ;;
1530 esac
1531 fi;
1532
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
1538                 ;;
1539     no)         ;;
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; }; }
1543                 ;;
1544 esac
1545 fi;
1546
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
1549
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
1555                 ;;
1556     no|none)    lecture=off
1557                 ;;
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; }; }
1561                 ;;
1562 esac
1563 fi;
1564 if test "$lecture" = "on"; then
1565     echo "$as_me:1565: result: yes" >&5
1566 echo "${ECHO_T}yes" >&6
1567 else
1568
1569 cat >>confdefs.h <<\EOF
1570 #define NO_LECTURE 1
1571 EOF
1572
1573     echo "$as_me:1573: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1575 fi
1576
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
1579
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; }; }
1587                 ;;
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; }; }
1591                 ;;
1592     syslog)
1593 cat >>confdefs.h <<\EOF
1594 #define LOGGING SLOG_SYSLOG
1595 EOF
1596
1597                 echo "$as_me:1597: result: syslog" >&5
1598 echo "${ECHO_T}syslog" >&6
1599                 ;;
1600     file)       cat >>confdefs.h <<\EOF
1601 #define LOGGING SLOG_FILE
1602 EOF
1603
1604                 echo "$as_me:1604: result: file" >&5
1605 echo "${ECHO_T}file" >&6
1606                 ;;
1607     both)       cat >>confdefs.h <<\EOF
1608 #define LOGGING SLOG_BOTH
1609 EOF
1610
1611                 echo "$as_me:1611: result: both" >&5
1612 echo "${ECHO_T}both" >&6
1613                 ;;
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; }; }
1617                 ;;
1618 esac
1619 else
1620   cat >>confdefs.h <<\EOF
1621 #define LOGGING SLOG_SYSLOG
1622 EOF
1623  echo "$as_me:1623: result: syslog" >&5
1624 echo "${ECHO_T}syslog" >&6
1625 fi;
1626
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
1629
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; }; }
1637                 ;;
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; }; }
1641                 ;;
1642     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)          logfac=$with_logfac
1643                 ;;
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; }; }
1647                 ;;
1648 esac
1649 fi;
1650
1651 cat >>confdefs.h <<EOF
1652 #define LOGFAC "$logfac"
1653 EOF
1654
1655 echo "$as_me:1655: result: $logfac" >&5
1656 echo "${ECHO_T}$logfac" >&6
1657
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
1660
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; }; }
1668                 ;;
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; }; }
1672                 ;;
1673     alert|crit|debug|emerg|err|info|notice|warning)
1674                 goodpri=$with_goodpri
1675                 ;;
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; }; }
1679                 ;;
1680 esac
1681 fi;
1682
1683 cat >>confdefs.h <<EOF
1684 #define PRI_SUCCESS "$goodpri"
1685 EOF
1686
1687 echo "$as_me:1687: result: $goodpri" >&5
1688 echo "${ECHO_T}$goodpri" >&6
1689
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
1692
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; }; }
1700                 ;;
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; }; }
1704                 ;;
1705     alert|crit|debug|emerg|err|info|notice|warning)
1706                 badpri=$with_badpri
1707                 ;;
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; }; }
1711                 ;;
1712 esac
1713 fi;
1714
1715 cat >>confdefs.h <<EOF
1716 #define PRI_FAILURE "$badpri"
1717 EOF
1718
1719 echo "$as_me:1719: result: badpri" >&5
1720 echo "${ECHO_T}badpri" >&6
1721
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; }; }
1729                 ;;
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; }; }
1733                 ;;
1734 esac
1735 fi;
1736
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
1739
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; }; }
1747                 ;;
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; }; }
1751                 ;;
1752     [0-9]*)     loglen=$with_loglen
1753                 ;;
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; }; }
1757                 ;;
1758 esac
1759 fi;
1760
1761 cat >>confdefs.h <<EOF
1762 #define MAXLOGFILELEN $loglen
1763 EOF
1764
1765 echo "$as_me:1765: result: $loglen" >&5
1766 echo "${ECHO_T}$loglen" >&6
1767
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
1770
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
1775     yes)        ignore_dot=on
1776                 ;;
1777     no)         ignore_dot=off
1778                 ;;
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; }; }
1782                 ;;
1783 esac
1784 fi;
1785 if test "$ignore_dot" = "on"; then
1786
1787 cat >>confdefs.h <<\EOF
1788 #define IGNORE_DOT_PATH 1
1789 EOF
1790
1791     echo "$as_me:1791: result: yes" >&5
1792 echo "${ECHO_T}yes" >&6
1793 else
1794     echo "$as_me:1794: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1796 fi
1797
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
1800
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
1806                 ;;
1807     no)         mail_no_user=off
1808                 ;;
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; }; }
1812                 ;;
1813 esac
1814 fi;
1815 if test "$mail_no_user" = "on"; then
1816
1817 cat >>confdefs.h <<\EOF
1818 #define SEND_MAIL_WHEN_NO_USER 1
1819 EOF
1820
1821     echo "$as_me:1821: result: yes" >&5
1822 echo "${ECHO_T}yes" >&6
1823 else
1824     echo "$as_me:1824: result: no" >&5
1825 echo "${ECHO_T}no" >&6
1826 fi
1827
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
1830
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
1836                 ;;
1837     no)         mail_no_host=off
1838                 ;;
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; }; }
1842                 ;;
1843 esac
1844 fi;
1845 if test "$mail_no_host" = "on"; then
1846
1847 cat >>confdefs.h <<\EOF
1848 #define SEND_MAIL_WHEN_NO_HOST 1
1849 EOF
1850
1851     echo "$as_me:1851: result: yes" >&5
1852 echo "${ECHO_T}yes" >&6
1853 else
1854     echo "$as_me:1854: result: no" >&5
1855 echo "${ECHO_T}no" >&6
1856 fi
1857
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
1860
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
1866                 ;;
1867     no)         mail_noperms=off
1868                 ;;
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; }; }
1872                 ;;
1873 esac
1874 fi;
1875 if test "$mail_noperms" = "on"; then
1876
1877 cat >>confdefs.h <<\EOF
1878 #define SEND_MAIL_WHEN_NOT_OK 1
1879 EOF
1880
1881     echo "$as_me:1881: result: yes" >&5
1882 echo "${ECHO_T}yes" >&6
1883 else
1884     echo "$as_me:1884: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1886 fi
1887
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
1890
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; }; }
1898                 ;;
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; }; }
1902                 ;;
1903     *)          mailto=$with_mailto
1904                 ;;
1905 esac
1906 fi;
1907
1908 cat >>confdefs.h <<EOF
1909 #define MAILTO "$mailto"
1910 EOF
1911
1912 echo "$as_me:1912: result: $mailto" >&5
1913 echo "${ECHO_T}$mailto" >&6
1914
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; }; }
1922                 ;;
1923     no)         echo "Sorry, --without-mailsubject not supported."
1924                 ;;
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
1930                 ;;
1931 esac
1932 fi;
1933
1934 cat >>confdefs.h <<EOF
1935 #define MAILSUBJECT "$mailsub"
1936 EOF
1937
1938 echo "$as_me:1938: checking for bad password prompt" >&5
1939 echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6
1940
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; }; }
1948                 ;;
1949     no)         echo "Sorry, --without-passprompt not supported."
1950                 ;;
1951     *)          passprompt="$with_passprompt"
1952 esac
1953 fi;
1954 echo "$as_me:1954: result: $passprompt" >&5
1955 echo "${ECHO_T}$passprompt" >&6
1956
1957 cat >>confdefs.h <<EOF
1958 #define PASSPROMPT "$passprompt"
1959 EOF
1960
1961 echo "$as_me:1961: checking for bad password message" >&5
1962 echo $ECHO_N "checking for bad password message... $ECHO_C" >&6
1963
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; }; }
1971                 ;;
1972     no)         echo "Sorry, --without-badpass-message not supported."
1973                 ;;
1974     *)          badpass_message="$with_badpass_message"
1975                 ;;
1976 esac
1977 fi;
1978
1979 cat >>confdefs.h <<EOF
1980 #define INCORRECT_PASSWORD "$badpass_message"
1981 EOF
1982
1983 echo "$as_me:1983: result: $badpass_message" >&5
1984 echo "${ECHO_T}$badpass_message" >&6
1985
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
1988
1989 # Check whether --with-fqdn or --without-fqdn was given.
1990 if test "${with_fqdn+set}" = set; then
1991   withval="$with_fqdn"
1992   case $with_fqdn in
1993     yes)        fqdn=on
1994                 ;;
1995     no)         fqdn=off
1996                 ;;
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; }; }
2000                 ;;
2001 esac
2002 fi;
2003 if test "$fqdn" = "on"; then
2004
2005 cat >>confdefs.h <<\EOF
2006 #define FQDN 1
2007 EOF
2008
2009     echo "$as_me:2009: result: yes" >&5
2010 echo "${ECHO_T}yes" >&6
2011 else
2012     echo "$as_me:2012: result: no" >&5
2013 echo "${ECHO_T}no" >&6
2014 fi
2015
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; }; }
2023                 ;;
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; }; }
2027                 ;;
2028 esac
2029 fi;
2030
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=""
2036                 ;;
2037     no)         ;;
2038     *)          cat >>confdefs.h <<EOF
2039 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
2040 EOF
2041
2042                 ;;
2043 esac
2044 fi;
2045
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; }; }
2053                 ;;
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; }; }
2057                 ;;
2058     [1-9]*)     SUDOERS_MODE=0${with_sudoers_mode}
2059                 ;;
2060     0*)         SUDOERS_MODE=$with_sudoers_mode
2061                 ;;
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; }; }
2065                 ;;
2066 esac
2067 fi;
2068
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; }; }
2076                 ;;
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; }; }
2080                 ;;
2081     [0-9]*)     SUDOERS_UID=$with_sudoers_uid
2082                 ;;
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; }; }
2086                 ;;
2087 esac
2088 fi;
2089
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; }; }
2097                 ;;
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; }; }
2101                 ;;
2102     [0-9]*)     SUDOERS_GID=$with_sudoers_gid
2103                 ;;
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; }; }
2107                 ;;
2108 esac
2109 fi;
2110
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
2113
2114 # Check whether --with-umask or --without-umask was given.
2115 if test "${with_umask+set}" = set; then
2116   withval="$with_umask"
2117   case $with_umask in
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; }; }
2121                 ;;
2122     no)         sudo_umask=0777
2123                 ;;
2124     [0-9]*)     sudo_umask=$with_umask
2125                 ;;
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; }; }
2129                 ;;
2130 esac
2131 fi;
2132
2133 cat >>confdefs.h <<EOF
2134 #define SUDO_UMASK $sudo_umask
2135 EOF
2136
2137 if test "$sudo_umask" = "0777"; then
2138     echo "$as_me:2138: result: user" >&5
2139 echo "${ECHO_T}user" >&6
2140 else
2141     echo "$as_me:2141: result: $sudo_umask" >&5
2142 echo "${ECHO_T}$sudo_umask" >&6
2143 fi
2144
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
2147
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; }; }
2155                 ;;
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; }; }
2159                 ;;
2160     *)          runas_default="$with_runas_default"
2161                 ;;
2162 esac
2163 fi;
2164
2165 cat >>confdefs.h <<EOF
2166 #define RUNAS_DEFAULT "$runas_default"
2167 EOF
2168
2169 echo "$as_me:2169: result: $runas_default" >&5
2170 echo "${ECHO_T}$runas_default" >&6
2171
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; }; }
2179                 ;;
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; }; }
2183                 ;;
2184     *)
2185 cat >>confdefs.h <<EOF
2186 #define EXEMPTGROUP "$with_exempt"
2187 EOF
2188
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
2193                 ;;
2194 esac
2195 fi;
2196
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
2199
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; }; }
2207                 ;;
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; }; }
2211                 ;;
2212     *)
2213 cat >>confdefs.h <<EOF
2214 #define EDITOR "$with_editor"
2215 EOF
2216
2217                 echo "$as_me:2217: result: $with_editor" >&5
2218 echo "${ECHO_T}$with_editor" >&6
2219                 ;;
2220 esac
2221 else
2222   cat >>confdefs.h <<\EOF
2223 #define EDITOR _PATH_VI
2224 EOF
2225  echo "$as_me:2225: result: vi" >&5
2226 echo "${ECHO_T}vi" >&6
2227 fi;
2228
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
2231
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
2236     yes)        env_editor=on
2237                 ;;
2238     no)         env_editor=off
2239                 ;;
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; }; }
2243                 ;;
2244 esac
2245 fi;
2246 if test "$env_editor" = "on"; then
2247
2248 cat >>confdefs.h <<\EOF
2249 #define ENV_EDITOR 1
2250 EOF
2251
2252     echo "$as_me:2252: result: yes" >&5
2253 echo "${ECHO_T}yes" >&6
2254 else
2255     echo "$as_me:2255: result: no" >&5
2256 echo "${ECHO_T}no" >&6
2257 fi
2258
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
2261
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
2266     yes)        ;;
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; }; }
2270                 ;;
2271     [1-9]*)     passwd_tries=$with_passwd_tries
2272                 ;;
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; }; }
2276                 ;;
2277 esac
2278 fi;
2279
2280 cat >>confdefs.h <<EOF
2281 #define TRIES_FOR_PASSWORD $passwd_tries
2282 EOF
2283
2284 echo "$as_me:2284: result: $passwd_tries" >&5
2285 echo "${ECHO_T}$passwd_tries" >&6
2286
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
2289
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
2294     yes)        ;;
2295     no)         timeout=0
2296                 ;;
2297     [0-9]*)     timeout=$with_timeout
2298                 ;;
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; }; }
2302                 ;;
2303 esac
2304 fi;
2305
2306 cat >>confdefs.h <<EOF
2307 #define TIMEOUT $timeout
2308 EOF
2309
2310 echo "$as_me:2310: result: $timeout" >&5
2311 echo "${ECHO_T}$timeout" >&6
2312
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
2315
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
2320     yes)        ;;
2321     no)         password_timeout=0
2322                 ;;
2323     [0-9]*)     password_timeout=$with_password_timeout
2324                 ;;
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; }; }
2328                 ;;
2329 esac
2330 fi;
2331
2332 cat >>confdefs.h <<EOF
2333 #define PASSWORD_TIMEOUT $password_timeout
2334 EOF
2335
2336 echo "$as_me:2336: result: $password_timeout" >&5
2337 echo "${ECHO_T}$password_timeout" >&6
2338
2339 # Check whether --with-execv or --without-execv was given.
2340 if test "${with_execv+set}" = set; then
2341   withval="$with_execv"
2342   case $with_execv in
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
2347
2348 cat >>confdefs.h <<\EOF
2349 #define USE_EXECV 1
2350 EOF
2351
2352                 ;;
2353     no)         ;;
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; }; }
2357                 ;;
2358 esac
2359 fi;
2360
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
2363
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
2368     yes)        tty_tickets=on
2369                 ;;
2370     no)         tty_tickets=off
2371                 ;;
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; }; }
2375                 ;;
2376 esac
2377 fi;
2378 if test "$tty_tickets" = "on"; then
2379
2380 cat >>confdefs.h <<\EOF
2381 #define USE_TTY_TICKETS 1
2382 EOF
2383
2384     echo "$as_me:2384: result: yes" >&5
2385 echo "${ECHO_T}yes" >&6
2386 else
2387     echo "$as_me:2387: result: no" >&5
2388 echo "${ECHO_T}no" >&6
2389 fi
2390
2391 echo "$as_me:2391: checking whether to include insults" >&5
2392 echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6
2393
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
2398     yes)        insults=on
2399                 with_classic_insults=yes
2400                 with_csops_insults=yes
2401                 ;;
2402     no)         insults=off
2403                 ;;
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; }; }
2407                 ;;
2408 esac
2409 fi;
2410 if test "$insults" = "on"; then
2411
2412 cat >>confdefs.h <<\EOF
2413 #define USE_INSULTS 1
2414 EOF
2415
2416     echo "$as_me:2416: result: yes" >&5
2417 echo "${ECHO_T}yes" >&6
2418 else
2419     echo "$as_me:2419: result: no" >&5
2420 echo "${ECHO_T}no" >&6
2421 fi
2422
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
2431                 ;;
2432     no)         ;;
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; }; }
2436                 ;;
2437 esac
2438 fi;
2439
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
2444     yes)
2445 cat >>confdefs.h <<\EOF
2446 #define CLASSIC_INSULTS 1
2447 EOF
2448
2449                 ;;
2450     no)         ;;
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; }; }
2454                 ;;
2455 esac
2456 fi;
2457
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
2462     yes)
2463 cat >>confdefs.h <<\EOF
2464 #define CSOPS_INSULTS 1
2465 EOF
2466
2467                 ;;
2468     no)         ;;
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; }; }
2472                 ;;
2473 esac
2474 fi;
2475
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
2480     yes)
2481 cat >>confdefs.h <<\EOF
2482 #define HAL_INSULTS 1
2483 EOF
2484
2485                 ;;
2486     no)         ;;
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; }; }
2490                 ;;
2491 esac
2492 fi;
2493
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
2498     yes)
2499 cat >>confdefs.h <<\EOF
2500 #define GOONS_INSULTS 1
2501 EOF
2502
2503                 ;;
2504     no)         ;;
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; }; }
2508                 ;;
2509 esac
2510 fi;
2511
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
2515     i=""
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
2522 fi
2523
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
2526
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
2531     yes)
2532 cat >>confdefs.h <<EOF
2533 #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
2534 EOF
2535
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
2538                 ;;
2539     no)         echo "$as_me:2539: result: no" >&5
2540 echo "${ECHO_T}no" >&6
2541                 ;;
2542     *)          cat >>confdefs.h <<EOF
2543 #define SECURE_PATH "$with_secure_path"
2544 EOF
2545
2546                 echo "$as_me:2546: result: $with_secure_path" >&5
2547 echo "${ECHO_T}$with_secure_path" >&6
2548                 ;;
2549 esac
2550 else
2551   echo "$as_me:2551: result: no" >&5
2552 echo "${ECHO_T}no" >&6
2553 fi;
2554
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
2557
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
2564                 ;;
2565     no)
2566 cat >>confdefs.h <<\EOF
2567 #define STUB_LOAD_INTERFACES 1
2568 EOF
2569
2570                 echo "$as_me:2570: result: no" >&5
2571 echo "${ECHO_T}no" >&6
2572                 ;;
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; }; }
2576                 ;;
2577 esac
2578 else
2579   echo "$as_me:2579: result: yes" >&5
2580 echo "${ECHO_T}yes" >&6
2581 fi;
2582
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
2591                 ;;
2592     no)         echo "$as_me:2592: result: no" >&5
2593 echo "${ECHO_T}no" >&6
2594
2595 cat >>confdefs.h <<\EOF
2596 #define NO_AUTHENTICATION 1
2597 EOF
2598
2599                 ;;
2600     *)          echo "$as_me:2600: result: no" >&5
2601 echo "${ECHO_T}no" >&6
2602                 echo "Ignoring unknown argument to --enable-authentication: $enableval"
2603                 ;;
2604   esac
2605
2606 else
2607   echo "$as_me:2607: result: yes" >&5
2608 echo "${ECHO_T}yes" >&6
2609 fi;
2610
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
2619                 ;;
2620     no)         echo "$as_me:2620: result: yes" >&5
2621 echo "${ECHO_T}yes" >&6
2622
2623 cat >>confdefs.h <<\EOF
2624 #define NO_ROOT_MAILER 1
2625 EOF
2626
2627                 ;;
2628     *)          echo "$as_me:2628: result: no" >&5
2629 echo "${ECHO_T}no" >&6
2630                 echo "Ignoring unknown argument to --enable-root-mailer: $enableval"
2631                 ;;
2632   esac
2633
2634 else
2635   echo "$as_me:2635: result: no" >&5
2636 echo "${ECHO_T}no" >&6
2637 fi;
2638
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
2644                 ;;
2645     *)          ;;
2646   esac
2647
2648 fi;
2649
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
2658                 ;;
2659     no)         echo "$as_me:2659: result: yes" >&5
2660 echo "${ECHO_T}yes" >&6
2661
2662 cat >>confdefs.h <<\EOF
2663 #define NO_SAVED_IDS 1
2664 EOF
2665
2666                 ;;
2667     *)          echo "$as_me:2667: result: no" >&5
2668 echo "${ECHO_T}no" >&6
2669                 echo "Ignoring unknown argument to --enable-saved-ids: $enableval"
2670                 ;;
2671   esac
2672
2673 else
2674   echo "$as_me:2674: result: no" >&5
2675 echo "${ECHO_T}no" >&6
2676 fi;
2677
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
2686                 ;;
2687     no)         echo "$as_me:2687: result: yes" >&5
2688 echo "${ECHO_T}yes" >&6
2689                 CHECKSHADOW="false"
2690                 ;;
2691     *)          echo "$as_me:2691: result: no" >&5
2692 echo "${ECHO_T}no" >&6
2693                 echo "Ignoring unknown argument to --enable-shadow: $enableval"
2694                 ;;
2695   esac
2696
2697 else
2698   echo "$as_me:2698: result: no" >&5
2699 echo "${ECHO_T}no" >&6
2700 fi;
2701
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
2710                 ;;
2711     no)
2712 cat >>confdefs.h <<\EOF
2713 #define NO_ROOT_SUDO 1
2714 EOF
2715
2716                 echo "$as_me:2716: result: no" >&5
2717 echo "${ECHO_T}no" >&6
2718                 ;;
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; }; }
2722                 ;;
2723   esac
2724
2725 else
2726   echo "$as_me:2726: result: yes" >&5
2727 echo "${ECHO_T}yes" >&6
2728 fi;
2729
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
2738
2739 cat >>confdefs.h <<\EOF
2740 #define HOST_IN_LOG 1
2741 EOF
2742
2743                 ;;
2744     no)         echo "$as_me:2744: result: no" >&5
2745 echo "${ECHO_T}no" >&6
2746                 ;;
2747     *)          echo "$as_me:2747: result: no" >&5
2748 echo "${ECHO_T}no" >&6
2749                 echo "Ignoring unknown argument to --enable-log-host: $enableval"
2750                 ;;
2751   esac
2752
2753 else
2754   echo "$as_me:2754: result: no" >&5
2755 echo "${ECHO_T}no" >&6
2756 fi;
2757
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
2766
2767 cat >>confdefs.h <<\EOF
2768 #define SHELL_IF_NO_ARGS 1
2769 EOF
2770
2771                 ;;
2772     no)         echo "$as_me:2772: result: no" >&5
2773 echo "${ECHO_T}no" >&6
2774                 ;;
2775     *)          echo "$as_me:2775: result: no" >&5
2776 echo "${ECHO_T}no" >&6
2777                 echo "Ignoring unknown argument to --enable-noargs-shell: $enableval"
2778                 ;;
2779   esac
2780
2781 else
2782   echo "$as_me:2782: result: no" >&5
2783 echo "${ECHO_T}no" >&6
2784 fi;
2785
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
2794
2795 cat >>confdefs.h <<\EOF
2796 #define SHELL_SETS_HOME 1
2797 EOF
2798
2799                 ;;
2800     no)         echo "$as_me:2800: result: no" >&5
2801 echo "${ECHO_T}no" >&6
2802                 ;;
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"
2806                 ;;
2807   esac
2808
2809 else
2810   echo "$as_me:2810: result: no" >&5
2811 echo "${ECHO_T}no" >&6
2812 fi;
2813
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
2822                 ;;
2823     no)         echo "$as_me:2823: result: yes" >&5
2824 echo "${ECHO_T}yes" >&6
2825
2826 cat >>confdefs.h <<\EOF
2827 #define DONT_LEAK_PATH_INFO 1
2828 EOF
2829
2830                 ;;
2831     *)          echo "$as_me:2831: result: no" >&5
2832 echo "${ECHO_T}no" >&6
2833                 echo "Ignoring unknown argument to --enable-path-info: $enableval"
2834                 ;;
2835   esac
2836
2837 else
2838   echo "$as_me:2838: result: no" >&5
2839 echo "${ECHO_T}no" >&6
2840 fi;
2841
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
2848 else
2849   if test -n "$EGREPPROG"; then
2850   ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
2851 else
2852   ac_save_IFS=$IFS; IFS=$ac_path_separator
2853 ac_dummy="$PATH"
2854 for ac_dir in $ac_dummy; do
2855   IFS=$ac_save_IFS
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
2860 break
2861 done
2862
2863 fi
2864 fi
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
2869 else
2870   echo "$as_me:2870: result: no" >&5
2871 echo "${ECHO_T}no" >&6
2872 fi
2873
2874 if test -z "$EGREPPROG"; then
2875     echo "Sorry, configure requires egrep to run."
2876     exit
2877 fi
2878
2879 if test "$with_devel" != "yes"; then
2880     ac_cv_prog_cc_g=no
2881 fi
2882
2883 ac_ext=c
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
2895 else
2896   if test -n "$CC"; then
2897   ac_cv_prog_CC="$CC" # Let the user override the test.
2898 else
2899   ac_save_IFS=$IFS; IFS=$ac_path_separator
2900 ac_dummy="$PATH"
2901 for ac_dir in $ac_dummy; do
2902   IFS=$ac_save_IFS
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
2907 break
2908 done
2909
2910 fi
2911 fi
2912 CC=$ac_cv_prog_CC
2913 if test -n "$CC"; then
2914   echo "$as_me:2914: result: $CC" >&5
2915 echo "${ECHO_T}$CC" >&6
2916 else
2917   echo "$as_me:2917: result: no" >&5
2918 echo "${ECHO_T}no" >&6
2919 fi
2920
2921 fi
2922 if test -z "$ac_cv_prog_CC"; then
2923   ac_ct_CC=$CC
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
2930 else
2931   if test -n "$ac_ct_CC"; then
2932   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2933 else
2934   ac_save_IFS=$IFS; IFS=$ac_path_separator
2935 ac_dummy="$PATH"
2936 for ac_dir in $ac_dummy; do
2937   IFS=$ac_save_IFS
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
2942 break
2943 done
2944
2945 fi
2946 fi
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
2951 else
2952   echo "$as_me:2952: result: no" >&5
2953 echo "${ECHO_T}no" >&6
2954 fi
2955
2956   CC=$ac_ct_CC
2957 else
2958   CC="$ac_cv_prog_CC"
2959 fi
2960
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
2969 else
2970   if test -n "$CC"; then
2971   ac_cv_prog_CC="$CC" # Let the user override the test.
2972 else
2973   ac_save_IFS=$IFS; IFS=$ac_path_separator
2974 ac_dummy="$PATH"
2975 for ac_dir in $ac_dummy; do
2976   IFS=$ac_save_IFS
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
2981 break
2982 done
2983
2984 fi
2985 fi
2986 CC=$ac_cv_prog_CC
2987 if test -n "$CC"; then
2988   echo "$as_me:2988: result: $CC" >&5
2989 echo "${ECHO_T}$CC" >&6
2990 else
2991   echo "$as_me:2991: result: no" >&5
2992 echo "${ECHO_T}no" >&6
2993 fi
2994
2995 fi
2996 if test -z "$ac_cv_prog_CC"; then
2997   ac_ct_CC=$CC
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
3004 else
3005   if test -n "$ac_ct_CC"; then
3006   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3007 else
3008   ac_save_IFS=$IFS; IFS=$ac_path_separator
3009 ac_dummy="$PATH"
3010 for ac_dir in $ac_dummy; do
3011   IFS=$ac_save_IFS
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
3016 break
3017 done
3018
3019 fi
3020 fi
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
3025 else
3026   echo "$as_me:3026: result: no" >&5
3027 echo "${ECHO_T}no" >&6
3028 fi
3029
3030   CC=$ac_ct_CC
3031 else
3032   CC="$ac_cv_prog_CC"
3033 fi
3034
3035 fi
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
3043 else
3044   if test -n "$CC"; then
3045   ac_cv_prog_CC="$CC" # Let the user override the test.
3046 else
3047   ac_prog_rejected=no
3048   ac_save_IFS=$IFS; IFS=$ac_path_separator
3049 ac_dummy="$PATH"
3050 for ac_dir in $ac_dummy; do
3051   IFS=$ac_save_IFS
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
3056   continue
3057 fi
3058 ac_cv_prog_CC="cc"
3059 echo "$as_me:3059: found $ac_dir/$ac_word" >&5
3060 break
3061 done
3062
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
3066   shift
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.
3071     shift
3072     set dummy "$ac_dir/$ac_word" ${1+"$@"}
3073     shift
3074     ac_cv_prog_CC="$@"
3075   fi
3076 fi
3077 fi
3078 fi
3079 CC=$ac_cv_prog_CC
3080 if test -n "$CC"; then
3081   echo "$as_me:3081: result: $CC" >&5
3082 echo "${ECHO_T}$CC" >&6
3083 else
3084   echo "$as_me:3084: result: no" >&5
3085 echo "${ECHO_T}no" >&6
3086 fi
3087
3088 fi
3089 if test -z "$CC"; then
3090   if test -n "$ac_tool_prefix"; then
3091   for ac_prog in cl
3092   do
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
3099 else
3100   if test -n "$CC"; then
3101   ac_cv_prog_CC="$CC" # Let the user override the test.
3102 else
3103   ac_save_IFS=$IFS; IFS=$ac_path_separator
3104 ac_dummy="$PATH"
3105 for ac_dir in $ac_dummy; do
3106   IFS=$ac_save_IFS
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
3111 break
3112 done
3113
3114 fi
3115 fi
3116 CC=$ac_cv_prog_CC
3117 if test -n "$CC"; then
3118   echo "$as_me:3118: result: $CC" >&5
3119 echo "${ECHO_T}$CC" >&6
3120 else
3121   echo "$as_me:3121: result: no" >&5
3122 echo "${ECHO_T}no" >&6
3123 fi
3124
3125     test -n "$CC" && break
3126   done
3127 fi
3128 if test -z "$CC"; then
3129   ac_ct_CC=$CC
3130   for ac_prog in cl
3131 do
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
3138 else
3139   if test -n "$ac_ct_CC"; then
3140   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3141 else
3142   ac_save_IFS=$IFS; IFS=$ac_path_separator
3143 ac_dummy="$PATH"
3144 for ac_dir in $ac_dummy; do
3145   IFS=$ac_save_IFS
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
3150 break
3151 done
3152
3153 fi
3154 fi
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
3159 else
3160   echo "$as_me:3160: result: no" >&5
3161 echo "${ECHO_T}no" >&6
3162 fi
3163
3164   test -n "$ac_ct_CC" && break
3165 done
3166
3167   CC=$ac_ct_CC
3168 fi
3169
3170 fi
3171
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; }; }
3175
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
3182   ac_status=$?
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
3187   ac_status=$?
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
3192   ac_status=$?
3193   echo "$as_me:3193: \$? = $ac_status" >&5
3194   (exit $ac_status); }
3195
3196 cat >conftest.$ac_ext <<_ACEOF
3197 #line 3197 "configure"
3198 #include "confdefs.h"
3199
3200 int
3201 main ()
3202 {
3203
3204   ;
3205   return 0;
3206 }
3207 _ACEOF
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
3212 # of exeext.
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
3218   ac_status=$?
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
3223 # resort.
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
3227   case $ac_file in
3228     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
3229     a.out ) # We found the default executable, but exeext='' is most
3230             # certainly right.
3231             break;;
3232     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
3234           export ac_cv_exeext
3235           break;;
3236     * ) break;;
3237   esac
3238 done
3239 else
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; }; }
3245 fi
3246
3247 ac_exeext=$ac_cv_exeext
3248 echo "$as_me:3248: result: $ac_file" >&5
3249 echo "${ECHO_T}$ac_file" >&6
3250
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
3260   (eval $ac_try) 2>&5
3261   ac_status=$?
3262   echo "$as_me:3262: \$? = $ac_status" >&5
3263   (exit $ac_status); }; }; then
3264     cross_compiling=no
3265   else
3266     if test "$cross_compiling" = maybe; then
3267         cross_compiling=yes
3268     else
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; }; }
3274     fi
3275   fi
3276 fi
3277 echo "$as_me:3277: result: yes" >&5
3278 echo "${ECHO_T}yes" >&6
3279
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
3288
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
3293   ac_status=$?
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
3299 # `rm'.
3300 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
3301   case $ac_file in
3302     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
3303     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3304           export ac_cv_exeext
3305           break;;
3306     * ) break;;
3307   esac
3308 done
3309 else
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; }; }
3313 fi
3314
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
3318
3319 rm -f conftest.$ac_ext
3320 EXEEXT=$ac_cv_exeext
3321 ac_exeext=$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
3326 else
3327   cat >conftest.$ac_ext <<_ACEOF
3328 #line 3328 "configure"
3329 #include "confdefs.h"
3330
3331 int
3332 main ()
3333 {
3334
3335   ;
3336   return 0;
3337 }
3338 _ACEOF
3339 rm -f conftest.o conftest.obj
3340 if { (eval echo "$as_me:3340: \"$ac_compile\"") >&5
3341   (eval $ac_compile) 2>&5
3342   ac_status=$?
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
3346   case $ac_file in
3347     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
3348     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3349        break;;
3350   esac
3351 done
3352 else
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; }; }
3358 fi
3359
3360 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3361 fi
3362 echo "$as_me:3362: result: $ac_cv_objext" >&5
3363 echo "${ECHO_T}$ac_cv_objext" >&6
3364 OBJEXT=$ac_cv_objext
3365 ac_objext=$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
3370 else
3371   cat >conftest.$ac_ext <<_ACEOF
3372 #line 3372 "configure"
3373 #include "confdefs.h"
3374
3375 int
3376 main ()
3377 {
3378 #ifndef __GNUC__
3379        choke me
3380 #endif
3381
3382   ;
3383   return 0;
3384 }
3385 _ACEOF
3386 rm -f conftest.$ac_objext
3387 if { (eval echo "$as_me:3387: \"$ac_compile\"") >&5
3388   (eval $ac_compile) 2>&5
3389   ac_status=$?
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
3394   (eval $ac_try) 2>&5
3395   ac_status=$?
3396   echo "$as_me:3396: \$? = $ac_status" >&5
3397   (exit $ac_status); }; }; then
3398   ac_compiler_gnu=yes
3399 else
3400   echo "$as_me: failed program was:" >&5
3401 cat conftest.$ac_ext >&5
3402 ac_compiler_gnu=no
3403 fi
3404 rm -f conftest.$ac_objext conftest.$ac_ext
3405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3406
3407 fi
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
3413 CFLAGS="-g"
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
3418 else
3419   cat >conftest.$ac_ext <<_ACEOF
3420 #line 3420 "configure"
3421 #include "confdefs.h"
3422
3423 int
3424 main ()
3425 {
3426
3427   ;
3428   return 0;
3429 }
3430 _ACEOF
3431 rm -f conftest.$ac_objext
3432 if { (eval echo "$as_me:3432: \"$ac_compile\"") >&5
3433   (eval $ac_compile) 2>&5
3434   ac_status=$?
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
3439   (eval $ac_try) 2>&5
3440   ac_status=$?
3441   echo "$as_me:3441: \$? = $ac_status" >&5
3442   (exit $ac_status); }; }; then
3443   ac_cv_prog_cc_g=yes
3444 else
3445   echo "$as_me: failed program was:" >&5
3446 cat conftest.$ac_ext >&5
3447 ac_cv_prog_cc_g=no
3448 fi
3449 rm -f conftest.$ac_objext conftest.$ac_ext
3450 fi
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
3457     CFLAGS="-g -O2"
3458   else
3459     CFLAGS="-g"
3460   fi
3461 else
3462   if test "$GCC" = yes; then
3463     CFLAGS="-O2"
3464   else
3465     CFLAGS=
3466   fi
3467 fi
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
3473 #ifndef __cplusplus
3474   choke me
3475 #endif
3476 _ACEOF
3477 rm -f conftest.$ac_objext
3478 if { (eval echo "$as_me:3478: \"$ac_compile\"") >&5
3479   (eval $ac_compile) 2>&5
3480   ac_status=$?
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
3485   (eval $ac_try) 2>&5
3486   ac_status=$?
3487   echo "$as_me:3487: \$? = $ac_status" >&5
3488   (exit $ac_status); }; }; then
3489   for ac_declaration in \
3490    ''\
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);' \
3496    'void exit (int);'
3497 do
3498   cat >conftest.$ac_ext <<_ACEOF
3499 #line 3499 "configure"
3500 #include "confdefs.h"
3501 #include <stdlib.h>
3502 $ac_declaration
3503 int
3504 main ()
3505 {
3506 exit (42);
3507   ;
3508   return 0;
3509 }
3510 _ACEOF
3511 rm -f conftest.$ac_objext
3512 if { (eval echo "$as_me:3512: \"$ac_compile\"") >&5
3513   (eval $ac_compile) 2>&5
3514   ac_status=$?
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
3519   (eval $ac_try) 2>&5
3520   ac_status=$?
3521   echo "$as_me:3521: \$? = $ac_status" >&5
3522   (exit $ac_status); }; }; then
3523   :
3524 else
3525   echo "$as_me: failed program was:" >&5
3526 cat conftest.$ac_ext >&5
3527 continue
3528 fi
3529 rm -f conftest.$ac_objext conftest.$ac_ext
3530   cat >conftest.$ac_ext <<_ACEOF
3531 #line 3531 "configure"
3532 #include "confdefs.h"
3533 $ac_declaration
3534 int
3535 main ()
3536 {
3537 exit (42);
3538   ;
3539   return 0;
3540 }
3541 _ACEOF
3542 rm -f conftest.$ac_objext
3543 if { (eval echo "$as_me:3543: \"$ac_compile\"") >&5
3544   (eval $ac_compile) 2>&5
3545   ac_status=$?
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
3550   (eval $ac_try) 2>&5
3551   ac_status=$?
3552   echo "$as_me:3552: \$? = $ac_status" >&5
3553   (exit $ac_status); }; }; then
3554   break
3555 else
3556   echo "$as_me: failed program was:" >&5
3557 cat conftest.$ac_ext >&5
3558 fi
3559 rm -f conftest.$ac_objext conftest.$ac_ext
3560 done
3561 rm -f conftest*
3562 if test -n "$ac_declaration"; then
3563   echo '#ifdef __cplusplus' >>confdefs.h
3564   echo $ac_declaration      >>confdefs.h
3565   echo '#endif'             >>confdefs.h
3566 fi
3567
3568 else
3569   echo "$as_me: failed program was:" >&5
3570 cat conftest.$ac_ext >&5
3571 fi
3572 rm -f conftest.$ac_objext conftest.$ac_ext
3573 ac_ext=c
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
3578
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
3583 then
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.
3587
3588 cat >>confdefs.h <<\EOF
3589 #define _POSIX_SOURCE 1
3590 EOF
3591
3592   if test "$GCC" = yes; then
3593     CC="$CC -posix"
3594   else
3595     CC="$CC -Xp"
3596   fi
3597 else
3598   echo "$as_me:3598: result: no" >&5
3599 echo "${ECHO_T}no" >&6
3600   ISC=
3601 fi
3602
3603 ac_cv_prog_cc_cross="no"
3604 cross_compiling="no"
3605
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
3610 else
3611   ac_cv_prog_cc_stdc=no
3612 ac_save_CC=$CC
3613 cat >conftest.$ac_ext <<_ACEOF
3614 #line 3614 "configure"
3615 #include "confdefs.h"
3616 #include <stdarg.h>
3617 #include <stdio.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)
3624      char **p;
3625      int i;
3626 {
3627   return p[i];
3628 }
3629 static char *f (char * (*g) (char **, int), char **p, ...)
3630 {
3631   char *s;
3632   va_list v;
3633   va_start (v,p);
3634   s = g (p, va_arg (v,int));
3635   va_end (v);
3636   return s;
3637 }
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);
3642 int argc;
3643 char **argv;
3644 int
3645 main ()
3646 {
3647 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3648   ;
3649   return 0;
3650 }
3651 _ACEOF
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__"
3660 do
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
3665   ac_status=$?
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
3670   (eval $ac_try) 2>&5
3671   ac_status=$?
3672   echo "$as_me:3672: \$? = $ac_status" >&5
3673   (exit $ac_status); }; }; then
3674   ac_cv_prog_cc_stdc=$ac_arg
3675 break
3676 else
3677   echo "$as_me: failed program was:" >&5
3678 cat conftest.$ac_ext >&5
3679 fi
3680 rm -f conftest.$ac_objext
3681 done
3682 rm -f conftest.$ac_ext conftest.$ac_objext
3683 CC=$ac_save_CC
3684
3685 fi
3686
3687 case "x$ac_cv_prog_cc_stdc" in
3688   x|xno)
3689     echo "$as_me:3689: result: none needed" >&5
3690 echo "${ECHO_T}none needed" >&6 ;;
3691   *)
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" ;;
3695 esac
3696
3697 ac_cv_prog_cc_cross="no"
3698 cross_compiling="no"
3699 ac_ext=c
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
3708   CPP=
3709 fi
3710 if test -z "$CPP"; then
3711   if test "${ac_cv_prog_CPP+set}" = set; then
3712   echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714       # Double quotes because CPP needs to be expanded
3715     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3716     do
3717       ac_preproc_ok=false
3718 for ac_c_preproc_warn_flag in '' yes
3719 do
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"
3727 #include <assert.h>
3728                      Syntax error
3729 _ACEOF
3730 if { (eval echo "$as_me:3730: \"$ac_cpp conftest.$ac_ext\"") >&5
3731   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3732   ac_status=$?
3733   egrep -v '^ *\+' conftest.er1 >conftest.err
3734   rm -f conftest.er1
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
3740   else
3741     ac_cpp_err=
3742   fi
3743 else
3744   ac_cpp_err=yes
3745 fi
3746 if test -z "$ac_cpp_err"; then
3747   :
3748 else
3749   echo "$as_me: failed program was:" >&5
3750   cat conftest.$ac_ext >&5
3751   # Broken: fails on valid input.
3752 continue
3753 fi
3754 rm -f conftest.err conftest.$ac_ext
3755
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>
3762 _ACEOF
3763 if { (eval echo "$as_me:3763: \"$ac_cpp conftest.$ac_ext\"") >&5
3764   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3765   ac_status=$?
3766   egrep -v '^ *\+' conftest.er1 >conftest.err
3767   rm -f conftest.er1
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
3773   else
3774     ac_cpp_err=
3775   fi
3776 else
3777   ac_cpp_err=yes
3778 fi
3779 if test -z "$ac_cpp_err"; then
3780   # Broken: success on invalid input.
3781 continue
3782 else
3783   echo "$as_me: failed program was:" >&5
3784   cat conftest.$ac_ext >&5
3785   # Passes both tests.
3786 ac_preproc_ok=:
3787 break
3788 fi
3789 rm -f conftest.err conftest.$ac_ext
3790
3791 done
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
3795   break
3796 fi
3797
3798     done
3799     ac_cv_prog_CPP=$CPP
3800
3801 fi
3802   CPP=$ac_cv_prog_CPP
3803 else
3804   ac_cv_prog_CPP=$CPP
3805 fi
3806 echo "$as_me:3806: result: $CPP" >&5
3807 echo "${ECHO_T}$CPP" >&6
3808 ac_preproc_ok=false
3809 for ac_c_preproc_warn_flag in '' yes
3810 do
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"
3818 #include <assert.h>
3819                      Syntax error
3820 _ACEOF
3821 if { (eval echo "$as_me:3821: \"$ac_cpp conftest.$ac_ext\"") >&5
3822   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3823   ac_status=$?
3824   egrep -v '^ *\+' conftest.er1 >conftest.err
3825   rm -f conftest.er1
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
3831   else
3832     ac_cpp_err=
3833   fi
3834 else
3835   ac_cpp_err=yes
3836 fi
3837 if test -z "$ac_cpp_err"; then
3838   :
3839 else
3840   echo "$as_me: failed program was:" >&5
3841   cat conftest.$ac_ext >&5
3842   # Broken: fails on valid input.
3843 continue
3844 fi
3845 rm -f conftest.err conftest.$ac_ext
3846
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>
3853 _ACEOF
3854 if { (eval echo "$as_me:3854: \"$ac_cpp conftest.$ac_ext\"") >&5
3855   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3856   ac_status=$?
3857   egrep -v '^ *\+' conftest.er1 >conftest.err
3858   rm -f conftest.er1
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
3864   else
3865     ac_cpp_err=
3866   fi
3867 else
3868   ac_cpp_err=yes
3869 fi
3870 if test -z "$ac_cpp_err"; then
3871   # Broken: success on invalid input.
3872 continue
3873 else
3874   echo "$as_me: failed program was:" >&5
3875   cat conftest.$ac_ext >&5
3876   # Passes both tests.
3877 ac_preproc_ok=:
3878 break
3879 fi
3880 rm -f conftest.err conftest.$ac_ext
3881
3882 done
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
3886   :
3887 else
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; }; }
3891 fi
3892
3893 ac_ext=c
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
3898
3899 if test "$with_devel" = "yes" -a -n "$GCC"; then
3900     CFLAGS="${CFLAGS} -Wall"
3901 fi
3902
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
3909 else
3910   if test -n "$UNAMEPROG"; then
3911   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
3912 else
3913   ac_save_IFS=$IFS; IFS=$ac_path_separator
3914 ac_dummy="$PATH"
3915 for ac_dir in $ac_dummy; do
3916   IFS=$ac_save_IFS
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
3921 break
3922 done
3923
3924 fi
3925 fi
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
3930 else
3931   echo "$as_me:3931: result: no" >&5
3932 echo "${ECHO_T}no" >&6
3933 fi
3934
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
3941 else
3942   if test -n "$TRPROG"; then
3943   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
3944 else
3945   ac_save_IFS=$IFS; IFS=$ac_path_separator
3946 ac_dummy="$PATH"
3947 for ac_dir in $ac_dummy; do
3948   IFS=$ac_save_IFS
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
3953 break
3954 done
3955
3956 fi
3957 fi
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
3962 else
3963   echo "$as_me:3963: result: no" >&5
3964 echo "${ECHO_T}no" >&6
3965 fi
3966
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
3973 else
3974   if test -n "$SEDPROG"; then
3975   ac_cv_prog_SEDPROG="$SEDPROG" # Let the user override the test.
3976 else
3977   ac_save_IFS=$IFS; IFS=$ac_path_separator
3978 ac_dummy="$PATH"
3979 for ac_dir in $ac_dummy; do
3980   IFS=$ac_save_IFS
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
3985 break
3986 done
3987
3988 fi
3989 fi
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
3994 else
3995   echo "$as_me:3995: result: no" >&5
3996 echo "${ECHO_T}no" >&6
3997 fi
3998
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
4005 else
4006   if test -n "$NROFFPROG"; then
4007   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
4008 else
4009   ac_save_IFS=$IFS; IFS=$ac_path_separator
4010 ac_dummy="$PATH"
4011 for ac_dir in $ac_dummy; do
4012   IFS=$ac_save_IFS
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
4017 break
4018 done
4019
4020 fi
4021 fi
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
4026 else
4027   echo "$as_me:4027: result: no" >&5
4028 echo "${ECHO_T}no" >&6
4029 fi
4030
4031 if test -z "$NROFFPROG"; then
4032     MANTYPE="cat"
4033     mansrcdir='$(srcdir)'
4034 fi
4035
4036 ac_aux_dir=
4037 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
4038   if test -f $ac_dir/install-sh; then
4039     ac_aux_dir=$ac_dir
4040     ac_install_sh="$ac_aux_dir/install-sh -c"
4041     break
4042   elif test -f $ac_dir/install.sh; then
4043     ac_aux_dir=$ac_dir
4044     ac_install_sh="$ac_aux_dir/install.sh -c"
4045     break
4046   elif test -f $ac_dir/shtool; then
4047     ac_aux_dir=$ac_dir
4048     ac_install_sh="$ac_aux_dir/shtool install -c"
4049     break
4050   fi
4051 done
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; }; }
4056 fi
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.
4060
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; }; }
4066
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
4071 else
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; }; }
4083
4084 fi
4085 echo "$as_me:4085: result: $ac_cv_build" >&5
4086 echo "${ECHO_T}$ac_cv_build" >&6
4087 build=$ac_cv_build
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/'`
4091
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
4096 else
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; }; }
4104
4105 fi
4106 echo "$as_me:4106: result: $ac_cv_host" >&5
4107 echo "${ECHO_T}$ac_cv_host" >&6
4108 host=$ac_cv_host
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/'`
4112
4113 if test -n "$sudo_cv_prev_host"; then
4114     if test "$sudo_cv_prev_host" != "$host"; then
4115         echo ""
4116         echo "Fatal Error: config.cache exists from another platform!"
4117         echo "Please remove it and re-run configure."
4118         echo ""
4119         exit 1
4120     else
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
4125 else
4126   sudo_cv_prev_host="$host"
4127 fi
4128
4129         echo $sudo_cv_prev_host
4130     fi
4131 else
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
4135 else
4136   sudo_cv_prev_host="$host"
4137 fi
4138
4139 fi
4140
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/'`
4144 else
4145     OS="unknown"
4146     OSREV=0
4147 fi
4148
4149 case "$host" in
4150     *-*-sunos4*)
4151                 # getcwd(3) opens a pipe to getpwd(1)!?!
4152                 BROKEN_GETCWD=1
4153
4154                 # system headers lack prototypes but gcc helps...
4155                 if test -n "$GCC"; then
4156                     CPPFLAGS="${CPPFLAGS} -D__USE_FIXED_PROTOTYPES__"
4157                 fi
4158
4159                 # check for password adjunct functions (shadow passwords)
4160                 if test "$CHECKSHADOW" = "true"; then
4161
4162 for ac_func in getpwanam issecure
4163 do
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
4169 else
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.  */
4175 #include <assert.h>
4176 /* Override any gcc2 internal prototype to avoid an error.  */
4177 #ifdef __cplusplus
4178 extern "C"
4179 #endif
4180 /* We use char because int might match the return type of a gcc2
4181    builtin and then its argument prototype would still apply.  */
4182 char $ac_func ();
4183 char (*f) ();
4184
4185 int
4186 main ()
4187 {
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)
4192 choke me
4193 #else
4194 f = $ac_func;
4195 #endif
4196
4197   ;
4198   return 0;
4199 }
4200 _ACEOF
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
4204   ac_status=$?
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
4209   (eval $ac_try) 2>&5
4210   ac_status=$?
4211   echo "$as_me:4211: \$? = $ac_status" >&5
4212   (exit $ac_status); }; }; then
4213   eval "$as_ac_var=yes"
4214 else
4215   echo "$as_me: failed program was:" >&5
4216 cat conftest.$ac_ext >&5
4217 eval "$as_ac_var=no"
4218 fi
4219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4220 fi
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
4226 EOF
4227
4228 else
4229   break
4230 fi
4231 done
4232
4233                     CHECKSHADOW="false"
4234                 fi
4235                 ;;
4236     *-*-solaris2*)
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"
4242                 fi
4243                 test -n "$mansectsu" || mansectsu=1m
4244                 test -n "$mansectform" || mansectform=4
4245                 ;;
4246     *-*-aix*)
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
4251 EOF
4252
4253                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
4254                 ;;
4255     *-*-hiuxmpp*)
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
4261 else
4262   ac_check_lib_save_LIBS=$LIBS
4263 LIBS="-lsec  $LIBS"
4264 cat >conftest.$ac_ext <<_ACEOF
4265 #line 4265 "configure"
4266 #include "confdefs.h"
4267
4268 /* Override any gcc2 internal prototype to avoid an error.  */
4269 #ifdef __cplusplus
4270 extern "C"
4271 #endif
4272 /* We use char because int might match the return type of a gcc2
4273    builtin and then its argument prototype would still apply.  */
4274 char getprpwnam ();
4275 int
4276 main ()
4277 {
4278 getprpwnam ();
4279   ;
4280   return 0;
4281 }
4282 _ACEOF
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
4286   ac_status=$?
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
4291   (eval $ac_try) 2>&5
4292   ac_status=$?
4293   echo "$as_me:4293: \$? = $ac_status" >&5
4294   (exit $ac_status); }; }; then
4295   ac_cv_lib_sec_getprpwnam=yes
4296 else
4297   echo "$as_me: failed program was:" >&5
4298 cat conftest.$ac_ext >&5
4299 ac_cv_lib_sec_getprpwnam=no
4300 fi
4301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4302 LIBS=$ac_check_lib_save_LIBS
4303 fi
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
4309 EOF
4310  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
4311 else
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
4316 else
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"
4322
4323 /* Override any gcc2 internal prototype to avoid an error.  */
4324 #ifdef __cplusplus
4325 extern "C"
4326 #endif
4327 /* We use char because int might match the return type of a gcc2
4328    builtin and then its argument prototype would still apply.  */
4329 char getprpwnam ();
4330 int
4331 main ()
4332 {
4333 getprpwnam ();
4334   ;
4335   return 0;
4336 }
4337 _ACEOF
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
4341   ac_status=$?
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
4346   (eval $ac_try) 2>&5
4347   ac_status=$?
4348   echo "$as_me:4348: \$? = $ac_status" >&5
4349   (exit $ac_status); }; }; then
4350   ac_cv_lib_security_getprpwnam=yes
4351 else
4352   echo "$as_me: failed program was:" >&5
4353 cat conftest.$ac_ext >&5
4354 ac_cv_lib_security_getprpwnam=no
4355 fi
4356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4357 LIBS=$ac_check_lib_save_LIBS
4358 fi
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
4364 EOF
4365  SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"; SECUREWARE=1
4366 fi
4367
4368 fi
4369
4370                     CHECKSHADOW="false"
4371                 fi
4372                 test -n "$mansectsu" || mansectsu=1m
4373                 test -n "$mansectform" || mansectform=4
4374                 ;;
4375     *-*-hpux1[0-9]*)
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
4381 else
4382   ac_check_lib_save_LIBS=$LIBS
4383 LIBS="-lsec  $LIBS"
4384 cat >conftest.$ac_ext <<_ACEOF
4385 #line 4385 "configure"
4386 #include "confdefs.h"
4387
4388 /* Override any gcc2 internal prototype to avoid an error.  */
4389 #ifdef __cplusplus
4390 extern "C"
4391 #endif
4392 /* We use char because int might match the return type of a gcc2
4393    builtin and then its argument prototype would still apply.  */
4394 char getprpwnam ();
4395 int
4396 main ()
4397 {
4398 getprpwnam ();
4399   ;
4400   return 0;
4401 }
4402 _ACEOF
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
4406   ac_status=$?
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
4411   (eval $ac_try) 2>&5
4412   ac_status=$?
4413   echo "$as_me:4413: \$? = $ac_status" >&5
4414   (exit $ac_status); }; }; then
4415   ac_cv_lib_sec_getprpwnam=yes
4416 else
4417   echo "$as_me: failed program was:" >&5
4418 cat conftest.$ac_ext >&5
4419 ac_cv_lib_sec_getprpwnam=no
4420 fi
4421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4422 LIBS=$ac_check_lib_save_LIBS
4423 fi
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
4429 EOF
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
4434 else
4435   ac_check_lib_save_LIBS=$LIBS
4436 LIBS="-lsec  $LIBS"
4437 cat >conftest.$ac_ext <<_ACEOF
4438 #line 4438 "configure"
4439 #include "confdefs.h"
4440
4441 /* Override any gcc2 internal prototype to avoid an error.  */
4442 #ifdef __cplusplus
4443 extern "C"
4444 #endif
4445 /* We use char because int might match the return type of a gcc2
4446    builtin and then its argument prototype would still apply.  */
4447 char iscomsec ();
4448 int
4449 main ()
4450 {
4451 iscomsec ();
4452   ;
4453   return 0;
4454 }
4455 _ACEOF
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
4459   ac_status=$?
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
4464   (eval $ac_try) 2>&5
4465   ac_status=$?
4466   echo "$as_me:4466: \$? = $ac_status" >&5
4467   (exit $ac_status); }; }; then
4468   ac_cv_lib_sec_iscomsec=yes
4469 else
4470   echo "$as_me: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4472 ac_cv_lib_sec_iscomsec=no
4473 fi
4474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4475 LIBS=$ac_check_lib_save_LIBS
4476 fi
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
4480
4481 cat >>confdefs.h <<\EOF
4482 #define HAVE_ISCOMSEC 1
4483 EOF
4484
4485 fi
4486  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
4487 fi
4488
4489                     CHECKSHADOW="false"
4490                 fi
4491
4492                 # AFS support needs -lBSD
4493                 if test "$with_AFS" = "yes"; then
4494                     AFS_LIBS="-lc -lBSD"
4495                 fi
4496                 test -n "$mansectsu" || mansectsu=1m
4497                 test -n "$mansectform" || mansectform=4
4498                 ;;
4499     *-*-hpux9*)
4500
4501 cat >>confdefs.h <<\EOF
4502 #define BROKEN_SYSLOG 1
4503 EOF
4504
4505                 if test "$CHECKSHADOW" = "true"; then
4506
4507 for ac_func in getspwuid
4508 do
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
4514 else
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.  */
4520 #include <assert.h>
4521 /* Override any gcc2 internal prototype to avoid an error.  */
4522 #ifdef __cplusplus
4523 extern "C"
4524 #endif
4525 /* We use char because int might match the return type of a gcc2
4526    builtin and then its argument prototype would still apply.  */
4527 char $ac_func ();
4528 char (*f) ();
4529
4530 int
4531 main ()
4532 {
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)
4537 choke me
4538 #else
4539 f = $ac_func;
4540 #endif
4541
4542   ;
4543   return 0;
4544 }
4545 _ACEOF
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
4549   ac_status=$?
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
4554   (eval $ac_try) 2>&5
4555   ac_status=$?
4556   echo "$as_me:4556: \$? = $ac_status" >&5
4557   (exit $ac_status); }; }; then
4558   eval "$as_ac_var=yes"
4559 else
4560   echo "$as_me: failed program was:" >&5
4561 cat conftest.$ac_ext >&5
4562 eval "$as_ac_var=no"
4563 fi
4564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4565 fi
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
4571 EOF
4572
4573 fi
4574 done
4575
4576                     CHECKSHADOW="false"
4577                 fi
4578
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"
4585                 fi
4586
4587                 # AFS support needs -lBSD
4588                 if test "$with_AFS" = "yes"; then
4589                     AFS_LIBS="-lc -lBSD"
4590                 fi
4591                 test -n "$mansectsu" || mansectsu=1m
4592                 test -n "$mansectform" || mansectform=4
4593                 ;;
4594     *-*-hpux*)
4595                 cat >>confdefs.h <<\EOF
4596 #define BROKEN_SYSLOG 1
4597 EOF
4598
4599                 # Not sure if setuid binaries are safe in < 9.x
4600                 if test -n "$GCC"; then
4601                     SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
4602                 else
4603                     SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
4604                 fi
4605
4606                 # AFS support needs -lBSD
4607                 if test "$with_AFS" = "yes"; then
4608                     AFS_LIBS="-lc -lBSD"
4609                 fi
4610                 test -n "$mansectsu" || mansectsu=1m
4611                 test -n "$mansectform" || mansectform=4
4612                 ;;
4613     *-dec-osf*)
4614                 # ignore envariables wrt dynamic lib path
4615                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
4616
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
4625                                 ;;
4626                     no)         echo "$as_me:4626: result: yes" >&5
4627 echo "${ECHO_T}yes" >&6
4628                                 CHECKSIA=false
4629                                 ;;
4630                     *)          echo "$as_me:4630: result: no" >&5
4631 echo "${ECHO_T}no" >&6
4632                                 echo "Ignoring unknown argument to --enable-sia: $enableval"
4633                                 ;;
4634                   esac
4635
4636 else
4637   echo "$as_me:4637: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4639 fi;
4640
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
4648 else
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.  */
4654 #include <assert.h>
4655 /* Override any gcc2 internal prototype to avoid an error.  */
4656 #ifdef __cplusplus
4657 extern "C"
4658 #endif
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 ();
4662 char (*f) ();
4663
4664 int
4665 main ()
4666 {
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)
4671 choke me
4672 #else
4673 f = sia_ses_init;
4674 #endif
4675
4676   ;
4677   return 0;
4678 }
4679 _ACEOF
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
4683   ac_status=$?
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
4688   (eval $ac_try) 2>&5
4689   ac_status=$?
4690   echo "$as_me:4690: \$? = $ac_status" >&5
4691   (exit $ac_status); }; }; then
4692   ac_cv_func_sia_ses_init=yes
4693 else
4694   echo "$as_me: failed program was:" >&5
4695 cat conftest.$ac_ext >&5
4696 ac_cv_func_sia_ses_init=no
4697 fi
4698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4699 fi
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
4703
4704 cat >>confdefs.h <<\EOF
4705 #define HAVE_SIA 1
4706 EOF
4707
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
4713 fi
4714
4715                 fi
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
4721 else
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"
4727
4728 /* Override any gcc2 internal prototype to avoid an error.  */
4729 #ifdef __cplusplus
4730 extern "C"
4731 #endif
4732 /* We use char because int might match the return type of a gcc2
4733    builtin and then its argument prototype would still apply.  */
4734 char getprpwnam ();
4735 int
4736 main ()
4737 {
4738 getprpwnam ();
4739   ;
4740   return 0;
4741 }
4742 _ACEOF
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
4746   ac_status=$?
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
4751   (eval $ac_try) 2>&5
4752   ac_status=$?
4753   echo "$as_me:4753: \$? = $ac_status" >&5
4754   (exit $ac_status); }; }; then
4755   ac_cv_lib_security_getprpwnam=yes
4756 else
4757   echo "$as_me: failed program was:" >&5
4758 cat conftest.$ac_ext >&5
4759 ac_cv_lib_security_getprpwnam=no
4760 fi
4761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4762 LIBS=$ac_check_lib_save_LIBS
4763 fi
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
4767   SECUREWARE=1
4768 fi
4769
4770                     CHECKSHADOW="false"
4771                 fi
4772
4773                 if test -n "$SECUREWARE"; then
4774
4775 cat >>confdefs.h <<\EOF
4776 #define HAVE_GETPRPWNAM 1
4777 EOF
4778
4779                     # -ldb includes bogus versions of snprintf/vsnprintf
4780
4781 for ac_func in snprintf
4782 do
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
4788 else
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.  */
4794 #include <assert.h>
4795 /* Override any gcc2 internal prototype to avoid an error.  */
4796 #ifdef __cplusplus
4797 extern "C"
4798 #endif
4799 /* We use char because int might match the return type of a gcc2
4800    builtin and then its argument prototype would still apply.  */
4801 char $ac_func ();
4802 char (*f) ();
4803
4804 int
4805 main ()
4806 {
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)
4811 choke me
4812 #else
4813 f = $ac_func;
4814 #endif
4815
4816   ;
4817   return 0;
4818 }
4819 _ACEOF
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
4823   ac_status=$?
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
4828   (eval $ac_try) 2>&5
4829   ac_status=$?
4830   echo "$as_me:4830: \$? = $ac_status" >&5
4831   (exit $ac_status); }; }; then
4832   eval "$as_ac_var=yes"
4833 else
4834   echo "$as_me: failed program was:" >&5
4835 cat conftest.$ac_ext >&5
4836 eval "$as_ac_var=no"
4837 fi
4838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4839 fi
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
4845 EOF
4846
4847 else
4848   NEED_SNPRINTF=1
4849 fi
4850 done
4851
4852 for ac_func in vsnprintf
4853 do
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
4859 else
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.  */
4865 #include <assert.h>
4866 /* Override any gcc2 internal prototype to avoid an error.  */
4867 #ifdef __cplusplus
4868 extern "C"
4869 #endif
4870 /* We use char because int might match the return type of a gcc2
4871    builtin and then its argument prototype would still apply.  */
4872 char $ac_func ();
4873 char (*f) ();
4874
4875 int
4876 main ()
4877 {
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)
4882 choke me
4883 #else
4884 f = $ac_func;
4885 #endif
4886
4887   ;
4888   return 0;
4889 }
4890 _ACEOF
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
4894   ac_status=$?
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
4899   (eval $ac_try) 2>&5
4900   ac_status=$?
4901   echo "$as_me:4901: \$? = $ac_status" >&5
4902   (exit $ac_status); }; }; then
4903   eval "$as_ac_var=yes"
4904 else
4905   echo "$as_me: failed program was:" >&5
4906 cat conftest.$ac_ext >&5
4907 eval "$as_ac_var=no"
4908 fi
4909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4910 fi
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
4916 EOF
4917
4918 else
4919   NEED_SNPRINTF=1
4920 fi
4921 done
4922
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
4928 else
4929   ac_check_lib_save_LIBS=$LIBS
4930 LIBS="-ldb  $LIBS"
4931 cat >conftest.$ac_ext <<_ACEOF
4932 #line 4932 "configure"
4933 #include "confdefs.h"
4934
4935 /* Override any gcc2 internal prototype to avoid an error.  */
4936 #ifdef __cplusplus
4937 extern "C"
4938 #endif
4939 /* We use char because int might match the return type of a gcc2
4940    builtin and then its argument prototype would still apply.  */
4941 char dbopen ();
4942 int
4943 main ()
4944 {
4945 dbopen ();
4946   ;
4947   return 0;
4948 }
4949 _ACEOF
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
4953   ac_status=$?
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
4958   (eval $ac_try) 2>&5
4959   ac_status=$?
4960   echo "$as_me:4960: \$? = $ac_status" >&5
4961   (exit $ac_status); }; }; then
4962   ac_cv_lib_db_dbopen=yes
4963 else
4964   echo "$as_me: failed program was:" >&5
4965 cat conftest.$ac_ext >&5
4966 ac_cv_lib_db_dbopen=no
4967 fi
4968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4969 LIBS=$ac_check_lib_save_LIBS
4970 fi
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"
4975 else
4976   SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
4977 fi
4978
4979 for ac_func in dispcrypt
4980 do
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
4986 else
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.  */
4992 #include <assert.h>
4993 /* Override any gcc2 internal prototype to avoid an error.  */
4994 #ifdef __cplusplus
4995 extern "C"
4996 #endif
4997 /* We use char because int might match the return type of a gcc2
4998    builtin and then its argument prototype would still apply.  */
4999 char $ac_func ();
5000 char (*f) ();
5001
5002 int
5003 main ()
5004 {
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)
5009 choke me
5010 #else
5011 f = $ac_func;
5012 #endif
5013
5014   ;
5015   return 0;
5016 }
5017 _ACEOF
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
5021   ac_status=$?
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
5026   (eval $ac_try) 2>&5
5027   ac_status=$?
5028   echo "$as_me:5028: \$? = $ac_status" >&5
5029   (exit $ac_status); }; }; then
5030   eval "$as_ac_var=yes"
5031 else
5032   echo "$as_me: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5034 eval "$as_ac_var=no"
5035 fi
5036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5037 fi
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
5043 EOF
5044
5045 fi
5046 done
5047
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"
5053
5054 #include <sys/types.h>
5055 #include <sys/security.h>
5056 #include <prot.h>
5057
5058 int
5059 main ()
5060 {
5061 exit(0);
5062   ;
5063   return 0;
5064 }
5065 _ACEOF
5066 rm -f conftest.$ac_objext
5067 if { (eval echo "$as_me:5067: \"$ac_compile\"") >&5
5068   (eval $ac_compile) 2>&5
5069   ac_status=$?
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
5074   (eval $ac_try) 2>&5
5075   ac_status=$?
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
5080 else
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
5086
5087 fi
5088 rm -f conftest.$ac_objext conftest.$ac_ext
5089                 elif test "$CHECKSIA" = "true"; then
5090                     with_passwd=no
5091                     AUTH_OBJS="sia.o"
5092                 fi
5093                 test -n "$mansectsu" || mansectsu=8
5094                 test -n "$mansectform" || mansectform=4
5095                 ;;
5096     *-*-irix*)
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"
5103                         else
5104                             mandir="/usr/catman/local"
5105                         fi
5106                     fi
5107                 else
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"
5111                         else
5112                             mandir="/usr/man/local"
5113                         fi
5114                     fi
5115                 fi
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
5122 else
5123   ac_check_lib_save_LIBS=$LIBS
5124 LIBS="-lsun  $LIBS"
5125 cat >conftest.$ac_ext <<_ACEOF
5126 #line 5126 "configure"
5127 #include "confdefs.h"
5128
5129 /* Override any gcc2 internal prototype to avoid an error.  */
5130 #ifdef __cplusplus
5131 extern "C"
5132 #endif
5133 /* We use char because int might match the return type of a gcc2
5134    builtin and then its argument prototype would still apply.  */
5135 char getpwnam ();
5136 int
5137 main ()
5138 {
5139 getpwnam ();
5140   ;
5141   return 0;
5142 }
5143 _ACEOF
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
5147   ac_status=$?
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
5152   (eval $ac_try) 2>&5
5153   ac_status=$?
5154   echo "$as_me:5154: \$? = $ac_status" >&5
5155   (exit $ac_status); }; }; then
5156   ac_cv_lib_sun_getpwnam=yes
5157 else
5158   echo "$as_me: failed program was:" >&5
5159 cat conftest.$ac_ext >&5
5160 ac_cv_lib_sun_getpwnam=no
5161 fi
5162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5163 LIBS=$ac_check_lib_save_LIBS
5164 fi
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"
5169 fi
5170
5171                 fi
5172                 test -n "$mansectsu" || mansectsu=1m
5173                 test -n "$mansectform" || mansectform=4
5174                 ;;
5175     *-*-linux*)
5176                 # Some Linux versions need to link with -lshadow
5177                 if test "$CHECKSHADOW" = "true"; then
5178
5179 for ac_func in getspnam
5180 do
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
5186 else
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.  */
5192 #include <assert.h>
5193 /* Override any gcc2 internal prototype to avoid an error.  */
5194 #ifdef __cplusplus
5195 extern "C"
5196 #endif
5197 /* We use char because int might match the return type of a gcc2
5198    builtin and then its argument prototype would still apply.  */
5199 char $ac_func ();
5200 char (*f) ();
5201
5202 int
5203 main ()
5204 {
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)
5209 choke me
5210 #else
5211 f = $ac_func;
5212 #endif
5213
5214   ;
5215   return 0;
5216 }
5217 _ACEOF
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
5221   ac_status=$?
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
5226   (eval $ac_try) 2>&5
5227   ac_status=$?
5228   echo "$as_me:5228: \$? = $ac_status" >&5
5229   (exit $ac_status); }; }; then
5230   eval "$as_ac_var=yes"
5231 else
5232   echo "$as_me: failed program was:" >&5
5233 cat conftest.$ac_ext >&5
5234 eval "$as_ac_var=no"
5235 fi
5236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5237 fi
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
5243 EOF
5244
5245 else
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
5250 else
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"
5256
5257 /* Override any gcc2 internal prototype to avoid an error.  */
5258 #ifdef __cplusplus
5259 extern "C"
5260 #endif
5261 /* We use char because int might match the return type of a gcc2
5262    builtin and then its argument prototype would still apply.  */
5263 char getspnam ();
5264 int
5265 main ()
5266 {
5267 getspnam ();
5268   ;
5269   return 0;
5270 }
5271 _ACEOF
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
5275   ac_status=$?
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
5280   (eval $ac_try) 2>&5
5281   ac_status=$?
5282   echo "$as_me:5282: \$? = $ac_status" >&5
5283   (exit $ac_status); }; }; then
5284   ac_cv_lib_shadow_getspnam=yes
5285 else
5286   echo "$as_me: failed program was:" >&5
5287 cat conftest.$ac_ext >&5
5288 ac_cv_lib_shadow_getspnam=no
5289 fi
5290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5291 LIBS=$ac_check_lib_save_LIBS
5292 fi
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
5298 EOF
5299  SUDO_LIBS="${SUDO_LIBS} -lshadow"; LIBS="${LIBS} -lshadow"
5300 fi
5301
5302 fi
5303 done
5304
5305                     CHECKSHADOW="false"
5306                 fi
5307                 ;;
5308     *-convex-bsd*)
5309                 cat >>confdefs.h <<\EOF
5310 #define _CONVEX_SOURCE 1
5311 EOF
5312
5313                 if test -z "$GCC"; then
5314                     CFLAGS="${CFLAGS} -D__STDC__"
5315                 fi
5316
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
5322 else
5323   ac_check_lib_save_LIBS=$LIBS
5324 LIBS="-lsec  $LIBS"
5325 cat >conftest.$ac_ext <<_ACEOF
5326 #line 5326 "configure"
5327 #include "confdefs.h"
5328
5329 /* Override any gcc2 internal prototype to avoid an error.  */
5330 #ifdef __cplusplus
5331 extern "C"
5332 #endif
5333 /* We use char because int might match the return type of a gcc2
5334    builtin and then its argument prototype would still apply.  */
5335 char getprpwnam ();
5336 int
5337 main ()
5338 {
5339 getprpwnam ();
5340   ;
5341   return 0;
5342 }
5343 _ACEOF
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
5347   ac_status=$?
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
5352   (eval $ac_try) 2>&5
5353   ac_status=$?
5354   echo "$as_me:5354: \$? = $ac_status" >&5
5355   (exit $ac_status); }; }; then
5356   ac_cv_lib_sec_getprpwnam=yes
5357 else
5358   echo "$as_me: failed program was:" >&5
5359 cat conftest.$ac_ext >&5
5360 ac_cv_lib_sec_getprpwnam=no
5361 fi
5362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5363 LIBS=$ac_check_lib_save_LIBS
5364 fi
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
5370 EOF
5371  SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"; OSDEFS="${OSDEFS} -D_AUDIT -D_ACL -DSecureWare"; SECUREWARE=1
5372 fi
5373
5374                     CHECKSHADOW="false"
5375                 fi
5376                 ;;
5377     *-*-ultrix*)
5378                 OS="ultrix"
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
5384 else
5385   ac_check_lib_save_LIBS=$LIBS
5386 LIBS="-lauth  $LIBS"
5387 cat >conftest.$ac_ext <<_ACEOF
5388 #line 5388 "configure"
5389 #include "confdefs.h"
5390
5391 /* Override any gcc2 internal prototype to avoid an error.  */
5392 #ifdef __cplusplus
5393 extern "C"
5394 #endif
5395 /* We use char because int might match the return type of a gcc2
5396    builtin and then its argument prototype would still apply.  */
5397 char getauthuid ();
5398 int
5399 main ()
5400 {
5401 getauthuid ();
5402   ;
5403   return 0;
5404 }
5405 _ACEOF
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
5409   ac_status=$?
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
5414   (eval $ac_try) 2>&5
5415   ac_status=$?
5416   echo "$as_me:5416: \$? = $ac_status" >&5
5417   (exit $ac_status); }; }; then
5418   ac_cv_lib_auth_getauthuid=yes
5419 else
5420   echo "$as_me: failed program was:" >&5
5421 cat conftest.$ac_ext >&5
5422 ac_cv_lib_auth_getauthuid=no
5423 fi
5424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5425 LIBS=$ac_check_lib_save_LIBS
5426 fi
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
5430
5431 cat >>confdefs.h <<\EOF
5432 #define HAVE_GETAUTHUID 1
5433 EOF
5434  SUDO_LIBS="${SUDO_LIBS} -lauth"; LIBS="${LIBS} -lauth"
5435 fi
5436
5437                     CHECKSHADOW="false"
5438                 fi
5439                 ;;
5440     *-*-riscos*)
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
5446                 ;;
5447     *-*-isc*)
5448                 OSDEFS="${OSDEFS} -D_ISC"
5449                 LIB_CRYPT=1
5450                 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
5451                 LIBS="${LIBS} -lcrypt"
5452
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
5458 else
5459   ac_check_lib_save_LIBS=$LIBS
5460 LIBS="-lsec  $LIBS"
5461 cat >conftest.$ac_ext <<_ACEOF
5462 #line 5462 "configure"
5463 #include "confdefs.h"
5464
5465 /* Override any gcc2 internal prototype to avoid an error.  */
5466 #ifdef __cplusplus
5467 extern "C"
5468 #endif
5469 /* We use char because int might match the return type of a gcc2
5470    builtin and then its argument prototype would still apply.  */
5471 char getspnam ();
5472 int
5473 main ()
5474 {
5475 getspnam ();
5476   ;
5477   return 0;
5478 }
5479 _ACEOF
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
5483   ac_status=$?
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
5488   (eval $ac_try) 2>&5
5489   ac_status=$?
5490   echo "$as_me:5490: \$? = $ac_status" >&5
5491   (exit $ac_status); }; }; then
5492   ac_cv_lib_sec_getspnam=yes
5493 else
5494   echo "$as_me: failed program was:" >&5
5495 cat conftest.$ac_ext >&5
5496 ac_cv_lib_sec_getspnam=no
5497 fi
5498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5499 LIBS=$ac_check_lib_save_LIBS
5500 fi
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
5506 EOF
5507  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
5508 fi
5509
5510                     CHECKSHADOW="false"
5511                 fi
5512                 test -n "$mansectsu" || mansectsu=1m
5513                 test -n "$mansectform" || mansectform=4
5514                 ;;
5515     *-*-sco*|*-sco-*)
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
5521 else
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"
5527
5528 /* Override any gcc2 internal prototype to avoid an error.  */
5529 #ifdef __cplusplus
5530 extern "C"
5531 #endif
5532 /* We use char because int might match the return type of a gcc2
5533    builtin and then its argument prototype would still apply.  */
5534 char getprpwnam ();
5535 int
5536 main ()
5537 {
5538 getprpwnam ();
5539   ;
5540   return 0;
5541 }
5542 _ACEOF
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
5546   ac_status=$?
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
5551   (eval $ac_try) 2>&5
5552   ac_status=$?
5553   echo "$as_me:5553: \$? = $ac_status" >&5
5554   (exit $ac_status); }; }; then
5555   ac_cv_lib_prot_getprpwnam_lx=yes
5556 else
5557   echo "$as_me: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5559 ac_cv_lib_prot_getprpwnam_lx=no
5560 fi
5561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5562 LIBS=$ac_check_lib_save_LIBS
5563 fi
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
5569 EOF
5570  SUDO_LIBS="${SUDO_LIBS} -lprot -lx"; LIBS="${LIBS} -lprot -lx"; SECUREWARE=1
5571 fi
5572
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
5577 else
5578   ac_check_lib_save_LIBS=$LIBS
5579 LIBS="-lgen  $LIBS"
5580 cat >conftest.$ac_ext <<_ACEOF
5581 #line 5581 "configure"
5582 #include "confdefs.h"
5583
5584 /* Override any gcc2 internal prototype to avoid an error.  */
5585 #ifdef __cplusplus
5586 extern "C"
5587 #endif
5588 /* We use char because int might match the return type of a gcc2
5589    builtin and then its argument prototype would still apply.  */
5590 char getspnam ();
5591 int
5592 main ()
5593 {
5594 getspnam ();
5595   ;
5596   return 0;
5597 }
5598 _ACEOF
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
5602   ac_status=$?
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
5607   (eval $ac_try) 2>&5
5608   ac_status=$?
5609   echo "$as_me:5609: \$? = $ac_status" >&5
5610   (exit $ac_status); }; }; then
5611   ac_cv_lib_gen_getspnam=yes
5612 else
5613   echo "$as_me: failed program was:" >&5
5614 cat conftest.$ac_ext >&5
5615 ac_cv_lib_gen_getspnam=no
5616 fi
5617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5618 LIBS=$ac_check_lib_save_LIBS
5619 fi
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
5625 EOF
5626  SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
5627 fi
5628
5629                     CHECKSHADOW="false"
5630                 fi
5631                 test -n "$mansectsu" || mansectsu=1m
5632                 test -n "$mansectform" || mansectform=4
5633                 ;;
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
5639                 ;;
5640     *-sequent-sysv*)
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
5646 else
5647   ac_check_lib_save_LIBS=$LIBS
5648 LIBS="-lsec  $LIBS"
5649 cat >conftest.$ac_ext <<_ACEOF
5650 #line 5650 "configure"
5651 #include "confdefs.h"
5652
5653 /* Override any gcc2 internal prototype to avoid an error.  */
5654 #ifdef __cplusplus
5655 extern "C"
5656 #endif
5657 /* We use char because int might match the return type of a gcc2
5658    builtin and then its argument prototype would still apply.  */
5659 char getspnam ();
5660 int
5661 main ()
5662 {
5663 getspnam ();
5664   ;
5665   return 0;
5666 }
5667 _ACEOF
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
5671   ac_status=$?
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
5676   (eval $ac_try) 2>&5
5677   ac_status=$?
5678   echo "$as_me:5678: \$? = $ac_status" >&5
5679   (exit $ac_status); }; }; then
5680   ac_cv_lib_sec_getspnam=yes
5681 else
5682   echo "$as_me: failed program was:" >&5
5683 cat conftest.$ac_ext >&5
5684 ac_cv_lib_sec_getspnam=no
5685 fi
5686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5687 LIBS=$ac_check_lib_save_LIBS
5688 fi
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
5694 EOF
5695  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
5696 fi
5697
5698                     CHECKSHADOW="false"
5699                 fi
5700                 test -n "$mansectsu" || mansectsu=1m
5701                 test -n "$mansectform" || mansectform=4
5702                 ;;
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
5708 else
5709   ac_check_lib_save_LIBS=$LIBS
5710 LIBS="-lc89  $LIBS"
5711 cat >conftest.$ac_ext <<_ACEOF
5712 #line 5712 "configure"
5713 #include "confdefs.h"
5714
5715 /* Override any gcc2 internal prototype to avoid an error.  */
5716 #ifdef __cplusplus
5717 extern "C"
5718 #endif
5719 /* We use char because int might match the return type of a gcc2
5720    builtin and then its argument prototype would still apply.  */
5721 char strcasecmp ();
5722 int
5723 main ()
5724 {
5725 strcasecmp ();
5726   ;
5727   return 0;
5728 }
5729 _ACEOF
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
5733   ac_status=$?
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
5738   (eval $ac_try) 2>&5
5739   ac_status=$?
5740   echo "$as_me:5740: \$? = $ac_status" >&5
5741   (exit $ac_status); }; }; then
5742   ac_cv_lib_c89_strcasecmp=yes
5743 else
5744   echo "$as_me: failed program was:" >&5
5745 cat conftest.$ac_ext >&5
5746 ac_cv_lib_c89_strcasecmp=no
5747 fi
5748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5749 LIBS=$ac_check_lib_save_LIBS
5750 fi
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
5756 EOF
5757  LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
5758 fi
5759
5760                 test -n "$mansectsu" || mansectsu=1m
5761                 test -n "$mansectform" || mansectform=4
5762                 ;;
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
5768                 ;;
5769     *-*-bsdi*)
5770                 BROKEN_SETREUID=yes
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
5773                     case "$OSREV" in
5774                         2|3)    echo 'using shlicc as CC'
5775                                 ac_cv_prog_CC=shlicc
5776                                 CC="$ac_cv_prog_CC"
5777                                 ;;
5778                     esac
5779                 fi
5780                 ;;
5781     *-*-freebsd*)
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
5785                 0.*|1.*|2.0*)
5786                     BROKEN_SETREUID=yes
5787                     ;;
5788                 esac
5789                 if test "$with_logincap" = "yes"; then
5790                     SUDO_LIBS="${SUDO_LIBS} -lutil"
5791                 fi
5792                 if test "$with_skey" = "yes"; then
5793                      SUDO_LIBS="${SUDO_LIBS} -lmd"
5794                 fi
5795                 if test "$CHECKSHADOW" = "true"; then
5796                     CHECKSHADOW="false"
5797                 fi
5798                 ;;
5799     *-*-*openbsd*)
5800                 BROKEN_SETREUID=yes
5801                 if test "$CHECKSHADOW" = "true"; then
5802                     CHECKSHADOW="false"
5803                 fi
5804                 ;;
5805     *-*-*netbsd*)
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)
5809                     BROKEN_SETREUID=yes
5810                     ;;
5811                 esac
5812                 if test "$CHECKSHADOW" = "true"; then
5813                     CHECKSHADOW="false"
5814                 fi
5815                 ;;
5816     *-*-*bsd*)
5817                 if test "$CHECKSHADOW" = "true"; then
5818                     CHECKSHADOW="false"
5819                 fi
5820                 ;;
5821     *-*-nextstep*)
5822                 # lockf() on is broken on the NeXT -- use flock instead
5823                 ac_cv_func_lockf=no
5824                 ac_cv_func_flock=yes
5825                 ;;
5826     *-*-sysv*)
5827                 test -n "$mansectsu" || mansectsu=1m
5828                 test -n "$mansectform" || mansectform=4
5829                 ;;
5830 esac
5831
5832 test -n "$mansectsu" || mansectsu=8
5833 test -n "$mansectform" || mansectform=5
5834
5835 if test "$CHECKSHADOW" = "true"; then
5836
5837 for ac_func in getspnam
5838 do
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
5844 else
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.  */
5850 #include <assert.h>
5851 /* Override any gcc2 internal prototype to avoid an error.  */
5852 #ifdef __cplusplus
5853 extern "C"
5854 #endif
5855 /* We use char because int might match the return type of a gcc2
5856    builtin and then its argument prototype would still apply.  */
5857 char $ac_func ();
5858 char (*f) ();
5859
5860 int
5861 main ()
5862 {
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)
5867 choke me
5868 #else
5869 f = $ac_func;
5870 #endif
5871
5872   ;
5873   return 0;
5874 }
5875 _ACEOF
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
5879   ac_status=$?
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
5884   (eval $ac_try) 2>&5
5885   ac_status=$?
5886   echo "$as_me:5886: \$? = $ac_status" >&5
5887   (exit $ac_status); }; }; then
5888   eval "$as_ac_var=yes"
5889 else
5890   echo "$as_me: failed program was:" >&5
5891 cat conftest.$ac_ext >&5
5892 eval "$as_ac_var=no"
5893 fi
5894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5895 fi
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
5901 EOF
5902  CHECKSHADOW="false"
5903 else
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
5908 else
5909   ac_check_lib_save_LIBS=$LIBS
5910 LIBS="-lgen  $LIBS"
5911 cat >conftest.$ac_ext <<_ACEOF
5912 #line 5912 "configure"
5913 #include "confdefs.h"
5914
5915 /* Override any gcc2 internal prototype to avoid an error.  */
5916 #ifdef __cplusplus
5917 extern "C"
5918 #endif
5919 /* We use char because int might match the return type of a gcc2
5920    builtin and then its argument prototype would still apply.  */
5921 char getspnam ();
5922 int
5923 main ()
5924 {
5925 getspnam ();
5926   ;
5927   return 0;
5928 }
5929 _ACEOF
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
5933   ac_status=$?
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
5938   (eval $ac_try) 2>&5
5939   ac_status=$?
5940   echo "$as_me:5940: \$? = $ac_status" >&5
5941   (exit $ac_status); }; }; then
5942   ac_cv_lib_gen_getspnam=yes
5943 else
5944   echo "$as_me: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5946 ac_cv_lib_gen_getspnam=no
5947 fi
5948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5949 LIBS=$ac_check_lib_save_LIBS
5950 fi
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
5954
5955 cat >>confdefs.h <<\EOF
5956 #define HAVE_GETSPNAM 1
5957 EOF
5958  SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
5959 fi
5960
5961 fi
5962 done
5963
5964 fi
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
5970 else
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.  */
5976 #include <assert.h>
5977 /* Override any gcc2 internal prototype to avoid an error.  */
5978 #ifdef __cplusplus
5979 extern "C"
5980 #endif
5981 /* We use char because int might match the return type of a gcc2
5982    builtin and then its argument prototype would still apply.  */
5983 char getprpwnam ();
5984 char (*f) ();
5985
5986 int
5987 main ()
5988 {
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)
5993 choke me
5994 #else
5995 f = getprpwnam;
5996 #endif
5997
5998   ;
5999   return 0;
6000 }
6001 _ACEOF
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
6005   ac_status=$?
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
6010   (eval $ac_try) 2>&5
6011   ac_status=$?
6012   echo "$as_me:6012: \$? = $ac_status" >&5
6013   (exit $ac_status); }; }; then
6014   ac_cv_func_getprpwnam=yes
6015 else
6016   echo "$as_me: failed program was:" >&5
6017 cat conftest.$ac_ext >&5
6018 ac_cv_func_getprpwnam=no
6019 fi
6020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6021 fi
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
6027 EOF
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
6032 else
6033   ac_check_lib_save_LIBS=$LIBS
6034 LIBS="-lsec  $LIBS"
6035 cat >conftest.$ac_ext <<_ACEOF
6036 #line 6036 "configure"
6037 #include "confdefs.h"
6038
6039 /* Override any gcc2 internal prototype to avoid an error.  */
6040 #ifdef __cplusplus
6041 extern "C"
6042 #endif
6043 /* We use char because int might match the return type of a gcc2
6044    builtin and then its argument prototype would still apply.  */
6045 char getprpwnam ();
6046 int
6047 main ()
6048 {
6049 getprpwnam ();
6050   ;
6051   return 0;
6052 }
6053 _ACEOF
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
6057   ac_status=$?
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
6062   (eval $ac_try) 2>&5
6063   ac_status=$?
6064   echo "$as_me:6064: \$? = $ac_status" >&5
6065   (exit $ac_status); }; }; then
6066   ac_cv_lib_sec_getprpwnam=yes
6067 else
6068   echo "$as_me: failed program was:" >&5
6069 cat conftest.$ac_ext >&5
6070 ac_cv_lib_sec_getprpwnam=no
6071 fi
6072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6073 LIBS=$ac_check_lib_save_LIBS
6074 fi
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
6080 EOF
6081  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
6082 else
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
6087 else
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"
6093
6094 /* Override any gcc2 internal prototype to avoid an error.  */
6095 #ifdef __cplusplus
6096 extern "C"
6097 #endif
6098 /* We use char because int might match the return type of a gcc2
6099    builtin and then its argument prototype would still apply.  */
6100 char getprpwnam ();
6101 int
6102 main ()
6103 {
6104 getprpwnam ();
6105   ;
6106   return 0;
6107 }
6108 _ACEOF
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
6112   ac_status=$?
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
6117   (eval $ac_try) 2>&5
6118   ac_status=$?
6119   echo "$as_me:6119: \$? = $ac_status" >&5
6120   (exit $ac_status); }; }; then
6121   ac_cv_lib_security_getprpwnam=yes
6122 else
6123   echo "$as_me: failed program was:" >&5
6124 cat conftest.$ac_ext >&5
6125 ac_cv_lib_security_getprpwnam=no
6126 fi
6127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6128 LIBS=$ac_check_lib_save_LIBS
6129 fi
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
6135 EOF
6136  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"
6137 else
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
6142 else
6143   ac_check_lib_save_LIBS=$LIBS
6144 LIBS="-lprot  $LIBS"
6145 cat >conftest.$ac_ext <<_ACEOF
6146 #line 6146 "configure"
6147 #include "confdefs.h"
6148
6149 /* Override any gcc2 internal prototype to avoid an error.  */
6150 #ifdef __cplusplus
6151 extern "C"
6152 #endif
6153 /* We use char because int might match the return type of a gcc2
6154    builtin and then its argument prototype would still apply.  */
6155 char getprpwnam ();
6156 int
6157 main ()
6158 {
6159 getprpwnam ();
6160   ;
6161   return 0;
6162 }
6163 _ACEOF
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
6167   ac_status=$?
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
6172   (eval $ac_try) 2>&5
6173   ac_status=$?
6174   echo "$as_me:6174: \$? = $ac_status" >&5
6175   (exit $ac_status); }; }; then
6176   ac_cv_lib_prot_getprpwnam=yes
6177 else
6178   echo "$as_me: failed program was:" >&5
6179 cat conftest.$ac_ext >&5
6180 ac_cv_lib_prot_getprpwnam=no
6181 fi
6182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6183 LIBS=$ac_check_lib_save_LIBS
6184 fi
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
6190 EOF
6191  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"
6192 fi
6193
6194 fi
6195
6196 fi
6197
6198 fi
6199
6200 fi
6201
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
6207 else
6208     ac_pattern="Autoconf.*'x'"
6209   cat >conftest.$ac_ext <<_ACEOF
6210 #line 6210 "configure"
6211 #include "confdefs.h"
6212 #include <sgtty.h>
6213 Autoconf TIOCGETP
6214 _ACEOF
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
6218 else
6219   ac_cv_prog_gcc_traditional=no
6220 fi
6221 rm -f conftest*
6222
6223   if test $ac_cv_prog_gcc_traditional = no; then
6224     cat >conftest.$ac_ext <<_ACEOF
6225 #line 6225 "configure"
6226 #include "confdefs.h"
6227 #include <termio.h>
6228 Autoconf TCGETA
6229 _ACEOF
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
6233 fi
6234 rm -f conftest*
6235
6236   fi
6237 fi
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"
6242   fi
6243 fi
6244
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
6249 else
6250   cat >conftest.$ac_ext <<_ACEOF
6251 #line 6251 "configure"
6252 #include "confdefs.h"
6253
6254 int
6255 main ()
6256 {
6257 /* FIXME: Include the comments suggested by Paul. */
6258 #ifndef __cplusplus
6259   /* Ultrix mips cc rejects this.  */
6260   typedef int charset[2];
6261   const charset x;
6262   /* SunOS 4.1.1 cc rejects this.  */
6263   char const *const *ccp;
6264   char **p;
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
6271      expression */
6272   const char *g = "string";
6273   ccp = &g + (g ? g-g : 0);
6274   /* HPUX 7.0 cc rejects these. */
6275   ++ccp;
6276   p = (char**) ccp;
6277   ccp = (char const *const *) p;
6278   { /* SCO 3.2v4 cc rejects this.  */
6279     char *t;
6280     char const *s = 0 ? (char *) 0 : (char const *) 0;
6281
6282     *t++ = 0;
6283   }
6284   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6285     int x[] = {25, 17};
6286     const int *foo = &x[0];
6287     ++foo;
6288   }
6289   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6290     typedef const int *iptr;
6291     iptr p = 0;
6292     ++p;
6293   }
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;
6298   }
6299   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6300     const int foo = 10;
6301   }
6302 #endif
6303
6304   ;
6305   return 0;
6306 }
6307 _ACEOF
6308 rm -f conftest.$ac_objext
6309 if { (eval echo "$as_me:6309: \"$ac_compile\"") >&5
6310   (eval $ac_compile) 2>&5
6311   ac_status=$?
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
6316   (eval $ac_try) 2>&5
6317   ac_status=$?
6318   echo "$as_me:6318: \$? = $ac_status" >&5
6319   (exit $ac_status); }; }; then
6320   ac_cv_c_const=yes
6321 else
6322   echo "$as_me: failed program was:" >&5
6323 cat conftest.$ac_ext >&5
6324 ac_cv_c_const=no
6325 fi
6326 rm -f conftest.$ac_objext conftest.$ac_ext
6327 fi
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
6331
6332 cat >>confdefs.h <<\EOF
6333 #define const
6334 EOF
6335
6336 fi
6337
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
6342 else
6343   cat >conftest.$ac_ext <<_ACEOF
6344 #line 6344 "configure"
6345 #include "confdefs.h"
6346
6347 int
6348 main ()
6349 {
6350
6351 volatile int x;
6352 int * volatile y;
6353   ;
6354   return 0;
6355 }
6356 _ACEOF
6357 rm -f conftest.$ac_objext
6358 if { (eval echo "$as_me:6358: \"$ac_compile\"") >&5
6359   (eval $ac_compile) 2>&5
6360   ac_status=$?
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
6365   (eval $ac_try) 2>&5
6366   ac_status=$?
6367   echo "$as_me:6367: \$? = $ac_status" >&5
6368   (exit $ac_status); }; }; then
6369   ac_cv_c_volatile=yes
6370 else
6371   echo "$as_me: failed program was:" >&5
6372 cat conftest.$ac_ext >&5
6373 ac_cv_c_volatile=no
6374 fi
6375 rm -f conftest.$ac_objext conftest.$ac_ext
6376 fi
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
6380
6381 cat >>confdefs.h <<\EOF
6382 #define volatile
6383 EOF
6384
6385 fi
6386
6387 for ac_prog in 'bison -y' byacc
6388 do
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
6395 else
6396   if test -n "$YACC"; then
6397   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6398 else
6399   ac_save_IFS=$IFS; IFS=$ac_path_separator
6400 ac_dummy="$PATH"
6401 for ac_dir in $ac_dummy; do
6402   IFS=$ac_save_IFS
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
6407 break
6408 done
6409
6410 fi
6411 fi
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
6416 else
6417   echo "$as_me:6417: result: no" >&5
6418 echo "${ECHO_T}no" >&6
6419 fi
6420
6421   test -n "$YACC" && break
6422 done
6423 test -n "$YACC" || YACC="yacc"
6424
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"
6432 EOF
6433
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"
6439 EOF
6440
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"
6446 EOF
6447
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"
6453 EOF
6454
6455 else
6456     echo "$as_me:6456: result: not found" >&5
6457 echo "${ECHO_T}not found" >&6
6458 fi
6459
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"
6467 EOF
6468
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"
6474 EOF
6475
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"
6481 EOF
6482
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"
6488 EOF
6489
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"
6495 EOF
6496
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"
6502 EOF
6503
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"
6509 EOF
6510
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"
6516 EOF
6517
6518 else
6519     echo "$as_me:6519: result: not found" >&5
6520 echo "${ECHO_T}not found" >&6
6521 fi
6522
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"
6531 EOF
6532
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"
6538 EOF
6539
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"
6545 EOF
6546
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"
6552 EOF
6553
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"
6559 EOF
6560
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"
6566 EOF
6567
6568 else
6569     echo "$as_me:6569: result: not found" >&5
6570 echo "${ECHO_T}not found" >&6
6571 fi
6572
6573 fi
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"
6582 EOF
6583
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"
6589 EOF
6590
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"
6596 EOF
6597
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"
6603 EOF
6604
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"
6610 EOF
6611
6612 else
6613     echo "$as_me:6613: result: not found" >&5
6614 echo "${ECHO_T}not found" >&6
6615 fi
6616
6617 fi
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
6622 else
6623   cat >conftest.$ac_ext <<_ACEOF
6624 #line 6624 "configure"
6625 #include "confdefs.h"
6626 #include <stdlib.h>
6627 #include <stdarg.h>
6628 #include <string.h>
6629 #include <float.h>
6630
6631 _ACEOF
6632 if { (eval echo "$as_me:6632: \"$ac_cpp conftest.$ac_ext\"") >&5
6633   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6634   ac_status=$?
6635   egrep -v '^ *\+' conftest.er1 >conftest.err
6636   rm -f conftest.er1
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
6642   else
6643     ac_cpp_err=
6644   fi
6645 else
6646   ac_cpp_err=yes
6647 fi
6648 if test -z "$ac_cpp_err"; then
6649   ac_cv_header_stdc=yes
6650 else
6651   echo "$as_me: failed program was:" >&5
6652   cat conftest.$ac_ext >&5
6653   ac_cv_header_stdc=no
6654 fi
6655 rm -f conftest.err conftest.$ac_ext
6656
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"
6662 #include <string.h>
6663
6664 _ACEOF
6665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6666   egrep "memchr" >/dev/null 2>&1; then
6667   :
6668 else
6669   ac_cv_header_stdc=no
6670 fi
6671 rm -f conftest*
6672
6673 fi
6674
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"
6680 #include <stdlib.h>
6681
6682 _ACEOF
6683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6684   egrep "free" >/dev/null 2>&1; then
6685   :
6686 else
6687   ac_cv_header_stdc=no
6688 fi
6689 rm -f conftest*
6690
6691 fi
6692
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
6696   :
6697 else
6698   cat >conftest.$ac_ext <<_ACEOF
6699 #line 6699 "configure"
6700 #include "confdefs.h"
6701 #include <ctype.h>
6702 #if ((' ' & 0x0FF) == 0x020)
6703 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6704 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6705 #else
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))
6710 #endif
6711
6712 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6713 int
6714 main ()
6715 {
6716   int i;
6717   for (i = 0; i < 256; i++)
6718     if (XOR (islower (i), ISLOWER (i))
6719         || toupper (i) != TOUPPER (i))
6720       exit(2);
6721   exit (0);
6722 }
6723 _ACEOF
6724 rm -f conftest$ac_exeext
6725 if { (eval echo "$as_me:6725: \"$ac_link\"") >&5
6726   (eval $ac_link) 2>&5
6727   ac_status=$?
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
6731   (eval $ac_try) 2>&5
6732   ac_status=$?
6733   echo "$as_me:6733: \$? = $ac_status" >&5
6734   (exit $ac_status); }; }; then
6735   :
6736 else
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
6741 fi
6742 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6743 fi
6744 fi
6745 fi
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
6749
6750 cat >>confdefs.h <<\EOF
6751 #define STDC_HEADERS 1
6752 EOF
6753
6754 fi
6755
6756 ac_header_dirent=no
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
6763 else
6764   cat >conftest.$ac_ext <<_ACEOF
6765 #line 6765 "configure"
6766 #include "confdefs.h"
6767 #include <sys/types.h>
6768 #include <$ac_hdr>
6769
6770 int
6771 main ()
6772 {
6773 if ((DIR *) 0)
6774 return 0;
6775   ;
6776   return 0;
6777 }
6778 _ACEOF
6779 rm -f conftest.$ac_objext
6780 if { (eval echo "$as_me:6780: \"$ac_compile\"") >&5
6781   (eval $ac_compile) 2>&5
6782   ac_status=$?
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
6787   (eval $ac_try) 2>&5
6788   ac_status=$?
6789   echo "$as_me:6789: \$? = $ac_status" >&5
6790   (exit $ac_status); }; }; then
6791   eval "$as_ac_Header=yes"
6792 else
6793   echo "$as_me: failed program was:" >&5
6794 cat conftest.$ac_ext >&5
6795 eval "$as_ac_Header=no"
6796 fi
6797 rm -f conftest.$ac_objext conftest.$ac_ext
6798 fi
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
6804 EOF
6805
6806 ac_header_dirent=$ac_hdr; break
6807 fi
6808
6809 done
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
6816 else
6817   ac_check_lib_save_LIBS=$LIBS
6818 LIBS="-ldir  $LIBS"
6819 cat >conftest.$ac_ext <<_ACEOF
6820 #line 6820 "configure"
6821 #include "confdefs.h"
6822
6823 /* Override any gcc2 internal prototype to avoid an error.  */
6824 #ifdef __cplusplus
6825 extern "C"
6826 #endif
6827 /* We use char because int might match the return type of a gcc2
6828    builtin and then its argument prototype would still apply.  */
6829 char opendir ();
6830 int
6831 main ()
6832 {
6833 opendir ();
6834   ;
6835   return 0;
6836 }
6837 _ACEOF
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
6841   ac_status=$?
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
6846   (eval $ac_try) 2>&5
6847   ac_status=$?
6848   echo "$as_me:6848: \$? = $ac_status" >&5
6849   (exit $ac_status); }; }; then
6850   ac_cv_lib_dir_opendir=yes
6851 else
6852   echo "$as_me: failed program was:" >&5
6853 cat conftest.$ac_ext >&5
6854 ac_cv_lib_dir_opendir=no
6855 fi
6856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6857 LIBS=$ac_check_lib_save_LIBS
6858 fi
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
6862   LIBS="$LIBS -ldir"
6863 fi
6864
6865 else
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
6870 else
6871   ac_check_lib_save_LIBS=$LIBS
6872 LIBS="-lx  $LIBS"
6873 cat >conftest.$ac_ext <<_ACEOF
6874 #line 6874 "configure"
6875 #include "confdefs.h"
6876
6877 /* Override any gcc2 internal prototype to avoid an error.  */
6878 #ifdef __cplusplus
6879 extern "C"
6880 #endif
6881 /* We use char because int might match the return type of a gcc2
6882    builtin and then its argument prototype would still apply.  */
6883 char opendir ();
6884 int
6885 main ()
6886 {
6887 opendir ();
6888   ;
6889   return 0;
6890 }
6891 _ACEOF
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
6895   ac_status=$?
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
6900   (eval $ac_try) 2>&5
6901   ac_status=$?
6902   echo "$as_me:6902: \$? = $ac_status" >&5
6903   (exit $ac_status); }; }; then
6904   ac_cv_lib_x_opendir=yes
6905 else
6906   echo "$as_me: failed program was:" >&5
6907 cat conftest.$ac_ext >&5
6908 ac_cv_lib_x_opendir=no
6909 fi
6910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6911 LIBS=$ac_check_lib_save_LIBS
6912 fi
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
6916   LIBS="$LIBS -lx"
6917 fi
6918
6919 fi
6920
6921 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
6922 do
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
6928 else
6929   cat >conftest.$ac_ext <<_ACEOF
6930 #line 6930 "configure"
6931 #include "confdefs.h"
6932 #include <$ac_header>
6933 _ACEOF
6934 if { (eval echo "$as_me:6934: \"$ac_cpp conftest.$ac_ext\"") >&5
6935   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6936   ac_status=$?
6937   egrep -v '^ *\+' conftest.er1 >conftest.err
6938   rm -f conftest.er1
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
6944   else
6945     ac_cpp_err=
6946   fi
6947 else
6948   ac_cpp_err=yes
6949 fi
6950 if test -z "$ac_cpp_err"; then
6951   eval "$as_ac_Header=yes"
6952 else
6953   echo "$as_me: failed program was:" >&5
6954   cat conftest.$ac_ext >&5
6955   eval "$as_ac_Header=no"
6956 fi
6957 rm -f conftest.err conftest.$ac_ext
6958 fi
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
6964 EOF
6965
6966 fi
6967 done
6968
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
6974 else
6975   cat >conftest.$ac_ext <<_ACEOF
6976 #line 6976 "configure"
6977 #include "confdefs.h"
6978 #include <sys/types.h>
6979 #include <unistd.h>
6980 #include <termios.h>
6981 int
6982 main ()
6983 {
6984 /* SunOS 4.0.3 has termios.h but not the library calls.  */
6985    tcgetattr(0, 0);
6986   ;
6987   return 0;
6988 }
6989 _ACEOF
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
6993   ac_status=$?
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
6998   (eval $ac_try) 2>&5
6999   ac_status=$?
7000   echo "$as_me:7000: \$? = $ac_status" >&5
7001   (exit $ac_status); }; }; then
7002   ac_cv_sys_posix_termios=yes
7003 else
7004   echo "$as_me: failed program was:" >&5
7005 cat conftest.$ac_ext >&5
7006 ac_cv_sys_posix_termios=no
7007 fi
7008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7009 fi
7010 echo "$as_me:7010: result: $ac_cv_sys_posix_termios" >&5
7011 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
7012
7013     if test "$ac_cv_sys_posix_termios" = "yes"; then
7014
7015 cat >>confdefs.h <<\EOF
7016 #define HAVE_TERMIOS_H 1
7017 EOF
7018
7019     else
7020
7021 for ac_header in termio.h
7022 do
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
7028 else
7029   cat >conftest.$ac_ext <<_ACEOF
7030 #line 7030 "configure"
7031 #include "confdefs.h"
7032 #include <$ac_header>
7033 _ACEOF
7034 if { (eval echo "$as_me:7034: \"$ac_cpp conftest.$ac_ext\"") >&5
7035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7036   ac_status=$?
7037   egrep -v '^ *\+' conftest.er1 >conftest.err
7038   rm -f conftest.er1
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
7044   else
7045     ac_cpp_err=
7046   fi
7047 else
7048   ac_cpp_err=yes
7049 fi
7050 if test -z "$ac_cpp_err"; then
7051   eval "$as_ac_Header=yes"
7052 else
7053   echo "$as_me: failed program was:" >&5
7054   cat conftest.$ac_ext >&5
7055   eval "$as_ac_Header=no"
7056 fi
7057 rm -f conftest.err conftest.$ac_ext
7058 fi
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
7064 EOF
7065
7066 fi
7067 done
7068
7069     fi
7070 fi
7071 if test "$with_logincap" = "yes"; then
7072
7073 for ac_header in login_cap.h
7074 do
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
7080 else
7081   cat >conftest.$ac_ext <<_ACEOF
7082 #line 7082 "configure"
7083 #include "confdefs.h"
7084 #include <$ac_header>
7085 _ACEOF
7086 if { (eval echo "$as_me:7086: \"$ac_cpp conftest.$ac_ext\"") >&5
7087   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7088   ac_status=$?
7089   egrep -v '^ *\+' conftest.er1 >conftest.err
7090   rm -f conftest.er1
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
7096   else
7097     ac_cpp_err=
7098   fi
7099 else
7100   ac_cpp_err=yes
7101 fi
7102 if test -z "$ac_cpp_err"; then
7103   eval "$as_ac_Header=yes"
7104 else
7105   echo "$as_me: failed program was:" >&5
7106   cat conftest.$ac_ext >&5
7107   eval "$as_ac_Header=no"
7108 fi
7109 rm -f conftest.err conftest.$ac_ext
7110 fi
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
7116 EOF
7117
7118 fi
7119 done
7120
7121 fi
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
7127 else
7128   cat >conftest.$ac_ext <<_ACEOF
7129 #line 7129 "configure"
7130 #include "confdefs.h"
7131 #include <bsd_auth.h>
7132 _ACEOF
7133 if { (eval echo "$as_me:7133: \"$ac_cpp conftest.$ac_ext\"") >&5
7134   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7135   ac_status=$?
7136   egrep -v '^ *\+' conftest.er1 >conftest.err
7137   rm -f conftest.er1
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
7143   else
7144     ac_cpp_err=
7145   fi
7146 else
7147   ac_cpp_err=yes
7148 fi
7149 if test -z "$ac_cpp_err"; then
7150   ac_cv_header_bsd_auth_h=yes
7151 else
7152   echo "$as_me: failed program was:" >&5
7153   cat conftest.$ac_ext >&5
7154   ac_cv_header_bsd_auth_h=no
7155 fi
7156 rm -f conftest.err conftest.$ac_ext
7157 fi
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
7161
7162 cat >>confdefs.h <<\EOF
7163 #define HAVE_BSD_AUTH_H 1
7164 EOF
7165  with_passwd=no; AUTH_OBJS=bsdauth.o
7166 fi
7167
7168 fi
7169 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7170
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
7173 do
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
7179 else
7180   cat >conftest.$ac_ext <<_ACEOF
7181 #line 7181 "configure"
7182 #include "confdefs.h"
7183 $ac_includes_default
7184 #include <$ac_header>
7185 _ACEOF
7186 rm -f conftest.$ac_objext
7187 if { (eval echo "$as_me:7187: \"$ac_compile\"") >&5
7188   (eval $ac_compile) 2>&5
7189   ac_status=$?
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
7194   (eval $ac_try) 2>&5
7195   ac_status=$?
7196   echo "$as_me:7196: \$? = $ac_status" >&5
7197   (exit $ac_status); }; }; then
7198   eval "$as_ac_Header=yes"
7199 else
7200   echo "$as_me: failed program was:" >&5
7201 cat conftest.$ac_ext >&5
7202 eval "$as_ac_Header=no"
7203 fi
7204 rm -f conftest.$ac_objext conftest.$ac_ext
7205 fi
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
7211 EOF
7212
7213 fi
7214 done
7215
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
7220 else
7221   cat >conftest.$ac_ext <<_ACEOF
7222 #line 7222 "configure"
7223 #include "confdefs.h"
7224 $ac_includes_default
7225 int
7226 main ()
7227 {
7228 if ((mode_t *) 0)
7229   return 0;
7230 if (sizeof (mode_t))
7231   return 0;
7232   ;
7233   return 0;
7234 }
7235 _ACEOF
7236 rm -f conftest.$ac_objext
7237 if { (eval echo "$as_me:7237: \"$ac_compile\"") >&5
7238   (eval $ac_compile) 2>&5
7239   ac_status=$?
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
7244   (eval $ac_try) 2>&5
7245   ac_status=$?
7246   echo "$as_me:7246: \$? = $ac_status" >&5
7247   (exit $ac_status); }; }; then
7248   ac_cv_type_mode_t=yes
7249 else
7250   echo "$as_me: failed program was:" >&5
7251 cat conftest.$ac_ext >&5
7252 ac_cv_type_mode_t=no
7253 fi
7254 rm -f conftest.$ac_objext conftest.$ac_ext
7255 fi
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
7259   :
7260 else
7261
7262 cat >>confdefs.h <<EOF
7263 #define mode_t int
7264 EOF
7265
7266 fi
7267
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
7272 else
7273   cat >conftest.$ac_ext <<_ACEOF
7274 #line 7274 "configure"
7275 #include "confdefs.h"
7276 #include <sys/types.h>
7277
7278 _ACEOF
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
7282 else
7283   ac_cv_type_uid_t=no
7284 fi
7285 rm -f conftest*
7286
7287 fi
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
7291
7292 cat >>confdefs.h <<\EOF
7293 #define uid_t int
7294 EOF
7295
7296 cat >>confdefs.h <<\EOF
7297 #define gid_t int
7298 EOF
7299
7300 fi
7301
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
7306 else
7307   cat >conftest.$ac_ext <<_ACEOF
7308 #line 7308 "configure"
7309 #include "confdefs.h"
7310 #include <sys/types.h>
7311 #include <signal.h>
7312
7313 int
7314 main ()
7315 {
7316 if ((sig_atomic_t *) 0)
7317   return 0;
7318 if (sizeof (sig_atomic_t))
7319   return 0;
7320   ;
7321   return 0;
7322 }
7323 _ACEOF
7324 rm -f conftest.$ac_objext
7325 if { (eval echo "$as_me:7325: \"$ac_compile\"") >&5
7326   (eval $ac_compile) 2>&5
7327   ac_status=$?
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
7332   (eval $ac_try) 2>&5
7333   ac_status=$?
7334   echo "$as_me:7334: \$? = $ac_status" >&5
7335   (exit $ac_status); }; }; then
7336   ac_cv_type_sig_atomic_t=yes
7337 else
7338   echo "$as_me: failed program was:" >&5
7339 cat conftest.$ac_ext >&5
7340 ac_cv_type_sig_atomic_t=no
7341 fi
7342 rm -f conftest.$ac_objext conftest.$ac_ext
7343 fi
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
7347
7348 cat >>confdefs.h <<EOF
7349 #define HAVE_SIG_ATOMIC_T 1
7350 EOF
7351
7352 else
7353
7354 cat >>confdefs.h <<\EOF
7355 #define sig_atomic_t int
7356 EOF
7357
7358 fi
7359
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
7364 else
7365   cat >conftest.$ac_ext <<_ACEOF
7366 #line 7366 "configure"
7367 #include "confdefs.h"
7368 #include <sys/types.h>
7369 #include <signal.h>
7370
7371 int
7372 main ()
7373 {
7374 if ((sigaction_t *) 0)
7375   return 0;
7376 if (sizeof (sigaction_t))
7377   return 0;
7378   ;
7379   return 0;
7380 }
7381 _ACEOF
7382 rm -f conftest.$ac_objext
7383 if { (eval echo "$as_me:7383: \"$ac_compile\"") >&5
7384   (eval $ac_compile) 2>&5
7385   ac_status=$?
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
7390   (eval $ac_try) 2>&5
7391   ac_status=$?
7392   echo "$as_me:7392: \$? = $ac_status" >&5
7393   (exit $ac_status); }; }; then
7394   ac_cv_type_sigaction_t=yes
7395 else
7396   echo "$as_me: failed program was:" >&5
7397 cat conftest.$ac_ext >&5
7398 ac_cv_type_sigaction_t=no
7399 fi
7400 rm -f conftest.$ac_objext conftest.$ac_ext
7401 fi
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
7405
7406 cat >>confdefs.h <<EOF
7407 #define HAVE_SIGACTION_T 1
7408 EOF
7409
7410 cat >>confdefs.h <<\EOF
7411 #define HAVE_SIGACTION_T 1
7412 EOF
7413
7414 fi
7415
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
7420 else
7421   cat >conftest.$ac_ext <<_ACEOF
7422 #line 7422 "configure"
7423 #include "confdefs.h"
7424 #include <sys/types.h>
7425 #include <stdio.h>
7426 #if STDC_HEADERS
7427 #include <stdlib.h>
7428 #endif
7429 #if HAVE_UNISTD_H
7430 #include <unistd.h>
7431 #endif
7432 _ACEOF
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
7436 else
7437   sudo_cv_type_size_t=no
7438 fi
7439 rm -f conftest*
7440
7441 fi
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
7445
7446 cat >>confdefs.h <<\EOF
7447 #define size_t int
7448 EOF
7449
7450 fi
7451
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
7456 else
7457   cat >conftest.$ac_ext <<_ACEOF
7458 #line 7458 "configure"
7459 #include "confdefs.h"
7460 #include <sys/types.h>
7461 #include <stdio.h>
7462 #if STDC_HEADERS
7463 #include <stdlib.h>
7464 #endif
7465 #if HAVE_UNISTD_H
7466 #include <unistd.h>
7467 #endif
7468 _ACEOF
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
7472 else
7473   sudo_cv_type_ssize_t=no
7474 fi
7475 rm -f conftest*
7476
7477 fi
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
7481
7482 cat >>confdefs.h <<\EOF
7483 #define ssize_t int
7484 EOF
7485
7486 fi
7487
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
7492 else
7493   cat >conftest.$ac_ext <<_ACEOF
7494 #line 7494 "configure"
7495 #include "confdefs.h"
7496 #include <sys/types.h>
7497 #include <stdio.h>
7498 #if STDC_HEADERS
7499 #include <stdlib.h>
7500 #endif
7501 #if HAVE_UNISTD_H
7502 #include <unistd.h>
7503 #endif
7504 _ACEOF
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
7508 else
7509   sudo_cv_type_dev_t=no
7510 fi
7511 rm -f conftest*
7512
7513 fi
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
7517
7518 cat >>confdefs.h <<\EOF
7519 #define dev_t int
7520 EOF
7521
7522 fi
7523
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
7528 else
7529   cat >conftest.$ac_ext <<_ACEOF
7530 #line 7530 "configure"
7531 #include "confdefs.h"
7532 #include <sys/types.h>
7533 #include <stdio.h>
7534 #if STDC_HEADERS
7535 #include <stdlib.h>
7536 #endif
7537 #if HAVE_UNISTD_H
7538 #include <unistd.h>
7539 #endif
7540 _ACEOF
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
7544 else
7545   sudo_cv_type_ino_t=no
7546 fi
7547 rm -f conftest*
7548
7549 fi
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
7553
7554 cat >>confdefs.h <<\EOF
7555 #define ino_t unsigned int
7556 EOF
7557
7558 fi
7559
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"
7565
7566 int
7567 main ()
7568 {
7569 void *foo;
7570 foo = (void *)0; (void *)"test";
7571   ;
7572   return 0;
7573 }
7574 _ACEOF
7575 rm -f conftest.$ac_objext
7576 if { (eval echo "$as_me:7576: \"$ac_compile\"") >&5
7577   (eval $ac_compile) 2>&5
7578   ac_status=$?
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
7583   (eval $ac_try) 2>&5
7584   ac_status=$?
7585   echo "$as_me:7585: \$? = $ac_status" >&5
7586   (exit $ac_status); }; }; then
7587
7588 cat >>confdefs.h <<\EOF
7589 #define VOID void
7590 EOF
7591
7592 echo "$as_me:7592: result: yes" >&5
7593 echo "${ECHO_T}yes" >&6
7594 else
7595   echo "$as_me: failed program was:" >&5
7596 cat conftest.$ac_ext >&5
7597 cat >>confdefs.h <<\EOF
7598 #define VOID char
7599 EOF
7600
7601 echo "$as_me:7601: result: no" >&5
7602 echo "${ECHO_T}no" >&6
7603 fi
7604 rm -f conftest.$ac_objext conftest.$ac_ext
7605
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
7610 else
7611   rm -f conftestdata
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; }; }
7616 else
7617   cat >conftest.$ac_ext <<_ACEOF
7618 #line 7618 "configure"
7619 #include "confdefs.h"
7620 #include <stdio.h>
7621 #include <pwd.h>
7622 #include <limits.h>
7623 #include <sys/types.h>
7624 #include <sys/param.h>
7625 main() {
7626   FILE *f;
7627   char b[1024];
7628   uid_t u = (uid_t) -1;
7629
7630   if ((f = fopen("conftestdata", "w")) == NULL)
7631     exit(1);
7632
7633   (void) sprintf(b, "%u", u);
7634   (void) fprintf(f, "%d\n", strlen(b));
7635   (void) fclose(f);
7636   exit(0);
7637 }
7638 _ACEOF
7639 rm -f conftest$ac_exeext
7640 if { (eval echo "$as_me:7640: \"$ac_link\"") >&5
7641   (eval $ac_link) 2>&5
7642   ac_status=$?
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
7646   (eval $ac_try) 2>&5
7647   ac_status=$?
7648   echo "$as_me:7648: \$? = $ac_status" >&5
7649   (exit $ac_status); }; }; then
7650   sudo_cv_uid_t_len=`cat conftestdata`
7651 else
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
7656 fi
7657 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7658 fi
7659
7660 fi
7661
7662 rm -f conftestdata
7663 echo "$as_me:7663: result: $sudo_cv_uid_t_len" >&5
7664 echo "${ECHO_T}$sudo_cv_uid_t_len" >&6
7665
7666 cat >>confdefs.h <<EOF
7667 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
7668 EOF
7669
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"
7675
7676 int
7677 main ()
7678 {
7679 long long foo = 1000; foo /= 10;
7680   ;
7681   return 0;
7682 }
7683 _ACEOF
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
7687   ac_status=$?
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
7692   (eval $ac_try) 2>&5
7693   ac_status=$?
7694   echo "$as_me:7694: \$? = $ac_status" >&5
7695   (exit $ac_status); }; }; then
7696
7697 cat >>confdefs.h <<\EOF
7698 #define HAVE_LONG_LONG 1
7699 EOF
7700
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; }; }
7705 else
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);}
7710 _ACEOF
7711 rm -f conftest$ac_exeext
7712 if { (eval echo "$as_me:7712: \"$ac_link\"") >&5
7713   (eval $ac_link) 2>&5
7714   ac_status=$?
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
7718   (eval $ac_try) 2>&5
7719   ac_status=$?
7720   echo "$as_me:7720: \$? = $ac_status" >&5
7721   (exit $ac_status); }; }; then
7722
7723 cat >>confdefs.h <<\EOF
7724 #define LONG_IS_QUAD 1
7725 EOF
7726
7727 else
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
7731 fi
7732 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7733 fi
7734 echo "$as_me:7734: result: yes" >&5
7735 echo "${ECHO_T}yes" >&6
7736 else
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
7741 fi
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
7747 else
7748   if test "$cross_compiling" = yes; then
7749   sudo_cv_sock_sa_len=no
7750 else
7751   cat >conftest.$ac_ext <<_ACEOF
7752 #line 7752 "configure"
7753 #include "confdefs.h"
7754 #include <sys/types.h>
7755 #include <sys/socket.h>
7756 main() {
7757 struct sockaddr s;
7758 s.sa_len = 0;
7759 exit(0);
7760 }
7761 _ACEOF
7762 rm -f conftest$ac_exeext
7763 if { (eval echo "$as_me:7763: \"$ac_link\"") >&5
7764   (eval $ac_link) 2>&5
7765   ac_status=$?
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
7769   (eval $ac_try) 2>&5
7770   ac_status=$?
7771   echo "$as_me:7771: \$? = $ac_status" >&5
7772   (exit $ac_status); }; }; then
7773   sudo_cv_sock_sa_len=yes
7774 else
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
7779 fi
7780 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7781 fi
7782 rm -f core core.* *.core
7783 fi
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
7787
7788 cat >>confdefs.h <<\EOF
7789 #define HAVE_SA_LEN 1
7790 EOF
7791
7792 fi
7793
7794 case "$DEFS" in
7795     *"RETSIGTYPE"*)     ;;
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
7800 else
7801   cat >conftest.$ac_ext <<_ACEOF
7802 #line 7802 "configure"
7803 #include "confdefs.h"
7804 #include <sys/types.h>
7805 #include <signal.h>
7806 #ifdef signal
7807 # undef signal
7808 #endif
7809 #ifdef __cplusplus
7810 extern "C" void (*signal (int, void (*)(int)))(int);
7811 #else
7812 void (*signal ()) ();
7813 #endif
7814
7815 int
7816 main ()
7817 {
7818 int i;
7819   ;
7820   return 0;
7821 }
7822 _ACEOF
7823 rm -f conftest.$ac_objext
7824 if { (eval echo "$as_me:7824: \"$ac_compile\"") >&5
7825   (eval $ac_compile) 2>&5
7826   ac_status=$?
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
7831   (eval $ac_try) 2>&5
7832   ac_status=$?
7833   echo "$as_me:7833: \$? = $ac_status" >&5
7834   (exit $ac_status); }; }; then
7835   ac_cv_type_signal=void
7836 else
7837   echo "$as_me: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7839 ac_cv_type_signal=int
7840 fi
7841 rm -f conftest.$ac_objext conftest.$ac_ext
7842 fi
7843 echo "$as_me:7843: result: $ac_cv_type_signal" >&5
7844 echo "${ECHO_T}$ac_cv_type_signal" >&6
7845
7846 cat >>confdefs.h <<EOF
7847 #define RETSIGTYPE $ac_cv_type_signal
7848 EOF
7849
7850 ;;
7851 esac
7852
7853 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
7854                seteuid setegid strftime setrlimit initgroups fstat
7855 do
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
7861 else
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.  */
7867 #include <assert.h>
7868 /* Override any gcc2 internal prototype to avoid an error.  */
7869 #ifdef __cplusplus
7870 extern "C"
7871 #endif
7872 /* We use char because int might match the return type of a gcc2
7873    builtin and then its argument prototype would still apply.  */
7874 char $ac_func ();
7875 char (*f) ();
7876
7877 int
7878 main ()
7879 {
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)
7884 choke me
7885 #else
7886 f = $ac_func;
7887 #endif
7888
7889   ;
7890   return 0;
7891 }
7892 _ACEOF
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
7896   ac_status=$?
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
7901   (eval $ac_try) 2>&5
7902   ac_status=$?
7903   echo "$as_me:7903: \$? = $ac_status" >&5
7904   (exit $ac_status); }; }; then
7905   eval "$as_ac_var=yes"
7906 else
7907   echo "$as_me: failed program was:" >&5
7908 cat conftest.$ac_ext >&5
7909 eval "$as_ac_var=no"
7910 fi
7911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7912 fi
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
7918 EOF
7919
7920 fi
7921 done
7922
7923 if test -z "$BROKEN_SETREUID"; then
7924
7925 for ac_func in setreuid
7926 do
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
7932 else
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.  */
7938 #include <assert.h>
7939 /* Override any gcc2 internal prototype to avoid an error.  */
7940 #ifdef __cplusplus
7941 extern "C"
7942 #endif
7943 /* We use char because int might match the return type of a gcc2
7944    builtin and then its argument prototype would still apply.  */
7945 char $ac_func ();
7946 char (*f) ();
7947
7948 int
7949 main ()
7950 {
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)
7955 choke me
7956 #else
7957 f = $ac_func;
7958 #endif
7959
7960   ;
7961   return 0;
7962 }
7963 _ACEOF
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
7967   ac_status=$?
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
7972   (eval $ac_try) 2>&5
7973   ac_status=$?
7974   echo "$as_me:7974: \$? = $ac_status" >&5
7975   (exit $ac_status); }; }; then
7976   eval "$as_ac_var=yes"
7977 else
7978   echo "$as_me: failed program was:" >&5
7979 cat conftest.$ac_ext >&5
7980 eval "$as_ac_var=no"
7981 fi
7982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7983 fi
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
7989 EOF
7990
7991 fi
7992 done
7993
7994 fi
7995 if test X"$with_interfaces" != X"no"; then
7996
7997 for ac_func in getifaddrs
7998 do
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
8004 else
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.  */
8010 #include <assert.h>
8011 /* Override any gcc2 internal prototype to avoid an error.  */
8012 #ifdef __cplusplus
8013 extern "C"
8014 #endif
8015 /* We use char because int might match the return type of a gcc2
8016    builtin and then its argument prototype would still apply.  */
8017 char $ac_func ();
8018 char (*f) ();
8019
8020 int
8021 main ()
8022 {
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)
8027 choke me
8028 #else
8029 f = $ac_func;
8030 #endif
8031
8032   ;
8033   return 0;
8034 }
8035 _ACEOF
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
8039   ac_status=$?
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
8044   (eval $ac_try) 2>&5
8045   ac_status=$?
8046   echo "$as_me:8046: \$? = $ac_status" >&5
8047   (exit $ac_status); }; }; then
8048   eval "$as_ac_var=yes"
8049 else
8050   echo "$as_me: failed program was:" >&5
8051 cat conftest.$ac_ext >&5
8052 eval "$as_ac_var=no"
8053 fi
8054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8055 fi
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
8061 EOF
8062
8063 for ac_func in freeifaddrs
8064 do
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
8070 else
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
8075 else
8076   which can conflict with char $ac_func (); below.  */
8077 #include <assert.h>
8078 /* Override any gcc2 internal prototype to avoid an error.  */
8079 #ifdef __cplusplus
8080 extern "C"
8081 #endif
8082 /* We use char because int might match the return type of a gcc2
8083    builtin and then its argument prototype would still apply.  */
8084 char $ac_func ();
8085 char (*f) ();
8086
8087 int
8088 main ()
8089 {
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)
8094 choke me
8095 #else
8096 f = $ac_func;
8097 #endif
8098
8099   ;
8100   return 0;
8101 }
8102 _ACEOF
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
8106   ac_status=$?
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
8111   (eval $ac_try) 2>&5
8112   ac_status=$?
8113   echo "$as_me:8113: \$? = $ac_status" >&5
8114   (exit $ac_status); }; }; then
8115   eval "$as_ac_var=yes"
8116 else
8117   echo "$as_me: failed program was:" >&5
8118 cat conftest.$ac_ext >&5
8119 eval "$as_ac_var=no"
8120 fi
8121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8122 fi
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
8128 EOF
8129
8130 fi
8131 done
8132
8133 fi
8134 done
8135
8136 fi
8137 if test -n "$SECUREWARE"; then
8138
8139 for ac_func in bigcrypt set_auth_parameters initprivs
8140 do
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
8146 else
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.  */
8152 #include <assert.h>
8153 /* Override any gcc2 internal prototype to avoid an error.  */
8154 #ifdef __cplusplus
8155 extern "C"
8156 #endif
8157 /* We use char because int might match the return type of a gcc2
8158    builtin and then its argument prototype would still apply.  */
8159 char $ac_func ();
8160 char (*f) ();
8161
8162 int
8163 main ()
8164 {
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)
8169 choke me
8170 #else
8171 f = $ac_func;
8172 #endif
8173
8174   ;
8175   return 0;
8176 }
8177 _ACEOF
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
8181   ac_status=$?
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
8186   (eval $ac_try) 2>&5
8187   ac_status=$?
8188   echo "$as_me:8188: \$? = $ac_status" >&5
8189   (exit $ac_status); }; }; then
8190   eval "$as_ac_var=yes"
8191 else
8192   echo "$as_me: failed program was:" >&5
8193 cat conftest.$ac_ext >&5
8194 eval "$as_ac_var=no"
8195 fi
8196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8197 fi
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
8203 EOF
8204
8205 fi
8206 done
8207
8208 fi
8209 if test -z "$BROKEN_GETCWD"; then
8210
8211 for ac_func in getcwd
8212 do
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
8218 else
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.  */
8224 #include <assert.h>
8225 /* Override any gcc2 internal prototype to avoid an error.  */
8226 #ifdef __cplusplus
8227 extern "C"
8228 #endif
8229 /* We use char because int might match the return type of a gcc2
8230    builtin and then its argument prototype would still apply.  */
8231 char $ac_func ();
8232 char (*f) ();
8233
8234 int
8235 main ()
8236 {
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)
8241 choke me
8242 #else
8243 f = $ac_func;
8244 #endif
8245
8246   ;
8247   return 0;
8248 }
8249 _ACEOF
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
8253   ac_status=$?
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
8258   (eval $ac_try) 2>&5
8259   ac_status=$?
8260   echo "$as_me:8260: \$? = $ac_status" >&5
8261   (exit $ac_status); }; }; then
8262   eval "$as_ac_var=yes"
8263 else
8264   echo "$as_me: failed program was:" >&5
8265 cat conftest.$ac_ext >&5
8266 eval "$as_ac_var=no"
8267 fi
8268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8269 fi
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
8275 EOF
8276
8277 else
8278   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8279 fi
8280 done
8281
8282 fi
8283
8284 for ac_func in lockf flock
8285 do
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
8291 else
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.  */
8297 #include <assert.h>
8298 /* Override any gcc2 internal prototype to avoid an error.  */
8299 #ifdef __cplusplus
8300 extern "C"
8301 #endif
8302 /* We use char because int might match the return type of a gcc2
8303    builtin and then its argument prototype would still apply.  */
8304 char $ac_func ();
8305 char (*f) ();
8306
8307 int
8308 main ()
8309 {
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)
8314 choke me
8315 #else
8316 f = $ac_func;
8317 #endif
8318
8319   ;
8320   return 0;
8321 }
8322 _ACEOF
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
8326   ac_status=$?
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
8331   (eval $ac_try) 2>&5
8332   ac_status=$?
8333   echo "$as_me:8333: \$? = $ac_status" >&5
8334   (exit $ac_status); }; }; then
8335   eval "$as_ac_var=yes"
8336 else
8337   echo "$as_me: failed program was:" >&5
8338 cat conftest.$ac_ext >&5
8339 eval "$as_ac_var=no"
8340 fi
8341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8342 fi
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
8348 EOF
8349  break
8350 fi
8351 done
8352
8353 for ac_func in waitpid wait3
8354 do
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
8360 else
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.  */
8366 #include <assert.h>
8367 /* Override any gcc2 internal prototype to avoid an error.  */
8368 #ifdef __cplusplus
8369 extern "C"
8370 #endif
8371 /* We use char because int might match the return type of a gcc2
8372    builtin and then its argument prototype would still apply.  */
8373 char $ac_func ();
8374 char (*f) ();
8375
8376 int
8377 main ()
8378 {
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)
8383 choke me
8384 #else
8385 f = $ac_func;
8386 #endif
8387
8388   ;
8389   return 0;
8390 }
8391 _ACEOF
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
8395   ac_status=$?
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
8400   (eval $ac_try) 2>&5
8401   ac_status=$?
8402   echo "$as_me:8402: \$? = $ac_status" >&5
8403   (exit $ac_status); }; }; then
8404   eval "$as_ac_var=yes"
8405 else
8406   echo "$as_me: failed program was:" >&5
8407 cat conftest.$ac_ext >&5
8408 eval "$as_ac_var=no"
8409 fi
8410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8411 fi
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
8417 EOF
8418  break
8419 fi
8420 done
8421
8422 for ac_func in innetgr _innetgr
8423 do
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
8429 else
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.  */
8435 #include <assert.h>
8436 /* Override any gcc2 internal prototype to avoid an error.  */
8437 #ifdef __cplusplus
8438 extern "C"
8439 #endif
8440 /* We use char because int might match the return type of a gcc2
8441    builtin and then its argument prototype would still apply.  */
8442 char $ac_func ();
8443 char (*f) ();
8444
8445 int
8446 main ()
8447 {
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)
8452 choke me
8453 #else
8454 f = $ac_func;
8455 #endif
8456
8457   ;
8458   return 0;
8459 }
8460 _ACEOF
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
8464   ac_status=$?
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
8469   (eval $ac_try) 2>&5
8470   ac_status=$?
8471   echo "$as_me:8471: \$? = $ac_status" >&5
8472   (exit $ac_status); }; }; then
8473   eval "$as_ac_var=yes"
8474 else
8475   echo "$as_me: failed program was:" >&5
8476 cat conftest.$ac_ext >&5
8477 eval "$as_ac_var=no"
8478 fi
8479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8480 fi
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
8486 EOF
8487
8488 for ac_func in getdomainname
8489 do
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
8495 else
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
8500 else
8501   which can conflict with char $ac_func (); below.  */
8502 #include <assert.h>
8503 /* Override any gcc2 internal prototype to avoid an error.  */
8504 #ifdef __cplusplus
8505 extern "C"
8506 #endif
8507 /* We use char because int might match the return type of a gcc2
8508    builtin and then its argument prototype would still apply.  */
8509 char $ac_func ();
8510 char (*f) ();
8511
8512 int
8513 main ()
8514 {
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)
8519 choke me
8520 #else
8521 f = $ac_func;
8522 #endif
8523
8524   ;
8525   return 0;
8526 }
8527 _ACEOF
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
8531   ac_status=$?
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
8536   (eval $ac_try) 2>&5
8537   ac_status=$?
8538   echo "$as_me:8538: \$? = $ac_status" >&5
8539   (exit $ac_status); }; }; then
8540   eval "$as_ac_var=yes"
8541 else
8542   echo "$as_me: failed program was:" >&5
8543 cat conftest.$ac_ext >&5
8544 eval "$as_ac_var=no"
8545 fi
8546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8547 fi
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
8553 EOF
8554
8555 fi
8556 done
8557  break
8558 fi
8559 done
8560
8561 for ac_func in lsearch
8562 do
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
8568 else
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.  */
8574 #include <assert.h>
8575 /* Override any gcc2 internal prototype to avoid an error.  */
8576 #ifdef __cplusplus
8577 extern "C"
8578 #endif
8579 /* We use char because int might match the return type of a gcc2
8580    builtin and then its argument prototype would still apply.  */
8581 char $ac_func ();
8582 char (*f) ();
8583
8584 int
8585 main ()
8586 {
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)
8591 choke me
8592 #else
8593 f = $ac_func;
8594 #endif
8595
8596   ;
8597   return 0;
8598 }
8599 _ACEOF
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
8603   ac_status=$?
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
8608   (eval $ac_try) 2>&5
8609   ac_status=$?
8610   echo "$as_me:8610: \$? = $ac_status" >&5
8611   (exit $ac_status); }; }; then
8612   eval "$as_ac_var=yes"
8613 else
8614   echo "$as_me: failed program was:" >&5
8615 cat conftest.$ac_ext >&5
8616 eval "$as_ac_var=no"
8617 fi
8618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8619 fi
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
8625 EOF
8626
8627 else
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
8632 else
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"
8638
8639 /* Override any gcc2 internal prototype to avoid an error.  */
8640 #ifdef __cplusplus
8641 extern "C"
8642 #endif
8643 /* We use char because int might match the return type of a gcc2
8644    builtin and then its argument prototype would still apply.  */
8645 char lsearch ();
8646 int
8647 main ()
8648 {
8649 lsearch ();
8650   ;
8651   return 0;
8652 }
8653 _ACEOF
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
8657   ac_status=$?
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
8662   (eval $ac_try) 2>&5
8663   ac_status=$?
8664   echo "$as_me:8664: \$? = $ac_status" >&5
8665   (exit $ac_status); }; }; then
8666   ac_cv_lib_compat_lsearch=yes
8667 else
8668   echo "$as_me: failed program was:" >&5
8669 cat conftest.$ac_ext >&5
8670 ac_cv_lib_compat_lsearch=no
8671 fi
8672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8673 LIBS=$ac_check_lib_save_LIBS
8674 fi
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
8682 else
8683   cat >conftest.$ac_ext <<_ACEOF
8684 #line 8684 "configure"
8685 #include "confdefs.h"
8686 #include <search.h>
8687 _ACEOF
8688 if { (eval echo "$as_me:8688: \"$ac_cpp conftest.$ac_ext\"") >&5
8689   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8690   ac_status=$?
8691   egrep -v '^ *\+' conftest.er1 >conftest.err
8692   rm -f conftest.er1
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
8698   else
8699     ac_cpp_err=
8700   fi
8701 else
8702   ac_cpp_err=yes
8703 fi
8704 if test -z "$ac_cpp_err"; then
8705   ac_cv_header_search_h=yes
8706 else
8707   echo "$as_me: failed program was:" >&5
8708   cat conftest.$ac_ext >&5
8709   ac_cv_header_search_h=no
8710 fi
8711 rm -f conftest.err conftest.$ac_ext
8712 fi
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
8718 EOF
8719  LIBS="${LIBS} -lcompat"
8720 else
8721   LIBOBJS="$LIBOBJS lsearch.$ac_objext"
8722 fi
8723
8724 else
8725   LIBOBJS="$LIBOBJS lsearch.$ac_objext"
8726 fi
8727
8728 fi
8729 done
8730
8731 for ac_func in utime
8732 do
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
8738 else
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.  */
8744 #include <assert.h>
8745 /* Override any gcc2 internal prototype to avoid an error.  */
8746 #ifdef __cplusplus
8747 extern "C"
8748 #endif
8749 /* We use char because int might match the return type of a gcc2
8750    builtin and then its argument prototype would still apply.  */
8751 char $ac_func ();
8752 char (*f) ();
8753
8754 int
8755 main ()
8756 {
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)
8761 choke me
8762 #else
8763 f = $ac_func;
8764 #endif
8765
8766   ;
8767   return 0;
8768 }
8769 _ACEOF
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
8773   ac_status=$?
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
8778   (eval $ac_try) 2>&5
8779   ac_status=$?
8780   echo "$as_me:8780: \$? = $ac_status" >&5
8781   (exit $ac_status); }; }; then
8782   eval "$as_ac_var=yes"
8783 else
8784   echo "$as_me: failed program was:" >&5
8785 cat conftest.$ac_ext >&5
8786 eval "$as_ac_var=no"
8787 fi
8788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8789 fi
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
8795 EOF
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
8800 else
8801   rm -f conftestdata; > conftestdata
8802 if test "$cross_compiling" = yes; then
8803   sudo_cv_func_utime_posix=no
8804 else
8805   cat >conftest.$ac_ext <<_ACEOF
8806 #line 8806 "configure"
8807 #include "confdefs.h"
8808 #include <sys/types.h>
8809 #include <sys/time.h>
8810 #include <utime.h>
8811 main() {
8812 struct utimbuf ut;
8813 ut.actime = ut.modtime = time(0);
8814 utime("conftestdata", &ut);
8815 exit(0);
8816 }
8817 _ACEOF
8818 rm -f conftest$ac_exeext
8819 if { (eval echo "$as_me:8819: \"$ac_link\"") >&5
8820   (eval $ac_link) 2>&5
8821   ac_status=$?
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
8825   (eval $ac_try) 2>&5
8826   ac_status=$?
8827   echo "$as_me:8827: \$? = $ac_status" >&5
8828   (exit $ac_status); }; }; then
8829   sudo_cv_func_utime_posix=yes
8830 else
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
8835 fi
8836 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8837 fi
8838 rm -f core core.* *.core
8839 fi
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
8843
8844 cat >>confdefs.h <<\EOF
8845 #define HAVE_UTIME_POSIX 1
8846 EOF
8847
8848 fi
8849
8850 else
8851   LIBOBJS="$LIBOBJS utime.$ac_objext"
8852 fi
8853 done
8854
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
8859 else
8860   rm -f conftestdata; > conftestdata
8861 if test "$cross_compiling" = yes; then
8862   sudo_cv_func_fnmatch=no
8863 else
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)); }
8869
8870 _ACEOF
8871 rm -f conftest$ac_exeext
8872 if { (eval echo "$as_me:8872: \"$ac_link\"") >&5
8873   (eval $ac_link) 2>&5
8874   ac_status=$?
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
8878   (eval $ac_try) 2>&5
8879   ac_status=$?
8880   echo "$as_me:8880: \$? = $ac_status" >&5
8881   (exit $ac_status); }; }; then
8882   sudo_cv_func_fnmatch=yes
8883 else
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
8888 fi
8889 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8890 fi
8891 rm -f core core.* *.core
8892 fi
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
8896
8897 cat >>confdefs.h <<\EOF
8898 #define HAVE_FNMATCH 1
8899 EOF
8900
8901 else
8902   LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
8903 fi
8904
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
8909 else
8910   cat >conftest.$ac_ext <<_ACEOF
8911 #line 8911 "configure"
8912 #include "confdefs.h"
8913 #include <ctype.h>
8914 int
8915 main ()
8916 {
8917 (void)isblank(1);
8918   ;
8919   return 0;
8920 }
8921 _ACEOF
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
8925   ac_status=$?
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
8930   (eval $ac_try) 2>&5
8931   ac_status=$?
8932   echo "$as_me:8932: \$? = $ac_status" >&5
8933   (exit $ac_status); }; }; then
8934   sudo_cv_func_isblank=yes
8935 else
8936   echo "$as_me: failed program was:" >&5
8937 cat conftest.$ac_ext >&5
8938 sudo_cv_func_isblank=no
8939 fi
8940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8941 fi
8942 echo "$as_me:8942: result: $sudo_cv_func_isblank" >&5
8943 echo "${ECHO_T}$sudo_cv_func_isblank" >&6
8944
8945   if test "$sudo_cv_func_isblank" = "yes"; then
8946
8947 cat >>confdefs.h <<\EOF
8948 #define HAVE_ISBLANK 1
8949 EOF
8950
8951   fi
8952
8953 for ac_func in strerror strcasecmp sigaction
8954 do
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
8960 else
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.  */
8966 #include <assert.h>
8967 /* Override any gcc2 internal prototype to avoid an error.  */
8968 #ifdef __cplusplus
8969 extern "C"
8970 #endif
8971 /* We use char because int might match the return type of a gcc2
8972    builtin and then its argument prototype would still apply.  */
8973 char $ac_func ();
8974 char (*f) ();
8975
8976 int
8977 main ()
8978 {
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)
8983 choke me
8984 #else
8985 f = $ac_func;
8986 #endif
8987
8988   ;
8989   return 0;
8990 }
8991 _ACEOF
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
8995   ac_status=$?
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
9000   (eval $ac_try) 2>&5
9001   ac_status=$?
9002   echo "$as_me:9002: \$? = $ac_status" >&5
9003   (exit $ac_status); }; }; then
9004   eval "$as_ac_var=yes"
9005 else
9006   echo "$as_me: failed program was:" >&5
9007 cat conftest.$ac_ext >&5
9008 eval "$as_ac_var=no"
9009 fi
9010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9011 fi
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
9017 EOF
9018
9019 else
9020   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9021 fi
9022 done
9023
9024 for ac_func in snprintf vsnprintf asprintf vasprintf
9025 do
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
9031 else
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.  */
9037 #include <assert.h>
9038 /* Override any gcc2 internal prototype to avoid an error.  */
9039 #ifdef __cplusplus
9040 extern "C"
9041 #endif
9042 /* We use char because int might match the return type of a gcc2
9043    builtin and then its argument prototype would still apply.  */
9044 char $ac_func ();
9045 char (*f) ();
9046
9047 int
9048 main ()
9049 {
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)
9054 choke me
9055 #else
9056 f = $ac_func;
9057 #endif
9058
9059   ;
9060   return 0;
9061 }
9062 _ACEOF
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
9066   ac_status=$?
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
9071   (eval $ac_try) 2>&5
9072   ac_status=$?
9073   echo "$as_me:9073: \$? = $ac_status" >&5
9074   (exit $ac_status); }; }; then
9075   eval "$as_ac_var=yes"
9076 else
9077   echo "$as_me: failed program was:" >&5
9078 cat conftest.$ac_ext >&5
9079 eval "$as_ac_var=no"
9080 fi
9081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9082 fi
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
9088 EOF
9089
9090 else
9091   NEED_SNPRINTF=1
9092 fi
9093 done
9094
9095 if test -n "$NEED_SNPRINTF"; then
9096     LIBOBJS="$LIBOBJS snprintf.$ac_objext"
9097 fi
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
9103 else
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.  */
9109 #include <assert.h>
9110 /* Override any gcc2 internal prototype to avoid an error.  */
9111 #ifdef __cplusplus
9112 extern "C"
9113 #endif
9114 /* We use char because int might match the return type of a gcc2
9115    builtin and then its argument prototype would still apply.  */
9116 char crypt ();
9117 char (*f) ();
9118
9119 int
9120 main ()
9121 {
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)
9126 choke me
9127 #else
9128 f = crypt;
9129 #endif
9130
9131   ;
9132   return 0;
9133 }
9134 _ACEOF
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
9138   ac_status=$?
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
9143   (eval $ac_try) 2>&5
9144   ac_status=$?
9145   echo "$as_me:9145: \$? = $ac_status" >&5
9146   (exit $ac_status); }; }; then
9147   ac_cv_func_crypt=yes
9148 else
9149   echo "$as_me: failed program was:" >&5
9150 cat conftest.$ac_ext >&5
9151 ac_cv_func_crypt=no
9152 fi
9153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9154 fi
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
9158   :
9159 else
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
9164 else
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"
9170
9171 /* Override any gcc2 internal prototype to avoid an error.  */
9172 #ifdef __cplusplus
9173 extern "C"
9174 #endif
9175 /* We use char because int might match the return type of a gcc2
9176    builtin and then its argument prototype would still apply.  */
9177 char crypt ();
9178 int
9179 main ()
9180 {
9181 crypt ();
9182   ;
9183   return 0;
9184 }
9185 _ACEOF
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
9189   ac_status=$?
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
9194   (eval $ac_try) 2>&5
9195   ac_status=$?
9196   echo "$as_me:9196: \$? = $ac_status" >&5
9197   (exit $ac_status); }; }; then
9198   ac_cv_lib_crypt_crypt=yes
9199 else
9200   echo "$as_me: failed program was:" >&5
9201 cat conftest.$ac_ext >&5
9202 ac_cv_lib_crypt_crypt=no
9203 fi
9204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9205 LIBS=$ac_check_lib_save_LIBS
9206 fi
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"
9211 else
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
9216 else
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"
9222
9223 /* Override any gcc2 internal prototype to avoid an error.  */
9224 #ifdef __cplusplus
9225 extern "C"
9226 #endif
9227 /* We use char because int might match the return type of a gcc2
9228    builtin and then its argument prototype would still apply.  */
9229 char crypt ();
9230 int
9231 main ()
9232 {
9233 crypt ();
9234   ;
9235   return 0;
9236 }
9237 _ACEOF
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
9241   ac_status=$?
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
9246   (eval $ac_try) 2>&5
9247   ac_status=$?
9248   echo "$as_me:9248: \$? = $ac_status" >&5
9249   (exit $ac_status); }; }; then
9250   ac_cv_lib_crypt_d_crypt=yes
9251 else
9252   echo "$as_me: failed program was:" >&5
9253 cat conftest.$ac_ext >&5
9254 ac_cv_lib_crypt_d_crypt=no
9255 fi
9256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9257 LIBS=$ac_check_lib_save_LIBS
9258 fi
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"
9263 else
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
9268 else
9269   ac_check_lib_save_LIBS=$LIBS
9270 LIBS="-lufc  $LIBS"
9271 cat >conftest.$ac_ext <<_ACEOF
9272 #line 9272 "configure"
9273 #include "confdefs.h"
9274
9275 /* Override any gcc2 internal prototype to avoid an error.  */
9276 #ifdef __cplusplus
9277 extern "C"
9278 #endif
9279 /* We use char because int might match the return type of a gcc2
9280    builtin and then its argument prototype would still apply.  */
9281 char crypt ();
9282 int
9283 main ()
9284 {
9285 crypt ();
9286   ;
9287   return 0;
9288 }
9289 _ACEOF
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
9293   ac_status=$?
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
9298   (eval $ac_try) 2>&5
9299   ac_status=$?
9300   echo "$as_me:9300: \$? = $ac_status" >&5
9301   (exit $ac_status); }; }; then
9302   ac_cv_lib_ufc_crypt=yes
9303 else
9304   echo "$as_me: failed program was:" >&5
9305 cat conftest.$ac_ext >&5
9306 ac_cv_lib_ufc_crypt=no
9307 fi
9308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9309 LIBS=$ac_check_lib_save_LIBS
9310 fi
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"
9315 fi
9316
9317 fi
9318
9319 fi
9320
9321 fi
9322
9323 fi
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
9328 else
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.  */
9334 #include <assert.h>
9335 /* Override any gcc2 internal prototype to avoid an error.  */
9336 #ifdef __cplusplus
9337 extern "C"
9338 #endif
9339 /* We use char because int might match the return type of a gcc2
9340    builtin and then its argument prototype would still apply.  */
9341 char socket ();
9342 char (*f) ();
9343
9344 int
9345 main ()
9346 {
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)
9351 choke me
9352 #else
9353 f = socket;
9354 #endif
9355
9356   ;
9357   return 0;
9358 }
9359 _ACEOF
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
9363   ac_status=$?
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
9368   (eval $ac_try) 2>&5
9369   ac_status=$?
9370   echo "$as_me:9370: \$? = $ac_status" >&5
9371   (exit $ac_status); }; }; then
9372   ac_cv_func_socket=yes
9373 else
9374   echo "$as_me: failed program was:" >&5
9375 cat conftest.$ac_ext >&5
9376 ac_cv_func_socket=no
9377 fi
9378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9379 fi
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
9383   :
9384 else
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
9389 else
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"
9395
9396 /* Override any gcc2 internal prototype to avoid an error.  */
9397 #ifdef __cplusplus
9398 extern "C"
9399 #endif
9400 /* We use char because int might match the return type of a gcc2
9401    builtin and then its argument prototype would still apply.  */
9402 char socket ();
9403 int
9404 main ()
9405 {
9406 socket ();
9407   ;
9408   return 0;
9409 }
9410 _ACEOF
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
9414   ac_status=$?
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
9419   (eval $ac_try) 2>&5
9420   ac_status=$?
9421   echo "$as_me:9421: \$? = $ac_status" >&5
9422   (exit $ac_status); }; }; then
9423   ac_cv_lib_socket_socket=yes
9424 else
9425   echo "$as_me: failed program was:" >&5
9426 cat conftest.$ac_ext >&5
9427 ac_cv_lib_socket_socket=no
9428 fi
9429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9430 LIBS=$ac_check_lib_save_LIBS
9431 fi
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"
9436 else
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
9441 else
9442   ac_check_lib_save_LIBS=$LIBS
9443 LIBS="-linet  $LIBS"
9444 cat >conftest.$ac_ext <<_ACEOF
9445 #line 9445 "configure"
9446 #include "confdefs.h"
9447
9448 /* Override any gcc2 internal prototype to avoid an error.  */
9449 #ifdef __cplusplus
9450 extern "C"
9451 #endif
9452 /* We use char because int might match the return type of a gcc2
9453    builtin and then its argument prototype would still apply.  */
9454 char socket ();
9455 int
9456 main ()
9457 {
9458 socket ();
9459   ;
9460   return 0;
9461 }
9462 _ACEOF
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
9466   ac_status=$?
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
9471   (eval $ac_try) 2>&5
9472   ac_status=$?
9473   echo "$as_me:9473: \$? = $ac_status" >&5
9474   (exit $ac_status); }; }; then
9475   ac_cv_lib_inet_socket=yes
9476 else
9477   echo "$as_me: failed program was:" >&5
9478 cat conftest.$ac_ext >&5
9479 ac_cv_lib_inet_socket=no
9480 fi
9481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9482 LIBS=$ac_check_lib_save_LIBS
9483 fi
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"
9488 else
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
9495 else
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"
9501
9502 /* Override any gcc2 internal prototype to avoid an error.  */
9503 #ifdef __cplusplus
9504 extern "C"
9505 #endif
9506 /* We use char because int might match the return type of a gcc2
9507    builtin and then its argument prototype would still apply.  */
9508 char socket ();
9509 int
9510 main ()
9511 {
9512 socket ();
9513   ;
9514   return 0;
9515 }
9516 _ACEOF
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
9520   ac_status=$?
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
9525   (eval $ac_try) 2>&5
9526   ac_status=$?
9527   echo "$as_me:9527: \$? = $ac_status" >&5
9528   (exit $ac_status); }; }; then
9529   ac_cv_lib_socket_socket_lnsl=yes
9530 else
9531   echo "$as_me: failed program was:" >&5
9532 cat conftest.$ac_ext >&5
9533 ac_cv_lib_socket_socket_lnsl=no
9534 fi
9535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9536 LIBS=$ac_check_lib_save_LIBS
9537 fi
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"
9542 fi
9543
9544 fi
9545
9546 fi
9547
9548 fi
9549
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
9554 else
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.  */
9560 #include <assert.h>
9561 /* Override any gcc2 internal prototype to avoid an error.  */
9562 #ifdef __cplusplus
9563 extern "C"
9564 #endif
9565 /* We use char because int might match the return type of a gcc2
9566    builtin and then its argument prototype would still apply.  */
9567 char inet_addr ();
9568 char (*f) ();
9569
9570 int
9571 main ()
9572 {
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)
9577 choke me
9578 #else
9579 f = inet_addr;
9580 #endif
9581
9582   ;
9583   return 0;
9584 }
9585 _ACEOF
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
9589   ac_status=$?
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
9594   (eval $ac_try) 2>&5
9595   ac_status=$?
9596   echo "$as_me:9596: \$? = $ac_status" >&5
9597   (exit $ac_status); }; }; then
9598   ac_cv_func_inet_addr=yes
9599 else
9600   echo "$as_me: failed program was:" >&5
9601 cat conftest.$ac_ext >&5
9602 ac_cv_func_inet_addr=no
9603 fi
9604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9605 fi
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
9609   :
9610 else
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
9615 else
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.  */
9621 #include <assert.h>
9622 /* Override any gcc2 internal prototype to avoid an error.  */
9623 #ifdef __cplusplus
9624 extern "C"
9625 #endif
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 ();
9629 char (*f) ();
9630
9631 int
9632 main ()
9633 {
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)
9638 choke me
9639 #else
9640 f = __inet_addr;
9641 #endif
9642
9643   ;
9644   return 0;
9645 }
9646 _ACEOF
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
9650   ac_status=$?
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
9655   (eval $ac_try) 2>&5
9656   ac_status=$?
9657   echo "$as_me:9657: \$? = $ac_status" >&5
9658   (exit $ac_status); }; }; then
9659   ac_cv_func___inet_addr=yes
9660 else
9661   echo "$as_me: failed program was:" >&5
9662 cat conftest.$ac_ext >&5
9663 ac_cv_func___inet_addr=no
9664 fi
9665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9666 fi
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
9670   :
9671 else
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
9676 else
9677   ac_check_lib_save_LIBS=$LIBS
9678 LIBS="-lnsl  $LIBS"
9679 cat >conftest.$ac_ext <<_ACEOF
9680 #line 9680 "configure"
9681 #include "confdefs.h"
9682
9683 /* Override any gcc2 internal prototype to avoid an error.  */
9684 #ifdef __cplusplus
9685 extern "C"
9686 #endif
9687 /* We use char because int might match the return type of a gcc2
9688    builtin and then its argument prototype would still apply.  */
9689 char inet_addr ();
9690 int
9691 main ()
9692 {
9693 inet_addr ();
9694   ;
9695   return 0;
9696 }
9697 _ACEOF
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
9701   ac_status=$?
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
9706   (eval $ac_try) 2>&5
9707   ac_status=$?
9708   echo "$as_me:9708: \$? = $ac_status" >&5
9709   (exit $ac_status); }; }; then
9710   ac_cv_lib_nsl_inet_addr=yes
9711 else
9712   echo "$as_me: failed program was:" >&5
9713 cat conftest.$ac_ext >&5
9714 ac_cv_lib_nsl_inet_addr=no
9715 fi
9716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9717 LIBS=$ac_check_lib_save_LIBS
9718 fi
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"
9723 else
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
9728 else
9729   ac_check_lib_save_LIBS=$LIBS
9730 LIBS="-linet  $LIBS"
9731 cat >conftest.$ac_ext <<_ACEOF
9732 #line 9732 "configure"
9733 #include "confdefs.h"
9734
9735 /* Override any gcc2 internal prototype to avoid an error.  */
9736 #ifdef __cplusplus
9737 extern "C"
9738 #endif
9739 /* We use char because int might match the return type of a gcc2
9740    builtin and then its argument prototype would still apply.  */
9741 char inet_addr ();
9742 int
9743 main ()
9744 {
9745 inet_addr ();
9746   ;
9747   return 0;
9748 }
9749 _ACEOF
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
9753   ac_status=$?
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
9758   (eval $ac_try) 2>&5
9759   ac_status=$?
9760   echo "$as_me:9760: \$? = $ac_status" >&5
9761   (exit $ac_status); }; }; then
9762   ac_cv_lib_inet_inet_addr=yes
9763 else
9764   echo "$as_me: failed program was:" >&5
9765 cat conftest.$ac_ext >&5
9766 ac_cv_lib_inet_inet_addr=no
9767 fi
9768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9769 LIBS=$ac_check_lib_save_LIBS
9770 fi
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"
9775 else
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
9782 else
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"
9788
9789 /* Override any gcc2 internal prototype to avoid an error.  */
9790 #ifdef __cplusplus
9791 extern "C"
9792 #endif
9793 /* We use char because int might match the return type of a gcc2
9794    builtin and then its argument prototype would still apply.  */
9795 char inet_addr ();
9796 int
9797 main ()
9798 {
9799 inet_addr ();
9800   ;
9801   return 0;
9802 }
9803 _ACEOF
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
9807   ac_status=$?
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
9812   (eval $ac_try) 2>&5
9813   ac_status=$?
9814   echo "$as_me:9814: \$? = $ac_status" >&5
9815   (exit $ac_status); }; }; then
9816   ac_cv_lib_socket_inet_addr_lnsl=yes
9817 else
9818   echo "$as_me: failed program was:" >&5
9819 cat conftest.$ac_ext >&5
9820 ac_cv_lib_socket_inet_addr_lnsl=no
9821 fi
9822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9823 LIBS=$ac_check_lib_save_LIBS
9824 fi
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"
9829 fi
9830
9831 fi
9832
9833 fi
9834
9835 fi
9836
9837 fi
9838
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
9843 else
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.  */
9849 #include <assert.h>
9850 /* Override any gcc2 internal prototype to avoid an error.  */
9851 #ifdef __cplusplus
9852 extern "C"
9853 #endif
9854 /* We use char because int might match the return type of a gcc2
9855    builtin and then its argument prototype would still apply.  */
9856 char syslog ();
9857 char (*f) ();
9858
9859 int
9860 main ()
9861 {
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)
9866 choke me
9867 #else
9868 f = syslog;
9869 #endif
9870
9871   ;
9872   return 0;
9873 }
9874 _ACEOF
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
9878   ac_status=$?
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
9883   (eval $ac_try) 2>&5
9884   ac_status=$?
9885   echo "$as_me:9885: \$? = $ac_status" >&5
9886   (exit $ac_status); }; }; then
9887   ac_cv_func_syslog=yes
9888 else
9889   echo "$as_me: failed program was:" >&5
9890 cat conftest.$ac_ext >&5
9891 ac_cv_func_syslog=no
9892 fi
9893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9894 fi
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
9898   :
9899 else
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
9904 else
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"
9910
9911 /* Override any gcc2 internal prototype to avoid an error.  */
9912 #ifdef __cplusplus
9913 extern "C"
9914 #endif
9915 /* We use char because int might match the return type of a gcc2
9916    builtin and then its argument prototype would still apply.  */
9917 char syslog ();
9918 int
9919 main ()
9920 {
9921 syslog ();
9922   ;
9923   return 0;
9924 }
9925 _ACEOF
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
9929   ac_status=$?
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
9934   (eval $ac_try) 2>&5
9935   ac_status=$?
9936   echo "$as_me:9936: \$? = $ac_status" >&5
9937   (exit $ac_status); }; }; then
9938   ac_cv_lib_socket_syslog=yes
9939 else
9940   echo "$as_me: failed program was:" >&5
9941 cat conftest.$ac_ext >&5
9942 ac_cv_lib_socket_syslog=no
9943 fi
9944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9945 LIBS=$ac_check_lib_save_LIBS
9946 fi
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"
9951 else
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
9956 else
9957   ac_check_lib_save_LIBS=$LIBS
9958 LIBS="-lnsl  $LIBS"
9959 cat >conftest.$ac_ext <<_ACEOF
9960 #line 9960 "configure"
9961 #include "confdefs.h"
9962
9963 /* Override any gcc2 internal prototype to avoid an error.  */
9964 #ifdef __cplusplus
9965 extern "C"
9966 #endif
9967 /* We use char because int might match the return type of a gcc2
9968    builtin and then its argument prototype would still apply.  */
9969 char syslog ();
9970 int
9971 main ()
9972 {
9973 syslog ();
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
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
9981   ac_status=$?
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
9986   (eval $ac_try) 2>&5
9987   ac_status=$?
9988   echo "$as_me:9988: \$? = $ac_status" >&5
9989   (exit $ac_status); }; }; then
9990   ac_cv_lib_nsl_syslog=yes
9991 else
9992   echo "$as_me: failed program was:" >&5
9993 cat conftest.$ac_ext >&5
9994 ac_cv_lib_nsl_syslog=no
9995 fi
9996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9997 LIBS=$ac_check_lib_save_LIBS
9998 fi
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"
10003 else
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
10008 else
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"
10014
10015 /* Override any gcc2 internal prototype to avoid an error.  */
10016 #ifdef __cplusplus
10017 extern "C"
10018 #endif
10019 /* We use char because int might match the return type of a gcc2
10020    builtin and then its argument prototype would still apply.  */
10021 char syslog ();
10022 int
10023 main ()
10024 {
10025 syslog ();
10026   ;
10027   return 0;
10028 }
10029 _ACEOF
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
10033   ac_status=$?
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
10039   ac_status=$?
10040   echo "$as_me:10040: \$? = $ac_status" >&5
10041   (exit $ac_status); }; }; then
10042   ac_cv_lib_inet_syslog=yes
10043 else
10044   echo "$as_me: failed program was:" >&5
10045 cat conftest.$ac_ext >&5
10046 ac_cv_lib_inet_syslog=no
10047 fi
10048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10049 LIBS=$ac_check_lib_save_LIBS
10050 fi
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"
10055 fi
10056
10057 fi
10058
10059 fi
10060
10061 fi
10062
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
10070 else
10071   cat >conftest.$ac_ext <<_ACEOF
10072 #line 10072 "configure"
10073 #include "confdefs.h"
10074 #include <alloca.h>
10075 int
10076 main ()
10077 {
10078 char *p = (char *) alloca (2 * sizeof (int));
10079   ;
10080   return 0;
10081 }
10082 _ACEOF
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
10086   ac_status=$?
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
10092   ac_status=$?
10093   echo "$as_me:10093: \$? = $ac_status" >&5
10094   (exit $ac_status); }; }; then
10095   ac_cv_working_alloca_h=yes
10096 else
10097   echo "$as_me: failed program was:" >&5
10098 cat conftest.$ac_ext >&5
10099 ac_cv_working_alloca_h=no
10100 fi
10101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10102 fi
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
10106
10107 cat >>confdefs.h <<\EOF
10108 #define HAVE_ALLOCA_H 1
10109 EOF
10110
10111 fi
10112
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
10117 else
10118   cat >conftest.$ac_ext <<_ACEOF
10119 #line 10119 "configure"
10120 #include "confdefs.h"
10121 #ifdef __GNUC__
10122 # define alloca __builtin_alloca
10123 #else
10124 # ifdef _MSC_VER
10125 #  include <malloc.h>
10126 #  define alloca _alloca
10127 # else
10128 #  if HAVE_ALLOCA_H
10129 #   include <alloca.h>
10130 #  else
10131 #   ifdef _AIX
10132  #pragma alloca
10133 #   else
10134 #    ifndef alloca /* predefined by HP cc +Olibcalls */
10135 char *alloca ();
10136 #    endif
10137 #   endif
10138 #  endif
10139 # endif
10140 #endif
10141
10142 int
10143 main ()
10144 {
10145 char *p = (char *) alloca (1);
10146   ;
10147   return 0;
10148 }
10149 _ACEOF
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
10153   ac_status=$?
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
10159   ac_status=$?
10160   echo "$as_me:10160: \$? = $ac_status" >&5
10161   (exit $ac_status); }; }; then
10162   ac_cv_func_alloca_works=yes
10163 else
10164   echo "$as_me: failed program was:" >&5
10165 cat conftest.$ac_ext >&5
10166 ac_cv_func_alloca_works=no
10167 fi
10168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10169 fi
10170 echo "$as_me:10170: result: $ac_cv_func_alloca_works" >&5
10171 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10172
10173 if test $ac_cv_func_alloca_works = yes; then
10174
10175 cat >>confdefs.h <<\EOF
10176 #define HAVE_ALLOCA 1
10177 EOF
10178
10179 else
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.
10184
10185 ALLOCA=alloca.$ac_objext
10186
10187 cat >>confdefs.h <<\EOF
10188 #define C_ALLOCA 1
10189 EOF
10190
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
10195 else
10196   cat >conftest.$ac_ext <<_ACEOF
10197 #line 10197 "configure"
10198 #include "confdefs.h"
10199 #if defined(CRAY) && ! defined(CRAY2)
10200 webecray
10201 #else
10202 wenotbecray
10203 #endif
10204
10205 _ACEOF
10206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10207   egrep "webecray" >/dev/null 2>&1; then
10208   ac_cv_os_cray=yes
10209 else
10210   ac_cv_os_cray=no
10211 fi
10212 rm -f conftest*
10213
10214 fi
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
10224 else
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.  */
10232 #ifdef __cplusplus
10233 extern "C"
10234 #endif
10235 /* We use char because int might match the return type of a gcc2
10236    builtin and then its argument prototype would still apply.  */
10237 char $ac_func ();
10238 char (*f) ();
10239
10240 int
10241 main ()
10242 {
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)
10247 choke me
10248 #else
10249 f = $ac_func;
10250 #endif
10251
10252   ;
10253   return 0;
10254 }
10255 _ACEOF
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
10259   ac_status=$?
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
10265   ac_status=$?
10266   echo "$as_me:10266: \$? = $ac_status" >&5
10267   (exit $ac_status); }; }; then
10268   eval "$as_ac_var=yes"
10269 else
10270   echo "$as_me: failed program was:" >&5
10271 cat conftest.$ac_ext >&5
10272 eval "$as_ac_var=no"
10273 fi
10274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10275 fi
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
10279
10280 cat >>confdefs.h <<EOF
10281 #define CRAY_STACKSEG_END $ac_func
10282 EOF
10283
10284     break
10285 fi
10286
10287   done
10288 fi
10289
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
10294 else
10295   if test "$cross_compiling" = yes; then
10296   ac_cv_c_stack_direction=0
10297 else
10298   cat >conftest.$ac_ext <<_ACEOF
10299 #line 10299 "configure"
10300 #include "confdefs.h"
10301 int
10302 find_stack_direction ()
10303 {
10304   static char *addr = 0;
10305   auto char dummy;
10306   if (addr == 0)
10307     {
10308       addr = &dummy;
10309       return find_stack_direction ();
10310     }
10311   else
10312     return (&dummy > addr) ? 1 : -1;
10313 }
10314
10315 int
10316 main ()
10317 {
10318   exit (find_stack_direction () < 0);
10319 }
10320 _ACEOF
10321 rm -f conftest$ac_exeext
10322 if { (eval echo "$as_me:10322: \"$ac_link\"") >&5
10323   (eval $ac_link) 2>&5
10324   ac_status=$?
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
10329   ac_status=$?
10330   echo "$as_me:10330: \$? = $ac_status" >&5
10331   (exit $ac_status); }; }; then
10332   ac_cv_c_stack_direction=1
10333 else
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
10338 fi
10339 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10340 fi
10341 fi
10342 echo "$as_me:10342: result: $ac_cv_c_stack_direction" >&5
10343 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10344
10345 cat >>confdefs.h <<EOF
10346 #define STACK_DIRECTION $ac_cv_c_stack_direction
10347 EOF
10348
10349 fi
10350
10351 fi
10352
10353 if test "$with_kerb5" = "yes"; then
10354
10355 cat >>confdefs.h <<\EOF
10356 #define HAVE_KERB5 1
10357 EOF
10358
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"
10367     else
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'
10369     fi
10370
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"
10379     else
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'
10381     fi
10382
10383     SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
10384     AUTH_OBJS="${AUTH_OBJS} kerb5.o"
10385 fi
10386
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
10392 else
10393   ac_check_lib_save_LIBS=$LIBS
10394 LIBS="-ldl  $LIBS"
10395 cat >conftest.$ac_ext <<_ACEOF
10396 #line 10396 "configure"
10397 #include "confdefs.h"
10398
10399 int
10400 main ()
10401 {
10402 main ();
10403   ;
10404   return 0;
10405 }
10406 _ACEOF
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
10410   ac_status=$?
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
10416   ac_status=$?
10417   echo "$as_me:10417: \$? = $ac_status" >&5
10418   (exit $ac_status); }; }; then
10419   ac_cv_lib_dl_main=yes
10420 else
10421   echo "$as_me: failed program was:" >&5
10422 cat conftest.$ac_ext >&5
10423 ac_cv_lib_dl_main=no
10424 fi
10425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10426 LIBS=$ac_check_lib_save_LIBS
10427 fi
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"
10432 else
10433   SUDO_LIBS="${SUDO_LIBS} -lpam"
10434 fi
10435 ac_cv_lib_dl=ac_cv_lib_dl_main
10436
10437 fi
10438
10439 if test "$with_kerb4" = "yes"; then
10440
10441 cat >>confdefs.h <<\EOF
10442 #define HAVE_KERB4 1
10443 EOF
10444
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"
10453     else
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'
10455     fi
10456
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'
10465     fi
10466
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
10471 else
10472   ac_check_lib_save_LIBS=$LIBS
10473 LIBS="-ldes  $LIBS"
10474 cat >conftest.$ac_ext <<_ACEOF
10475 #line 10475 "configure"
10476 #include "confdefs.h"
10477
10478 int
10479 main ()
10480 {
10481 main ();
10482   ;
10483   return 0;
10484 }
10485 _ACEOF
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
10489   ac_status=$?
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
10495   ac_status=$?
10496   echo "$as_me:10496: \$? = $ac_status" >&5
10497   (exit $ac_status); }; }; then
10498   ac_cv_lib_des_main=yes
10499 else
10500   echo "$as_me: failed program was:" >&5
10501 cat conftest.$ac_ext >&5
10502 ac_cv_lib_des_main=no
10503 fi
10504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10505 LIBS=$ac_check_lib_save_LIBS
10506 fi
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"
10511 else
10512   SUDO_LIBS="${SUDO_LIBS} -lkrb"
10513 fi
10514 ac_cv_lib_des=ac_cv_lib_des_main
10515
10516     AUTH_OBJS="${AUTH_OBJS} kerb4.o"
10517 fi
10518
10519 if test "$with_AFS" = "yes"; then
10520
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
10527         fi
10528     done
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.'
10531     fi
10532
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}"
10539             FOUND_UTIL_A=true
10540             break;
10541         fi
10542     done
10543     if test -z "$FOUND_UTIL_A"; then
10544         AFS_LIBS="-lutil ${AFS_LIBS}"
10545     fi
10546     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
10547
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
10553         fi
10554     done
10555
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.'
10558     fi
10559 fi
10560
10561 if test "$with_DCE" = "yes"; then
10562     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
10563     SUDO_LIBS="${SUDO_LIBS} -ldce"
10564 fi
10565
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
10569         :
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"
10576     else
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'
10578     fi
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
10583 else
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"
10589
10590 /* Override any gcc2 internal prototype to avoid an error.  */
10591 #ifdef __cplusplus
10592 extern "C"
10593 #endif
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 ();
10597 int
10598 main ()
10599 {
10600 skeyaccess ();
10601   ;
10602   return 0;
10603 }
10604 _ACEOF
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
10608   ac_status=$?
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
10614   ac_status=$?
10615   echo "$as_me:10615: \$? = $ac_status" >&5
10616   (exit $ac_status); }; }; then
10617   ac_cv_lib_skey_skeyaccess=yes
10618 else
10619   echo "$as_me: failed program was:" >&5
10620 cat conftest.$ac_ext >&5
10621 ac_cv_lib_skey_skeyaccess=no
10622 fi
10623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10624 LIBS=$ac_check_lib_save_LIBS
10625 fi
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
10629
10630 cat >>confdefs.h <<\EOF
10631 #define HAVE_SKEYACCESS 1
10632 EOF
10633
10634 fi
10635
10636 fi
10637
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
10641         :
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"
10645     else
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'
10647     fi
10648 fi
10649
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"
10657     else
10658         SUDO_LIBS="${SUDO_LIBS} /usr/ace/sdiclient.a"
10659         CPPFLAGS="${CPPFLAGS} -I/usr/ace"
10660     fi
10661 fi
10662
10663 if test "$with_fwtk" = "yes"; then
10664     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
10665 fi
10666
10667 if test "$with_authenticate" = "yes"; then
10668     SUDO_LIBS="${SUDO_LIBS} -ls"
10669 fi
10670
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"
10678 EOF
10679
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"
10685 EOF
10686
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"
10692 EOF
10693
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"
10699 EOF
10700
10701 else
10702     echo "$as_me:10702: result: unknown" >&5
10703 echo "${ECHO_T}unknown" >&6
10704 fi
10705
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"
10713 EOF
10714
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"
10721 EOF
10722
10723     timedir="/var/run/sudo"
10724 else
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"
10729 EOF
10730
10731     timedir="/tmp/.odus"
10732 fi
10733
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.
10737 EOF
10738
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; }; }
10743     fi
10744 else
10745     if test -n "$SECUREWARE"; then
10746         AUTH_OBJS="${AUTH_OBJS} passwd.o secureware.o"
10747     else
10748         AUTH_OBJS="${AUTH_OBJS} passwd.o"
10749     fi
10750 fi
10751
10752 if test -n "$LIBS"; then
10753     L="$LIBS"
10754     LIBS=
10755     for l in ${L}; do
10756         dupe=0
10757         for sl in ${SUDO_LIBS} ${NET_LIBS}; do
10758             test $l = $sl && dupe=1
10759         done
10760         test $dupe = 0 && LIBS="${LIBS} $l"
10761     done
10762 fi
10763
10764 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
10765
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.
10773 #
10774 # config.status only pays attention to the cache file if you give it
10775 # the --recheck option to rerun configure.
10776 #
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.
10780
10781 _ACEOF
10782
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.
10788 {
10789   (set) 2>&1 |
10790     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10791     *ac_space=\ *)
10792       # `set' does not quote correctly, so add quotes (double-quote
10793       # substitution turns \\\\ into \\, and sed turns \\ into \).
10794       sed -n \
10795         "s/'/'\\\\''/g;
10796           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10797       ;;
10798     *)
10799       # `set' quotes correctly as required by POSIX, so do not add quotes.
10800       sed -n \
10801         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10802       ;;
10803     esac;
10804 } |
10805   sed '
10806      t clear
10807      : clear
10808      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10809      t end
10810      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10811      : end' >>confcache
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
10816   else
10817     echo "not updating unwritable cache $cache_file"
10818   fi
10819 fi
10820 rm -f confcache
10821
10822 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10823 # Let make expand exec_prefix.
10824 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10825
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}:*/:/;
10834 s/:*@srcdir@:*/:/;
10835 s/^\([^=]*=[    ]*\):*/\1/;
10836 s/:*$//;
10837 s/^[^=]*=[      ]*$//;
10838 }'
10839 fi
10840
10841 DEFS=-DHAVE_CONFIG_H
10842
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
10849 #! $SHELL
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.
10854
10855 debug=false
10856 SHELL=\${CONFIG_SHELL-$SHELL}
10857 ac_cs_invocation="\$0 \$@"
10858
10859 _ACEOF
10860
10861 cat >>$CONFIG_STATUS <<\_ACEOF
10862 # Be Bourne compatible
10863 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10864   emulate sh
10865   NULLCMD=:
10866 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10867   set -o posix
10868 fi
10869
10870 # Name of the executable.
10871 as_me=`echo "$0" |sed 's,.*[\\/],,'`
10872
10873 if expr a : '\(a\)' >/dev/null 2>&1; then
10874   as_expr=expr
10875 else
10876   as_expr=false
10877 fi
10878
10879 rm -f conf$$ conf$$.exe conf$$.file
10880 echo >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
10886     as_ln_s='cp -p'
10887   else
10888     as_ln_s='ln -s'
10889   fi
10890 elif ln conf$$.file conf$$ 2>/dev/null; then
10891   as_ln_s=ln
10892 else
10893   as_ln_s='cp -p'
10894 fi
10895 rm -f conf$$ conf$$.exe conf$$.file
10896
10897 as_executable_p="test -f"
10898
10899 # Support unset when possible.
10900 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10901   as_unset=unset
10902 else
10903   as_unset=false
10904 fi
10905
10906 # NLS nuisances.
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; }
10915
10916 # IFS
10917 # We need space, tab and new line, in precisely that order.
10918 as_nl='
10919 '
10920 IFS="   $as_nl"
10921
10922 # CDPATH.
10923 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
10924
10925 exec 6>&1
10926
10927 _ACEOF
10928
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
10932 fi
10933
10934 if test -n "$ac_config_headers"; then
10935   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10936 fi
10937
10938 if test -n "$ac_config_links"; then
10939   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10940 fi
10941
10942 if test -n "$ac_config_commands"; then
10943   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10944 fi
10945
10946 cat >>$CONFIG_STATUS <<\EOF
10947
10948 ac_cs_usage="\
10949 \`$as_me' instantiates files from templates according to the
10950 current configuration.
10951
10952 Usage: $0 [OPTIONS] [FILE]...
10953
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
10962
10963 Configuration files:
10964 $config_files
10965
10966 Configuration headers:
10967 $config_headers
10968
10969 Report bugs to <bug-autoconf@gnu.org>."
10970 EOF
10971
10972 cat >>$CONFIG_STATUS <<EOF
10973 ac_cs_version="\\
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'`\\"
10977
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."
10982 srcdir=$srcdir
10983 EOF
10984
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.
10988 ac_need_defaults=:
10989 while test $# != 0
10990 do
10991   case $1 in
10992   --*=*)
10993     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10994     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10995     shift
10996     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
10997     shift
10998     ;;
10999   -*);;
11000   *) # This is not an option, so the user has probably given explicit
11001      # arguments.
11002      ac_need_defaults=false;;
11003   esac
11004
11005   case $1 in
11006   # Handling of the options.
11007 EOF
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 ;;
11012 EOF
11013 cat >>$CONFIG_STATUS <<\EOF
11014   --version | --vers* | -V )
11015     echo "$ac_cs_version"; exit 0 ;;
11016   --he | --h)
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 )
11026     debug=: ;;
11027   --file | --fil | --fi | --f )
11028     shift
11029     CONFIG_FILES="$CONFIG_FILES $1"
11030     ac_need_defaults=false;;
11031   --header | --heade | --head | --hea )
11032     shift
11033     CONFIG_HEADERS="$CONFIG_HEADERS $1"
11034     ac_need_defaults=false;;
11035
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; }; } ;;
11042
11043   *) ac_config_targets="$ac_config_targets $1" ;;
11044
11045   esac
11046   shift
11047 done
11048
11049 exec 5>>config.log
11050 cat >&5 << _ACEOF
11051
11052 ## ----------------------- ##
11053 ## Running config.status.  ##
11054 ## ----------------------- ##
11055
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`
11063
11064 _ACEOF
11065 EOF
11066
11067 cat >>$CONFIG_STATUS <<\EOF
11068 for ac_config_target in $ac_config_targets
11069 do
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; }; };;
11081   esac
11082 done
11083
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
11091 fi
11092
11093 # Create a temporary directory, and hook for its removal unless debugging.
11094 $debug ||
11095 {
11096   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11097   trap '{ (exit 1); exit 1; }' 1 2 13 15
11098 }
11099
11100 # Create a (secure) tmp directory for tmp files.
11101 : ${TMPDIR=/tmp}
11102 {
11103   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
11104   test -n "$tmp" && test -d "$tmp"
11105 }  ||
11106 {
11107   tmp=$TMPDIR/cs$$-$RANDOM
11108   (umask 077 && mkdir $tmp)
11109 } ||
11110 {
11111    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
11112    { (exit 1); exit 1; }
11113 }
11114
11115 EOF
11116
11117 cat >>$CONFIG_STATUS <<EOF
11118
11119 #
11120 # CONFIG_FILES section.
11121 #
11122
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
11175 s,@DEV@,$DEV,;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
11204 s,@CC@,$CC,;t t
11205 s,@ac_ct_CC@,$ac_ct_CC,;t t
11206 s,@EXEEXT@,$EXEEXT,;t t
11207 s,@OBJEXT@,$OBJEXT,;t t
11208 s,@CPP@,$CPP,;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
11223 CEOF
11224
11225 EOF
11226
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.
11234   ac_more_lines=:
11235   ac_sed_cmds=
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
11239     else
11240       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11241     fi
11242     if test ! -s $tmp/subs.frag; then
11243       ac_more_lines=false
11244     else
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.
11249       (echo ':t
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"
11253       else
11254         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11255       fi
11256       ac_sed_frag=`expr $ac_sed_frag + 1`
11257       ac_beg=$ac_end
11258       ac_end=`expr $ac_end + $ac_max_sed_lines`
11259     fi
11260   done
11261   if test -z "$ac_sed_cmds"; then
11262     ac_sed_cmds=cat
11263   fi
11264 fi # test -n "$CONFIG_FILES"
11265
11266 EOF
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".
11270   case $ac_file in
11271   - | *:- | *:-:* ) # input from stdin
11272         cat >$tmp/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 ;;
11278   esac
11279
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 ||
11286 echo X"$ac_file" |
11287     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11288           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11289           /^X\(\/\/\)$/{ s//\1/; q; }
11290           /^X\(\/\).*/{ s//\1/; q; }
11291           s/.*/./; q'`
11292   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11293     { case "$ac_dir" in
11294   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11295   *)                      as_incr_dir=.;;
11296 esac
11297 as_dummy="$ac_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 ;;
11302     *)
11303       as_incr_dir=$as_incr_dir/$as_mkdir_dir
11304       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
11305     ;;
11306   esac
11307 done; }
11308
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'`
11312   else
11313     ac_dir_suffix= ac_dots=
11314   fi
11315
11316   case $srcdir in
11317   .)  ac_srcdir=.
11318       if test -z "$ac_dots"; then
11319          ac_top_srcdir=.
11320       else
11321          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
11322       fi ;;
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 ;;
11329   esac
11330
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;}
11334     rm -f "$ac_file"
11335   fi
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."
11341
11342   # First look for the input files in the build tree, otherwise in the
11343   # src tree.
11344   ac_file_inputs=`IFS=:
11345     for f in $ac_file_in; do
11346       case $f in
11347       -) echo $tmp/stdin ;;
11348       [\\/$]*)
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; }; }
11353          echo $f;;
11354       *) # Relative
11355          if test -f "$f"; then
11356            # Build tree
11357            echo $f
11358          elif test -f "$srcdir/$f"; then
11359            # Source tree
11360            echo $srcdir/$f
11361          else
11362            # /dev/null tree
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; }; }
11366          fi;;
11367       esac
11368     done` || { (exit 1); exit 1; }
11369 EOF
11370 cat >>$CONFIG_STATUS <<EOF
11371   sed "$ac_vpsub
11372 $extrasub
11373 EOF
11374 cat >>$CONFIG_STATUS <<\EOF
11375 :t
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
11381   rm -f $tmp/stdin
11382   if test x"$ac_file" != x-; then
11383     mv $tmp/out $ac_file
11384   else
11385     cat $tmp/out
11386     rm -f $tmp/out
11387   fi
11388
11389 done
11390 EOF
11391 cat >>$CONFIG_STATUS <<\EOF
11392
11393 #
11394 # CONFIG_HEADER section.
11395 #
11396
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.
11399 #
11400 # ac_d sets the value in "#define NAME VALUE" lines.
11401 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
11402 ac_dB='[        ].*$,\1#\2'
11403 ac_dC=' '
11404 ac_dD=',;t'
11405 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11406 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11407 ac_uB='$,\1#\2define\3'
11408 ac_uC=' '
11409 ac_uD=',;t'
11410
11411 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11412   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11413   case $ac_file in
11414   - | *:- | *:-:* ) # input from stdin
11415         cat >$tmp/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 ;;
11421   esac
11422
11423   test x"$ac_file" != x- && { echo "$as_me:11423: creating $ac_file" >&5
11424 echo "$as_me: creating $ac_file" >&6;}
11425
11426   # First look for the input files in the build tree, otherwise in the
11427   # src tree.
11428   ac_file_inputs=`IFS=:
11429     for f in $ac_file_in; do
11430       case $f in
11431       -) echo $tmp/stdin ;;
11432       [\\/$]*)
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; }; }
11437          echo $f;;
11438       *) # Relative
11439          if test -f "$f"; then
11440            # Build tree
11441            echo $f
11442          elif test -f "$srcdir/$f"; then
11443            # Source tree
11444            echo $srcdir/$f
11445          else
11446            # /dev/null tree
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; }; }
11450          fi;;
11451       esac
11452     done` || { (exit 1); exit 1; }
11453   # Remove the trailing spaces.
11454   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
11455
11456 EOF
11457
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.
11468 #
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
11473 s/[\\&,]/\\&/g
11474 s,[\\$`],\\&,g
11475 t clear
11476 : clear
11477 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
11478 t end
11479 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11480 : end
11481 EOF
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
11488
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]*,/* & */,
11494 EOF
11495
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
11504 do
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
11513   echo 'CEOF
11514   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11515   rm -f $tmp/in
11516   mv $tmp/out $tmp/in
11517 ' >>$CONFIG_STATUS
11518   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11519   rm -f conftest.defines
11520   mv conftest.tail conftest.defines
11521 done
11522 rm -f conftest.defines
11523 echo '  fi # egrep' >>$CONFIG_STATUS
11524 echo >>$CONFIG_STATUS
11525
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
11531 do
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
11540   echo 'CEOF
11541   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11542   rm -f $tmp/in
11543   mv $tmp/out $tmp/in
11544 ' >>$CONFIG_STATUS
11545   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11546   rm -f conftest.undefs
11547   mv conftest.tail conftest.undefs
11548 done
11549 rm -f conftest.undefs
11550
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
11557   else
11558     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
11559   fi
11560   cat $tmp/in >>$tmp/config.h
11561   rm -f $tmp/in
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;}
11566     else
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 ||
11572 echo X"$ac_file" |
11573     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11574           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11575           /^X\(\/\/\)$/{ s//\1/; q; }
11576           /^X\(\/\).*/{ s//\1/; q; }
11577           s/.*/./; q'`
11578       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11579         { case "$ac_dir" in
11580   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11581   *)                      as_incr_dir=.;;
11582 esac
11583 as_dummy="$ac_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 ;;
11588     *)
11589       as_incr_dir=$as_incr_dir/$as_mkdir_dir
11590       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
11591     ;;
11592   esac
11593 done; }
11594
11595       fi
11596       rm -f $ac_file
11597       mv $tmp/config.h $ac_file
11598     fi
11599   else
11600     cat $tmp/config.h
11601     rm -f $tmp/config.h
11602   fi
11603 done
11604 EOF
11605
11606 cat >>$CONFIG_STATUS <<\EOF
11607
11608 { (exit 0); exit 0; }
11609 EOF
11610 chmod +x $CONFIG_STATUS
11611 ac_clean_files=$ac_clean_files_save
11612
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
11622   ac_cs_success=:
11623   exec 5>/dev/null
11624   $SHELL $CONFIG_STATUS || ac_cs_success=false
11625   exec 5>>config.log
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; }
11629 fi
11630
11631 if test "$with_pam" = "yes"; then
11632     echo ""
11633     case $host in
11634         *-*-linux*)
11635             echo "You will need to customize sample.pam and install it as /etc/pam.d/sudo"
11636             ;;
11637     esac
11638     echo ""
11639 fi
11640