Annotation of src/usr.bin/sudo/configure, Revision 1.21
1.1 millert 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.21 ! millert 3: # Generated by GNU Autoconf 2.57 for sudo 1.6.7p5.
1.1 millert 4: #
1.16 millert 5: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1.9 millert 6: # Free Software Foundation, Inc.
1.1 millert 7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
1.16 millert 9: ## --------------------- ##
10: ## M4sh Initialization. ##
11: ## --------------------- ##
1.1 millert 12:
1.16 millert 13: # Be Bourne compatible
14: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15: emulate sh
16: NULLCMD=:
17: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18: # is contrary to our usage. Disable this feature.
19: alias -g '${1+"$@"}'='"$@"'
20: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21: set -o posix
22: fi
23:
24: # Support unset when possible.
25: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26: as_unset=unset
27: else
28: as_unset=false
29: fi
30:
31:
32: # Work around bugs in pre-3.0 UWIN ksh.
33: $as_unset ENV MAIL MAILPATH
34: PS1='$ '
35: PS2='> '
36: PS4='+ '
37:
38: # NLS nuisances.
39: for as_var in \
40: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42: LC_TELEPHONE LC_TIME
43: do
44: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45: eval $as_var=C; export $as_var
46: else
47: $as_unset $as_var
48: fi
49: done
50:
51: # Required to use basename.
52: if expr a : '\(a\)' >/dev/null 2>&1; then
53: as_expr=expr
54: else
55: as_expr=false
56: fi
57:
58: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59: as_basename=basename
60: else
61: as_basename=false
62: fi
63:
64:
65: # Name of the executable.
66: as_me=`$as_basename "$0" ||
67: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68: X"$0" : 'X\(//\)$' \| \
69: X"$0" : 'X\(/\)$' \| \
70: . : '\(.\)' 2>/dev/null ||
71: echo X/"$0" |
72: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73: /^X\/\(\/\/\)$/{ s//\1/; q; }
74: /^X\/\(\/\).*/{ s//\1/; q; }
75: s/.*/./; q'`
76:
77:
78: # PATH needs CR, and LINENO needs CR and PATH.
1.9 millert 79: # Avoid depending upon Character Ranges.
80: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83: as_cr_digits='0123456789'
84: as_cr_alnum=$as_cr_Letters$as_cr_digits
85:
1.16 millert 86: # The user is always right.
87: if test "${PATH_SEPARATOR+set}" != set; then
88: echo "#! /bin/sh" >conf$$.sh
89: echo "exit 0" >>conf$$.sh
90: chmod +x conf$$.sh
91: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92: PATH_SEPARATOR=';'
93: else
94: PATH_SEPARATOR=:
95: fi
96: rm -f conf$$.sh
97: fi
98:
99:
100: as_lineno_1=$LINENO
101: as_lineno_2=$LINENO
102: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103: test "x$as_lineno_1" != "x$as_lineno_2" &&
104: test "x$as_lineno_3" = "x$as_lineno_2" || {
105: # Find who we are. Look in the path if we contain no path at all
106: # relative or not.
107: case $0 in
108: *[\\/]* ) as_myself=$0 ;;
109: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110: for as_dir in $PATH
111: do
112: IFS=$as_save_IFS
113: test -z "$as_dir" && as_dir=.
114: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115: done
116:
117: ;;
118: esac
119: # We did not find ourselves, most probably we were run as `sh COMMAND'
120: # in which case we are not to be found in the path.
121: if test "x$as_myself" = x; then
122: as_myself=$0
123: fi
124: if test ! -f "$as_myself"; then
125: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126: { (exit 1); exit 1; }; }
127: fi
128: case $CONFIG_SHELL in
129: '')
130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132: do
133: IFS=$as_save_IFS
134: test -z "$as_dir" && as_dir=.
135: for as_base in sh bash ksh sh5; do
136: case $as_dir in
137: /*)
138: if ("$as_dir/$as_base" -c '
139: as_lineno_1=$LINENO
140: as_lineno_2=$LINENO
141: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142: test "x$as_lineno_1" != "x$as_lineno_2" &&
143: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146: CONFIG_SHELL=$as_dir/$as_base
147: export CONFIG_SHELL
148: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149: fi;;
150: esac
151: done
152: done
153: ;;
154: esac
1.9 millert 155:
1.16 millert 156: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157: # uniformly replaced by the line number. The first 'sed' inserts a
158: # line-number line before each line; the second 'sed' does the real
159: # work. The second script uses 'N' to pair each line-number line
160: # with the numbered line, and appends trailing '-' during
161: # substitution so that $LINENO is not a special case at line end.
162: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164: sed '=' <$as_myself |
165: sed '
166: N
167: s,$,-,
168: : loop
169: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170: t loop
171: s,-$,,
172: s,^['$as_cr_digits']*\n,,
173: ' >$as_me.lineno &&
174: chmod +x $as_me.lineno ||
175: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176: { (exit 1); exit 1; }; }
177:
178: # Don't try to exec as it changes $[0], causing all sort of problems
179: # (the dirname of $[0] is not the place where we might find the
180: # original and so on. Autoconf is especially sensible to this).
181: . ./$as_me.lineno
182: # Exit status is that of the last command.
183: exit
184: }
1.9 millert 185:
186:
1.16 millert 187: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188: *c*,-n*) ECHO_N= ECHO_C='
189: ' ECHO_T=' ' ;;
190: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192: esac
1.9 millert 193:
194: if expr a : '\(a\)' >/dev/null 2>&1; then
195: as_expr=expr
196: else
197: as_expr=false
198: fi
199:
200: rm -f conf$$ conf$$.exe conf$$.file
201: echo >conf$$.file
202: if ln -s conf$$.file conf$$ 2>/dev/null; then
203: # We could just check for DJGPP; but this test a) works b) is more generic
204: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205: if test -f conf$$.exe; then
206: # Don't use ln at all; we don't have any links
207: as_ln_s='cp -p'
208: else
209: as_ln_s='ln -s'
210: fi
211: elif ln conf$$.file conf$$ 2>/dev/null; then
212: as_ln_s=ln
213: else
214: as_ln_s='cp -p'
215: fi
216: rm -f conf$$ conf$$.exe conf$$.file
217:
1.16 millert 218: if mkdir -p . 2>/dev/null; then
219: as_mkdir_p=:
220: else
221: as_mkdir_p=false
222: fi
223:
1.9 millert 224: as_executable_p="test -f"
225:
1.16 millert 226: # Sed expression to map a string onto a valid CPP name.
227: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228:
229: # Sed expression to map a string onto a valid variable name.
230: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
1.9 millert 231:
232:
233: # IFS
234: # We need space, tab and new line, in precisely that order.
235: as_nl='
236: '
237: IFS=" $as_nl"
238:
239: # CDPATH.
1.16 millert 240: $as_unset CDPATH
241:
1.9 millert 242:
243: # Name of the host.
244: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245: # so uname gets run too.
246: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247:
248: exec 6>&1
249:
250: #
251: # Initializations.
252: #
1.1 millert 253: ac_default_prefix=/usr/local
1.16 millert 254: ac_config_libobj_dir=.
1.9 millert 255: cross_compiling=no
256: subdirs=
1.16 millert 257: MFLAGS=
258: MAKEFLAGS=
1.9 millert 259: SHELL=${CONFIG_SHELL-/bin/sh}
260:
261: # Maximum number of lines to put in a shell here document.
262: # This variable seems obsolete. It should probably be removed, and
263: # only ac_max_sed_lines should be used.
264: : ${ac_max_here_lines=38}
265:
1.16 millert 266: # Identity of this package.
267: PACKAGE_NAME='sudo'
268: PACKAGE_TARNAME='sudo'
1.21 ! millert 269: PACKAGE_VERSION='1.6.7p5'
! 270: PACKAGE_STRING='sudo 1.6.7p5'
1.16 millert 271: PACKAGE_BUGREPORT=''
272:
1.9 millert 273: # Factoring default headers for most tests.
274: ac_includes_default="\
275: #include <stdio.h>
276: #if HAVE_SYS_TYPES_H
277: # include <sys/types.h>
278: #endif
279: #if HAVE_SYS_STAT_H
280: # include <sys/stat.h>
281: #endif
282: #if STDC_HEADERS
283: # include <stdlib.h>
284: # include <stddef.h>
285: #else
286: # if HAVE_STDLIB_H
287: # include <stdlib.h>
288: # endif
289: #endif
290: #if HAVE_STRING_H
291: # if !STDC_HEADERS && HAVE_MEMORY_H
292: # include <memory.h>
293: # endif
294: # include <string.h>
295: #endif
296: #if HAVE_STRINGS_H
297: # include <strings.h>
298: #endif
299: #if HAVE_INTTYPES_H
300: # include <inttypes.h>
301: #else
302: # if HAVE_STDINT_H
303: # include <stdint.h>
304: # endif
305: #endif
306: #if HAVE_UNISTD_H
307: # include <unistd.h>
308: #endif"
1.1 millert 309:
1.18 millert 310: ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CFLAGS PROGS CPPFLAGS LDFLAGS SUDO_LDFLAGS SUDO_LIBS NET_LIBS AFS_LIBS OSDEFS AUTH_OBJS MANTYPE MAN_POSTINSTALL SUDOERS_MODE SUDOERS_UID SUDOERS_GID DEV mansectsu mansectform mansrcdir timedir timeout password_timeout sudo_umask passprompt long_otp_prompt lecture logfac goodpri badpri loglen ignore_dot mail_no_user mail_no_host mail_no_perms mailto mailsub badpass_message fqdn runas_default env_editor passwd_tries tty_tickets insults EGREPPROG CC ac_ct_CC EXEEXT OBJEXT CPP UNAMEPROG TRPROG SEDPROG NROFFPROG build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP YACC LIBOBJS ALLOCA KRB5CONFIG LTLIBOBJS'
1.16 millert 311: ac_subst_files=''
312:
1.1 millert 313: # Initialize some variables set by options.
1.9 millert 314: ac_init_help=
315: ac_init_version=false
1.1 millert 316: # The variables have the same names as the options, with
317: # dashes changed to underlines.
1.9 millert 318: cache_file=/dev/null
1.1 millert 319: exec_prefix=NONE
320: no_create=
321: no_recursion=
322: prefix=NONE
323: program_prefix=NONE
324: program_suffix=NONE
325: program_transform_name=s,x,x,
326: silent=
327: site=
328: srcdir=
329: verbose=
330: x_includes=NONE
331: x_libraries=NONE
1.9 millert 332:
333: # Installation directory options.
334: # These are left unexpanded so users can "make install exec_prefix=/foo"
335: # and all the variables that are supposed to be based on exec_prefix
336: # by default will actually change.
337: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1 millert 338: bindir='${exec_prefix}/bin'
339: sbindir='${exec_prefix}/sbin'
340: libexecdir='${exec_prefix}/libexec'
341: datadir='${prefix}/share'
342: sysconfdir='${prefix}/etc'
343: sharedstatedir='${prefix}/com'
344: localstatedir='${prefix}/var'
345: libdir='${exec_prefix}/lib'
346: includedir='${prefix}/include'
347: oldincludedir='/usr/include'
348: infodir='${prefix}/info'
349: mandir='${prefix}/man'
350:
351: ac_prev=
352: for ac_option
353: do
354: # If the previous option needs an argument, assign it.
355: if test -n "$ac_prev"; then
356: eval "$ac_prev=\$ac_option"
357: ac_prev=
358: continue
359: fi
360:
1.9 millert 361: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 millert 362:
363: # Accept the important Cygnus configure options, so we can diagnose typos.
364:
1.9 millert 365: case $ac_option in
1.1 millert 366:
367: -bindir | --bindir | --bindi | --bind | --bin | --bi)
368: ac_prev=bindir ;;
369: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.9 millert 370: bindir=$ac_optarg ;;
1.1 millert 371:
372: -build | --build | --buil | --bui | --bu)
1.9 millert 373: ac_prev=build_alias ;;
1.1 millert 374: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.9 millert 375: build_alias=$ac_optarg ;;
1.1 millert 376:
377: -cache-file | --cache-file | --cache-fil | --cache-fi \
378: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
379: ac_prev=cache_file ;;
380: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
381: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.9 millert 382: cache_file=$ac_optarg ;;
383:
384: --config-cache | -C)
385: cache_file=config.cache ;;
1.1 millert 386:
387: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
388: ac_prev=datadir ;;
389: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
390: | --da=*)
1.9 millert 391: datadir=$ac_optarg ;;
1.1 millert 392:
393: -disable-* | --disable-*)
1.9 millert 394: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 millert 395: # Reject names that are not valid shell variable names.
1.9 millert 396: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
397: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
398: { (exit 1); exit 1; }; }
399: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
400: eval "enable_$ac_feature=no" ;;
1.1 millert 401:
402: -enable-* | --enable-*)
1.9 millert 403: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 millert 404: # Reject names that are not valid shell variable names.
1.9 millert 405: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
406: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
407: { (exit 1); exit 1; }; }
408: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
409: case $ac_option in
410: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 millert 411: *) ac_optarg=yes ;;
412: esac
1.9 millert 413: eval enable_$ac_feature='$ac_optarg' ;;
1.1 millert 414:
415: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
416: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
417: | --exec | --exe | --ex)
418: ac_prev=exec_prefix ;;
419: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
420: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
421: | --exec=* | --exe=* | --ex=*)
1.9 millert 422: exec_prefix=$ac_optarg ;;
1.1 millert 423:
424: -gas | --gas | --ga | --g)
425: # Obsolete; use --with-gas.
426: with_gas=yes ;;
427:
1.9 millert 428: -help | --help | --hel | --he | -h)
429: ac_init_help=long ;;
430: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
431: ac_init_help=recursive ;;
432: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
433: ac_init_help=short ;;
1.1 millert 434:
435: -host | --host | --hos | --ho)
1.9 millert 436: ac_prev=host_alias ;;
1.1 millert 437: -host=* | --host=* | --hos=* | --ho=*)
1.9 millert 438: host_alias=$ac_optarg ;;
1.1 millert 439:
440: -includedir | --includedir | --includedi | --included | --include \
441: | --includ | --inclu | --incl | --inc)
442: ac_prev=includedir ;;
443: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
444: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.9 millert 445: includedir=$ac_optarg ;;
1.1 millert 446:
447: -infodir | --infodir | --infodi | --infod | --info | --inf)
448: ac_prev=infodir ;;
449: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.9 millert 450: infodir=$ac_optarg ;;
1.1 millert 451:
452: -libdir | --libdir | --libdi | --libd)
453: ac_prev=libdir ;;
454: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.9 millert 455: libdir=$ac_optarg ;;
1.1 millert 456:
457: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
458: | --libexe | --libex | --libe)
459: ac_prev=libexecdir ;;
460: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
461: | --libexe=* | --libex=* | --libe=*)
1.9 millert 462: libexecdir=$ac_optarg ;;
1.1 millert 463:
464: -localstatedir | --localstatedir | --localstatedi | --localstated \
465: | --localstate | --localstat | --localsta | --localst \
466: | --locals | --local | --loca | --loc | --lo)
467: ac_prev=localstatedir ;;
468: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
469: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
470: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.9 millert 471: localstatedir=$ac_optarg ;;
1.1 millert 472:
473: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
474: ac_prev=mandir ;;
475: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.9 millert 476: mandir=$ac_optarg ;;
1.1 millert 477:
478: -nfp | --nfp | --nf)
479: # Obsolete; use --without-fp.
480: with_fp=no ;;
481:
482: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.16 millert 483: | --no-cr | --no-c | -n)
1.1 millert 484: no_create=yes ;;
485:
486: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
488: no_recursion=yes ;;
489:
490: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
491: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
492: | --oldin | --oldi | --old | --ol | --o)
493: ac_prev=oldincludedir ;;
494: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
495: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
496: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.9 millert 497: oldincludedir=$ac_optarg ;;
1.1 millert 498:
499: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
500: ac_prev=prefix ;;
501: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.9 millert 502: prefix=$ac_optarg ;;
1.1 millert 503:
504: -program-prefix | --program-prefix | --program-prefi | --program-pref \
505: | --program-pre | --program-pr | --program-p)
506: ac_prev=program_prefix ;;
507: -program-prefix=* | --program-prefix=* | --program-prefi=* \
508: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.9 millert 509: program_prefix=$ac_optarg ;;
1.1 millert 510:
511: -program-suffix | --program-suffix | --program-suffi | --program-suff \
512: | --program-suf | --program-su | --program-s)
513: ac_prev=program_suffix ;;
514: -program-suffix=* | --program-suffix=* | --program-suffi=* \
515: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.9 millert 516: program_suffix=$ac_optarg ;;
1.1 millert 517:
518: -program-transform-name | --program-transform-name \
519: | --program-transform-nam | --program-transform-na \
520: | --program-transform-n | --program-transform- \
521: | --program-transform | --program-transfor \
522: | --program-transfo | --program-transf \
523: | --program-trans | --program-tran \
524: | --progr-tra | --program-tr | --program-t)
525: ac_prev=program_transform_name ;;
526: -program-transform-name=* | --program-transform-name=* \
527: | --program-transform-nam=* | --program-transform-na=* \
528: | --program-transform-n=* | --program-transform-=* \
529: | --program-transform=* | --program-transfor=* \
530: | --program-transfo=* | --program-transf=* \
531: | --program-trans=* | --program-tran=* \
532: | --progr-tra=* | --program-tr=* | --program-t=*)
1.9 millert 533: program_transform_name=$ac_optarg ;;
1.1 millert 534:
535: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
536: | -silent | --silent | --silen | --sile | --sil)
537: silent=yes ;;
538:
539: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
540: ac_prev=sbindir ;;
541: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
542: | --sbi=* | --sb=*)
1.9 millert 543: sbindir=$ac_optarg ;;
1.1 millert 544:
545: -sharedstatedir | --sharedstatedir | --sharedstatedi \
546: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
547: | --sharedst | --shareds | --shared | --share | --shar \
548: | --sha | --sh)
549: ac_prev=sharedstatedir ;;
550: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
551: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
552: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
553: | --sha=* | --sh=*)
1.9 millert 554: sharedstatedir=$ac_optarg ;;
1.1 millert 555:
556: -site | --site | --sit)
557: ac_prev=site ;;
558: -site=* | --site=* | --sit=*)
1.9 millert 559: site=$ac_optarg ;;
1.1 millert 560:
561: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
562: ac_prev=srcdir ;;
563: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.9 millert 564: srcdir=$ac_optarg ;;
1.1 millert 565:
566: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
567: | --syscon | --sysco | --sysc | --sys | --sy)
568: ac_prev=sysconfdir ;;
569: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
570: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.9 millert 571: sysconfdir=$ac_optarg ;;
1.1 millert 572:
573: -target | --target | --targe | --targ | --tar | --ta | --t)
1.9 millert 574: ac_prev=target_alias ;;
1.1 millert 575: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.9 millert 576: target_alias=$ac_optarg ;;
1.1 millert 577:
578: -v | -verbose | --verbose | --verbos | --verbo | --verb)
579: verbose=yes ;;
580:
1.9 millert 581: -version | --version | --versio | --versi | --vers | -V)
582: ac_init_version=: ;;
1.1 millert 583:
584: -with-* | --with-*)
1.9 millert 585: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 millert 586: # Reject names that are not valid shell variable names.
1.9 millert 587: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588: { echo "$as_me: error: invalid package name: $ac_package" >&2
589: { (exit 1); exit 1; }; }
1.1 millert 590: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.9 millert 591: case $ac_option in
592: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 millert 593: *) ac_optarg=yes ;;
594: esac
1.9 millert 595: eval with_$ac_package='$ac_optarg' ;;
1.1 millert 596:
597: -without-* | --without-*)
1.9 millert 598: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 millert 599: # Reject names that are not valid shell variable names.
1.9 millert 600: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
601: { echo "$as_me: error: invalid package name: $ac_package" >&2
602: { (exit 1); exit 1; }; }
603: ac_package=`echo $ac_package | sed 's/-/_/g'`
604: eval "with_$ac_package=no" ;;
1.1 millert 605:
606: --x)
607: # Obsolete; use --with-x.
608: with_x=yes ;;
609:
610: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
611: | --x-incl | --x-inc | --x-in | --x-i)
612: ac_prev=x_includes ;;
613: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
614: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.9 millert 615: x_includes=$ac_optarg ;;
1.1 millert 616:
617: -x-libraries | --x-libraries | --x-librarie | --x-librari \
618: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
619: ac_prev=x_libraries ;;
620: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
621: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.9 millert 622: x_libraries=$ac_optarg ;;
1.1 millert 623:
1.9 millert 624: -*) { echo "$as_me: error: unrecognized option: $ac_option
625: Try \`$0 --help' for more information." >&2
626: { (exit 1); exit 1; }; }
1.1 millert 627: ;;
628:
1.9 millert 629: *=*)
630: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
631: # Reject names that are not valid shell variable names.
632: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
633: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
634: { (exit 1); exit 1; }; }
635: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
636: eval "$ac_envvar='$ac_optarg'"
637: export $ac_envvar ;;
638:
1.1 millert 639: *)
1.9 millert 640: # FIXME: should be removed in autoconf 3.0.
641: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
642: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
643: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
644: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 millert 645: ;;
646:
647: esac
648: done
649:
650: if test -n "$ac_prev"; then
1.9 millert 651: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
652: { echo "$as_me: error: missing argument to $ac_option" >&2
653: { (exit 1); exit 1; }; }
1.1 millert 654: fi
655:
1.9 millert 656: # Be sure to have absolute paths.
657: for ac_var in exec_prefix prefix
658: do
659: eval ac_val=$`echo $ac_var`
660: case $ac_val in
661: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
1.16 millert 662: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1.9 millert 663: { (exit 1); exit 1; }; };;
664: esac
665: done
1.1 millert 666:
1.9 millert 667: # Be sure to have absolute paths.
668: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
669: localstatedir libdir includedir oldincludedir infodir mandir
1.1 millert 670: do
1.9 millert 671: eval ac_val=$`echo $ac_var`
672: case $ac_val in
673: [\\/$]* | ?:[\\/]* ) ;;
1.16 millert 674: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1.9 millert 675: { (exit 1); exit 1; }; };;
1.1 millert 676: esac
677: done
678:
1.9 millert 679: # There might be people who depend on the old broken behavior: `$host'
680: # used to hold the argument of --host etc.
1.16 millert 681: # FIXME: To remove some day.
1.9 millert 682: build=$build_alias
683: host=$host_alias
684: target=$target_alias
685:
1.16 millert 686: # FIXME: To remove some day.
1.9 millert 687: if test "x$host_alias" != x; then
688: if test "x$build_alias" = x; then
689: cross_compiling=maybe
690: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
691: If a cross compiler is detected then cross compile mode will be used." >&2
692: elif test "x$build_alias" != "x$host_alias"; then
693: cross_compiling=yes
694: fi
695: fi
1.1 millert 696:
1.9 millert 697: ac_tool_prefix=
698: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 millert 699:
1.9 millert 700: test "$silent" = yes && exec 6>/dev/null
1.1 millert 701:
1.16 millert 702:
1.1 millert 703: # Find the source files, if location was not specified.
704: if test -z "$srcdir"; then
705: ac_srcdir_defaulted=yes
706: # Try the directory containing this script, then its parent.
1.16 millert 707: ac_confdir=`(dirname "$0") 2>/dev/null ||
708: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
709: X"$0" : 'X\(//\)[^/]' \| \
710: X"$0" : 'X\(//\)$' \| \
711: X"$0" : 'X\(/\)' \| \
712: . : '\(.\)' 2>/dev/null ||
713: echo X"$0" |
714: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
715: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
716: /^X\(\/\/\)$/{ s//\1/; q; }
717: /^X\(\/\).*/{ s//\1/; q; }
718: s/.*/./; q'`
1.1 millert 719: srcdir=$ac_confdir
720: if test ! -r $srcdir/$ac_unique_file; then
721: srcdir=..
722: fi
723: else
724: ac_srcdir_defaulted=no
725: fi
726: if test ! -r $srcdir/$ac_unique_file; then
727: if test "$ac_srcdir_defaulted" = yes; then
1.16 millert 728: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
1.9 millert 729: { (exit 1); exit 1; }; }
1.1 millert 730: else
1.16 millert 731: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1.9 millert 732: { (exit 1); exit 1; }; }
1.1 millert 733: fi
734: fi
1.16 millert 735: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
736: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
737: { (exit 1); exit 1; }; }
1.9 millert 738: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
739: ac_env_build_alias_set=${build_alias+set}
740: ac_env_build_alias_value=$build_alias
741: ac_cv_env_build_alias_set=${build_alias+set}
742: ac_cv_env_build_alias_value=$build_alias
743: ac_env_host_alias_set=${host_alias+set}
744: ac_env_host_alias_value=$host_alias
745: ac_cv_env_host_alias_set=${host_alias+set}
746: ac_cv_env_host_alias_value=$host_alias
747: ac_env_target_alias_set=${target_alias+set}
748: ac_env_target_alias_value=$target_alias
749: ac_cv_env_target_alias_set=${target_alias+set}
750: ac_cv_env_target_alias_value=$target_alias
751: ac_env_CC_set=${CC+set}
752: ac_env_CC_value=$CC
753: ac_cv_env_CC_set=${CC+set}
754: ac_cv_env_CC_value=$CC
755: ac_env_CFLAGS_set=${CFLAGS+set}
756: ac_env_CFLAGS_value=$CFLAGS
757: ac_cv_env_CFLAGS_set=${CFLAGS+set}
758: ac_cv_env_CFLAGS_value=$CFLAGS
759: ac_env_LDFLAGS_set=${LDFLAGS+set}
760: ac_env_LDFLAGS_value=$LDFLAGS
761: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
762: ac_cv_env_LDFLAGS_value=$LDFLAGS
763: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
764: ac_env_CPPFLAGS_value=$CPPFLAGS
765: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
766: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
767: ac_env_CPP_set=${CPP+set}
768: ac_env_CPP_value=$CPP
769: ac_cv_env_CPP_set=${CPP+set}
770: ac_cv_env_CPP_value=$CPP
771:
772: #
773: # Report the --help message.
774: #
775: if test "$ac_init_help" = "long"; then
776: # Omit some internal or obsolete options to make the list less imposing.
777: # This message is too long to be a string in the A/UX 3.1 sh.
1.16 millert 778: cat <<_ACEOF
1.21 ! millert 779: \`configure' configures sudo 1.6.7p5 to adapt to many kinds of systems.
1.9 millert 780:
781: Usage: $0 [OPTION]... [VAR=VALUE]...
782:
783: To assign environment variables (e.g., CC, CFLAGS...), specify them as
784: VAR=VALUE. See below for descriptions of some of the useful variables.
785:
786: Defaults for the options are specified in brackets.
787:
788: Configuration:
789: -h, --help display this help and exit
790: --help=short display options specific to this package
791: --help=recursive display the short help of all the included packages
792: -V, --version display version information and exit
793: -q, --quiet, --silent do not print \`checking...' messages
794: --cache-file=FILE cache test results in FILE [disabled]
795: -C, --config-cache alias for \`--cache-file=config.cache'
796: -n, --no-create do not create output files
797: --srcdir=DIR find the sources in DIR [configure dir or \`..']
798:
1.16 millert 799: _ACEOF
1.9 millert 800:
1.16 millert 801: cat <<_ACEOF
1.9 millert 802: Installation directories:
803: --prefix=PREFIX install architecture-independent files in PREFIX
804: [$ac_default_prefix]
805: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
806: [PREFIX]
807:
808: By default, \`make install' will install all the files in
809: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
810: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
811: for instance \`--prefix=\$HOME'.
812:
813: For better control, use the options below.
814:
815: Fine tuning of the installation directories:
816: --bindir=DIR user executables [EPREFIX/bin]
817: --sbindir=DIR system admin executables [EPREFIX/sbin]
818: --libexecdir=DIR program executables [EPREFIX/libexec]
819: --datadir=DIR read-only architecture-independent data [PREFIX/share]
820: --sysconfdir=DIR read-only single-machine data [/etc]
821: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
822: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
823: --libdir=DIR object code libraries [EPREFIX/lib]
824: --includedir=DIR C header files [PREFIX/include]
825: --oldincludedir=DIR C header files for non-gcc [/usr/include]
826: --infodir=DIR info documentation [PREFIX/info]
827: --mandir=DIR man documentation [PREFIX/man]
1.16 millert 828: _ACEOF
1.9 millert 829:
1.16 millert 830: cat <<\_ACEOF
1.9 millert 831:
832: System types:
833: --build=BUILD configure for building on BUILD [guessed]
1.16 millert 834: --host=HOST cross-compile to build programs to run on HOST [BUILD]
835: _ACEOF
1.9 millert 836: fi
837:
838: if test -n "$ac_init_help"; then
839: case $ac_init_help in
1.21 ! millert 840: short | recursive ) echo "Configuration of sudo 1.6.7p5:";;
1.9 millert 841: esac
1.16 millert 842: cat <<\_ACEOF
1.9 millert 843:
844: Optional Features:
845: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847: --disable-authentication
848: Do not require authentication by default
1.12 millert 849: --disable-root-mailer Don't run the mailer as root, run as the user
1.13 millert 850: --disable-setreuid Don't try to use the setreuid() function
1.16 millert 851: --disable-setresuid Don't try to use the setresuid() function
1.12 millert 852: --disable-saved-ids Don't try to use POSIX saved ids
1.9 millert 853: --disable-shadow Never use shadow passwords
1.12 millert 854: --disable-root-sudo Don't allow root to run sudo
1.9 millert 855: --enable-log-host Log the hostname in the log file
856: --enable-noargs-shell If sudo is given no arguments run a shell
857: --enable-shell-sets-home
858: set $HOME to target user in shell mode
859: --disable-path-info Print 'command not allowed' not 'command not found'
860: --disable-sia Never use SIA on Digital UNIX
861:
862: Optional Packages:
863: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
864: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
865: --with-otp-only deprecated
866: --with-alertmail deprecated
867: --with-CC C compiler to use
1.17 millert 868: --with-rpath pass -R flag in addition to -L for lib paths
869: --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1.9 millert 870: --with-incpath additional places to look for include files
871: --with-libpath additional places to look for libraries
872: --with-libraries additional libraries to link with
1.15 david 873: --with-devel add development options
1.11 millert 874: --with-efence link with -lefence for malloc() debugging
1.9 millert 875: --with-csops add CSOps standard options
876: --without-passwd don't use passwd/shadow file for authentication
1.17 millert 877: --with-skey=DIR enable S/Key support
878: --with-opie=DIR enable OPIE support
1.9 millert 879: --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1.17 millert 880: --with-SecurID[=DIR] enable SecurID support
881: --with-fwtk[=DIR] enable FWTK AuthSRV support
882: --with-kerb4[=DIR] enable Kerberos IV support
883: --with-kerb5[=DIR] enable Kerberos V support
1.9 millert 884: --with-authenticate enable AIX general authentication support
885: --with-pam enable PAM support
886: --with-AFS enable AFS support
887: --with-DCE enable DCE support
888: --with-logincap enable BSD login class support
889: --with-bsdauth enable BSD authentication support
890: --without-lecture don't print lecture for first-time sudoer
891: --with-logging log via syslog, file, or both
892: --with-logfac syslog facility to log with (default is "local2")
893: --with-goodpri syslog priority for commands (def is "notice")
894: --with-badpri syslog priority for failures (def is "alert")
895: --with-logpath path to the sudo log file
896: --with-loglen maximum length of a log file line (default is 80)
897: --with-ignore-dot ignore '.' in the PATH
898: --without-mail-if-no-user do not send mail if user not in sudoers
899: --with-mail-if-no-host send mail if user in sudoers but not for this host
900: --with-mail-if-noperms send mail if user not allowed to run command
901: --with-mailto who should get sudo mail (default is "root")
902: --with-mailsubject subject of sudo mail
903: --with-passprompt default password prompt
904: --with-badpass-message message the user sees when the password is wrong
905: --with-fqdn expect fully qualified hosts in sudoers
906: --with-timedir path to the sudo timestamp dir
907: --with-sendmail=path set path to sendmail
908: --without-sendmail do not send mail at all
909: --with-sudoers-mode mode of sudoers file (defaults to 0440)
910: --with-sudoers-uid uid that owns sudoers file (defaults to 0)
911: --with-sudoers-gid gid that owns sudoers file (defaults to 0)
912: --with-umask umask with which the prog should run (default is 022)
913: --without-umask Preserves the umask of the user invoking sudo.
914: --with-runas-default User to run commands as (default is "root")
915: --with-exempt=group no passwd needed for users in this group
916: --with-editor=path Default editor for visudo (defaults to vi)
917: --with-env-editor Use the environment variable EDITOR for visudo
918: --with-passwd-tries number of tries to enter password (default is 3)
919: --with-timeout minutes before sudo asks for passwd again (def is 5 minutes)
920: --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
921: --with-execv use execv() instead of execvp()
922: --with-tty-tickets use a different ticket file for each tty
923: --with-insults insult the user for entering an incorrect password
924: --with-all-insults include all the sudo insult sets
925: --with-classic-insults include the insults from the "classic" sudo
926: --with-csops-insults include CSOps insults
927: --with-hal-insults include 2001-like insults
928: --with-goons-insults include the insults from the "Goon Show"
1.20 millert 929: --with-secure-path override the user's path with a built-in one
1.9 millert 930: --without-interfaces don't try to read the ip addr of ether interfaces
1.16 millert 931: --with-stow properly handle GNU stow packaging
1.9 millert 932:
933: Some influential environment variables:
934: CC C compiler command
935: CFLAGS C compiler flags
936: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
937: nonstandard directory <lib dir>
938: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
939: headers in a nonstandard directory <include dir>
940: CPP C preprocessor
941:
942: Use these variables to override the choices made by `configure' or to help
943: it to find libraries and programs with nonstandard names/locations.
944:
1.16 millert 945: _ACEOF
1.9 millert 946: fi
947:
948: if test "$ac_init_help" = "recursive"; then
949: # If there are subdirs, report their specific --help.
950: ac_popdir=`pwd`
1.16 millert 951: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
952: test -d $ac_dir || continue
953: ac_builddir=.
954:
955: if test "$ac_dir" != .; then
956: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
957: # A "../" for each directory in $ac_dir_suffix.
958: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
959: else
960: ac_dir_suffix= ac_top_builddir=
961: fi
962:
963: case $srcdir in
964: .) # No --srcdir option. We are building in place.
965: ac_srcdir=.
966: if test -z "$ac_top_builddir"; then
967: ac_top_srcdir=.
968: else
969: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
970: fi ;;
971: [\\/]* | ?:[\\/]* ) # Absolute path.
972: ac_srcdir=$srcdir$ac_dir_suffix;
973: ac_top_srcdir=$srcdir ;;
974: *) # Relative path.
975: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
976: ac_top_srcdir=$ac_top_builddir$srcdir ;;
977: esac
978: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
979: # absolute.
980: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
981: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
982: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
983: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1.9 millert 984:
1.16 millert 985: cd $ac_dir
1.9 millert 986: # Check for guested configure; otherwise get Cygnus style configure.
1.16 millert 987: if test -f $ac_srcdir/configure.gnu; then
1.9 millert 988: echo
1.16 millert 989: $SHELL $ac_srcdir/configure.gnu --help=recursive
990: elif test -f $ac_srcdir/configure; then
1.9 millert 991: echo
1.16 millert 992: $SHELL $ac_srcdir/configure --help=recursive
993: elif test -f $ac_srcdir/configure.ac ||
994: test -f $ac_srcdir/configure.in; then
1.9 millert 995: echo
996: $ac_configure --help
997: else
1.16 millert 998: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.9 millert 999: fi
1000: cd $ac_popdir
1001: done
1002: fi
1003:
1004: test -n "$ac_init_help" && exit 0
1005: if $ac_init_version; then
1.16 millert 1006: cat <<\_ACEOF
1.21 ! millert 1007: sudo configure 1.6.7p5
1.16 millert 1008: generated by GNU Autoconf 2.57
1.9 millert 1009:
1.16 millert 1010: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1.9 millert 1011: Free Software Foundation, Inc.
1012: This configure script is free software; the Free Software Foundation
1013: gives unlimited permission to copy, distribute and modify it.
1.16 millert 1014: _ACEOF
1.9 millert 1015: exit 0
1016: fi
1017: exec 5>config.log
1.16 millert 1018: cat >&5 <<_ACEOF
1.9 millert 1019: This file contains any messages produced by compilers while
1020: running configure, to aid debugging if configure makes a mistake.
1021:
1.21 ! millert 1022: It was created by sudo $as_me 1.6.7p5, which was
1.16 millert 1023: generated by GNU Autoconf 2.57. Invocation command line was
1.9 millert 1024:
1025: $ $0 $@
1026:
1.16 millert 1027: _ACEOF
1.9 millert 1028: {
1029: cat <<_ASUNAME
1.16 millert 1030: ## --------- ##
1031: ## Platform. ##
1032: ## --------- ##
1.9 millert 1033:
1034: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1035: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1036: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1037: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1038: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1039:
1040: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1041: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1042:
1043: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1044: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1045: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1046: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1047: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1048: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1049: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1050:
1.16 millert 1051: _ASUNAME
1052:
1053: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1054: for as_dir in $PATH
1055: do
1056: IFS=$as_save_IFS
1057: test -z "$as_dir" && as_dir=.
1058: echo "PATH: $as_dir"
1059: done
1.9 millert 1060:
1061: } >&5
1062:
1.16 millert 1063: cat >&5 <<_ACEOF
1064:
1065:
1066: ## ----------- ##
1067: ## Core tests. ##
1068: ## ----------- ##
1069:
1070: _ACEOF
1.9 millert 1071:
1072:
1073: # Keep a trace of the command line.
1074: # Strip out --no-create and --no-recursion so they do not pile up.
1.16 millert 1075: # Strip out --silent because we don't want to record it for future runs.
1.9 millert 1076: # Also quote any args containing shell meta-characters.
1.16 millert 1077: # Make two passes to allow for proper duplicate-argument suppression.
1.9 millert 1078: ac_configure_args=
1.16 millert 1079: ac_configure_args0=
1080: ac_configure_args1=
1.9 millert 1081: ac_sep=
1.16 millert 1082: ac_must_keep_next=false
1083: for ac_pass in 1 2
1.9 millert 1084: do
1.16 millert 1085: for ac_arg
1086: do
1087: case $ac_arg in
1088: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1089: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090: | -silent | --silent | --silen | --sile | --sil)
1091: continue ;;
1092: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1094: esac
1095: case $ac_pass in
1096: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1097: 2)
1098: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1099: if test $ac_must_keep_next = true; then
1100: ac_must_keep_next=false # Got value, back to normal.
1101: else
1102: case $ac_arg in
1103: *=* | --config-cache | -C | -disable-* | --disable-* \
1104: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1105: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1106: | -with-* | --with-* | -without-* | --without-* | --x)
1107: case "$ac_configure_args0 " in
1108: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1109: esac
1110: ;;
1111: -* ) ac_must_keep_next=true ;;
1112: esac
1113: fi
1114: ac_configure_args="$ac_configure_args$ac_sep\"$ac_arg\""
1115: # Get rid of the leading space.
1116: ac_sep=" "
1117: ;;
1118: esac
1119: done
1.9 millert 1120: done
1.16 millert 1121: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1122: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.9 millert 1123:
1124: # When interrupted or exit'd, cleanup temporary files, and complete
1125: # config.log. We remove comments because anyway the quotes in there
1126: # would cause problems or look ugly.
1.16 millert 1127: # WARNING: Be sure not to use single quotes in there, as some shells,
1128: # such as our DU 5.0 friend, will then `close' the trap.
1.9 millert 1129: trap 'exit_status=$?
1130: # Save into config.log some information that might help in debugging.
1.16 millert 1131: {
1132: echo
1133:
1134: cat <<\_ASBOX
1135: ## ---------------- ##
1136: ## Cache variables. ##
1137: ## ---------------- ##
1138: _ASBOX
1139: echo
1140: # The following way of writing the cache mishandles newlines in values,
1.9 millert 1141: {
1142: (set) 2>&1 |
1143: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1144: *ac_space=\ *)
1145: sed -n \
1146: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1147: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1148: ;;
1149: *)
1150: sed -n \
1151: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1152: ;;
1153: esac;
1.16 millert 1154: }
1155: echo
1156:
1157: cat <<\_ASBOX
1158: ## ----------------- ##
1159: ## Output variables. ##
1160: ## ----------------- ##
1161: _ASBOX
1162: echo
1163: for ac_var in $ac_subst_vars
1164: do
1165: eval ac_val=$`echo $ac_var`
1166: echo "$ac_var='"'"'$ac_val'"'"'"
1167: done | sort
1168: echo
1169:
1170: if test -n "$ac_subst_files"; then
1171: cat <<\_ASBOX
1172: ## ------------- ##
1173: ## Output files. ##
1174: ## ------------- ##
1175: _ASBOX
1176: echo
1177: for ac_var in $ac_subst_files
1178: do
1179: eval ac_val=$`echo $ac_var`
1180: echo "$ac_var='"'"'$ac_val'"'"'"
1181: done | sort
1182: echo
1183: fi
1184:
1185: if test -s confdefs.h; then
1186: cat <<\_ASBOX
1187: ## ----------- ##
1188: ## confdefs.h. ##
1189: ## ----------- ##
1190: _ASBOX
1191: echo
1192: sed "/^$/d" confdefs.h | sort
1193: echo
1194: fi
1195: test "$ac_signal" != 0 &&
1196: echo "$as_me: caught signal $ac_signal"
1197: echo "$as_me: exit $exit_status"
1198: } >&5
1199: rm -f core core.* *.core &&
1200: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1.9 millert 1201: exit $exit_status
1202: ' 0
1203: for ac_signal in 1 2 13 15; do
1204: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1205: done
1206: ac_signal=0
1.1 millert 1207:
1.9 millert 1208: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1209: rm -rf conftest* confdefs.h
1210: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1211: echo >confdefs.h
1212:
1.16 millert 1213: # Predefined preprocessor variables.
1214:
1215: cat >>confdefs.h <<_ACEOF
1216: #define PACKAGE_NAME "$PACKAGE_NAME"
1217: _ACEOF
1218:
1219:
1220: cat >>confdefs.h <<_ACEOF
1221: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1222: _ACEOF
1223:
1224:
1225: cat >>confdefs.h <<_ACEOF
1226: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1227: _ACEOF
1228:
1229:
1230: cat >>confdefs.h <<_ACEOF
1231: #define PACKAGE_STRING "$PACKAGE_STRING"
1232: _ACEOF
1233:
1234:
1235: cat >>confdefs.h <<_ACEOF
1236: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1237: _ACEOF
1238:
1239:
1.9 millert 1240: # Let the site file select an alternate cache file if it wants to.
1.1 millert 1241: # Prefer explicitly selected file to automatically selected ones.
1242: if test -z "$CONFIG_SITE"; then
1243: if test "x$prefix" != xNONE; then
1244: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1245: else
1246: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1247: fi
1248: fi
1249: for ac_site_file in $CONFIG_SITE; do
1250: if test -r "$ac_site_file"; then
1.16 millert 1251: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1.9 millert 1252: echo "$as_me: loading site script $ac_site_file" >&6;}
1.16 millert 1253: sed 's/^/| /' "$ac_site_file" >&5
1.1 millert 1254: . "$ac_site_file"
1255: fi
1256: done
1257:
1258: if test -r "$cache_file"; then
1.9 millert 1259: # Some versions of bash will fail to source /dev/null (special
1260: # files actually), so we avoid doing that.
1261: if test -f "$cache_file"; then
1.16 millert 1262: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1.9 millert 1263: echo "$as_me: loading cache $cache_file" >&6;}
1264: case $cache_file in
1265: [\\/]* | ?:[\\/]* ) . $cache_file;;
1266: *) . ./$cache_file;;
1267: esac
1268: fi
1.1 millert 1269: else
1.16 millert 1270: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1.9 millert 1271: echo "$as_me: creating cache $cache_file" >&6;}
1272: >$cache_file
1273: fi
1274:
1275: # Check that the precious variables saved in the cache have kept the same
1276: # value.
1277: ac_cache_corrupted=false
1278: for ac_var in `(set) 2>&1 |
1279: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1280: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1281: eval ac_new_set=\$ac_env_${ac_var}_set
1282: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1283: eval ac_new_val="\$ac_env_${ac_var}_value"
1284: case $ac_old_set,$ac_new_set in
1285: set,)
1.16 millert 1286: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1.9 millert 1287: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1288: ac_cache_corrupted=: ;;
1289: ,set)
1.16 millert 1290: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1.9 millert 1291: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1292: ac_cache_corrupted=: ;;
1293: ,);;
1294: *)
1295: if test "x$ac_old_val" != "x$ac_new_val"; then
1.16 millert 1296: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.9 millert 1297: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.16 millert 1298: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.9 millert 1299: echo "$as_me: former value: $ac_old_val" >&2;}
1.16 millert 1300: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.9 millert 1301: echo "$as_me: current value: $ac_new_val" >&2;}
1302: ac_cache_corrupted=:
1303: fi;;
1304: esac
1.16 millert 1305: # Pass precious variables to config.status.
1.9 millert 1306: if test "$ac_new_set" = set; then
1307: case $ac_new_val in
1308: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1.16 millert 1309: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1310: *) ac_arg=$ac_var=$ac_new_val ;;
1311: esac
1312: case " $ac_configure_args " in
1313: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1314: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1.9 millert 1315: esac
1316: fi
1317: done
1318: if $ac_cache_corrupted; then
1.16 millert 1319: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1.9 millert 1320: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.16 millert 1321: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1.9 millert 1322: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1323: { (exit 1); exit 1; }; }
1.1 millert 1324: fi
1325:
1326: ac_ext=c
1327: ac_cpp='$CPP $CPPFLAGS'
1.9 millert 1328: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1329: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1330: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1331:
1332:
1333:
1.16 millert 1334:
1335:
1336:
1337:
1338:
1339:
1340:
1341:
1342:
1343:
1344:
1345:
1346:
1347:
1348:
1349:
1350:
1351:
1352:
1353:
1354:
1355:
1356:
1357:
1358: ac_config_headers="$ac_config_headers config.h pathnames.h"
1359:
1.21 ! millert 1360: { echo "$as_me:$LINENO: Configuring Sudo version 1.6.7p5" >&5
! 1361: echo "$as_me: Configuring Sudo version 1.6.7p5" >&6;}
1.16 millert 1362:
1363:
1364:
1365:
1366:
1367:
1368:
1369:
1370:
1371:
1372:
1373:
1374:
1375:
1376:
1377:
1378:
1379:
1380:
1381:
1382:
1383:
1384:
1385:
1386:
1387:
1.9 millert 1388:
1389: timeout=5
1390: password_timeout=5
1391: sudo_umask=0022
1392: passprompt="Password:"
1393: long_otp_prompt=off
1394: lecture=on
1395: logfac=local2
1396: goodpri=notice
1397: badpri=alert
1398: loglen=80
1399: ignore_dot=off
1400: mail_no_user=on
1401: mail_no_host=off
1402: mail_no_perms=off
1403: mailto=root
1404: mailsub='*** SECURITY information for %h ***'
1405: badpass_message='Sorry, try again.'
1406: fqdn=off
1407: runas_default=root
1408: env_editor=off
1409: passwd_tries=3
1410: tty_tickets=off
1411: insults=off
1.1 millert 1412: PROGS="sudo visudo"
1.6 millert 1413: test -n "$MANTYPE" || MANTYPE="man"
1414: test -n "$mansrcdir" || mansrcdir="."
1415: test -n "$SUDOERS_MODE" || SUDOERS_MODE=0440
1416: test -n "$SUDOERS_UID" || SUDOERS_UID=0
1417: test -n "$SUDOERS_GID" || SUDOERS_GID=0
1.1 millert 1418: DEV="#"
1419:
1420: CHECKSHADOW=true
1421: CHECKSIA=true
1422:
1423: test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
1424: test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
1425: test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
1.16 millert 1426: test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
1427:
1428:
1.1 millert 1429:
1430: # Check whether --with-otp-only or --without-otp-only was given.
1431: if test "${with_otp_only+set}" = set; then
1432: withval="$with_otp_only"
1433: case $with_otp_only in
1434: yes) with_passwd=no
1.9 millert 1435:
1.16 millert 1436: cat >>confdefs.h <<\_ACEOF
1.1 millert 1437: #define WITHOUT_PASSWD 1
1.16 millert 1438: _ACEOF
1.1 millert 1439:
1.17 millert 1440: { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
1441: echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
1.1 millert 1442: ;;
1443: esac
1.9 millert 1444: fi;
1.1 millert 1445:
1.16 millert 1446:
1.1 millert 1447: # Check whether --with-alertmail or --without-alertmail was given.
1448: if test "${with_alertmail+set}" = set; then
1449: withval="$with_alertmail"
1450: case $with_alertmail in
1451: *) with_mailto="$with_alertmail"
1.17 millert 1452: { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
1453: echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
1.1 millert 1454: ;;
1455: esac
1.9 millert 1456: fi;
1.1 millert 1457:
1.16 millert 1458:
1459:
1.1 millert 1460: # Check whether --with-CC or --without-CC was given.
1461: if test "${with_CC+set}" = set; then
1462: withval="$with_CC"
1463: case $with_CC in
1.16 millert 1464: yes) { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
1.9 millert 1465: echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
1466: { (exit 1); exit 1; }; }
1467: ;;
1.16 millert 1468: no) { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
1.9 millert 1469: echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
1470: { (exit 1); exit 1; }; }
1.1 millert 1471: ;;
1472: *) CC=$with_CC
1473: ;;
1474: esac
1.9 millert 1475: fi;
1.1 millert 1476:
1.16 millert 1477:
1.17 millert 1478: # Check whether --with-rpath or --without-rpath was given.
1479: if test "${with_rpath+set}" = set; then
1480: withval="$with_rpath"
1481: case $with_rpath in
1482: yes) ;;
1483: no) ;;
1484: *) { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
1485: echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
1486: { (exit 1); exit 1; }; }
1487: ;;
1488: esac
1489: fi;
1490:
1491:
1492: # Check whether --with-blibpath or --without-blibpath was given.
1493: if test "${with_blibpath+set}" = set; then
1494: withval="$with_blibpath"
1495: case $with_blibpath in
1496: yes) ;;
1497: no) ;;
1498: *) { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
1499: echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
1500: ;;
1501: esac
1502: fi;
1503:
1504:
1.1 millert 1505: # Check whether --with-incpath or --without-incpath was given.
1506: if test "${with_incpath+set}" = set; then
1507: withval="$with_incpath"
1.9 millert 1508: case $with_incpath in
1.16 millert 1509: yes) { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
1.9 millert 1510: echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
1511: { (exit 1); exit 1; }; }
1512: ;;
1.16 millert 1513: no) { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
1.9 millert 1514: echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
1515: { (exit 1); exit 1; }; }
1.1 millert 1516: ;;
1.17 millert 1517: *) { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
1518: echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
1.1 millert 1519: for i in ${with_incpath}; do
1520: CPPFLAGS="${CPPFLAGS} -I${i}"
1521: done
1522: ;;
1523: esac
1.9 millert 1524: fi;
1.1 millert 1525:
1.16 millert 1526:
1.1 millert 1527: # Check whether --with-libpath or --without-libpath was given.
1528: if test "${with_libpath+set}" = set; then
1529: withval="$with_libpath"
1.9 millert 1530: case $with_libpath in
1.16 millert 1531: yes) { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
1.9 millert 1532: echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
1533: { (exit 1); exit 1; }; }
1534: ;;
1.16 millert 1535: no) { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
1.9 millert 1536: echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
1537: { (exit 1); exit 1; }; }
1.1 millert 1538: ;;
1.17 millert 1539: *) { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
1540: echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
1.1 millert 1541: ;;
1542: esac
1.9 millert 1543: fi;
1.1 millert 1544:
1.16 millert 1545:
1.1 millert 1546: # Check whether --with-libraries or --without-libraries was given.
1547: if test "${with_libraries+set}" = set; then
1548: withval="$with_libraries"
1.9 millert 1549: case $with_libraries in
1.16 millert 1550: yes) { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
1.9 millert 1551: echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
1552: { (exit 1); exit 1; }; }
1553: ;;
1.16 millert 1554: no) { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
1.9 millert 1555: echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
1556: { (exit 1); exit 1; }; }
1.1 millert 1557: ;;
1.17 millert 1558: *) { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
1559: echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
1.1 millert 1560: ;;
1561: esac
1.9 millert 1562: fi;
1.1 millert 1563:
1.16 millert 1564:
1.1 millert 1565: # Check whether --with-devel or --without-devel was given.
1566: if test "${with_devel+set}" = set; then
1567: withval="$with_devel"
1.9 millert 1568: case $with_devel in
1.17 millert 1569: yes) { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
1570: echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
1.1 millert 1571: PROGS="${PROGS} testsudoers"
1572: OSDEFS="${OSDEFS} -DSUDO_DEVEL"
1573: DEV=""
1574: ;;
1575: no) ;;
1.17 millert 1576: *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
1577: echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
1.1 millert 1578: ;;
1579: esac
1.9 millert 1580: fi;
1.1 millert 1581:
1.16 millert 1582:
1.11 millert 1583: # Check whether --with-efence or --without-efence was given.
1584: if test "${with_efence+set}" = set; then
1585: withval="$with_efence"
1586: case $with_efence in
1.17 millert 1587: yes) { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
1588: echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
1.11 millert 1589: LIBS="${LIBS} -lefence"
1590: if test -f /usr/local/lib/libefence.a; then
1.17 millert 1591: with_libpath="${with_libpath} /usr/local/lib"
1.11 millert 1592: fi
1593: ;;
1594: no) ;;
1.17 millert 1595: *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
1596: echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
1.11 millert 1597: ;;
1598: esac
1599: fi;
1600:
1.16 millert 1601:
1.1 millert 1602: # Check whether --with-csops or --without-csops was given.
1603: if test "${with_csops+set}" = set; then
1604: withval="$with_csops"
1.9 millert 1605: case $with_csops in
1.17 millert 1606: yes) { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
1607: echo "$as_me: Adding CSOps standard options" >&6;}
1.1 millert 1608: CHECKSIA=false
1609: with_ignore_dot=yes
1.9 millert 1610: insults=on
1.1 millert 1611: with_classic_insults=yes
1612: with_csops_insults=yes
1613: with_env_editor=yes
1.17 millert 1614: test -n "$mansectsu" || mansectsu=8
1615: test -n "$mansectform" || mansectform=5
1.1 millert 1616: ;;
1617: no) ;;
1.17 millert 1618: *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
1619: echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
1.1 millert 1620: ;;
1621: esac
1.9 millert 1622: fi;
1.1 millert 1623:
1.16 millert 1624:
1.1 millert 1625: # Check whether --with-passwd or --without-passwd was given.
1626: if test "${with_passwd+set}" = set; then
1627: withval="$with_passwd"
1628: case $with_passwd in
1629: yes) ;;
1.16 millert 1630: no) cat >>confdefs.h <<\_ACEOF
1.1 millert 1631: #define WITHOUT_PASSWD 1
1.16 millert 1632: _ACEOF
1.1 millert 1633:
1.16 millert 1634: echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
1.9 millert 1635: echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6
1.16 millert 1636: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 1637: echo "${ECHO_T}no" >&6
1.1 millert 1638: ;;
1.16 millert 1639: *) { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
1.9 millert 1640: echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
1641: { (exit 1); exit 1; }; }
1.1 millert 1642: ;;
1643: esac
1.9 millert 1644: fi;
1.1 millert 1645:
1.16 millert 1646:
1.1 millert 1647: # Check whether --with-skey or --without-skey was given.
1648: if test "${with_skey+set}" = set; then
1649: withval="$with_skey"
1650: case $with_skey in
1.17 millert 1651: no) with_skey="";;
1652: *) if test -n "$with_opie"; then
1.16 millert 1653: { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
1.9 millert 1654: echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
1655: { (exit 1); exit 1; }; }
1.1 millert 1656: fi
1.9 millert 1657:
1.16 millert 1658: cat >>confdefs.h <<\_ACEOF
1.1 millert 1659: #define HAVE_SKEY 1
1.16 millert 1660: _ACEOF
1.1 millert 1661:
1.16 millert 1662: echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
1.9 millert 1663: echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6
1.16 millert 1664: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1665: echo "${ECHO_T}yes" >&6
1.1 millert 1666: AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
1667: ;;
1668: esac
1.9 millert 1669: fi;
1.1 millert 1670:
1.16 millert 1671:
1.1 millert 1672: # Check whether --with-opie or --without-opie was given.
1673: if test "${with_opie+set}" = set; then
1674: withval="$with_opie"
1675: case $with_opie in
1.17 millert 1676: no) with_opie="";;
1677: *) if test -n "$with_skey"; then
1.16 millert 1678: { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
1.9 millert 1679: echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
1680: { (exit 1); exit 1; }; }
1.1 millert 1681: fi
1.9 millert 1682:
1.16 millert 1683: cat >>confdefs.h <<\_ACEOF
1.1 millert 1684: #define HAVE_OPIE 1
1.16 millert 1685: _ACEOF
1.1 millert 1686:
1.16 millert 1687: echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
1.9 millert 1688: echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6
1.16 millert 1689: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1690: echo "${ECHO_T}yes" >&6
1.1 millert 1691: AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
1692: ;;
1693: esac
1.9 millert 1694: fi;
1.1 millert 1695:
1.16 millert 1696:
1.1 millert 1697: # Check whether --with-long-otp-prompt or --without-long-otp-prompt was given.
1698: if test "${with_long_otp_prompt+set}" = set; then
1699: withval="$with_long_otp_prompt"
1700: case $with_long_otp_prompt in
1.9 millert 1701: yes)
1.16 millert 1702: cat >>confdefs.h <<\_ACEOF
1.1 millert 1703: #define LONG_OTP_PROMPT 1
1.16 millert 1704: _ACEOF
1.1 millert 1705:
1.16 millert 1706: echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
1.9 millert 1707: echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6
1.16 millert 1708: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1709: echo "${ECHO_T}yes" >&6
1710: long_otp_prompt=on
1.1 millert 1711: ;;
1.9 millert 1712: no) long_otp_prompt=off
1713: ;;
1.16 millert 1714: *) { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
1.9 millert 1715: echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
1716: { (exit 1); exit 1; }; }
1.1 millert 1717: ;;
1718: esac
1.9 millert 1719: fi;
1.1 millert 1720:
1.16 millert 1721:
1.1 millert 1722: # Check whether --with-SecurID or --without-SecurID was given.
1723: if test "${with_SecurID+set}" = set; then
1724: withval="$with_SecurID"
1725: case $with_SecurID in
1.17 millert 1726: no) with_SecurID="";;
1.9 millert 1727: *)
1.16 millert 1728: cat >>confdefs.h <<\_ACEOF
1.1 millert 1729: #define HAVE_SECURID 1
1.16 millert 1730: _ACEOF
1.1 millert 1731:
1.16 millert 1732: echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
1.9 millert 1733: echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6
1.16 millert 1734: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1735: echo "${ECHO_T}yes" >&6
1.1 millert 1736: with_passwd=no
1737: ;;
1738: esac
1.9 millert 1739: fi;
1.1 millert 1740:
1.16 millert 1741:
1.1 millert 1742: # Check whether --with-fwtk or --without-fwtk was given.
1743: if test "${with_fwtk+set}" = set; then
1744: withval="$with_fwtk"
1745: case $with_fwtk in
1.17 millert 1746: no) with_fwtk="";;
1.9 millert 1747: *)
1.16 millert 1748: cat >>confdefs.h <<\_ACEOF
1.1 millert 1749: #define HAVE_FWTK 1
1.16 millert 1750: _ACEOF
1.1 millert 1751:
1.16 millert 1752: echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
1.9 millert 1753: echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6
1.16 millert 1754: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1755: echo "${ECHO_T}yes" >&6
1.1 millert 1756: with_passwd=no
1757: AUTH_OBJS="fwtk.o"
1758: ;;
1759: esac
1.9 millert 1760: fi;
1.1 millert 1761:
1.16 millert 1762:
1.1 millert 1763: # Check whether --with-kerb4 or --without-kerb4 was given.
1764: if test "${with_kerb4+set}" = set; then
1765: withval="$with_kerb4"
1766: case $with_kerb4 in
1.17 millert 1767: no) with_kerb4="";;
1768: *) echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
1769: echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6
1.16 millert 1770: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1771: echo "${ECHO_T}yes" >&6
1.1 millert 1772: ;;
1773: esac
1.9 millert 1774: fi;
1.1 millert 1775:
1.16 millert 1776:
1.1 millert 1777: # Check whether --with-kerb5 or --without-kerb5 was given.
1778: if test "${with_kerb5+set}" = set; then
1779: withval="$with_kerb5"
1780: case $with_kerb5 in
1.17 millert 1781: no) with_kerb5="";;
1782: *) echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
1783: echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6
1.16 millert 1784: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1785: echo "${ECHO_T}yes" >&6
1.1 millert 1786: ;;
1787: esac
1.9 millert 1788: fi;
1.1 millert 1789:
1.16 millert 1790:
1.1 millert 1791: # Check whether --with-authenticate or --without-authenticate was given.
1792: if test "${with_authenticate+set}" = set; then
1793: withval="$with_authenticate"
1794: case $with_authenticate in
1.9 millert 1795: yes)
1.16 millert 1796: cat >>confdefs.h <<\_ACEOF
1.1 millert 1797: #define HAVE_AUTHENTICATE 1
1.16 millert 1798: _ACEOF
1.1 millert 1799:
1.16 millert 1800: echo "$as_me:$LINENO: checking whether to use AIX general authentication" >&5
1.9 millert 1801: echo $ECHO_N "checking whether to use AIX general authentication... $ECHO_C" >&6
1.16 millert 1802: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1803: echo "${ECHO_T}yes" >&6
1.1 millert 1804: with_passwd=no
1805: AUTH_OBJS="aix_auth.o"
1806: ;;
1807: no) ;;
1.16 millert 1808: *) { { echo "$as_me:$LINENO: error: \"--with-authenticate does not take an argument.\"" >&5
1.9 millert 1809: echo "$as_me: error: \"--with-authenticate does not take an argument.\"" >&2;}
1810: { (exit 1); exit 1; }; }
1.1 millert 1811: ;;
1812: esac
1.9 millert 1813: fi;
1.1 millert 1814:
1.16 millert 1815:
1.1 millert 1816: # Check whether --with-pam or --without-pam was given.
1817: if test "${with_pam+set}" = set; then
1818: withval="$with_pam"
1819: case $with_pam in
1.9 millert 1820: yes)
1.16 millert 1821: cat >>confdefs.h <<\_ACEOF
1.1 millert 1822: #define HAVE_PAM 1
1.16 millert 1823: _ACEOF
1.1 millert 1824:
1.16 millert 1825: echo "$as_me:$LINENO: checking whether to use PAM authentication" >&5
1.9 millert 1826: echo $ECHO_N "checking whether to use PAM authentication... $ECHO_C" >&6
1.16 millert 1827: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1828: echo "${ECHO_T}yes" >&6
1.1 millert 1829: with_passwd=no
1830: AUTH_OBJS="pam.o"
1831: ;;
1832: no) ;;
1.16 millert 1833: *) { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
1.9 millert 1834: echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
1835: { (exit 1); exit 1; }; }
1.1 millert 1836: ;;
1837: esac
1.9 millert 1838: fi;
1.1 millert 1839:
1.16 millert 1840:
1.1 millert 1841: # Check whether --with-AFS or --without-AFS was given.
1842: if test "${with_AFS+set}" = set; then
1843: withval="$with_AFS"
1844: case $with_AFS in
1.9 millert 1845: yes)
1.16 millert 1846: cat >>confdefs.h <<\_ACEOF
1.1 millert 1847: #define HAVE_AFS 1
1.16 millert 1848: _ACEOF
1.1 millert 1849:
1.16 millert 1850: echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
1.9 millert 1851: echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6
1.16 millert 1852: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1853: echo "${ECHO_T}yes" >&6
1.1 millert 1854: AUTH_OBJS="${AUTH_OBJS} afs.o"
1855: ;;
1856: no) ;;
1.16 millert 1857: *) { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
1.9 millert 1858: echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
1859: { (exit 1); exit 1; }; }
1.1 millert 1860: ;;
1861: esac
1.9 millert 1862: fi;
1.1 millert 1863:
1.16 millert 1864:
1.1 millert 1865: # Check whether --with-DCE or --without-DCE was given.
1866: if test "${with_DCE+set}" = set; then
1867: withval="$with_DCE"
1868: case $with_DCE in
1.9 millert 1869: yes)
1.16 millert 1870: cat >>confdefs.h <<\_ACEOF
1.1 millert 1871: #define HAVE_DCE 1
1.16 millert 1872: _ACEOF
1.1 millert 1873:
1.16 millert 1874: echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
1.9 millert 1875: echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6
1.16 millert 1876: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1877: echo "${ECHO_T}yes" >&6
1.1 millert 1878: AUTH_OBJS="${AUTH_OBJS} dce.o"
1879: ;;
1880: no) ;;
1.16 millert 1881: *) { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
1.9 millert 1882: echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
1883: { (exit 1); exit 1; }; }
1.1 millert 1884: ;;
1885: esac
1.9 millert 1886: fi;
1.1 millert 1887:
1.16 millert 1888:
1.6 millert 1889: # Check whether --with-logincap or --without-logincap was given.
1890: if test "${with_logincap+set}" = set; then
1891: withval="$with_logincap"
1892: case $with_logincap in
1.7 millert 1893: yes|no) ;;
1.16 millert 1894: *) { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
1.9 millert 1895: echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
1896: { (exit 1); exit 1; }; }
1.7 millert 1897: ;;
1898: esac
1.9 millert 1899: fi;
1.6 millert 1900:
1.16 millert 1901:
1.7 millert 1902: # Check whether --with-bsdauth or --without-bsdauth was given.
1903: if test "${with_bsdauth+set}" = set; then
1904: withval="$with_bsdauth"
1905: case $with_bsdauth in
1906: yes) with_logincap=yes
1.6 millert 1907: ;;
1908: no) ;;
1.16 millert 1909: *) { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
1.9 millert 1910: echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
1911: { (exit 1); exit 1; }; }
1.6 millert 1912: ;;
1913: esac
1.9 millert 1914: fi;
1.6 millert 1915:
1.16 millert 1916: echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
1.9 millert 1917: echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6
1.6 millert 1918:
1.1 millert 1919: # Check whether --with-lecture or --without-lecture was given.
1920: if test "${with_lecture+set}" = set; then
1921: withval="$with_lecture"
1.9 millert 1922: case $with_lecture in
1923: yes|short) lecture=on
1.1 millert 1924: ;;
1.9 millert 1925: no|none) lecture=off
1.1 millert 1926: ;;
1.16 millert 1927: *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
1.9 millert 1928: echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
1929: { (exit 1); exit 1; }; }
1.1 millert 1930: ;;
1931: esac
1.9 millert 1932: fi;
1933: if test "$lecture" = "on"; then
1.16 millert 1934: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1935: echo "${ECHO_T}yes" >&6
1.1 millert 1936: else
1.9 millert 1937:
1.16 millert 1938: cat >>confdefs.h <<\_ACEOF
1.9 millert 1939: #define NO_LECTURE 1
1.16 millert 1940: _ACEOF
1.9 millert 1941:
1.16 millert 1942: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 1943: echo "${ECHO_T}no" >&6
1.1 millert 1944: fi
1945:
1.16 millert 1946: echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
1.9 millert 1947: echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6
1.1 millert 1948:
1949: # Check whether --with-logging or --without-logging was given.
1950: if test "${with_logging+set}" = set; then
1951: withval="$with_logging"
1.9 millert 1952: case $with_logging in
1.16 millert 1953: yes) { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
1.9 millert 1954: echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
1955: { (exit 1); exit 1; }; }
1956: ;;
1.16 millert 1957: no) { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
1.9 millert 1958: echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
1959: { (exit 1); exit 1; }; }
1.1 millert 1960: ;;
1.9 millert 1961: syslog)
1.16 millert 1962: cat >>confdefs.h <<\_ACEOF
1.1 millert 1963: #define LOGGING SLOG_SYSLOG
1.16 millert 1964: _ACEOF
1.1 millert 1965:
1.16 millert 1966: echo "$as_me:$LINENO: result: syslog" >&5
1.9 millert 1967: echo "${ECHO_T}syslog" >&6
1.1 millert 1968: ;;
1.16 millert 1969: file) cat >>confdefs.h <<\_ACEOF
1.1 millert 1970: #define LOGGING SLOG_FILE
1.16 millert 1971: _ACEOF
1.1 millert 1972:
1.16 millert 1973: echo "$as_me:$LINENO: result: file" >&5
1.9 millert 1974: echo "${ECHO_T}file" >&6
1.1 millert 1975: ;;
1.16 millert 1976: both) cat >>confdefs.h <<\_ACEOF
1.1 millert 1977: #define LOGGING SLOG_BOTH
1.16 millert 1978: _ACEOF
1.1 millert 1979:
1.16 millert 1980: echo "$as_me:$LINENO: result: both" >&5
1.9 millert 1981: echo "${ECHO_T}both" >&6
1.1 millert 1982: ;;
1.16 millert 1983: *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
1.9 millert 1984: echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
1985: { (exit 1); exit 1; }; }
1.1 millert 1986: ;;
1987: esac
1988: else
1.16 millert 1989: cat >>confdefs.h <<\_ACEOF
1.1 millert 1990: #define LOGGING SLOG_SYSLOG
1.16 millert 1991: _ACEOF
1992: echo "$as_me:$LINENO: result: syslog" >&5
1.9 millert 1993: echo "${ECHO_T}syslog" >&6
1994: fi;
1.1 millert 1995:
1.16 millert 1996: echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
1.9 millert 1997: echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6
1.1 millert 1998:
1999: # Check whether --with-logfac or --without-logfac was given.
2000: if test "${with_logfac+set}" = set; then
2001: withval="$with_logfac"
1.9 millert 2002: case $with_logfac in
1.16 millert 2003: yes) { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
1.9 millert 2004: echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2005: { (exit 1); exit 1; }; }
2006: ;;
1.16 millert 2007: no) { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
1.9 millert 2008: echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2009: { (exit 1); exit 1; }; }
1.1 millert 2010: ;;
1.9 millert 2011: authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
1.1 millert 2012: ;;
1.16 millert 2013: *) { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
1.9 millert 2014: echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2015: { (exit 1); exit 1; }; }
1.1 millert 2016: ;;
2017: esac
1.9 millert 2018: fi;
2019:
1.16 millert 2020: cat >>confdefs.h <<_ACEOF
1.9 millert 2021: #define LOGFAC "$logfac"
1.16 millert 2022: _ACEOF
1.1 millert 2023:
1.16 millert 2024: echo "$as_me:$LINENO: result: $logfac" >&5
1.9 millert 2025: echo "${ECHO_T}$logfac" >&6
2026:
1.16 millert 2027: echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
1.9 millert 2028: echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6
1.1 millert 2029:
2030: # Check whether --with-goodpri or --without-goodpri was given.
2031: if test "${with_goodpri+set}" = set; then
2032: withval="$with_goodpri"
1.9 millert 2033: case $with_goodpri in
1.16 millert 2034: yes) { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
1.9 millert 2035: echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2036: { (exit 1); exit 1; }; }
1.1 millert 2037: ;;
1.16 millert 2038: no) { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
1.9 millert 2039: echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2040: { (exit 1); exit 1; }; }
1.1 millert 2041: ;;
1.9 millert 2042: alert|crit|debug|emerg|err|info|notice|warning)
2043: goodpri=$with_goodpri
1.1 millert 2044: ;;
1.16 millert 2045: *) { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
1.9 millert 2046: echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2047: { (exit 1); exit 1; }; }
1.1 millert 2048: ;;
2049: esac
1.9 millert 2050: fi;
2051:
1.16 millert 2052: cat >>confdefs.h <<_ACEOF
1.9 millert 2053: #define PRI_SUCCESS "$goodpri"
1.16 millert 2054: _ACEOF
1.1 millert 2055:
1.16 millert 2056: echo "$as_me:$LINENO: result: $goodpri" >&5
1.9 millert 2057: echo "${ECHO_T}$goodpri" >&6
2058:
1.16 millert 2059: echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
1.9 millert 2060: echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6
1.1 millert 2061:
2062: # Check whether --with-badpri or --without-badpri was given.
2063: if test "${with_badpri+set}" = set; then
2064: withval="$with_badpri"
1.9 millert 2065: case $with_badpri in
1.16 millert 2066: yes) { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
1.9 millert 2067: echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2068: { (exit 1); exit 1; }; }
1.1 millert 2069: ;;
1.16 millert 2070: no) { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
1.9 millert 2071: echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2072: { (exit 1); exit 1; }; }
1.1 millert 2073: ;;
1.9 millert 2074: alert|crit|debug|emerg|err|info|notice|warning)
2075: badpri=$with_badpri
1.1 millert 2076: ;;
1.16 millert 2077: *) { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
1.9 millert 2078: echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2079: { (exit 1); exit 1; }; }
1.1 millert 2080: ;;
2081: esac
1.9 millert 2082: fi;
2083:
1.16 millert 2084: cat >>confdefs.h <<_ACEOF
1.9 millert 2085: #define PRI_FAILURE "$badpri"
1.16 millert 2086: _ACEOF
2087:
2088: echo "$as_me:$LINENO: result: $badpri" >&5
2089: echo "${ECHO_T}$badpri" >&6
1.1 millert 2090:
2091:
2092: # Check whether --with-logpath or --without-logpath was given.
2093: if test "${with_logpath+set}" = set; then
2094: withval="$with_logpath"
1.9 millert 2095: case $with_logpath in
1.16 millert 2096: yes) { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
1.9 millert 2097: echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2098: { (exit 1); exit 1; }; }
1.1 millert 2099: ;;
1.16 millert 2100: no) { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
1.9 millert 2101: echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2102: { (exit 1); exit 1; }; }
1.1 millert 2103: ;;
2104: esac
1.9 millert 2105: fi;
1.1 millert 2106:
1.16 millert 2107: echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
1.9 millert 2108: echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6
1.1 millert 2109:
2110: # Check whether --with-loglen or --without-loglen was given.
2111: if test "${with_loglen+set}" = set; then
2112: withval="$with_loglen"
1.9 millert 2113: case $with_loglen in
1.16 millert 2114: yes) { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
1.9 millert 2115: echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2116: { (exit 1); exit 1; }; }
1.1 millert 2117: ;;
1.16 millert 2118: no) { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
1.9 millert 2119: echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2120: { (exit 1); exit 1; }; }
1.1 millert 2121: ;;
1.9 millert 2122: [0-9]*) loglen=$with_loglen
1.1 millert 2123: ;;
1.16 millert 2124: *) { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
1.9 millert 2125: echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2126: { (exit 1); exit 1; }; }
1.1 millert 2127: ;;
2128: esac
1.9 millert 2129: fi;
2130:
1.16 millert 2131: cat >>confdefs.h <<_ACEOF
1.9 millert 2132: #define MAXLOGFILELEN $loglen
1.16 millert 2133: _ACEOF
1.1 millert 2134:
1.16 millert 2135: echo "$as_me:$LINENO: result: $loglen" >&5
1.9 millert 2136: echo "${ECHO_T}$loglen" >&6
2137:
1.16 millert 2138: echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
1.9 millert 2139: echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6
1.1 millert 2140:
2141: # Check whether --with-ignore-dot or --without-ignore-dot was given.
2142: if test "${with_ignore_dot+set}" = set; then
2143: withval="$with_ignore_dot"
1.9 millert 2144: case $with_ignore_dot in
2145: yes) ignore_dot=on
1.1 millert 2146: ;;
1.9 millert 2147: no) ignore_dot=off
1.1 millert 2148: ;;
1.16 millert 2149: *) { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
1.9 millert 2150: echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2151: { (exit 1); exit 1; }; }
1.1 millert 2152: ;;
2153: esac
1.9 millert 2154: fi;
2155: if test "$ignore_dot" = "on"; then
2156:
1.16 millert 2157: cat >>confdefs.h <<\_ACEOF
1.9 millert 2158: #define IGNORE_DOT_PATH 1
1.16 millert 2159: _ACEOF
1.9 millert 2160:
1.16 millert 2161: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2162: echo "${ECHO_T}yes" >&6
1.1 millert 2163: else
1.16 millert 2164: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2165: echo "${ECHO_T}no" >&6
1.1 millert 2166: fi
2167:
1.16 millert 2168: echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
1.9 millert 2169: echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6
1.1 millert 2170:
1.9 millert 2171: # Check whether --with-mail-if-no-user or --without-mail-if-no-user was given.
2172: if test "${with_mail_if_no_user+set}" = set; then
2173: withval="$with_mail_if_no_user"
2174: case $with_mail_if_no_user in
2175: yes) mail_no_user=on
2176: ;;
2177: no) mail_no_user=off
1.1 millert 2178: ;;
1.16 millert 2179: *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
1.9 millert 2180: echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2181: { (exit 1); exit 1; }; }
1.1 millert 2182: ;;
1.9 millert 2183: esac
2184: fi;
2185: if test "$mail_no_user" = "on"; then
2186:
1.16 millert 2187: cat >>confdefs.h <<\_ACEOF
1.9 millert 2188: #define SEND_MAIL_WHEN_NO_USER 1
1.16 millert 2189: _ACEOF
1.1 millert 2190:
1.16 millert 2191: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2192: echo "${ECHO_T}yes" >&6
1.1 millert 2193: else
1.16 millert 2194: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2195: echo "${ECHO_T}no" >&6
1.1 millert 2196: fi
2197:
1.16 millert 2198: echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
1.9 millert 2199: echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6
1.1 millert 2200:
1.9 millert 2201: # Check whether --with-mail-if-no-host or --without-mail-if-no-host was given.
2202: if test "${with_mail_if_no_host+set}" = set; then
2203: withval="$with_mail_if_no_host"
2204: case $with_mail_if_no_host in
2205: yes) mail_no_host=on
1.1 millert 2206: ;;
1.9 millert 2207: no) mail_no_host=off
1.1 millert 2208: ;;
1.16 millert 2209: *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
1.9 millert 2210: echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2211: { (exit 1); exit 1; }; }
1.1 millert 2212: ;;
2213: esac
1.9 millert 2214: fi;
2215: if test "$mail_no_host" = "on"; then
2216:
1.16 millert 2217: cat >>confdefs.h <<\_ACEOF
1.9 millert 2218: #define SEND_MAIL_WHEN_NO_HOST 1
1.16 millert 2219: _ACEOF
1.1 millert 2220:
1.16 millert 2221: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2222: echo "${ECHO_T}yes" >&6
2223: else
1.16 millert 2224: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2225: echo "${ECHO_T}no" >&6
1.1 millert 2226: fi
2227:
1.16 millert 2228: echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
1.9 millert 2229: echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6
1.1 millert 2230:
1.9 millert 2231: # Check whether --with-mail-if-noperms or --without-mail-if-noperms was given.
2232: if test "${with_mail_if_noperms+set}" = set; then
2233: withval="$with_mail_if_noperms"
2234: case $with_mail_if_noperms in
2235: yes) mail_noperms=on
1.1 millert 2236: ;;
1.9 millert 2237: no) mail_noperms=off
1.1 millert 2238: ;;
1.16 millert 2239: *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
1.9 millert 2240: echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2241: { (exit 1); exit 1; }; }
1.1 millert 2242: ;;
2243: esac
1.9 millert 2244: fi;
2245: if test "$mail_noperms" = "on"; then
2246:
1.16 millert 2247: cat >>confdefs.h <<\_ACEOF
1.9 millert 2248: #define SEND_MAIL_WHEN_NOT_OK 1
1.16 millert 2249: _ACEOF
1.9 millert 2250:
1.16 millert 2251: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2252: echo "${ECHO_T}yes" >&6
1.1 millert 2253: else
1.16 millert 2254: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2255: echo "${ECHO_T}no" >&6
1.1 millert 2256: fi
2257:
1.16 millert 2258: echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
1.9 millert 2259: echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6
1.1 millert 2260:
1.9 millert 2261: # Check whether --with-mailto or --without-mailto was given.
2262: if test "${with_mailto+set}" = set; then
2263: withval="$with_mailto"
2264: case $with_mailto in
1.16 millert 2265: yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
1.9 millert 2266: echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
2267: { (exit 1); exit 1; }; }
1.1 millert 2268: ;;
1.16 millert 2269: no) { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
1.9 millert 2270: echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
2271: { (exit 1); exit 1; }; }
1.1 millert 2272: ;;
1.9 millert 2273: *) mailto=$with_mailto
1.1 millert 2274: ;;
2275: esac
1.9 millert 2276: fi;
1.1 millert 2277:
1.16 millert 2278: cat >>confdefs.h <<_ACEOF
1.9 millert 2279: #define MAILTO "$mailto"
1.16 millert 2280: _ACEOF
1.1 millert 2281:
1.16 millert 2282: echo "$as_me:$LINENO: result: $mailto" >&5
1.9 millert 2283: echo "${ECHO_T}$mailto" >&6
1.1 millert 2284:
1.16 millert 2285:
1.9 millert 2286: # Check whether --with-mailsubject or --without-mailsubject was given.
2287: if test "${with_mailsubject+set}" = set; then
2288: withval="$with_mailsubject"
2289: case $with_mailsubject in
1.16 millert 2290: yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
1.9 millert 2291: echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
2292: { (exit 1); exit 1; }; }
1.1 millert 2293: ;;
1.17 millert 2294: no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
2295: echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
1.1 millert 2296: ;;
1.9 millert 2297: *) mailsub="$with_mailsubject"
1.16 millert 2298: echo "$as_me:$LINENO: checking sudo mail subject" >&5
1.9 millert 2299: echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6
1.16 millert 2300: echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
1.9 millert 2301: echo "${ECHO_T}Using alert mail subject: $mailsub" >&6
1.1 millert 2302: ;;
2303: esac
1.9 millert 2304: fi;
2305:
1.16 millert 2306: cat >>confdefs.h <<_ACEOF
1.9 millert 2307: #define MAILSUBJECT "$mailsub"
1.16 millert 2308: _ACEOF
2309:
1.1 millert 2310:
1.16 millert 2311: echo "$as_me:$LINENO: checking for bad password prompt" >&5
1.9 millert 2312: echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6
1.1 millert 2313:
2314: # Check whether --with-passprompt or --without-passprompt was given.
2315: if test "${with_passprompt+set}" = set; then
2316: withval="$with_passprompt"
1.9 millert 2317: case $with_passprompt in
1.16 millert 2318: yes) { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
1.9 millert 2319: echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
2320: { (exit 1); exit 1; }; }
1.1 millert 2321: ;;
1.17 millert 2322: no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
2323: echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
1.1 millert 2324: ;;
1.9 millert 2325: *) passprompt="$with_passprompt"
2326: esac
2327: fi;
1.16 millert 2328: echo "$as_me:$LINENO: result: $passprompt" >&5
1.9 millert 2329: echo "${ECHO_T}$passprompt" >&6
1.1 millert 2330:
1.16 millert 2331: cat >>confdefs.h <<_ACEOF
1.9 millert 2332: #define PASSPROMPT "$passprompt"
1.16 millert 2333: _ACEOF
2334:
1.1 millert 2335:
1.16 millert 2336: echo "$as_me:$LINENO: checking for bad password message" >&5
1.9 millert 2337: echo $ECHO_N "checking for bad password message... $ECHO_C" >&6
1.1 millert 2338:
2339: # Check whether --with-badpass-message or --without-badpass-message was given.
2340: if test "${with_badpass_message+set}" = set; then
2341: withval="$with_badpass_message"
1.9 millert 2342: case $with_badpass_message in
1.16 millert 2343: yes) { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
1.9 millert 2344: echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
2345: { (exit 1); exit 1; }; }
1.1 millert 2346: ;;
1.17 millert 2347: no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
2348: echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
1.1 millert 2349: ;;
1.9 millert 2350: *) badpass_message="$with_badpass_message"
1.1 millert 2351: ;;
2352: esac
1.9 millert 2353: fi;
2354:
1.16 millert 2355: cat >>confdefs.h <<_ACEOF
1.9 millert 2356: #define INCORRECT_PASSWORD "$badpass_message"
1.16 millert 2357: _ACEOF
1.1 millert 2358:
1.16 millert 2359: echo "$as_me:$LINENO: result: $badpass_message" >&5
1.9 millert 2360: echo "${ECHO_T}$badpass_message" >&6
2361:
1.16 millert 2362: echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
1.9 millert 2363: echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6
1.1 millert 2364:
2365: # Check whether --with-fqdn or --without-fqdn was given.
2366: if test "${with_fqdn+set}" = set; then
2367: withval="$with_fqdn"
1.9 millert 2368: case $with_fqdn in
2369: yes) fqdn=on
1.1 millert 2370: ;;
1.9 millert 2371: no) fqdn=off
1.1 millert 2372: ;;
1.16 millert 2373: *) { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
1.9 millert 2374: echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
2375: { (exit 1); exit 1; }; }
1.1 millert 2376: ;;
2377: esac
1.9 millert 2378: fi;
2379: if test "$fqdn" = "on"; then
2380:
1.16 millert 2381: cat >>confdefs.h <<\_ACEOF
1.9 millert 2382: #define FQDN 1
1.16 millert 2383: _ACEOF
1.9 millert 2384:
1.16 millert 2385: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2386: echo "${ECHO_T}yes" >&6
1.1 millert 2387: else
1.16 millert 2388: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2389: echo "${ECHO_T}no" >&6
1.1 millert 2390: fi
2391:
1.16 millert 2392:
1.1 millert 2393: # Check whether --with-timedir or --without-timedir was given.
2394: if test "${with_timedir+set}" = set; then
2395: withval="$with_timedir"
1.9 millert 2396: case $with_timedir in
1.16 millert 2397: yes) { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
1.9 millert 2398: echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
2399: { (exit 1); exit 1; }; }
1.1 millert 2400: ;;
1.16 millert 2401: no) { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
1.9 millert 2402: echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
2403: { (exit 1); exit 1; }; }
1.1 millert 2404: ;;
2405: esac
1.9 millert 2406: fi;
1.1 millert 2407:
1.16 millert 2408:
1.1 millert 2409: # Check whether --with-sendmail or --without-sendmail was given.
2410: if test "${with_sendmail+set}" = set; then
2411: withval="$with_sendmail"
1.9 millert 2412: case $with_sendmail in
1.1 millert 2413: yes) with_sendmail=""
2414: ;;
2415: no) ;;
1.9 millert 2416: *) cat >>confdefs.h <<EOF
2417: #define _PATH_SUDO_SENDMAIL "$with_sendmail"
1.1 millert 2418: EOF
2419:
2420: ;;
2421: esac
1.9 millert 2422: fi;
1.1 millert 2423:
1.16 millert 2424:
1.1 millert 2425: # Check whether --with-sudoers-mode or --without-sudoers-mode was given.
2426: if test "${with_sudoers_mode+set}" = set; then
2427: withval="$with_sudoers_mode"
1.9 millert 2428: case $with_sudoers_mode in
1.16 millert 2429: yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
1.9 millert 2430: echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
2431: { (exit 1); exit 1; }; }
2432: ;;
1.16 millert 2433: no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
1.9 millert 2434: echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
2435: { (exit 1); exit 1; }; }
1.1 millert 2436: ;;
2437: [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
2438: ;;
2439: 0*) SUDOERS_MODE=$with_sudoers_mode
2440: ;;
1.16 millert 2441: *) { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
2442: echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
1.9 millert 2443: { (exit 1); exit 1; }; }
1.1 millert 2444: ;;
2445: esac
1.9 millert 2446: fi;
1.1 millert 2447:
1.16 millert 2448:
1.1 millert 2449: # Check whether --with-sudoers-uid or --without-sudoers-uid was given.
2450: if test "${with_sudoers_uid+set}" = set; then
2451: withval="$with_sudoers_uid"
1.9 millert 2452: case $with_sudoers_uid in
1.16 millert 2453: yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
1.9 millert 2454: echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
2455: { (exit 1); exit 1; }; }
2456: ;;
1.16 millert 2457: no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
1.9 millert 2458: echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
2459: { (exit 1); exit 1; }; }
1.1 millert 2460: ;;
2461: [0-9]*) SUDOERS_UID=$with_sudoers_uid
2462: ;;
1.16 millert 2463: *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
2464: echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
1.9 millert 2465: { (exit 1); exit 1; }; }
1.1 millert 2466: ;;
2467: esac
1.9 millert 2468: fi;
1.1 millert 2469:
1.16 millert 2470:
1.1 millert 2471: # Check whether --with-sudoers-gid or --without-sudoers-gid was given.
2472: if test "${with_sudoers_gid+set}" = set; then
2473: withval="$with_sudoers_gid"
1.9 millert 2474: case $with_sudoers_gid in
1.16 millert 2475: yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
1.9 millert 2476: echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
2477: { (exit 1); exit 1; }; }
2478: ;;
1.16 millert 2479: no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
1.9 millert 2480: echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
2481: { (exit 1); exit 1; }; }
1.1 millert 2482: ;;
2483: [0-9]*) SUDOERS_GID=$with_sudoers_gid
2484: ;;
1.16 millert 2485: *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
2486: echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
1.9 millert 2487: { (exit 1); exit 1; }; }
1.1 millert 2488: ;;
2489: esac
1.9 millert 2490: fi;
1.1 millert 2491:
1.16 millert 2492: echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
1.9 millert 2493: echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6
1.1 millert 2494:
2495: # Check whether --with-umask or --without-umask was given.
2496: if test "${with_umask+set}" = set; then
2497: withval="$with_umask"
1.9 millert 2498: case $with_umask in
1.16 millert 2499: yes) { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
1.9 millert 2500: echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
2501: { (exit 1); exit 1; }; }
1.1 millert 2502: ;;
1.9 millert 2503: no) sudo_umask=0777
1.1 millert 2504: ;;
1.9 millert 2505: [0-9]*) sudo_umask=$with_umask
1.1 millert 2506: ;;
1.16 millert 2507: *) { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
1.9 millert 2508: echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
2509: { (exit 1); exit 1; }; }
1.1 millert 2510: ;;
2511: esac
1.9 millert 2512: fi;
2513:
1.16 millert 2514: cat >>confdefs.h <<_ACEOF
1.9 millert 2515: #define SUDO_UMASK $sudo_umask
1.16 millert 2516: _ACEOF
1.9 millert 2517:
2518: if test "$sudo_umask" = "0777"; then
1.16 millert 2519: echo "$as_me:$LINENO: result: user" >&5
1.9 millert 2520: echo "${ECHO_T}user" >&6
1.1 millert 2521: else
1.16 millert 2522: echo "$as_me:$LINENO: result: $sudo_umask" >&5
1.9 millert 2523: echo "${ECHO_T}$sudo_umask" >&6
1.1 millert 2524: fi
2525:
1.16 millert 2526: echo "$as_me:$LINENO: checking for default user to run commands as" >&5
1.9 millert 2527: echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6
1.1 millert 2528:
2529: # Check whether --with-runas-default or --without-runas-default was given.
2530: if test "${with_runas_default+set}" = set; then
2531: withval="$with_runas_default"
1.9 millert 2532: case $with_runas_default in
1.16 millert 2533: yes) { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
1.9 millert 2534: echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
2535: { (exit 1); exit 1; }; }
1.1 millert 2536: ;;
1.16 millert 2537: no) { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
1.9 millert 2538: echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
2539: { (exit 1); exit 1; }; }
1.1 millert 2540: ;;
1.9 millert 2541: *) runas_default="$with_runas_default"
1.1 millert 2542: ;;
2543: esac
1.9 millert 2544: fi;
2545:
1.16 millert 2546: cat >>confdefs.h <<_ACEOF
1.9 millert 2547: #define RUNAS_DEFAULT "$runas_default"
1.16 millert 2548: _ACEOF
1.1 millert 2549:
1.16 millert 2550: echo "$as_me:$LINENO: result: $runas_default" >&5
1.9 millert 2551: echo "${ECHO_T}$runas_default" >&6
1.1 millert 2552:
1.16 millert 2553:
1.1 millert 2554: # Check whether --with-exempt or --without-exempt was given.
2555: if test "${with_exempt+set}" = set; then
2556: withval="$with_exempt"
1.9 millert 2557: case $with_exempt in
1.16 millert 2558: yes) { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
1.9 millert 2559: echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
2560: { (exit 1); exit 1; }; }
2561: ;;
1.16 millert 2562: no) { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
1.9 millert 2563: echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
2564: { (exit 1); exit 1; }; }
1.1 millert 2565: ;;
1.9 millert 2566: *)
1.16 millert 2567: cat >>confdefs.h <<_ACEOF
1.1 millert 2568: #define EXEMPTGROUP "$with_exempt"
1.16 millert 2569: _ACEOF
1.1 millert 2570:
1.16 millert 2571: echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
1.9 millert 2572: echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6
1.16 millert 2573: echo "$as_me:$LINENO: result: $with_exempt" >&5
1.9 millert 2574: echo "${ECHO_T}$with_exempt" >&6
1.1 millert 2575: ;;
2576: esac
1.9 millert 2577: fi;
1.1 millert 2578:
1.16 millert 2579: echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
1.9 millert 2580: echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6
1.1 millert 2581:
2582: # Check whether --with-editor or --without-editor was given.
2583: if test "${with_editor+set}" = set; then
2584: withval="$with_editor"
1.9 millert 2585: case $with_editor in
1.16 millert 2586: yes) { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
1.9 millert 2587: echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
2588: { (exit 1); exit 1; }; }
2589: ;;
1.16 millert 2590: no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9 millert 2591: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
2592: { (exit 1); exit 1; }; }
1.1 millert 2593: ;;
1.9 millert 2594: *)
1.16 millert 2595: cat >>confdefs.h <<_ACEOF
1.1 millert 2596: #define EDITOR "$with_editor"
1.16 millert 2597: _ACEOF
1.1 millert 2598:
1.16 millert 2599: echo "$as_me:$LINENO: result: $with_editor" >&5
1.9 millert 2600: echo "${ECHO_T}$with_editor" >&6
1.1 millert 2601: ;;
2602: esac
2603: else
1.16 millert 2604: cat >>confdefs.h <<\_ACEOF
1.1 millert 2605: #define EDITOR _PATH_VI
1.16 millert 2606: _ACEOF
2607: echo "$as_me:$LINENO: result: vi" >&5
1.9 millert 2608: echo "${ECHO_T}vi" >&6
2609: fi;
1.1 millert 2610:
1.16 millert 2611: echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
1.9 millert 2612: echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6
1.1 millert 2613:
2614: # Check whether --with-env-editor or --without-env-editor was given.
2615: if test "${with_env_editor+set}" = set; then
2616: withval="$with_env_editor"
1.9 millert 2617: case $with_env_editor in
2618: yes) env_editor=on
1.1 millert 2619: ;;
1.9 millert 2620: no) env_editor=off
1.1 millert 2621: ;;
1.16 millert 2622: *) { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
1.9 millert 2623: echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
2624: { (exit 1); exit 1; }; }
1.1 millert 2625: ;;
2626: esac
1.9 millert 2627: fi;
2628: if test "$env_editor" = "on"; then
2629:
1.16 millert 2630: cat >>confdefs.h <<\_ACEOF
1.9 millert 2631: #define ENV_EDITOR 1
1.16 millert 2632: _ACEOF
1.9 millert 2633:
1.16 millert 2634: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2635: echo "${ECHO_T}yes" >&6
1.1 millert 2636: else
1.16 millert 2637: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2638: echo "${ECHO_T}no" >&6
1.1 millert 2639: fi
2640:
1.16 millert 2641: echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
1.9 millert 2642: echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6
1.1 millert 2643:
2644: # Check whether --with-passwd-tries or --without-passwd-tries was given.
2645: if test "${with_passwd_tries+set}" = set; then
2646: withval="$with_passwd_tries"
1.9 millert 2647: case $with_passwd_tries in
2648: yes) ;;
1.16 millert 2649: no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9 millert 2650: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
2651: { (exit 1); exit 1; }; }
1.1 millert 2652: ;;
1.9 millert 2653: [1-9]*) passwd_tries=$with_passwd_tries
1.1 millert 2654: ;;
1.16 millert 2655: *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
1.9 millert 2656: echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
2657: { (exit 1); exit 1; }; }
1.1 millert 2658: ;;
2659: esac
1.9 millert 2660: fi;
2661:
1.16 millert 2662: cat >>confdefs.h <<_ACEOF
1.9 millert 2663: #define TRIES_FOR_PASSWORD $passwd_tries
1.16 millert 2664: _ACEOF
1.1 millert 2665:
1.16 millert 2666: echo "$as_me:$LINENO: result: $passwd_tries" >&5
1.9 millert 2667: echo "${ECHO_T}$passwd_tries" >&6
2668:
1.16 millert 2669: echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
1.9 millert 2670: echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6
1.1 millert 2671:
2672: # Check whether --with-timeout or --without-timeout was given.
2673: if test "${with_timeout+set}" = set; then
2674: withval="$with_timeout"
1.16 millert 2675: case $with_timeout in
1.9 millert 2676: yes) ;;
2677: no) timeout=0
1.1 millert 2678: ;;
1.9 millert 2679: [0-9]*) timeout=$with_timeout
1.1 millert 2680: ;;
1.16 millert 2681: *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9 millert 2682: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
2683: { (exit 1); exit 1; }; }
1.1 millert 2684: ;;
2685: esac
1.9 millert 2686: fi;
2687:
1.16 millert 2688: cat >>confdefs.h <<_ACEOF
1.9 millert 2689: #define TIMEOUT $timeout
1.16 millert 2690: _ACEOF
1.1 millert 2691:
1.16 millert 2692: echo "$as_me:$LINENO: result: $timeout" >&5
1.9 millert 2693: echo "${ECHO_T}$timeout" >&6
2694:
1.16 millert 2695: echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
1.9 millert 2696: echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6
1.1 millert 2697:
2698: # Check whether --with-password-timeout or --without-password-timeout was given.
2699: if test "${with_password_timeout+set}" = set; then
2700: withval="$with_password_timeout"
1.9 millert 2701: case $with_password_timeout in
2702: yes) ;;
2703: no) password_timeout=0
1.1 millert 2704: ;;
1.9 millert 2705: [0-9]*) password_timeout=$with_password_timeout
1.1 millert 2706: ;;
1.16 millert 2707: *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9 millert 2708: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
2709: { (exit 1); exit 1; }; }
1.1 millert 2710: ;;
2711: esac
1.9 millert 2712: fi;
2713:
1.16 millert 2714: cat >>confdefs.h <<_ACEOF
1.9 millert 2715: #define PASSWORD_TIMEOUT $password_timeout
1.16 millert 2716: _ACEOF
1.1 millert 2717:
1.16 millert 2718: echo "$as_me:$LINENO: result: $password_timeout" >&5
1.9 millert 2719: echo "${ECHO_T}$password_timeout" >&6
1.1 millert 2720:
1.16 millert 2721:
1.1 millert 2722: # Check whether --with-execv or --without-execv was given.
2723: if test "${with_execv+set}" = set; then
2724: withval="$with_execv"
1.9 millert 2725: case $with_execv in
1.16 millert 2726: yes) echo "$as_me:$LINENO: checking whether to use execvp or execv" >&5
1.9 millert 2727: echo $ECHO_N "checking whether to use execvp or execv... $ECHO_C" >&6
1.16 millert 2728: echo "$as_me:$LINENO: result: execv" >&5
1.9 millert 2729: echo "${ECHO_T}execv" >&6
2730:
1.16 millert 2731: cat >>confdefs.h <<\_ACEOF
1.1 millert 2732: #define USE_EXECV 1
1.16 millert 2733: _ACEOF
1.1 millert 2734:
2735: ;;
1.9 millert 2736: no) ;;
1.16 millert 2737: *) { { echo "$as_me:$LINENO: error: \"--with-execv does not take an argument.\"" >&5
1.9 millert 2738: echo "$as_me: error: \"--with-execv does not take an argument.\"" >&2;}
2739: { (exit 1); exit 1; }; }
1.1 millert 2740: ;;
2741: esac
1.9 millert 2742: fi;
1.1 millert 2743:
1.16 millert 2744: echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
1.9 millert 2745: echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6
1.1 millert 2746:
2747: # Check whether --with-tty-tickets or --without-tty-tickets was given.
2748: if test "${with_tty_tickets+set}" = set; then
2749: withval="$with_tty_tickets"
1.9 millert 2750: case $with_tty_tickets in
2751: yes) tty_tickets=on
1.1 millert 2752: ;;
1.9 millert 2753: no) tty_tickets=off
1.1 millert 2754: ;;
1.16 millert 2755: *) { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
1.9 millert 2756: echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
2757: { (exit 1); exit 1; }; }
1.1 millert 2758: ;;
2759: esac
1.9 millert 2760: fi;
2761: if test "$tty_tickets" = "on"; then
2762:
1.16 millert 2763: cat >>confdefs.h <<\_ACEOF
1.9 millert 2764: #define USE_TTY_TICKETS 1
1.16 millert 2765: _ACEOF
1.9 millert 2766:
1.16 millert 2767: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2768: echo "${ECHO_T}yes" >&6
1.1 millert 2769: else
1.16 millert 2770: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2771: echo "${ECHO_T}no" >&6
1.1 millert 2772: fi
2773:
1.16 millert 2774: echo "$as_me:$LINENO: checking whether to include insults" >&5
1.9 millert 2775: echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6
1.1 millert 2776:
2777: # Check whether --with-insults or --without-insults was given.
2778: if test "${with_insults+set}" = set; then
2779: withval="$with_insults"
1.9 millert 2780: case $with_insults in
2781: yes) insults=on
1.1 millert 2782: with_classic_insults=yes
2783: with_csops_insults=yes
2784: ;;
1.9 millert 2785: no) insults=off
1.1 millert 2786: ;;
1.16 millert 2787: *) { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
1.9 millert 2788: echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
2789: { (exit 1); exit 1; }; }
1.1 millert 2790: ;;
2791: esac
1.9 millert 2792: fi;
2793: if test "$insults" = "on"; then
2794:
1.16 millert 2795: cat >>confdefs.h <<\_ACEOF
1.9 millert 2796: #define USE_INSULTS 1
1.16 millert 2797: _ACEOF
1.9 millert 2798:
1.16 millert 2799: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2800: echo "${ECHO_T}yes" >&6
1.1 millert 2801: else
1.16 millert 2802: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2803: echo "${ECHO_T}no" >&6
1.1 millert 2804: fi
2805:
1.16 millert 2806:
1.1 millert 2807: # Check whether --with-all-insults or --without-all-insults was given.
2808: if test "${with_all_insults+set}" = set; then
2809: withval="$with_all_insults"
1.9 millert 2810: case $with_all_insults in
1.1 millert 2811: yes) with_classic_insults=yes
2812: with_csops_insults=yes
2813: with_hal_insults=yes
2814: with_goons_insults=yes
2815: ;;
2816: no) ;;
1.16 millert 2817: *) { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
1.9 millert 2818: echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
2819: { (exit 1); exit 1; }; }
1.1 millert 2820: ;;
2821: esac
1.9 millert 2822: fi;
1.1 millert 2823:
1.16 millert 2824:
1.1 millert 2825: # Check whether --with-classic-insults or --without-classic-insults was given.
2826: if test "${with_classic_insults+set}" = set; then
2827: withval="$with_classic_insults"
1.9 millert 2828: case $with_classic_insults in
2829: yes)
1.16 millert 2830: cat >>confdefs.h <<\_ACEOF
1.1 millert 2831: #define CLASSIC_INSULTS 1
1.16 millert 2832: _ACEOF
1.1 millert 2833:
2834: ;;
2835: no) ;;
1.16 millert 2836: *) { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
1.9 millert 2837: echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
2838: { (exit 1); exit 1; }; }
1.1 millert 2839: ;;
2840: esac
1.9 millert 2841: fi;
1.1 millert 2842:
1.16 millert 2843:
1.1 millert 2844: # Check whether --with-csops-insults or --without-csops-insults was given.
2845: if test "${with_csops_insults+set}" = set; then
2846: withval="$with_csops_insults"
1.9 millert 2847: case $with_csops_insults in
2848: yes)
1.16 millert 2849: cat >>confdefs.h <<\_ACEOF
1.1 millert 2850: #define CSOPS_INSULTS 1
1.16 millert 2851: _ACEOF
1.1 millert 2852:
2853: ;;
2854: no) ;;
1.16 millert 2855: *) { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
1.9 millert 2856: echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
2857: { (exit 1); exit 1; }; }
1.1 millert 2858: ;;
2859: esac
1.9 millert 2860: fi;
1.1 millert 2861:
1.16 millert 2862:
1.1 millert 2863: # Check whether --with-hal-insults or --without-hal-insults was given.
2864: if test "${with_hal_insults+set}" = set; then
2865: withval="$with_hal_insults"
1.9 millert 2866: case $with_hal_insults in
2867: yes)
1.16 millert 2868: cat >>confdefs.h <<\_ACEOF
1.1 millert 2869: #define HAL_INSULTS 1
1.16 millert 2870: _ACEOF
1.1 millert 2871:
2872: ;;
2873: no) ;;
1.16 millert 2874: *) { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
1.9 millert 2875: echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
2876: { (exit 1); exit 1; }; }
1.1 millert 2877: ;;
2878: esac
1.9 millert 2879: fi;
1.1 millert 2880:
1.16 millert 2881:
1.1 millert 2882: # Check whether --with-goons-insults or --without-goons-insults was given.
2883: if test "${with_goons_insults+set}" = set; then
2884: withval="$with_goons_insults"
1.9 millert 2885: case $with_goons_insults in
2886: yes)
1.16 millert 2887: cat >>confdefs.h <<\_ACEOF
1.1 millert 2888: #define GOONS_INSULTS 1
1.16 millert 2889: _ACEOF
1.1 millert 2890:
2891: ;;
2892: no) ;;
1.16 millert 2893: *) { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
1.9 millert 2894: echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
2895: { (exit 1); exit 1; }; }
1.1 millert 2896: ;;
2897: esac
1.9 millert 2898: fi;
1.1 millert 2899:
1.9 millert 2900: if test "$insults" = "on"; then
1.16 millert 2901: echo "$as_me:$LINENO: checking which insult sets to include" >&5
1.9 millert 2902: echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6
1.1 millert 2903: i=""
2904: test "$with_goons_insults" = "yes" && i="goons ${i}"
2905: test "$with_hal_insults" = "yes" && i="hal ${i}"
2906: test "$with_csops_insults" = "yes" && i="csops ${i}"
2907: test "$with_classic_insults" = "yes" && i="classic ${i}"
1.16 millert 2908: echo "$as_me:$LINENO: result: $i" >&5
1.9 millert 2909: echo "${ECHO_T}$i" >&6
1.1 millert 2910: fi
2911:
1.16 millert 2912: echo "$as_me:$LINENO: checking whether to override the user's path" >&5
1.9 millert 2913: echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6
2914:
1.1 millert 2915: # Check whether --with-secure-path or --without-secure-path was given.
2916: if test "${with_secure_path+set}" = set; then
2917: withval="$with_secure_path"
1.9 millert 2918: case $with_secure_path in
2919: yes)
1.16 millert 2920: cat >>confdefs.h <<_ACEOF
1.1 millert 2921: #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
1.16 millert 2922: _ACEOF
1.1 millert 2923:
1.16 millert 2924: echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
1.9 millert 2925: echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6
1.1 millert 2926: ;;
1.16 millert 2927: no) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2928: echo "${ECHO_T}no" >&6
1.1 millert 2929: ;;
1.16 millert 2930: *) cat >>confdefs.h <<_ACEOF
1.1 millert 2931: #define SECURE_PATH "$with_secure_path"
1.16 millert 2932: _ACEOF
1.1 millert 2933:
1.16 millert 2934: echo "$as_me:$LINENO: result: $with_secure_path" >&5
1.9 millert 2935: echo "${ECHO_T}$with_secure_path" >&6
1.1 millert 2936: ;;
2937: esac
2938: else
1.16 millert 2939: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2940: echo "${ECHO_T}no" >&6
2941: fi;
1.1 millert 2942:
1.16 millert 2943: echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
1.9 millert 2944: echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6
1.1 millert 2945:
2946: # Check whether --with-interfaces or --without-interfaces was given.
2947: if test "${with_interfaces+set}" = set; then
2948: withval="$with_interfaces"
1.9 millert 2949: case $with_interfaces in
1.16 millert 2950: yes) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2951: echo "${ECHO_T}yes" >&6
1.1 millert 2952: ;;
1.9 millert 2953: no)
1.16 millert 2954: cat >>confdefs.h <<\_ACEOF
1.1 millert 2955: #define STUB_LOAD_INTERFACES 1
1.16 millert 2956: _ACEOF
1.1 millert 2957:
1.16 millert 2958: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2959: echo "${ECHO_T}no" >&6
1.1 millert 2960: ;;
1.16 millert 2961: *) { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
1.9 millert 2962: echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
2963: { (exit 1); exit 1; }; }
1.1 millert 2964: ;;
2965: esac
2966: else
1.16 millert 2967: echo "$as_me:$LINENO: result: yes" >&5
2968: echo "${ECHO_T}yes" >&6
2969: fi;
2970:
2971: echo "$as_me:$LINENO: checking whether stow should be used" >&5
2972: echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6
2973:
2974: # Check whether --with-stow or --without-stow was given.
2975: if test "${with_stow+set}" = set; then
2976: withval="$with_stow"
2977: case $with_stow in
2978: yes) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2979: echo "${ECHO_T}yes" >&6
1.16 millert 2980:
2981: cat >>confdefs.h <<\_ACEOF
2982: #define USE_STOW 1
2983: _ACEOF
2984:
2985: ;;
2986: no) echo "$as_me:$LINENO: result: no" >&5
2987: echo "${ECHO_T}no" >&6
2988: ;;
2989: *) { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
2990: echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
2991: { (exit 1); exit 1; }; }
2992: ;;
2993: esac
2994: else
2995: echo "$as_me:$LINENO: result: no" >&5
2996: echo "${ECHO_T}no" >&6
1.9 millert 2997: fi;
1.1 millert 2998:
1.16 millert 2999:
3000: echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
1.9 millert 3001: echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6
1.1 millert 3002: # Check whether --enable-authentication or --disable-authentication was given.
3003: if test "${enable_authentication+set}" = set; then
3004: enableval="$enable_authentication"
3005: case "$enableval" in
1.16 millert 3006: yes) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3007: echo "${ECHO_T}yes" >&6
1.1 millert 3008: ;;
1.16 millert 3009: no) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3010: echo "${ECHO_T}no" >&6
3011:
1.16 millert 3012: cat >>confdefs.h <<\_ACEOF
1.1 millert 3013: #define NO_AUTHENTICATION 1
1.16 millert 3014: _ACEOF
1.1 millert 3015:
3016: ;;
1.16 millert 3017: *) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3018: echo "${ECHO_T}no" >&6
1.17 millert 3019: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
3020: echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
1.1 millert 3021: ;;
3022: esac
3023:
3024: else
1.16 millert 3025: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3026: echo "${ECHO_T}yes" >&6
3027: fi;
1.1 millert 3028:
1.16 millert 3029: echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
1.12 millert 3030: echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6
3031: # Check whether --enable-root-mailer or --disable-root-mailer was given.
3032: if test "${enable_root_mailer+set}" = set; then
3033: enableval="$enable_root_mailer"
3034: case "$enableval" in
1.16 millert 3035: yes) echo "$as_me:$LINENO: result: no" >&5
1.12 millert 3036: echo "${ECHO_T}no" >&6
3037: ;;
1.16 millert 3038: no) echo "$as_me:$LINENO: result: yes" >&5
1.12 millert 3039: echo "${ECHO_T}yes" >&6
3040:
1.16 millert 3041: cat >>confdefs.h <<\_ACEOF
1.12 millert 3042: #define NO_ROOT_MAILER 1
1.16 millert 3043: _ACEOF
1.12 millert 3044:
3045: ;;
1.16 millert 3046: *) echo "$as_me:$LINENO: result: no" >&5
1.12 millert 3047: echo "${ECHO_T}no" >&6
1.17 millert 3048: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
3049: echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
1.12 millert 3050: ;;
3051: esac
3052:
3053: else
1.16 millert 3054: echo "$as_me:$LINENO: result: no" >&5
1.12 millert 3055: echo "${ECHO_T}no" >&6
3056: fi;
3057:
1.13 millert 3058: # Check whether --enable-setreuid or --disable-setreuid was given.
3059: if test "${enable_setreuid+set}" = set; then
3060: enableval="$enable_setreuid"
3061: case "$enableval" in
1.16 millert 3062: no) SKIP_SETREUID=yes
3063: ;;
3064: *) ;;
3065: esac
3066:
3067: fi;
3068:
3069: # Check whether --enable-setresuid or --disable-setresuid was given.
3070: if test "${enable_setresuid+set}" = set; then
3071: enableval="$enable_setresuid"
3072: case "$enableval" in
3073: no) SKIP_SETRESUID=yes
1.13 millert 3074: ;;
3075: *) ;;
3076: esac
3077:
3078: fi;
3079:
1.16 millert 3080: echo "$as_me:$LINENO: checking whether to disable use of POSIX saved ids" >&5
1.11 millert 3081: echo $ECHO_N "checking whether to disable use of POSIX saved ids... $ECHO_C" >&6
3082: # Check whether --enable-saved-ids or --disable-saved-ids was given.
3083: if test "${enable_saved_ids+set}" = set; then
3084: enableval="$enable_saved_ids"
3085: case "$enableval" in
1.16 millert 3086: yes) echo "$as_me:$LINENO: result: no" >&5
1.11 millert 3087: echo "${ECHO_T}no" >&6
3088: ;;
1.16 millert 3089: no) echo "$as_me:$LINENO: result: yes" >&5
1.11 millert 3090: echo "${ECHO_T}yes" >&6
3091:
1.16 millert 3092: cat >>confdefs.h <<\_ACEOF
1.11 millert 3093: #define NO_SAVED_IDS 1
1.16 millert 3094: _ACEOF
1.11 millert 3095:
3096: ;;
1.16 millert 3097: *) echo "$as_me:$LINENO: result: no" >&5
1.11 millert 3098: echo "${ECHO_T}no" >&6
1.17 millert 3099: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-saved-ids: $enableval" >&5
3100: echo "$as_me: WARNING: Ignoring unknown argument to --enable-saved-ids: $enableval" >&2;}
1.11 millert 3101: ;;
3102: esac
3103:
3104: else
1.16 millert 3105: echo "$as_me:$LINENO: result: no" >&5
1.11 millert 3106: echo "${ECHO_T}no" >&6
3107: fi;
3108:
1.16 millert 3109: echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
1.9 millert 3110: echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6
1.1 millert 3111: # Check whether --enable-shadow or --disable-shadow was given.
3112: if test "${enable_shadow+set}" = set; then
3113: enableval="$enable_shadow"
3114: case "$enableval" in
1.16 millert 3115: yes) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3116: echo "${ECHO_T}no" >&6
1.1 millert 3117: ;;
1.16 millert 3118: no) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3119: echo "${ECHO_T}yes" >&6
1.1 millert 3120: CHECKSHADOW="false"
3121: ;;
1.16 millert 3122: *) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3123: echo "${ECHO_T}no" >&6
1.17 millert 3124: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
3125: echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
1.1 millert 3126: ;;
3127: esac
3128:
3129: else
1.16 millert 3130: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3131: echo "${ECHO_T}no" >&6
3132: fi;
1.1 millert 3133:
1.16 millert 3134: echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
1.9 millert 3135: echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6
1.1 millert 3136: # Check whether --enable-root-sudo or --disable-root-sudo was given.
3137: if test "${enable_root_sudo+set}" = set; then
3138: enableval="$enable_root_sudo"
1.9 millert 3139: case "$enableval" in
1.16 millert 3140: yes) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3141: echo "${ECHO_T}yes" >&6
1.1 millert 3142: ;;
1.9 millert 3143: no)
1.16 millert 3144: cat >>confdefs.h <<\_ACEOF
1.1 millert 3145: #define NO_ROOT_SUDO 1
1.16 millert 3146: _ACEOF
1.1 millert 3147:
1.16 millert 3148: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3149: echo "${ECHO_T}no" >&6
1.1 millert 3150: ;;
1.16 millert 3151: *) { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
1.9 millert 3152: echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
3153: { (exit 1); exit 1; }; }
1.1 millert 3154: ;;
3155: esac
3156:
3157: else
1.16 millert 3158: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3159: echo "${ECHO_T}yes" >&6
3160: fi;
1.1 millert 3161:
1.16 millert 3162: echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
1.9 millert 3163: echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6
1.1 millert 3164: # Check whether --enable-log-host or --disable-log-host was given.
3165: if test "${enable_log_host+set}" = set; then
3166: enableval="$enable_log_host"
3167: case "$enableval" in
1.16 millert 3168: yes) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3169: echo "${ECHO_T}yes" >&6
3170:
1.16 millert 3171: cat >>confdefs.h <<\_ACEOF
1.1 millert 3172: #define HOST_IN_LOG 1
1.16 millert 3173: _ACEOF
1.1 millert 3174:
3175: ;;
1.16 millert 3176: no) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3177: echo "${ECHO_T}no" >&6
1.1 millert 3178: ;;
1.16 millert 3179: *) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3180: echo "${ECHO_T}no" >&6
1.17 millert 3181: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
3182: echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
1.1 millert 3183: ;;
3184: esac
3185:
3186: else
1.16 millert 3187: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3188: echo "${ECHO_T}no" >&6
3189: fi;
1.1 millert 3190:
1.16 millert 3191: echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
1.9 millert 3192: echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6
1.1 millert 3193: # Check whether --enable-noargs-shell or --disable-noargs-shell was given.
3194: if test "${enable_noargs_shell+set}" = set; then
3195: enableval="$enable_noargs_shell"
3196: case "$enableval" in
1.16 millert 3197: yes) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3198: echo "${ECHO_T}yes" >&6
3199:
1.16 millert 3200: cat >>confdefs.h <<\_ACEOF
1.1 millert 3201: #define SHELL_IF_NO_ARGS 1
1.16 millert 3202: _ACEOF
1.1 millert 3203:
3204: ;;
1.16 millert 3205: no) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3206: echo "${ECHO_T}no" >&6
1.1 millert 3207: ;;
1.16 millert 3208: *) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3209: echo "${ECHO_T}no" >&6
1.17 millert 3210: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
3211: echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
1.1 millert 3212: ;;
3213: esac
3214:
3215: else
1.16 millert 3216: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3217: echo "${ECHO_T}no" >&6
3218: fi;
1.1 millert 3219:
1.16 millert 3220: echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
1.9 millert 3221: echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6
1.1 millert 3222: # Check whether --enable-shell-sets-home or --disable-shell-sets-home was given.
3223: if test "${enable_shell_sets_home+set}" = set; then
3224: enableval="$enable_shell_sets_home"
3225: case "$enableval" in
1.16 millert 3226: yes) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3227: echo "${ECHO_T}yes" >&6
3228:
1.16 millert 3229: cat >>confdefs.h <<\_ACEOF
1.1 millert 3230: #define SHELL_SETS_HOME 1
1.16 millert 3231: _ACEOF
1.1 millert 3232:
3233: ;;
1.16 millert 3234: no) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3235: echo "${ECHO_T}no" >&6
1.1 millert 3236: ;;
1.16 millert 3237: *) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3238: echo "${ECHO_T}no" >&6
1.17 millert 3239: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
3240: echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
1.1 millert 3241: ;;
3242: esac
3243:
3244: else
1.16 millert 3245: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3246: echo "${ECHO_T}no" >&6
3247: fi;
1.1 millert 3248:
1.16 millert 3249: echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
1.9 millert 3250: echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6
1.1 millert 3251: # Check whether --enable-path_info or --disable-path_info was given.
3252: if test "${enable_path_info+set}" = set; then
3253: enableval="$enable_path_info"
3254: case "$enableval" in
1.16 millert 3255: yes) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3256: echo "${ECHO_T}no" >&6
1.1 millert 3257: ;;
1.16 millert 3258: no) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3259: echo "${ECHO_T}yes" >&6
3260:
1.16 millert 3261: cat >>confdefs.h <<\_ACEOF
1.1 millert 3262: #define DONT_LEAK_PATH_INFO 1
1.16 millert 3263: _ACEOF
1.1 millert 3264:
3265: ;;
1.16 millert 3266: *) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3267: echo "${ECHO_T}no" >&6
1.17 millert 3268: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
3269: echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
1.1 millert 3270: ;;
3271: esac
3272:
3273: else
1.16 millert 3274: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3275: echo "${ECHO_T}no" >&6
3276: fi;
1.1 millert 3277:
3278: # Extract the first word of "egrep", so it can be a program name with args.
3279: set dummy egrep; ac_word=$2
1.16 millert 3280: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3281: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3282: if test "${ac_cv_prog_EGREPPROG+set}" = set; then
3283: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3284: else
3285: if test -n "$EGREPPROG"; then
3286: ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
3287: else
1.16 millert 3288: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289: for as_dir in $PATH
3290: do
3291: IFS=$as_save_IFS
3292: test -z "$as_dir" && as_dir=.
3293: for ac_exec_ext in '' $ac_executable_extensions; do
3294: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295: ac_cv_prog_EGREPPROG="egrep"
3296: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3297: break 2
3298: fi
3299: done
1.9 millert 3300: done
3301:
1.1 millert 3302: fi
3303: fi
1.9 millert 3304: EGREPPROG=$ac_cv_prog_EGREPPROG
1.1 millert 3305: if test -n "$EGREPPROG"; then
1.16 millert 3306: echo "$as_me:$LINENO: result: $EGREPPROG" >&5
1.9 millert 3307: echo "${ECHO_T}$EGREPPROG" >&6
1.1 millert 3308: else
1.16 millert 3309: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3310: echo "${ECHO_T}no" >&6
1.1 millert 3311: fi
3312:
3313: if test -z "$EGREPPROG"; then
1.17 millert 3314: { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
3315: echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
3316: { (exit 1); exit 1; }; }
1.1 millert 3317: fi
3318:
1.9 millert 3319: if test "$with_devel" != "yes"; then
3320: ac_cv_prog_cc_g=no
3321: fi
3322:
3323: ac_ext=c
3324: ac_cpp='$CPP $CPPFLAGS'
3325: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328: if test -n "$ac_tool_prefix"; then
3329: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3330: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.16 millert 3331: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3332: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3333: if test "${ac_cv_prog_CC+set}" = set; then
3334: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3335: else
3336: if test -n "$CC"; then
3337: ac_cv_prog_CC="$CC" # Let the user override the test.
3338: else
1.16 millert 3339: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340: for as_dir in $PATH
3341: do
3342: IFS=$as_save_IFS
3343: test -z "$as_dir" && as_dir=.
3344: for ac_exec_ext in '' $ac_executable_extensions; do
3345: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346: ac_cv_prog_CC="${ac_tool_prefix}gcc"
3347: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3348: break 2
3349: fi
3350: done
1.9 millert 3351: done
3352:
1.1 millert 3353: fi
3354: fi
1.9 millert 3355: CC=$ac_cv_prog_CC
1.1 millert 3356: if test -n "$CC"; then
1.16 millert 3357: echo "$as_me:$LINENO: result: $CC" >&5
1.9 millert 3358: echo "${ECHO_T}$CC" >&6
1.1 millert 3359: else
1.16 millert 3360: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3361: echo "${ECHO_T}no" >&6
3362: fi
3363:
3364: fi
3365: if test -z "$ac_cv_prog_CC"; then
3366: ac_ct_CC=$CC
3367: # Extract the first word of "gcc", so it can be a program name with args.
3368: set dummy gcc; ac_word=$2
1.16 millert 3369: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3370: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3371: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3372: echo $ECHO_N "(cached) $ECHO_C" >&6
3373: else
3374: if test -n "$ac_ct_CC"; then
3375: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3376: else
1.16 millert 3377: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378: for as_dir in $PATH
3379: do
3380: IFS=$as_save_IFS
3381: test -z "$as_dir" && as_dir=.
3382: for ac_exec_ext in '' $ac_executable_extensions; do
3383: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384: ac_cv_prog_ac_ct_CC="gcc"
3385: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3386: break 2
3387: fi
3388: done
1.9 millert 3389: done
3390:
3391: fi
3392: fi
3393: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3394: if test -n "$ac_ct_CC"; then
1.16 millert 3395: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.9 millert 3396: echo "${ECHO_T}$ac_ct_CC" >&6
3397: else
1.16 millert 3398: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3399: echo "${ECHO_T}no" >&6
3400: fi
3401:
3402: CC=$ac_ct_CC
3403: else
3404: CC="$ac_cv_prog_CC"
1.1 millert 3405: fi
3406:
3407: if test -z "$CC"; then
1.9 millert 3408: if test -n "$ac_tool_prefix"; then
3409: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3410: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.16 millert 3411: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3412: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413: if test "${ac_cv_prog_CC+set}" = set; then
3414: echo $ECHO_N "(cached) $ECHO_C" >&6
3415: else
3416: if test -n "$CC"; then
3417: ac_cv_prog_CC="$CC" # Let the user override the test.
3418: else
1.16 millert 3419: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420: for as_dir in $PATH
3421: do
3422: IFS=$as_save_IFS
3423: test -z "$as_dir" && as_dir=.
3424: for ac_exec_ext in '' $ac_executable_extensions; do
3425: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3426: ac_cv_prog_CC="${ac_tool_prefix}cc"
3427: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3428: break 2
3429: fi
3430: done
1.9 millert 3431: done
3432:
3433: fi
3434: fi
3435: CC=$ac_cv_prog_CC
3436: if test -n "$CC"; then
1.16 millert 3437: echo "$as_me:$LINENO: result: $CC" >&5
1.9 millert 3438: echo "${ECHO_T}$CC" >&6
3439: else
1.16 millert 3440: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3441: echo "${ECHO_T}no" >&6
3442: fi
3443:
3444: fi
3445: if test -z "$ac_cv_prog_CC"; then
3446: ac_ct_CC=$CC
1.1 millert 3447: # Extract the first word of "cc", so it can be a program name with args.
3448: set dummy cc; ac_word=$2
1.16 millert 3449: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3450: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3451: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3452: echo $ECHO_N "(cached) $ECHO_C" >&6
3453: else
3454: if test -n "$ac_ct_CC"; then
3455: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3456: else
1.16 millert 3457: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458: for as_dir in $PATH
3459: do
3460: IFS=$as_save_IFS
3461: test -z "$as_dir" && as_dir=.
3462: for ac_exec_ext in '' $ac_executable_extensions; do
3463: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3464: ac_cv_prog_ac_ct_CC="cc"
3465: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3466: break 2
3467: fi
3468: done
1.9 millert 3469: done
3470:
3471: fi
3472: fi
3473: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3474: if test -n "$ac_ct_CC"; then
1.16 millert 3475: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.9 millert 3476: echo "${ECHO_T}$ac_ct_CC" >&6
3477: else
1.16 millert 3478: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3479: echo "${ECHO_T}no" >&6
3480: fi
3481:
3482: CC=$ac_ct_CC
3483: else
3484: CC="$ac_cv_prog_CC"
3485: fi
3486:
3487: fi
3488: if test -z "$CC"; then
3489: # Extract the first word of "cc", so it can be a program name with args.
3490: set dummy cc; ac_word=$2
1.16 millert 3491: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3492: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3493: if test "${ac_cv_prog_CC+set}" = set; then
3494: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3495: else
3496: if test -n "$CC"; then
3497: ac_cv_prog_CC="$CC" # Let the user override the test.
3498: else
3499: ac_prog_rejected=no
1.16 millert 3500: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501: for as_dir in $PATH
3502: do
3503: IFS=$as_save_IFS
3504: test -z "$as_dir" && as_dir=.
3505: for ac_exec_ext in '' $ac_executable_extensions; do
3506: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3508: ac_prog_rejected=yes
3509: continue
3510: fi
3511: ac_cv_prog_CC="cc"
3512: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3513: break 2
3514: fi
3515: done
1.9 millert 3516: done
3517:
1.1 millert 3518: if test $ac_prog_rejected = yes; then
3519: # We found a bogon in the path, so make sure we never use it.
3520: set dummy $ac_cv_prog_CC
3521: shift
1.9 millert 3522: if test $# != 0; then
1.1 millert 3523: # We chose a different compiler from the bogus one.
3524: # However, it has the same basename, so the bogon will be chosen
3525: # first if we set CC to just the basename; use the full file name.
3526: shift
1.16 millert 3527: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 millert 3528: fi
3529: fi
3530: fi
3531: fi
1.9 millert 3532: CC=$ac_cv_prog_CC
1.1 millert 3533: if test -n "$CC"; then
1.16 millert 3534: echo "$as_me:$LINENO: result: $CC" >&5
1.9 millert 3535: echo "${ECHO_T}$CC" >&6
3536: else
1.16 millert 3537: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3538: echo "${ECHO_T}no" >&6
3539: fi
3540:
3541: fi
3542: if test -z "$CC"; then
3543: if test -n "$ac_tool_prefix"; then
3544: for ac_prog in cl
3545: do
3546: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3547: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.16 millert 3548: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3549: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3550: if test "${ac_cv_prog_CC+set}" = set; then
3551: echo $ECHO_N "(cached) $ECHO_C" >&6
3552: else
3553: if test -n "$CC"; then
3554: ac_cv_prog_CC="$CC" # Let the user override the test.
3555: else
1.16 millert 3556: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557: for as_dir in $PATH
3558: do
3559: IFS=$as_save_IFS
3560: test -z "$as_dir" && as_dir=.
3561: for ac_exec_ext in '' $ac_executable_extensions; do
3562: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3563: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3564: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3565: break 2
3566: fi
3567: done
1.9 millert 3568: done
3569:
3570: fi
3571: fi
3572: CC=$ac_cv_prog_CC
3573: if test -n "$CC"; then
1.16 millert 3574: echo "$as_me:$LINENO: result: $CC" >&5
1.9 millert 3575: echo "${ECHO_T}$CC" >&6
3576: else
1.16 millert 3577: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3578: echo "${ECHO_T}no" >&6
3579: fi
3580:
3581: test -n "$CC" && break
3582: done
3583: fi
3584: if test -z "$CC"; then
3585: ac_ct_CC=$CC
3586: for ac_prog in cl
3587: do
3588: # Extract the first word of "$ac_prog", so it can be a program name with args.
3589: set dummy $ac_prog; ac_word=$2
1.16 millert 3590: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3591: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3592: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3593: echo $ECHO_N "(cached) $ECHO_C" >&6
3594: else
3595: if test -n "$ac_ct_CC"; then
3596: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3597: else
1.16 millert 3598: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599: for as_dir in $PATH
3600: do
3601: IFS=$as_save_IFS
3602: test -z "$as_dir" && as_dir=.
3603: for ac_exec_ext in '' $ac_executable_extensions; do
3604: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605: ac_cv_prog_ac_ct_CC="$ac_prog"
3606: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3607: break 2
3608: fi
3609: done
1.9 millert 3610: done
3611:
3612: fi
3613: fi
3614: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3615: if test -n "$ac_ct_CC"; then
1.16 millert 3616: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.9 millert 3617: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 millert 3618: else
1.16 millert 3619: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3620: echo "${ECHO_T}no" >&6
3621: fi
3622:
3623: test -n "$ac_ct_CC" && break
3624: done
3625:
3626: CC=$ac_ct_CC
1.1 millert 3627: fi
3628:
3629: fi
3630:
1.16 millert 3631:
3632: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3633: See \`config.log' for more details." >&5
3634: echo "$as_me: error: no acceptable C compiler found in \$PATH
3635: See \`config.log' for more details." >&2;}
1.9 millert 3636: { (exit 1); exit 1; }; }
3637:
3638: # Provide some information about the compiler.
1.16 millert 3639: echo "$as_me:$LINENO:" \
1.9 millert 3640: "checking for C compiler version" >&5
3641: ac_compiler=`set X $ac_compile; echo $2`
1.16 millert 3642: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1.9 millert 3643: (eval $ac_compiler --version </dev/null >&5) 2>&5
3644: ac_status=$?
1.16 millert 3645: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 3646: (exit $ac_status); }
1.16 millert 3647: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1.9 millert 3648: (eval $ac_compiler -v </dev/null >&5) 2>&5
3649: ac_status=$?
1.16 millert 3650: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 3651: (exit $ac_status); }
1.16 millert 3652: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1.9 millert 3653: (eval $ac_compiler -V </dev/null >&5) 2>&5
3654: ac_status=$?
1.16 millert 3655: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 3656: (exit $ac_status); }
3657:
3658: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 3659: #line $LINENO "configure"
3660: /* confdefs.h. */
3661: _ACEOF
3662: cat confdefs.h >>conftest.$ac_ext
3663: cat >>conftest.$ac_ext <<_ACEOF
3664: /* end confdefs.h. */
1.9 millert 3665:
3666: int
3667: main ()
3668: {
1.1 millert 3669:
1.9 millert 3670: ;
3671: return 0;
3672: }
3673: _ACEOF
3674: ac_clean_files_save=$ac_clean_files
1.16 millert 3675: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.9 millert 3676: # Try to create an executable without -o first, disregard a.out.
3677: # It will help us diagnose broken compilers, and finding out an intuition
3678: # of exeext.
1.16 millert 3679: echo "$as_me:$LINENO: checking for C compiler default output" >&5
1.9 millert 3680: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
3681: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.16 millert 3682: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1.9 millert 3683: (eval $ac_link_default) 2>&5
3684: ac_status=$?
1.16 millert 3685: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 3686: (exit $ac_status); }; then
3687: # Find the output, starting from the most likely. This scheme is
3688: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3689: # resort.
1.16 millert 3690:
3691: # Be careful to initialize this variable, since it used to be cached.
3692: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3693: ac_cv_exeext=
3694: # b.out is created by i960 compilers.
3695: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3696: do
3697: test -f "$ac_file" || continue
1.9 millert 3698: case $ac_file in
1.16 millert 3699: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3700: ;;
3701: conftest.$ac_ext )
3702: # This is the source file.
3703: ;;
3704: [ab].out )
3705: # We found the default executable, but exeext='' is most
3706: # certainly right.
3707: break;;
3708: *.* )
3709: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3710: # FIXME: I believe we export ac_cv_exeext for Libtool,
3711: # but it would be cool to find out if it's true. Does anybody
3712: # maintain Libtool? --akim.
3713: export ac_cv_exeext
3714: break;;
3715: * )
3716: break;;
1.9 millert 3717: esac
3718: done
3719: else
3720: echo "$as_me: failed program was:" >&5
1.16 millert 3721: sed 's/^/| /' conftest.$ac_ext >&5
3722:
3723: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3724: See \`config.log' for more details." >&5
3725: echo "$as_me: error: C compiler cannot create executables
3726: See \`config.log' for more details." >&2;}
1.9 millert 3727: { (exit 77); exit 77; }; }
3728: fi
3729:
3730: ac_exeext=$ac_cv_exeext
1.16 millert 3731: echo "$as_me:$LINENO: result: $ac_file" >&5
1.9 millert 3732: echo "${ECHO_T}$ac_file" >&6
3733:
3734: # Check the compiler produces executables we can run. If not, either
3735: # the compiler is broken, or we cross compile.
1.16 millert 3736: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1.9 millert 3737: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3738: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3739: # If not cross compiling, check that we can run a simple program.
3740: if test "$cross_compiling" != yes; then
3741: if { ac_try='./$ac_file'
1.16 millert 3742: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 3743: (eval $ac_try) 2>&5
3744: ac_status=$?
1.16 millert 3745: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 3746: (exit $ac_status); }; }; then
3747: cross_compiling=no
1.1 millert 3748: else
1.9 millert 3749: if test "$cross_compiling" = maybe; then
3750: cross_compiling=yes
3751: else
1.16 millert 3752: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3753: If you meant to cross compile, use \`--host'.
3754: See \`config.log' for more details." >&5
1.9 millert 3755: echo "$as_me: error: cannot run C compiled programs.
1.16 millert 3756: If you meant to cross compile, use \`--host'.
3757: See \`config.log' for more details." >&2;}
1.9 millert 3758: { (exit 1); exit 1; }; }
3759: fi
1.1 millert 3760: fi
1.9 millert 3761: fi
1.16 millert 3762: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3763: echo "${ECHO_T}yes" >&6
3764:
1.16 millert 3765: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.9 millert 3766: ac_clean_files=$ac_clean_files_save
3767: # Check the compiler produces executables we can run. If not, either
3768: # the compiler is broken, or we cross compile.
1.16 millert 3769: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1.9 millert 3770: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1.16 millert 3771: echo "$as_me:$LINENO: result: $cross_compiling" >&5
1.9 millert 3772: echo "${ECHO_T}$cross_compiling" >&6
3773:
1.16 millert 3774: echo "$as_me:$LINENO: checking for suffix of executables" >&5
3775: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3776: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 3777: (eval $ac_link) 2>&5
3778: ac_status=$?
1.16 millert 3779: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 3780: (exit $ac_status); }; then
3781: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3782: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3783: # work properly (i.e., refer to `conftest.exe'), while it won't with
3784: # `rm'.
1.16 millert 3785: for ac_file in conftest.exe conftest conftest.*; do
3786: test -f "$ac_file" || continue
1.9 millert 3787: case $ac_file in
1.16 millert 3788: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1.9 millert 3789: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3790: export ac_cv_exeext
3791: break;;
3792: * ) break;;
3793: esac
3794: done
1.1 millert 3795: else
1.16 millert 3796: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3797: See \`config.log' for more details." >&5
3798: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3799: See \`config.log' for more details." >&2;}
1.9 millert 3800: { (exit 1); exit 1; }; }
1.1 millert 3801: fi
3802:
1.9 millert 3803: rm -f conftest$ac_cv_exeext
1.16 millert 3804: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1.9 millert 3805: echo "${ECHO_T}$ac_cv_exeext" >&6
1.1 millert 3806:
1.9 millert 3807: rm -f conftest.$ac_ext
3808: EXEEXT=$ac_cv_exeext
3809: ac_exeext=$EXEEXT
1.16 millert 3810: echo "$as_me:$LINENO: checking for suffix of object files" >&5
3811: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1.9 millert 3812: if test "${ac_cv_objext+set}" = set; then
3813: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3814: else
1.9 millert 3815: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 3816: #line $LINENO "configure"
3817: /* confdefs.h. */
3818: _ACEOF
3819: cat confdefs.h >>conftest.$ac_ext
3820: cat >>conftest.$ac_ext <<_ACEOF
3821: /* end confdefs.h. */
1.9 millert 3822:
3823: int
3824: main ()
3825: {
3826:
3827: ;
3828: return 0;
3829: }
3830: _ACEOF
3831: rm -f conftest.o conftest.obj
1.16 millert 3832: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 3833: (eval $ac_compile) 2>&5
3834: ac_status=$?
1.16 millert 3835: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 3836: (exit $ac_status); }; then
3837: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3838: case $ac_file in
1.16 millert 3839: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1.9 millert 3840: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3841: break;;
3842: esac
3843: done
1.1 millert 3844: else
1.9 millert 3845: echo "$as_me: failed program was:" >&5
1.16 millert 3846: sed 's/^/| /' conftest.$ac_ext >&5
3847:
3848: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3849: See \`config.log' for more details." >&5
3850: echo "$as_me: error: cannot compute suffix of object files: cannot compile
3851: See \`config.log' for more details." >&2;}
1.9 millert 3852: { (exit 1); exit 1; }; }
1.1 millert 3853: fi
1.9 millert 3854:
3855: rm -f conftest.$ac_cv_objext conftest.$ac_ext
1.1 millert 3856: fi
1.16 millert 3857: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1.9 millert 3858: echo "${ECHO_T}$ac_cv_objext" >&6
3859: OBJEXT=$ac_cv_objext
3860: ac_objext=$OBJEXT
1.16 millert 3861: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.9 millert 3862: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3863: if test "${ac_cv_c_compiler_gnu+set}" = set; then
3864: echo $ECHO_N "(cached) $ECHO_C" >&6
3865: else
3866: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 3867: #line $LINENO "configure"
3868: /* confdefs.h. */
3869: _ACEOF
3870: cat confdefs.h >>conftest.$ac_ext
3871: cat >>conftest.$ac_ext <<_ACEOF
3872: /* end confdefs.h. */
1.1 millert 3873:
1.9 millert 3874: int
3875: main ()
3876: {
3877: #ifndef __GNUC__
3878: choke me
3879: #endif
1.1 millert 3880:
1.9 millert 3881: ;
3882: return 0;
3883: }
3884: _ACEOF
3885: rm -f conftest.$ac_objext
1.16 millert 3886: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 3887: (eval $ac_compile) 2>&5
3888: ac_status=$?
1.16 millert 3889: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 3890: (exit $ac_status); } &&
3891: { ac_try='test -s conftest.$ac_objext'
1.16 millert 3892: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 3893: (eval $ac_try) 2>&5
3894: ac_status=$?
1.16 millert 3895: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 3896: (exit $ac_status); }; }; then
3897: ac_compiler_gnu=yes
3898: else
3899: echo "$as_me: failed program was:" >&5
1.16 millert 3900: sed 's/^/| /' conftest.$ac_ext >&5
3901:
1.9 millert 3902: ac_compiler_gnu=no
3903: fi
3904: rm -f conftest.$ac_objext conftest.$ac_ext
3905: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3906:
3907: fi
1.16 millert 3908: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.9 millert 3909: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3910: GCC=`test $ac_compiler_gnu = yes && echo yes`
3911: ac_test_CFLAGS=${CFLAGS+set}
3912: ac_save_CFLAGS=$CFLAGS
3913: CFLAGS="-g"
1.16 millert 3914: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1.9 millert 3915: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3916: if test "${ac_cv_prog_cc_g+set}" = set; then
3917: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3918: else
1.9 millert 3919: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 3920: #line $LINENO "configure"
3921: /* confdefs.h. */
3922: _ACEOF
3923: cat confdefs.h >>conftest.$ac_ext
3924: cat >>conftest.$ac_ext <<_ACEOF
3925: /* end confdefs.h. */
1.9 millert 3926:
3927: int
3928: main ()
3929: {
3930:
3931: ;
3932: return 0;
3933: }
3934: _ACEOF
3935: rm -f conftest.$ac_objext
1.16 millert 3936: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 3937: (eval $ac_compile) 2>&5
3938: ac_status=$?
1.16 millert 3939: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 3940: (exit $ac_status); } &&
3941: { ac_try='test -s conftest.$ac_objext'
1.16 millert 3942: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 3943: (eval $ac_try) 2>&5
3944: ac_status=$?
1.16 millert 3945: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 3946: (exit $ac_status); }; }; then
1.1 millert 3947: ac_cv_prog_cc_g=yes
3948: else
1.9 millert 3949: echo "$as_me: failed program was:" >&5
1.16 millert 3950: sed 's/^/| /' conftest.$ac_ext >&5
3951:
1.9 millert 3952: ac_cv_prog_cc_g=no
3953: fi
3954: rm -f conftest.$ac_objext conftest.$ac_ext
3955: fi
1.16 millert 3956: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1.9 millert 3957: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3958: if test "$ac_test_CFLAGS" = set; then
3959: CFLAGS=$ac_save_CFLAGS
3960: elif test $ac_cv_prog_cc_g = yes; then
3961: if test "$GCC" = yes; then
3962: CFLAGS="-g -O2"
3963: else
3964: CFLAGS="-g"
3965: fi
3966: else
3967: if test "$GCC" = yes; then
3968: CFLAGS="-O2"
3969: else
3970: CFLAGS=
3971: fi
3972: fi
1.16 millert 3973: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3974: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3975: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3976: echo $ECHO_N "(cached) $ECHO_C" >&6
3977: else
3978: ac_cv_prog_cc_stdc=no
3979: ac_save_CC=$CC
1.9 millert 3980: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 3981: #line $LINENO "configure"
3982: /* confdefs.h. */
1.9 millert 3983: _ACEOF
1.16 millert 3984: cat confdefs.h >>conftest.$ac_ext
3985: cat >>conftest.$ac_ext <<_ACEOF
3986: /* end confdefs.h. */
3987: #include <stdarg.h>
3988: #include <stdio.h>
3989: #include <sys/types.h>
3990: #include <sys/stat.h>
3991: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3992: struct buf { int x; };
3993: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3994: static char *e (p, i)
3995: char **p;
3996: int i;
1.9 millert 3997: {
1.16 millert 3998: return p[i];
1.9 millert 3999: }
1.16 millert 4000: static char *f (char * (*g) (char **, int), char **p, ...)
4001: {
4002: char *s;
4003: va_list v;
4004: va_start (v,p);
4005: s = g (p, va_arg (v,int));
4006: va_end (v);
4007: return s;
4008: }
4009: int test (int i, double x);
4010: struct s1 {int (*f) (int a);};
4011: struct s2 {int (*f) (double a);};
4012: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4013: int argc;
4014: char **argv;
4015: int
4016: main ()
4017: {
4018: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4019: ;
4020: return 0;
4021: }
4022: _ACEOF
4023: # Don't try gcc -ansi; that turns off useful extensions and
4024: # breaks some systems' header files.
4025: # AIX -qlanglvl=ansi
4026: # Ultrix and OSF/1 -std1
4027: # HP-UX 10.20 and later -Ae
4028: # HP-UX older versions -Aa -D_HPUX_SOURCE
4029: # SVR4 -Xc -D__EXTENSIONS__
4030: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4031: do
4032: CC="$ac_save_CC $ac_arg"
4033: rm -f conftest.$ac_objext
4034: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035: (eval $ac_compile) 2>&5
4036: ac_status=$?
4037: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038: (exit $ac_status); } &&
4039: { ac_try='test -s conftest.$ac_objext'
4040: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041: (eval $ac_try) 2>&5
4042: ac_status=$?
4043: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044: (exit $ac_status); }; }; then
4045: ac_cv_prog_cc_stdc=$ac_arg
4046: break
4047: else
4048: echo "$as_me: failed program was:" >&5
4049: sed 's/^/| /' conftest.$ac_ext >&5
4050:
4051: fi
4052: rm -f conftest.$ac_objext
4053: done
4054: rm -f conftest.$ac_ext conftest.$ac_objext
4055: CC=$ac_save_CC
4056:
4057: fi
4058:
4059: case "x$ac_cv_prog_cc_stdc" in
4060: x|xno)
4061: echo "$as_me:$LINENO: result: none needed" >&5
4062: echo "${ECHO_T}none needed" >&6 ;;
4063: *)
4064: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4065: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4066: CC="$CC $ac_cv_prog_cc_stdc" ;;
4067: esac
4068:
4069: # Some people use a C++ compiler to compile C. Since we use `exit',
4070: # in C++ we need to declare it. In case someone uses the same compiler
4071: # for both compiling C and C++ we need to have the C++ compiler decide
4072: # the declaration of exit, since it's the most demanding environment.
4073: cat >conftest.$ac_ext <<_ACEOF
4074: #ifndef __cplusplus
4075: choke me
4076: #endif
1.9 millert 4077: _ACEOF
4078: rm -f conftest.$ac_objext
1.16 millert 4079: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 4080: (eval $ac_compile) 2>&5
4081: ac_status=$?
1.16 millert 4082: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4083: (exit $ac_status); } &&
4084: { ac_try='test -s conftest.$ac_objext'
1.16 millert 4085: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 4086: (eval $ac_try) 2>&5
4087: ac_status=$?
1.16 millert 4088: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089: (exit $ac_status); }; }; then
4090: for ac_declaration in \
4091: ''\
4092: '#include <stdlib.h>' \
4093: 'extern "C" void std::exit (int) throw (); using std::exit;' \
4094: 'extern "C" void std::exit (int); using std::exit;' \
4095: 'extern "C" void exit (int) throw ();' \
4096: 'extern "C" void exit (int);' \
4097: 'void exit (int);'
4098: do
4099: cat >conftest.$ac_ext <<_ACEOF
4100: #line $LINENO "configure"
4101: /* confdefs.h. */
4102: _ACEOF
4103: cat confdefs.h >>conftest.$ac_ext
4104: cat >>conftest.$ac_ext <<_ACEOF
4105: /* end confdefs.h. */
4106: #include <stdlib.h>
4107: $ac_declaration
4108: int
4109: main ()
4110: {
4111: exit (42);
4112: ;
4113: return 0;
4114: }
4115: _ACEOF
4116: rm -f conftest.$ac_objext
4117: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4118: (eval $ac_compile) 2>&5
4119: ac_status=$?
4120: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121: (exit $ac_status); } &&
4122: { ac_try='test -s conftest.$ac_objext'
4123: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124: (eval $ac_try) 2>&5
4125: ac_status=$?
4126: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4127: (exit $ac_status); }; }; then
4128: :
4129: else
4130: echo "$as_me: failed program was:" >&5
1.16 millert 4131: sed 's/^/| /' conftest.$ac_ext >&5
4132:
1.9 millert 4133: continue
4134: fi
4135: rm -f conftest.$ac_objext conftest.$ac_ext
4136: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4137: #line $LINENO "configure"
4138: /* confdefs.h. */
4139: _ACEOF
4140: cat confdefs.h >>conftest.$ac_ext
4141: cat >>conftest.$ac_ext <<_ACEOF
4142: /* end confdefs.h. */
1.9 millert 4143: $ac_declaration
4144: int
4145: main ()
4146: {
4147: exit (42);
4148: ;
4149: return 0;
4150: }
4151: _ACEOF
4152: rm -f conftest.$ac_objext
1.16 millert 4153: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 4154: (eval $ac_compile) 2>&5
4155: ac_status=$?
1.16 millert 4156: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4157: (exit $ac_status); } &&
4158: { ac_try='test -s conftest.$ac_objext'
1.16 millert 4159: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 4160: (eval $ac_try) 2>&5
4161: ac_status=$?
1.16 millert 4162: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4163: (exit $ac_status); }; }; then
4164: break
4165: else
4166: echo "$as_me: failed program was:" >&5
1.16 millert 4167: sed 's/^/| /' conftest.$ac_ext >&5
4168:
1.1 millert 4169: fi
1.9 millert 4170: rm -f conftest.$ac_objext conftest.$ac_ext
4171: done
1.1 millert 4172: rm -f conftest*
1.9 millert 4173: if test -n "$ac_declaration"; then
4174: echo '#ifdef __cplusplus' >>confdefs.h
4175: echo $ac_declaration >>confdefs.h
4176: echo '#endif' >>confdefs.h
4177: fi
1.1 millert 4178:
1.9 millert 4179: else
4180: echo "$as_me: failed program was:" >&5
1.16 millert 4181: sed 's/^/| /' conftest.$ac_ext >&5
4182:
1.1 millert 4183: fi
1.9 millert 4184: rm -f conftest.$ac_objext conftest.$ac_ext
4185: ac_ext=c
4186: ac_cpp='$CPP $CPPFLAGS'
4187: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 millert 4190:
1.9 millert 4191:
1.16 millert 4192: echo "$as_me:$LINENO: checking for library containing strerror" >&5
4193: echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
4194: if test "${ac_cv_search_strerror+set}" = set; then
1.9 millert 4195: echo $ECHO_N "(cached) $ECHO_C" >&6
4196: else
1.16 millert 4197: ac_func_search_save_LIBS=$LIBS
4198: ac_cv_search_strerror=no
1.9 millert 4199: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4200: #line $LINENO "configure"
4201: /* confdefs.h. */
4202: _ACEOF
4203: cat confdefs.h >>conftest.$ac_ext
4204: cat >>conftest.$ac_ext <<_ACEOF
4205: /* end confdefs.h. */
4206:
4207: /* Override any gcc2 internal prototype to avoid an error. */
4208: #ifdef __cplusplus
4209: extern "C"
4210: #endif
4211: /* We use char because int might match the return type of a gcc2
4212: builtin and then its argument prototype would still apply. */
4213: char strerror ();
4214: int
4215: main ()
1.9 millert 4216: {
1.16 millert 4217: strerror ();
4218: ;
4219: return 0;
1.9 millert 4220: }
1.16 millert 4221: _ACEOF
4222: rm -f conftest.$ac_objext conftest$ac_exeext
4223: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4224: (eval $ac_link) 2>&5
4225: ac_status=$?
4226: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227: (exit $ac_status); } &&
4228: { ac_try='test -s conftest$ac_exeext'
4229: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230: (eval $ac_try) 2>&5
4231: ac_status=$?
4232: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233: (exit $ac_status); }; }; then
4234: ac_cv_search_strerror="none required"
4235: else
4236: echo "$as_me: failed program was:" >&5
4237: sed 's/^/| /' conftest.$ac_ext >&5
4238:
4239: fi
4240: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4241: if test "$ac_cv_search_strerror" = no; then
4242: for ac_lib in cposix; do
4243: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4244: cat >conftest.$ac_ext <<_ACEOF
4245: #line $LINENO "configure"
4246: /* confdefs.h. */
4247: _ACEOF
4248: cat confdefs.h >>conftest.$ac_ext
4249: cat >>conftest.$ac_ext <<_ACEOF
4250: /* end confdefs.h. */
4251:
4252: /* Override any gcc2 internal prototype to avoid an error. */
4253: #ifdef __cplusplus
4254: extern "C"
4255: #endif
4256: /* We use char because int might match the return type of a gcc2
4257: builtin and then its argument prototype would still apply. */
4258: char strerror ();
1.9 millert 4259: int
4260: main ()
4261: {
1.16 millert 4262: strerror ();
1.9 millert 4263: ;
4264: return 0;
4265: }
4266: _ACEOF
1.16 millert 4267: rm -f conftest.$ac_objext conftest$ac_exeext
4268: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4269: (eval $ac_link) 2>&5
1.9 millert 4270: ac_status=$?
1.16 millert 4271: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4272: (exit $ac_status); } &&
1.16 millert 4273: { ac_try='test -s conftest$ac_exeext'
4274: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 4275: (eval $ac_try) 2>&5
4276: ac_status=$?
1.16 millert 4277: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4278: (exit $ac_status); }; }; then
1.16 millert 4279: ac_cv_search_strerror="-l$ac_lib"
1.9 millert 4280: break
4281: else
4282: echo "$as_me: failed program was:" >&5
1.16 millert 4283: sed 's/^/| /' conftest.$ac_ext >&5
4284:
4285: fi
4286: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4287: done
4288: fi
4289: LIBS=$ac_func_search_save_LIBS
1.9 millert 4290: fi
1.16 millert 4291: echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4292: echo "${ECHO_T}$ac_cv_search_strerror" >&6
4293: if test "$ac_cv_search_strerror" != no; then
4294: test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
1.9 millert 4295:
4296: fi
4297:
1.16 millert 4298: ac_cv_prog_cc_cross="no"
4299: cross_compiling="no"
1.9 millert 4300:
4301: ac_cv_prog_cc_cross="no"
4302: cross_compiling="no"
4303: ac_ext=c
4304: ac_cpp='$CPP $CPPFLAGS'
4305: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.16 millert 4308: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1.9 millert 4309: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1.1 millert 4310: # On Suns, sometimes $CPP names a directory.
4311: if test -n "$CPP" && test -d "$CPP"; then
4312: CPP=
4313: fi
4314: if test -z "$CPP"; then
1.9 millert 4315: if test "${ac_cv_prog_CPP+set}" = set; then
4316: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4317: else
1.9 millert 4318: # Double quotes because CPP needs to be expanded
4319: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4320: do
4321: ac_preproc_ok=false
4322: for ac_c_preproc_warn_flag in '' yes
4323: do
4324: # Use a header file that comes with gcc, so configuring glibc
4325: # with a fresh cross-compiler works.
1.16 millert 4326: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4327: # <limits.h> exists even on freestanding compilers.
1.1 millert 4328: # On the NeXT, cc -E runs the code through the compiler's parser,
1.9 millert 4329: # not just through cpp. "Syntax error" is here to catch this case.
4330: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4331: #line $LINENO "configure"
4332: /* confdefs.h. */
4333: _ACEOF
4334: cat confdefs.h >>conftest.$ac_ext
4335: cat >>conftest.$ac_ext <<_ACEOF
4336: /* end confdefs.h. */
4337: #ifdef __STDC__
4338: # include <limits.h>
4339: #else
4340: # include <assert.h>
4341: #endif
1.9 millert 4342: Syntax error
4343: _ACEOF
1.16 millert 4344: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 4345: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4346: ac_status=$?
1.16 millert 4347: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 4348: rm -f conftest.er1
4349: cat conftest.err >&5
1.16 millert 4350: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4351: (exit $ac_status); } >/dev/null; then
4352: if test -s conftest.err; then
4353: ac_cpp_err=$ac_c_preproc_warn_flag
4354: else
4355: ac_cpp_err=
4356: fi
4357: else
4358: ac_cpp_err=yes
4359: fi
4360: if test -z "$ac_cpp_err"; then
1.1 millert 4361: :
4362: else
1.9 millert 4363: echo "$as_me: failed program was:" >&5
1.16 millert 4364: sed 's/^/| /' conftest.$ac_ext >&5
4365:
1.9 millert 4366: # Broken: fails on valid input.
4367: continue
4368: fi
4369: rm -f conftest.err conftest.$ac_ext
4370:
4371: # OK, works on sane cases. Now check whether non-existent headers
4372: # can be detected and how.
4373: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4374: #line $LINENO "configure"
4375: /* confdefs.h. */
4376: _ACEOF
4377: cat confdefs.h >>conftest.$ac_ext
4378: cat >>conftest.$ac_ext <<_ACEOF
4379: /* end confdefs.h. */
1.9 millert 4380: #include <ac_nonexistent.h>
4381: _ACEOF
1.16 millert 4382: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 4383: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4384: ac_status=$?
1.16 millert 4385: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 4386: rm -f conftest.er1
4387: cat conftest.err >&5
1.16 millert 4388: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4389: (exit $ac_status); } >/dev/null; then
4390: if test -s conftest.err; then
4391: ac_cpp_err=$ac_c_preproc_warn_flag
4392: else
4393: ac_cpp_err=
4394: fi
4395: else
4396: ac_cpp_err=yes
4397: fi
4398: if test -z "$ac_cpp_err"; then
4399: # Broken: success on invalid input.
4400: continue
4401: else
4402: echo "$as_me: failed program was:" >&5
1.16 millert 4403: sed 's/^/| /' conftest.$ac_ext >&5
4404:
1.9 millert 4405: # Passes both tests.
4406: ac_preproc_ok=:
4407: break
4408: fi
4409: rm -f conftest.err conftest.$ac_ext
4410:
4411: done
4412: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4413: rm -f conftest.err conftest.$ac_ext
4414: if $ac_preproc_ok; then
4415: break
4416: fi
4417:
4418: done
4419: ac_cv_prog_CPP=$CPP
4420:
4421: fi
4422: CPP=$ac_cv_prog_CPP
4423: else
4424: ac_cv_prog_CPP=$CPP
4425: fi
1.16 millert 4426: echo "$as_me:$LINENO: result: $CPP" >&5
1.9 millert 4427: echo "${ECHO_T}$CPP" >&6
4428: ac_preproc_ok=false
4429: for ac_c_preproc_warn_flag in '' yes
4430: do
4431: # Use a header file that comes with gcc, so configuring glibc
4432: # with a fresh cross-compiler works.
1.16 millert 4433: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4434: # <limits.h> exists even on freestanding compilers.
1.9 millert 4435: # On the NeXT, cc -E runs the code through the compiler's parser,
4436: # not just through cpp. "Syntax error" is here to catch this case.
4437: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4438: #line $LINENO "configure"
4439: /* confdefs.h. */
4440: _ACEOF
4441: cat confdefs.h >>conftest.$ac_ext
4442: cat >>conftest.$ac_ext <<_ACEOF
4443: /* end confdefs.h. */
4444: #ifdef __STDC__
4445: # include <limits.h>
4446: #else
4447: # include <assert.h>
4448: #endif
1.9 millert 4449: Syntax error
4450: _ACEOF
1.16 millert 4451: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 4452: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4453: ac_status=$?
1.16 millert 4454: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 4455: rm -f conftest.er1
4456: cat conftest.err >&5
1.16 millert 4457: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4458: (exit $ac_status); } >/dev/null; then
4459: if test -s conftest.err; then
4460: ac_cpp_err=$ac_c_preproc_warn_flag
4461: else
4462: ac_cpp_err=
4463: fi
4464: else
4465: ac_cpp_err=yes
4466: fi
4467: if test -z "$ac_cpp_err"; then
1.1 millert 4468: :
4469: else
1.9 millert 4470: echo "$as_me: failed program was:" >&5
1.16 millert 4471: sed 's/^/| /' conftest.$ac_ext >&5
4472:
1.9 millert 4473: # Broken: fails on valid input.
4474: continue
1.1 millert 4475: fi
1.9 millert 4476: rm -f conftest.err conftest.$ac_ext
4477:
4478: # OK, works on sane cases. Now check whether non-existent headers
4479: # can be detected and how.
4480: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4481: #line $LINENO "configure"
4482: /* confdefs.h. */
4483: _ACEOF
4484: cat confdefs.h >>conftest.$ac_ext
4485: cat >>conftest.$ac_ext <<_ACEOF
4486: /* end confdefs.h. */
1.9 millert 4487: #include <ac_nonexistent.h>
4488: _ACEOF
1.16 millert 4489: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 4490: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4491: ac_status=$?
1.16 millert 4492: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 4493: rm -f conftest.er1
4494: cat conftest.err >&5
1.16 millert 4495: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4496: (exit $ac_status); } >/dev/null; then
4497: if test -s conftest.err; then
4498: ac_cpp_err=$ac_c_preproc_warn_flag
4499: else
4500: ac_cpp_err=
4501: fi
4502: else
4503: ac_cpp_err=yes
1.1 millert 4504: fi
1.9 millert 4505: if test -z "$ac_cpp_err"; then
4506: # Broken: success on invalid input.
4507: continue
1.1 millert 4508: else
1.9 millert 4509: echo "$as_me: failed program was:" >&5
1.16 millert 4510: sed 's/^/| /' conftest.$ac_ext >&5
4511:
1.9 millert 4512: # Passes both tests.
4513: ac_preproc_ok=:
4514: break
1.1 millert 4515: fi
1.9 millert 4516: rm -f conftest.err conftest.$ac_ext
1.1 millert 4517:
1.9 millert 4518: done
4519: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4520: rm -f conftest.err conftest.$ac_ext
4521: if $ac_preproc_ok; then
4522: :
1.1 millert 4523: else
1.16 millert 4524: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4525: See \`config.log' for more details." >&5
4526: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4527: See \`config.log' for more details." >&2;}
1.9 millert 4528: { (exit 1); exit 1; }; }
1.1 millert 4529: fi
4530:
1.9 millert 4531: ac_ext=c
4532: ac_cpp='$CPP $CPPFLAGS'
4533: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 millert 4536:
1.16 millert 4537:
1.1 millert 4538: if test "$with_devel" = "yes" -a -n "$GCC"; then
4539: CFLAGS="${CFLAGS} -Wall"
4540: fi
4541:
4542: # Extract the first word of "uname", so it can be a program name with args.
4543: set dummy uname; ac_word=$2
1.16 millert 4544: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 4545: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4546: if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
4547: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4548: else
4549: if test -n "$UNAMEPROG"; then
4550: ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
4551: else
1.16 millert 4552: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553: for as_dir in $PATH
4554: do
4555: IFS=$as_save_IFS
4556: test -z "$as_dir" && as_dir=.
4557: for ac_exec_ext in '' $ac_executable_extensions; do
4558: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559: ac_cv_prog_UNAMEPROG="uname"
4560: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561: break 2
4562: fi
4563: done
1.9 millert 4564: done
4565:
1.1 millert 4566: fi
4567: fi
1.9 millert 4568: UNAMEPROG=$ac_cv_prog_UNAMEPROG
1.1 millert 4569: if test -n "$UNAMEPROG"; then
1.16 millert 4570: echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
1.9 millert 4571: echo "${ECHO_T}$UNAMEPROG" >&6
1.1 millert 4572: else
1.16 millert 4573: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 4574: echo "${ECHO_T}no" >&6
1.1 millert 4575: fi
4576:
4577: # Extract the first word of "tr", so it can be a program name with args.
4578: set dummy tr; ac_word=$2
1.16 millert 4579: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 4580: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581: if test "${ac_cv_prog_TRPROG+set}" = set; then
4582: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4583: else
4584: if test -n "$TRPROG"; then
4585: ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
4586: else
1.16 millert 4587: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588: for as_dir in $PATH
4589: do
4590: IFS=$as_save_IFS
4591: test -z "$as_dir" && as_dir=.
4592: for ac_exec_ext in '' $ac_executable_extensions; do
4593: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4594: ac_cv_prog_TRPROG="tr"
4595: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596: break 2
4597: fi
4598: done
1.9 millert 4599: done
4600:
1.1 millert 4601: fi
4602: fi
1.9 millert 4603: TRPROG=$ac_cv_prog_TRPROG
1.1 millert 4604: if test -n "$TRPROG"; then
1.16 millert 4605: echo "$as_me:$LINENO: result: $TRPROG" >&5
1.9 millert 4606: echo "${ECHO_T}$TRPROG" >&6
1.1 millert 4607: else
1.16 millert 4608: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 4609: echo "${ECHO_T}no" >&6
1.1 millert 4610: fi
4611:
4612: # Extract the first word of "sed", so it can be a program name with args.
4613: set dummy sed; ac_word=$2
1.16 millert 4614: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 4615: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4616: if test "${ac_cv_prog_SEDPROG+set}" = set; then
4617: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4618: else
4619: if test -n "$SEDPROG"; then
4620: ac_cv_prog_SEDPROG="$SEDPROG" # Let the user override the test.
4621: else
1.16 millert 4622: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623: for as_dir in $PATH
4624: do
4625: IFS=$as_save_IFS
4626: test -z "$as_dir" && as_dir=.
4627: for ac_exec_ext in '' $ac_executable_extensions; do
4628: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4629: ac_cv_prog_SEDPROG="sed"
4630: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631: break 2
4632: fi
4633: done
1.9 millert 4634: done
4635:
1.1 millert 4636: fi
4637: fi
1.9 millert 4638: SEDPROG=$ac_cv_prog_SEDPROG
1.1 millert 4639: if test -n "$SEDPROG"; then
1.16 millert 4640: echo "$as_me:$LINENO: result: $SEDPROG" >&5
1.9 millert 4641: echo "${ECHO_T}$SEDPROG" >&6
1.1 millert 4642: else
1.16 millert 4643: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 4644: echo "${ECHO_T}no" >&6
1.1 millert 4645: fi
4646:
4647: # Extract the first word of "nroff", so it can be a program name with args.
4648: set dummy nroff; ac_word=$2
1.16 millert 4649: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 4650: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4651: if test "${ac_cv_prog_NROFFPROG+set}" = set; then
4652: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4653: else
4654: if test -n "$NROFFPROG"; then
4655: ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
4656: else
1.16 millert 4657: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658: for as_dir in $PATH
4659: do
4660: IFS=$as_save_IFS
4661: test -z "$as_dir" && as_dir=.
4662: for ac_exec_ext in '' $ac_executable_extensions; do
4663: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664: ac_cv_prog_NROFFPROG="nroff"
4665: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666: break 2
4667: fi
4668: done
1.9 millert 4669: done
4670:
1.1 millert 4671: fi
4672: fi
1.9 millert 4673: NROFFPROG=$ac_cv_prog_NROFFPROG
1.1 millert 4674: if test -n "$NROFFPROG"; then
1.16 millert 4675: echo "$as_me:$LINENO: result: $NROFFPROG" >&5
1.9 millert 4676: echo "${ECHO_T}$NROFFPROG" >&6
1.1 millert 4677: else
1.16 millert 4678: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 4679: echo "${ECHO_T}no" >&6
1.1 millert 4680: fi
4681:
4682: if test -z "$NROFFPROG"; then
4683: MANTYPE="cat"
1.6 millert 4684: mansrcdir='$(srcdir)'
1.1 millert 4685: fi
4686:
4687: ac_aux_dir=
1.9 millert 4688: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1.1 millert 4689: if test -f $ac_dir/install-sh; then
4690: ac_aux_dir=$ac_dir
4691: ac_install_sh="$ac_aux_dir/install-sh -c"
4692: break
4693: elif test -f $ac_dir/install.sh; then
4694: ac_aux_dir=$ac_dir
4695: ac_install_sh="$ac_aux_dir/install.sh -c"
4696: break
1.9 millert 4697: elif test -f $ac_dir/shtool; then
4698: ac_aux_dir=$ac_dir
4699: ac_install_sh="$ac_aux_dir/shtool install -c"
4700: break
1.1 millert 4701: fi
4702: done
4703: if test -z "$ac_aux_dir"; then
1.16 millert 4704: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1.9 millert 4705: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
4706: { (exit 1); exit 1; }; }
4707: fi
4708: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
4709: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
4710: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 millert 4711:
4712: # Make sure we can run config.sub.
1.9 millert 4713: $ac_config_sub sun4 >/dev/null 2>&1 ||
1.16 millert 4714: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1.9 millert 4715: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4716: { (exit 1); exit 1; }; }
4717:
1.16 millert 4718: echo "$as_me:$LINENO: checking build system type" >&5
1.9 millert 4719: echo $ECHO_N "checking build system type... $ECHO_C" >&6
4720: if test "${ac_cv_build+set}" = set; then
4721: echo $ECHO_N "(cached) $ECHO_C" >&6
4722: else
4723: ac_cv_build_alias=$build_alias
4724: test -z "$ac_cv_build_alias" &&
4725: ac_cv_build_alias=`$ac_config_guess`
4726: test -z "$ac_cv_build_alias" &&
1.16 millert 4727: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1.9 millert 4728: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4729: { (exit 1); exit 1; }; }
4730: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1.16 millert 4731: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4732: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1.9 millert 4733: { (exit 1); exit 1; }; }
4734:
4735: fi
1.16 millert 4736: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1.9 millert 4737: echo "${ECHO_T}$ac_cv_build" >&6
4738: build=$ac_cv_build
4739: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4740: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4741: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4742:
1.16 millert 4743:
4744: echo "$as_me:$LINENO: checking host system type" >&5
1.9 millert 4745: echo $ECHO_N "checking host system type... $ECHO_C" >&6
4746: if test "${ac_cv_host+set}" = set; then
4747: echo $ECHO_N "(cached) $ECHO_C" >&6
4748: else
4749: ac_cv_host_alias=$host_alias
4750: test -z "$ac_cv_host_alias" &&
4751: ac_cv_host_alias=$ac_cv_build_alias
4752: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1.16 millert 4753: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1.9 millert 4754: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4755: { (exit 1); exit 1; }; }
4756:
4757: fi
1.16 millert 4758: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1.9 millert 4759: echo "${ECHO_T}$ac_cv_host" >&6
4760: host=$ac_cv_host
4761: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4762: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4763: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1 millert 4764:
1.16 millert 4765:
1.1 millert 4766: if test -n "$sudo_cv_prev_host"; then
4767: if test "$sudo_cv_prev_host" != "$host"; then
1.17 millert 4768: { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
4769: echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
4770: { (exit 1); exit 1; }; }
1.1 millert 4771: else
1.16 millert 4772: echo "$as_me:$LINENO: checking previous host type" >&5
1.9 millert 4773: echo $ECHO_N "checking previous host type... $ECHO_C" >&6
4774: if test "${sudo_cv_prev_host+set}" = set; then
4775: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4776: else
4777: sudo_cv_prev_host="$host"
4778: fi
4779:
1.17 millert 4780: echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
4781: echo "${ECHO_T}$sudo_cv_prev_host" >&6
1.1 millert 4782: fi
4783: else
4784: # this will produce no output since there is no cached value
1.9 millert 4785: if test "${sudo_cv_prev_host+set}" = set; then
4786: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4787: else
4788: sudo_cv_prev_host="$host"
4789: fi
4790:
4791: fi
4792:
4793: if test -n "$host_os"; then
4794: OS=`echo $host_os | sed 's/[0-9].*//'`
4795: OSREV=`echo $host_os | sed 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/'`
4796: else
4797: OS="unknown"
4798: OSREV=0
4799: fi
4800:
4801: case "$host" in
4802: *-*-sunos4*)
4803: # getcwd(3) opens a pipe to getpwd(1)!?!
4804: BROKEN_GETCWD=1
4805:
4806: # system headers lack prototypes but gcc helps...
4807: if test -n "$GCC"; then
4808: CPPFLAGS="${CPPFLAGS} -D__USE_FIXED_PROTOTYPES__"
4809: fi
4810:
4811: # check for password adjunct functions (shadow passwords)
4812: if test "$CHECKSHADOW" = "true"; then
4813:
1.16 millert 4814:
1.9 millert 4815: for ac_func in getpwanam issecure
1.1 millert 4816: do
1.9 millert 4817: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 4818: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 4819: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4820: if eval "test \"\${$as_ac_var+set}\" = set"; then
4821: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4822: else
1.9 millert 4823: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4824: #line $LINENO "configure"
4825: /* confdefs.h. */
4826: _ACEOF
4827: cat confdefs.h >>conftest.$ac_ext
4828: cat >>conftest.$ac_ext <<_ACEOF
4829: /* end confdefs.h. */
1.1 millert 4830: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 4831: which can conflict with char $ac_func (); below.
4832: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4833: <limits.h> exists even on freestanding compilers. */
4834: #ifdef __STDC__
4835: # include <limits.h>
4836: #else
4837: # include <assert.h>
4838: #endif
1.1 millert 4839: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 4840: #ifdef __cplusplus
4841: extern "C"
1.16 millert 4842: {
1.9 millert 4843: #endif
1.1 millert 4844: /* We use char because int might match the return type of a gcc2
1.9 millert 4845: builtin and then its argument prototype would still apply. */
4846: char $ac_func ();
1.1 millert 4847: /* The GNU C library defines this for functions which it implements
4848: to always fail with ENOSYS. Some functions are actually named
4849: something starting with __ and the normal name is an alias. */
4850: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4851: choke me
4852: #else
1.16 millert 4853: char (*f) () = $ac_func;
4854: #endif
4855: #ifdef __cplusplus
4856: }
1.1 millert 4857: #endif
4858:
1.16 millert 4859: int
4860: main ()
4861: {
4862: return f != $ac_func;
1.9 millert 4863: ;
4864: return 0;
4865: }
4866: _ACEOF
4867: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 4868: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 4869: (eval $ac_link) 2>&5
4870: ac_status=$?
1.16 millert 4871: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4872: (exit $ac_status); } &&
4873: { ac_try='test -s conftest$ac_exeext'
1.16 millert 4874: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 4875: (eval $ac_try) 2>&5
4876: ac_status=$?
1.16 millert 4877: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4878: (exit $ac_status); }; }; then
4879: eval "$as_ac_var=yes"
4880: else
4881: echo "$as_me: failed program was:" >&5
1.16 millert 4882: sed 's/^/| /' conftest.$ac_ext >&5
4883:
1.9 millert 4884: eval "$as_ac_var=no"
4885: fi
4886: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4887: fi
1.16 millert 4888: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 4889: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4890: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 4891: cat >>confdefs.h <<_ACEOF
1.9 millert 4892: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 4893: _ACEOF
1.1 millert 4894:
4895: else
1.9 millert 4896: break
1.1 millert 4897: fi
4898: done
4899:
1.16 millert 4900:
4901:
4902:
4903:
1.1 millert 4904: CHECKSHADOW="false"
4905: fi
4906: ;;
4907: *-*-solaris2*)
4908: # To get the crypt(3) prototype (so we pass -Wall)
4909: CPPFLAGS="${CPPFLAGS} -D__EXTENSIONS__"
4910: # AFS support needs -lucb
4911: if test "$with_AFS" = "yes"; then
4912: AFS_LIBS="-lc -lucb"
4913: fi
1.9 millert 4914: test -n "$mansectsu" || mansectsu=1m
4915: test -n "$mansectform" || mansectform=4
1.17 millert 4916: test -n "$with_rpath" || with_rpath=yes
1.1 millert 4917: ;;
4918: *-*-aix*)
4919: # To get all prototypes (so we pass -Wall)
4920: CPPFLAGS="${CPPFLAGS} -D_XOPEN_EXTENDED_SOURCE"
1.9 millert 4921: cat >>confdefs.h <<\EOF
1.1 millert 4922: #define _ALL_SOURCE 1
4923: EOF
4924:
4925: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
1.17 millert 4926: if test X"$with_blibpath" != X"no"; then
4927: echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
4928: echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6
4929: O_LDFLAGS="$LDFLAGS"
4930: LDFLAGS="$LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
4931: cat >conftest.$ac_ext <<_ACEOF
4932: #line $LINENO "configure"
4933: /* confdefs.h. */
4934: _ACEOF
4935: cat confdefs.h >>conftest.$ac_ext
4936: cat >>conftest.$ac_ext <<_ACEOF
4937: /* end confdefs.h. */
4938:
4939: int
4940: main ()
4941: {
4942:
4943: ;
4944: return 0;
4945: }
4946: _ACEOF
4947: rm -f conftest.$ac_objext conftest$ac_exeext
4948: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4949: (eval $ac_link) 2>&5
4950: ac_status=$?
4951: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952: (exit $ac_status); } &&
4953: { ac_try='test -s conftest$ac_exeext'
4954: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955: (eval $ac_try) 2>&5
4956: ac_status=$?
4957: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958: (exit $ac_status); }; }; then
4959:
4960: if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
4961: blibpath="$with_blibpath"
4962: elif test -n "$GCC"; then
4963: blibpath="/usr/lib:/lib:/usr/local/lib"
4964: else
4965: blibpath="/usr/lib:/lib"
4966: fi
4967: echo "$as_me:$LINENO: result: yes" >&5
4968: echo "${ECHO_T}yes" >&6
4969:
4970: else
4971: echo "$as_me: failed program was:" >&5
4972: sed 's/^/| /' conftest.$ac_ext >&5
4973:
4974: echo "$as_me:$LINENO: result: no" >&5
4975: echo "${ECHO_T}no" >&6
4976: fi
4977: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4978: fi
4979: LDFLAGS="$O_LDFLAGS"
1.1 millert 4980: ;;
4981: *-*-hiuxmpp*)
4982: if test "$CHECKSHADOW" = "true"; then
1.16 millert 4983: echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
1.9 millert 4984: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
4985: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
4986: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4987: else
1.9 millert 4988: ac_check_lib_save_LIBS=$LIBS
1.1 millert 4989: LIBS="-lsec $LIBS"
1.9 millert 4990: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4991: #line $LINENO "configure"
4992: /* confdefs.h. */
4993: _ACEOF
4994: cat confdefs.h >>conftest.$ac_ext
4995: cat >>conftest.$ac_ext <<_ACEOF
4996: /* end confdefs.h. */
1.9 millert 4997:
4998: /* Override any gcc2 internal prototype to avoid an error. */
4999: #ifdef __cplusplus
5000: extern "C"
5001: #endif
1.1 millert 5002: /* We use char because int might match the return type of a gcc2
1.9 millert 5003: builtin and then its argument prototype would still apply. */
5004: char getprpwnam ();
5005: int
5006: main ()
5007: {
5008: getprpwnam ();
5009: ;
5010: return 0;
5011: }
5012: _ACEOF
5013: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 5014: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 5015: (eval $ac_link) 2>&5
5016: ac_status=$?
1.16 millert 5017: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5018: (exit $ac_status); } &&
5019: { ac_try='test -s conftest$ac_exeext'
1.16 millert 5020: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 5021: (eval $ac_try) 2>&5
5022: ac_status=$?
1.16 millert 5023: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5024: (exit $ac_status); }; }; then
5025: ac_cv_lib_sec_getprpwnam=yes
5026: else
5027: echo "$as_me: failed program was:" >&5
1.16 millert 5028: sed 's/^/| /' conftest.$ac_ext >&5
5029:
1.9 millert 5030: ac_cv_lib_sec_getprpwnam=no
5031: fi
5032: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5033: LIBS=$ac_check_lib_save_LIBS
5034: fi
1.16 millert 5035: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
1.9 millert 5036: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
5037: if test $ac_cv_lib_sec_getprpwnam = yes; then
1.16 millert 5038: cat >>confdefs.h <<\_ACEOF
1.1 millert 5039: #define HAVE_GETPRPWNAM 1
1.16 millert 5040: _ACEOF
1.1 millert 5041: SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
5042: else
1.16 millert 5043: echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
1.9 millert 5044: echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
5045: if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
5046: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5047: else
1.9 millert 5048: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5049: LIBS="-lsecurity $LIBS"
1.9 millert 5050: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 5051: #line $LINENO "configure"
5052: /* confdefs.h. */
5053: _ACEOF
5054: cat confdefs.h >>conftest.$ac_ext
5055: cat >>conftest.$ac_ext <<_ACEOF
5056: /* end confdefs.h. */
1.9 millert 5057:
1.1 millert 5058: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5059: #ifdef __cplusplus
5060: extern "C"
5061: #endif
1.1 millert 5062: /* We use char because int might match the return type of a gcc2
1.9 millert 5063: builtin and then its argument prototype would still apply. */
5064: char getprpwnam ();
5065: int
5066: main ()
5067: {
5068: getprpwnam ();
5069: ;
5070: return 0;
5071: }
5072: _ACEOF
5073: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 5074: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 5075: (eval $ac_link) 2>&5
5076: ac_status=$?
1.16 millert 5077: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5078: (exit $ac_status); } &&
5079: { ac_try='test -s conftest$ac_exeext'
1.16 millert 5080: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 5081: (eval $ac_try) 2>&5
5082: ac_status=$?
1.16 millert 5083: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5084: (exit $ac_status); }; }; then
5085: ac_cv_lib_security_getprpwnam=yes
5086: else
5087: echo "$as_me: failed program was:" >&5
1.16 millert 5088: sed 's/^/| /' conftest.$ac_ext >&5
5089:
1.9 millert 5090: ac_cv_lib_security_getprpwnam=no
5091: fi
5092: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5093: LIBS=$ac_check_lib_save_LIBS
5094: fi
1.16 millert 5095: echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
1.9 millert 5096: echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
5097: if test $ac_cv_lib_security_getprpwnam = yes; then
1.16 millert 5098: cat >>confdefs.h <<\_ACEOF
1.1 millert 5099: #define HAVE_GETPRPWNAM 1
1.16 millert 5100: _ACEOF
1.1 millert 5101: SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"; SECUREWARE=1
5102: fi
5103:
5104: fi
5105:
5106: CHECKSHADOW="false"
5107: fi
1.9 millert 5108: test -n "$mansectsu" || mansectsu=1m
5109: test -n "$mansectform" || mansectform=4
1.1 millert 5110: ;;
5111: *-*-hpux1[0-9]*)
5112: if test "$CHECKSHADOW" = "true"; then
1.16 millert 5113: echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
1.9 millert 5114: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
5115: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
5116: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5117: else
1.9 millert 5118: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5119: LIBS="-lsec $LIBS"
1.9 millert 5120: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 5121: #line $LINENO "configure"
5122: /* confdefs.h. */
5123: _ACEOF
5124: cat confdefs.h >>conftest.$ac_ext
5125: cat >>conftest.$ac_ext <<_ACEOF
5126: /* end confdefs.h. */
1.9 millert 5127:
1.1 millert 5128: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5129: #ifdef __cplusplus
5130: extern "C"
5131: #endif
1.1 millert 5132: /* We use char because int might match the return type of a gcc2
1.9 millert 5133: builtin and then its argument prototype would still apply. */
5134: char getprpwnam ();
5135: int
5136: main ()
5137: {
5138: getprpwnam ();
5139: ;
5140: return 0;
5141: }
5142: _ACEOF
5143: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 5144: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 5145: (eval $ac_link) 2>&5
5146: ac_status=$?
1.16 millert 5147: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5148: (exit $ac_status); } &&
5149: { ac_try='test -s conftest$ac_exeext'
1.16 millert 5150: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 5151: (eval $ac_try) 2>&5
5152: ac_status=$?
1.16 millert 5153: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5154: (exit $ac_status); }; }; then
5155: ac_cv_lib_sec_getprpwnam=yes
5156: else
5157: echo "$as_me: failed program was:" >&5
1.16 millert 5158: sed 's/^/| /' conftest.$ac_ext >&5
5159:
1.9 millert 5160: ac_cv_lib_sec_getprpwnam=no
5161: fi
5162: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5163: LIBS=$ac_check_lib_save_LIBS
5164: fi
1.16 millert 5165: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
1.9 millert 5166: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
5167: if test $ac_cv_lib_sec_getprpwnam = yes; then
1.16 millert 5168: cat >>confdefs.h <<\_ACEOF
1.1 millert 5169: #define HAVE_GETPRPWNAM 1
1.16 millert 5170: _ACEOF
5171: echo "$as_me:$LINENO: checking for iscomsec in -lsec" >&5
1.9 millert 5172: echo $ECHO_N "checking for iscomsec in -lsec... $ECHO_C" >&6
5173: if test "${ac_cv_lib_sec_iscomsec+set}" = set; then
5174: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5175: else
1.9 millert 5176: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5177: LIBS="-lsec $LIBS"
1.9 millert 5178: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 5179: #line $LINENO "configure"
5180: /* confdefs.h. */
5181: _ACEOF
5182: cat confdefs.h >>conftest.$ac_ext
5183: cat >>conftest.$ac_ext <<_ACEOF
5184: /* end confdefs.h. */
1.9 millert 5185:
1.1 millert 5186: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5187: #ifdef __cplusplus
5188: extern "C"
5189: #endif
1.1 millert 5190: /* We use char because int might match the return type of a gcc2
1.9 millert 5191: builtin and then its argument prototype would still apply. */
5192: char iscomsec ();
5193: int
5194: main ()
5195: {
5196: iscomsec ();
5197: ;
5198: return 0;
5199: }
5200: _ACEOF
5201: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 5202: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 5203: (eval $ac_link) 2>&5
5204: ac_status=$?
1.16 millert 5205: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5206: (exit $ac_status); } &&
5207: { ac_try='test -s conftest$ac_exeext'
1.16 millert 5208: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 5209: (eval $ac_try) 2>&5
5210: ac_status=$?
1.16 millert 5211: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5212: (exit $ac_status); }; }; then
5213: ac_cv_lib_sec_iscomsec=yes
5214: else
5215: echo "$as_me: failed program was:" >&5
1.16 millert 5216: sed 's/^/| /' conftest.$ac_ext >&5
5217:
1.9 millert 5218: ac_cv_lib_sec_iscomsec=no
5219: fi
5220: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5221: LIBS=$ac_check_lib_save_LIBS
5222: fi
1.16 millert 5223: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_iscomsec" >&5
1.9 millert 5224: echo "${ECHO_T}$ac_cv_lib_sec_iscomsec" >&6
5225: if test $ac_cv_lib_sec_iscomsec = yes; then
1.1 millert 5226:
1.16 millert 5227: cat >>confdefs.h <<\_ACEOF
1.1 millert 5228: #define HAVE_ISCOMSEC 1
1.16 millert 5229: _ACEOF
1.1 millert 5230:
5231: fi
5232: SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
5233: fi
5234:
5235: CHECKSHADOW="false"
5236: fi
5237:
5238: # AFS support needs -lBSD
5239: if test "$with_AFS" = "yes"; then
5240: AFS_LIBS="-lc -lBSD"
5241: fi
1.9 millert 5242: test -n "$mansectsu" || mansectsu=1m
5243: test -n "$mansectform" || mansectform=4
1.1 millert 5244: ;;
5245: *-*-hpux9*)
1.4 millert 5246:
1.16 millert 5247: cat >>confdefs.h <<\_ACEOF
1.1 millert 5248: #define BROKEN_SYSLOG 1
1.16 millert 5249: _ACEOF
5250:
1.1 millert 5251:
1.9 millert 5252: if test "$CHECKSHADOW" = "true"; then
1.1 millert 5253:
1.9 millert 5254: for ac_func in getspwuid
1.1 millert 5255: do
1.9 millert 5256: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 5257: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 5258: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5259: if eval "test \"\${$as_ac_var+set}\" = set"; then
5260: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5261: else
1.9 millert 5262: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 5263: #line $LINENO "configure"
5264: /* confdefs.h. */
5265: _ACEOF
5266: cat confdefs.h >>conftest.$ac_ext
5267: cat >>conftest.$ac_ext <<_ACEOF
5268: /* end confdefs.h. */
1.1 millert 5269: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 5270: which can conflict with char $ac_func (); below.
5271: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5272: <limits.h> exists even on freestanding compilers. */
5273: #ifdef __STDC__
5274: # include <limits.h>
5275: #else
5276: # include <assert.h>
5277: #endif
1.1 millert 5278: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5279: #ifdef __cplusplus
5280: extern "C"
1.16 millert 5281: {
1.9 millert 5282: #endif
1.1 millert 5283: /* We use char because int might match the return type of a gcc2
1.9 millert 5284: builtin and then its argument prototype would still apply. */
5285: char $ac_func ();
1.1 millert 5286: /* The GNU C library defines this for functions which it implements
5287: to always fail with ENOSYS. Some functions are actually named
5288: something starting with __ and the normal name is an alias. */
5289: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5290: choke me
5291: #else
1.16 millert 5292: char (*f) () = $ac_func;
5293: #endif
5294: #ifdef __cplusplus
5295: }
1.1 millert 5296: #endif
5297:
1.16 millert 5298: int
5299: main ()
5300: {
5301: return f != $ac_func;
1.9 millert 5302: ;
5303: return 0;
5304: }
5305: _ACEOF
5306: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 5307: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 5308: (eval $ac_link) 2>&5
5309: ac_status=$?
1.16 millert 5310: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5311: (exit $ac_status); } &&
5312: { ac_try='test -s conftest$ac_exeext'
1.16 millert 5313: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 5314: (eval $ac_try) 2>&5
5315: ac_status=$?
1.16 millert 5316: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5317: (exit $ac_status); }; }; then
5318: eval "$as_ac_var=yes"
5319: else
5320: echo "$as_me: failed program was:" >&5
1.16 millert 5321: sed 's/^/| /' conftest.$ac_ext >&5
5322:
1.9 millert 5323: eval "$as_ac_var=no"
5324: fi
5325: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5326: fi
1.16 millert 5327: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 5328: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5329: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 5330: cat >>confdefs.h <<_ACEOF
1.9 millert 5331: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 5332: _ACEOF
1.1 millert 5333:
5334: fi
5335: done
5336:
1.16 millert 5337:
5338:
1.1 millert 5339: CHECKSHADOW="false"
5340: fi
5341:
5342: # DCE support (requires ANSI C compiler)
5343: if test "$with_DCE" = "yes"; then
5344: # order of libs in 9.X is important. -lc_r must be last
5345: SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
5346: LIBS="${LIBS} -ldce -lM -lc_r"
1.4 millert 5347: CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
1.1 millert 5348: fi
5349:
5350: # AFS support needs -lBSD
5351: if test "$with_AFS" = "yes"; then
5352: AFS_LIBS="-lc -lBSD"
5353: fi
1.9 millert 5354: test -n "$mansectsu" || mansectsu=1m
5355: test -n "$mansectform" || mansectform=4
1.1 millert 5356: ;;
5357: *-*-hpux*)
1.16 millert 5358: cat >>confdefs.h <<\_ACEOF
1.1 millert 5359: #define BROKEN_SYSLOG 1
1.16 millert 5360: _ACEOF
5361:
1.1 millert 5362:
5363: # Not sure if setuid binaries are safe in < 9.x
5364: if test -n "$GCC"; then
5365: SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
5366: else
5367: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
5368: fi
5369:
5370: # AFS support needs -lBSD
5371: if test "$with_AFS" = "yes"; then
5372: AFS_LIBS="-lc -lBSD"
5373: fi
1.9 millert 5374: test -n "$mansectsu" || mansectsu=1m
5375: test -n "$mansectform" || mansectform=4
1.1 millert 5376: ;;
5377: *-dec-osf*)
5378: # ignore envariables wrt dynamic lib path
5379: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
5380:
1.16 millert 5381: echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
1.9 millert 5382: echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6
1.1 millert 5383: # Check whether --enable-sia or --disable-sia was given.
5384: if test "${enable_sia+set}" = set; then
5385: enableval="$enable_sia"
5386: case "$enableval" in
1.16 millert 5387: yes) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 5388: echo "${ECHO_T}no" >&6
1.1 millert 5389: ;;
1.16 millert 5390: no) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 5391: echo "${ECHO_T}yes" >&6
1.1 millert 5392: CHECKSIA=false
5393: ;;
1.16 millert 5394: *) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 5395: echo "${ECHO_T}no" >&6
1.17 millert 5396: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
5397: echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
1.1 millert 5398: ;;
5399: esac
1.9 millert 5400:
1.1 millert 5401: else
1.16 millert 5402: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 5403: echo "${ECHO_T}no" >&6
5404: fi;
1.1 millert 5405:
5406: # use SIA by default, if we have it, else SecureWare
5407: # unless overridden on the command line
5408: if test "$CHECKSIA" = "true"; then
1.16 millert 5409: echo "$as_me:$LINENO: checking for sia_ses_init" >&5
1.9 millert 5410: echo $ECHO_N "checking for sia_ses_init... $ECHO_C" >&6
5411: if test "${ac_cv_func_sia_ses_init+set}" = set; then
5412: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5413: else
1.9 millert 5414: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 5415: #line $LINENO "configure"
5416: /* confdefs.h. */
5417: _ACEOF
5418: cat confdefs.h >>conftest.$ac_ext
5419: cat >>conftest.$ac_ext <<_ACEOF
5420: /* end confdefs.h. */
1.1 millert 5421: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 5422: which can conflict with char sia_ses_init (); below.
5423: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5424: <limits.h> exists even on freestanding compilers. */
5425: #ifdef __STDC__
5426: # include <limits.h>
5427: #else
5428: # include <assert.h>
5429: #endif
1.1 millert 5430: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5431: #ifdef __cplusplus
5432: extern "C"
1.16 millert 5433: {
1.9 millert 5434: #endif
1.1 millert 5435: /* We use char because int might match the return type of a gcc2
1.9 millert 5436: builtin and then its argument prototype would still apply. */
5437: char sia_ses_init ();
1.1 millert 5438: /* The GNU C library defines this for functions which it implements
5439: to always fail with ENOSYS. Some functions are actually named
5440: something starting with __ and the normal name is an alias. */
5441: #if defined (__stub_sia_ses_init) || defined (__stub___sia_ses_init)
5442: choke me
5443: #else
1.16 millert 5444: char (*f) () = sia_ses_init;
5445: #endif
5446: #ifdef __cplusplus
5447: }
1.1 millert 5448: #endif
5449:
1.16 millert 5450: int
5451: main ()
5452: {
5453: return f != sia_ses_init;
1.9 millert 5454: ;
5455: return 0;
5456: }
5457: _ACEOF
5458: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 5459: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 5460: (eval $ac_link) 2>&5
5461: ac_status=$?
1.16 millert 5462: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5463: (exit $ac_status); } &&
5464: { ac_try='test -s conftest$ac_exeext'
1.16 millert 5465: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 5466: (eval $ac_try) 2>&5
5467: ac_status=$?
1.16 millert 5468: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5469: (exit $ac_status); }; }; then
5470: ac_cv_func_sia_ses_init=yes
5471: else
5472: echo "$as_me: failed program was:" >&5
1.16 millert 5473: sed 's/^/| /' conftest.$ac_ext >&5
5474:
1.9 millert 5475: ac_cv_func_sia_ses_init=no
5476: fi
5477: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5478: fi
1.16 millert 5479: echo "$as_me:$LINENO: result: $ac_cv_func_sia_ses_init" >&5
1.9 millert 5480: echo "${ECHO_T}$ac_cv_func_sia_ses_init" >&6
5481: if test $ac_cv_func_sia_ses_init = yes; then
1.1 millert 5482:
1.16 millert 5483: cat >>confdefs.h <<\_ACEOF
1.1 millert 5484: #define HAVE_SIA 1
1.16 millert 5485: _ACEOF
1.9 millert 5486:
1.1 millert 5487: 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
1.16 millert 5488: { { echo "$as_me:$LINENO: error: \"you cannot mix SIA and other authentication schemes. You can turn off SIA support via the --disable-sia option\"" >&5
1.9 millert 5489: echo "$as_me: error: \"you cannot mix SIA and other authentication schemes. You can turn off SIA support via the --disable-sia option\"" >&2;}
5490: { (exit 1); exit 1; }; }
1.1 millert 5491: fi; CHECKSHADOW=false
5492: fi
5493:
5494: fi
5495: if test "$CHECKSHADOW" = "true"; then
1.16 millert 5496: echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
1.9 millert 5497: echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
5498: if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
5499: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5500: else
1.9 millert 5501: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5502: LIBS="-lsecurity $LIBS"
1.9 millert 5503: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 5504: #line $LINENO "configure"
5505: /* confdefs.h. */
5506: _ACEOF
5507: cat confdefs.h >>conftest.$ac_ext
5508: cat >>conftest.$ac_ext <<_ACEOF
5509: /* end confdefs.h. */
1.9 millert 5510:
1.1 millert 5511: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5512: #ifdef __cplusplus
5513: extern "C"
5514: #endif
1.1 millert 5515: /* We use char because int might match the return type of a gcc2
1.9 millert 5516: builtin and then its argument prototype would still apply. */
5517: char getprpwnam ();
5518: int
5519: main ()
5520: {
5521: getprpwnam ();
5522: ;
5523: return 0;
5524: }
5525: _ACEOF
5526: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 5527: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 5528: (eval $ac_link) 2>&5
5529: ac_status=$?
1.16 millert 5530: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5531: (exit $ac_status); } &&
5532: { ac_try='test -s conftest$ac_exeext'
1.16 millert 5533: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 5534: (eval $ac_try) 2>&5
5535: ac_status=$?
1.16 millert 5536: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5537: (exit $ac_status); }; }; then
5538: ac_cv_lib_security_getprpwnam=yes
5539: else
5540: echo "$as_me: failed program was:" >&5
1.16 millert 5541: sed 's/^/| /' conftest.$ac_ext >&5
5542:
1.9 millert 5543: ac_cv_lib_security_getprpwnam=no
5544: fi
5545: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5546: LIBS=$ac_check_lib_save_LIBS
5547: fi
1.16 millert 5548: echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
1.9 millert 5549: echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
5550: if test $ac_cv_lib_security_getprpwnam = yes; then
1.1 millert 5551: SECUREWARE=1
5552: fi
5553:
5554: CHECKSHADOW="false"
5555: fi
5556:
5557: if test -n "$SECUREWARE"; then
1.9 millert 5558:
1.16 millert 5559: cat >>confdefs.h <<\_ACEOF
1.1 millert 5560: #define HAVE_GETPRPWNAM 1
1.16 millert 5561: _ACEOF
1.1 millert 5562:
5563: # -ldb includes bogus versions of snprintf/vsnprintf
1.9 millert 5564:
5565: for ac_func in snprintf
5566: do
5567: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 5568: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 5569: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5570: if eval "test \"\${$as_ac_var+set}\" = set"; then
5571: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5572: else
1.9 millert 5573: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 5574: #line $LINENO "configure"
5575: /* confdefs.h. */
5576: _ACEOF
5577: cat confdefs.h >>conftest.$ac_ext
5578: cat >>conftest.$ac_ext <<_ACEOF
5579: /* end confdefs.h. */
1.1 millert 5580: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 5581: which can conflict with char $ac_func (); below.
5582: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5583: <limits.h> exists even on freestanding compilers. */
5584: #ifdef __STDC__
5585: # include <limits.h>
5586: #else
5587: # include <assert.h>
5588: #endif
1.1 millert 5589: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5590: #ifdef __cplusplus
5591: extern "C"
1.16 millert 5592: {
1.9 millert 5593: #endif
1.1 millert 5594: /* We use char because int might match the return type of a gcc2
1.9 millert 5595: builtin and then its argument prototype would still apply. */
5596: char $ac_func ();
1.1 millert 5597: /* The GNU C library defines this for functions which it implements
5598: to always fail with ENOSYS. Some functions are actually named
5599: something starting with __ and the normal name is an alias. */
1.9 millert 5600: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 5601: choke me
5602: #else
1.16 millert 5603: char (*f) () = $ac_func;
5604: #endif
5605: #ifdef __cplusplus
5606: }
1.1 millert 5607: #endif
5608:
1.16 millert 5609: int
5610: main ()
5611: {
5612: return f != $ac_func;
1.9 millert 5613: ;
5614: return 0;
5615: }
5616: _ACEOF
5617: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 5618: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 5619: (eval $ac_link) 2>&5
5620: ac_status=$?
1.16 millert 5621: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5622: (exit $ac_status); } &&
5623: { ac_try='test -s conftest$ac_exeext'
1.16 millert 5624: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 5625: (eval $ac_try) 2>&5
5626: ac_status=$?
1.16 millert 5627: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5628: (exit $ac_status); }; }; then
5629: eval "$as_ac_var=yes"
5630: else
5631: echo "$as_me: failed program was:" >&5
1.16 millert 5632: sed 's/^/| /' conftest.$ac_ext >&5
5633:
1.9 millert 5634: eval "$as_ac_var=no"
5635: fi
5636: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5637: fi
1.16 millert 5638: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 5639: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5640: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 5641: cat >>confdefs.h <<_ACEOF
1.9 millert 5642: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 5643: _ACEOF
1.1 millert 5644:
5645: else
1.9 millert 5646: NEED_SNPRINTF=1
1.1 millert 5647: fi
1.9 millert 5648: done
1.1 millert 5649:
1.16 millert 5650:
1.9 millert 5651: for ac_func in vsnprintf
5652: do
5653: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 5654: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 5655: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5656: if eval "test \"\${$as_ac_var+set}\" = set"; then
5657: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5658: else
1.9 millert 5659: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 5660: #line $LINENO "configure"
5661: /* confdefs.h. */
5662: _ACEOF
5663: cat confdefs.h >>conftest.$ac_ext
5664: cat >>conftest.$ac_ext <<_ACEOF
5665: /* end confdefs.h. */
1.1 millert 5666: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 5667: which can conflict with char $ac_func (); below.
5668: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5669: <limits.h> exists even on freestanding compilers. */
5670: #ifdef __STDC__
5671: # include <limits.h>
5672: #else
5673: # include <assert.h>
5674: #endif
1.1 millert 5675: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5676: #ifdef __cplusplus
5677: extern "C"
1.16 millert 5678: {
1.9 millert 5679: #endif
1.1 millert 5680: /* We use char because int might match the return type of a gcc2
1.9 millert 5681: builtin and then its argument prototype would still apply. */
5682: char $ac_func ();
1.1 millert 5683: /* The GNU C library defines this for functions which it implements
5684: to always fail with ENOSYS. Some functions are actually named
5685: something starting with __ and the normal name is an alias. */
1.9 millert 5686: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 5687: choke me
5688: #else
1.16 millert 5689: char (*f) () = $ac_func;
5690: #endif
5691: #ifdef __cplusplus
5692: }
1.1 millert 5693: #endif
5694:
1.16 millert 5695: int
5696: main ()
5697: {
5698: return f != $ac_func;
1.9 millert 5699: ;
5700: return 0;
5701: }
5702: _ACEOF
5703: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 5704: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 5705: (eval $ac_link) 2>&5
5706: ac_status=$?
1.16 millert 5707: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5708: (exit $ac_status); } &&
5709: { ac_try='test -s conftest$ac_exeext'
1.16 millert 5710: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 5711: (eval $ac_try) 2>&5
5712: ac_status=$?
1.16 millert 5713: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5714: (exit $ac_status); }; }; then
5715: eval "$as_ac_var=yes"
5716: else
5717: echo "$as_me: failed program was:" >&5
1.16 millert 5718: sed 's/^/| /' conftest.$ac_ext >&5
5719:
1.9 millert 5720: eval "$as_ac_var=no"
5721: fi
5722: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5723: fi
1.16 millert 5724: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 5725: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5726: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 5727: cat >>confdefs.h <<_ACEOF
1.9 millert 5728: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 5729: _ACEOF
1.1 millert 5730:
5731: else
1.9 millert 5732: NEED_SNPRINTF=1
1.1 millert 5733: fi
1.9 millert 5734: done
1.1 millert 5735:
5736: # 4.x and higher need -ldb too...
1.16 millert 5737: echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
1.9 millert 5738: echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6
5739: if test "${ac_cv_lib_db_dbopen+set}" = set; then
5740: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5741: else
1.9 millert 5742: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5743: LIBS="-ldb $LIBS"
1.9 millert 5744: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 5745: #line $LINENO "configure"
5746: /* confdefs.h. */
5747: _ACEOF
5748: cat confdefs.h >>conftest.$ac_ext
5749: cat >>conftest.$ac_ext <<_ACEOF
5750: /* end confdefs.h. */
1.9 millert 5751:
1.1 millert 5752: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5753: #ifdef __cplusplus
5754: extern "C"
5755: #endif
1.1 millert 5756: /* We use char because int might match the return type of a gcc2
1.9 millert 5757: builtin and then its argument prototype would still apply. */
5758: char dbopen ();
5759: int
5760: main ()
5761: {
5762: dbopen ();
5763: ;
5764: return 0;
5765: }
5766: _ACEOF
5767: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 5768: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 5769: (eval $ac_link) 2>&5
5770: ac_status=$?
1.16 millert 5771: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5772: (exit $ac_status); } &&
5773: { ac_try='test -s conftest$ac_exeext'
1.16 millert 5774: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 5775: (eval $ac_try) 2>&5
5776: ac_status=$?
1.16 millert 5777: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5778: (exit $ac_status); }; }; then
5779: ac_cv_lib_db_dbopen=yes
5780: else
5781: echo "$as_me: failed program was:" >&5
1.16 millert 5782: sed 's/^/| /' conftest.$ac_ext >&5
5783:
1.9 millert 5784: ac_cv_lib_db_dbopen=no
5785: fi
5786: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5787: LIBS=$ac_check_lib_save_LIBS
5788: fi
1.16 millert 5789: echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
1.9 millert 5790: echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6
5791: if test $ac_cv_lib_db_dbopen = yes; then
5792: SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
1.1 millert 5793: else
5794: SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
5795: fi
5796:
1.16 millert 5797:
1.9 millert 5798: for ac_func in dispcrypt
1.1 millert 5799: do
1.9 millert 5800: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 5801: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 5802: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5803: if eval "test \"\${$as_ac_var+set}\" = set"; then
5804: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5805: else
1.9 millert 5806: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 5807: #line $LINENO "configure"
5808: /* confdefs.h. */
5809: _ACEOF
5810: cat confdefs.h >>conftest.$ac_ext
5811: cat >>conftest.$ac_ext <<_ACEOF
5812: /* end confdefs.h. */
1.1 millert 5813: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 5814: which can conflict with char $ac_func (); below.
5815: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5816: <limits.h> exists even on freestanding compilers. */
5817: #ifdef __STDC__
5818: # include <limits.h>
5819: #else
5820: # include <assert.h>
5821: #endif
1.1 millert 5822: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5823: #ifdef __cplusplus
5824: extern "C"
1.16 millert 5825: {
1.9 millert 5826: #endif
1.1 millert 5827: /* We use char because int might match the return type of a gcc2
1.9 millert 5828: builtin and then its argument prototype would still apply. */
5829: char $ac_func ();
1.1 millert 5830: /* The GNU C library defines this for functions which it implements
5831: to always fail with ENOSYS. Some functions are actually named
5832: something starting with __ and the normal name is an alias. */
5833: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5834: choke me
5835: #else
1.16 millert 5836: char (*f) () = $ac_func;
5837: #endif
5838: #ifdef __cplusplus
5839: }
1.1 millert 5840: #endif
5841:
1.16 millert 5842: int
5843: main ()
5844: {
5845: return f != $ac_func;
1.9 millert 5846: ;
5847: return 0;
5848: }
5849: _ACEOF
5850: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 5851: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 5852: (eval $ac_link) 2>&5
5853: ac_status=$?
1.16 millert 5854: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5855: (exit $ac_status); } &&
5856: { ac_try='test -s conftest$ac_exeext'
1.16 millert 5857: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 5858: (eval $ac_try) 2>&5
5859: ac_status=$?
1.16 millert 5860: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5861: (exit $ac_status); }; }; then
5862: eval "$as_ac_var=yes"
5863: else
5864: echo "$as_me: failed program was:" >&5
1.16 millert 5865: sed 's/^/| /' conftest.$ac_ext >&5
5866:
1.9 millert 5867: eval "$as_ac_var=no"
5868: fi
5869: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5870: fi
1.16 millert 5871: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 5872: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5873: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 5874: cat >>confdefs.h <<_ACEOF
1.9 millert 5875: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 5876: _ACEOF
1.1 millert 5877:
5878: fi
5879: done
5880:
1.16 millert 5881: echo "$as_me:$LINENO: checking for broken /usr/include/prot.h" >&5
1.9 millert 5882: echo $ECHO_N "checking for broken /usr/include/prot.h... $ECHO_C" >&6
5883: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 5884: #line $LINENO "configure"
5885: /* confdefs.h. */
5886: _ACEOF
5887: cat confdefs.h >>conftest.$ac_ext
5888: cat >>conftest.$ac_ext <<_ACEOF
5889: /* end confdefs.h. */
1.1 millert 5890:
5891: #include <sys/types.h>
5892: #include <sys/security.h>
5893: #include <prot.h>
1.9 millert 5894:
5895: int
5896: main ()
5897: {
1.1 millert 5898: exit(0);
1.9 millert 5899: ;
5900: return 0;
5901: }
5902: _ACEOF
5903: rm -f conftest.$ac_objext
1.16 millert 5904: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 5905: (eval $ac_compile) 2>&5
5906: ac_status=$?
1.16 millert 5907: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5908: (exit $ac_status); } &&
5909: { ac_try='test -s conftest.$ac_objext'
1.16 millert 5910: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 5911: (eval $ac_try) 2>&5
5912: ac_status=$?
1.16 millert 5913: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5914: (exit $ac_status); }; }; then
1.16 millert 5915: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 5916: echo "${ECHO_T}no" >&6
5917: else
5918: echo "$as_me: failed program was:" >&5
1.16 millert 5919: sed 's/^/| /' conftest.$ac_ext >&5
5920:
5921: echo "$as_me:$LINENO: result: yes, fixing locally" >&5
1.9 millert 5922: echo "${ECHO_T}yes, fixing locally" >&6
1.1 millert 5923: sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
1.9 millert 5924:
1.1 millert 5925: fi
1.9 millert 5926: rm -f conftest.$ac_objext conftest.$ac_ext
5927: elif test "$CHECKSIA" = "true"; then
1.1 millert 5928: with_passwd=no
5929: AUTH_OBJS="sia.o"
5930: fi
1.9 millert 5931: test -n "$mansectsu" || mansectsu=8
5932: test -n "$mansectform" || mansectform=4
1.1 millert 5933: ;;
5934: *-*-irix*)
5935: CPPFLAGS="${CPPFLAGS} -D_BSD_TYPES"
5936: if test -z "$NROFFPROG"; then
1.16 millert 5937: MAN_POSTINSTALL=' /bin/rm -f $(mandirsu)/sudo.$(mansectsu).z $(mandirsu)/visudo.$(mansectsu).z $(mandirform)/sudoers.$(mansectform).z ; /usr/bin/pack $(mandirsu)/sudo.$(mansectsu) $(mandirsu)/visudo.$(mansectsu) $(mandirform)/sudoers.$(mansectform)'
1.1 millert 5938: if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
5939: if test -d /usr/share/catman/local; then
5940: mandir="/usr/share/catman/local"
5941: else
5942: mandir="/usr/catman/local"
5943: fi
5944: fi
5945: else
5946: if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
5947: if test -d "/usr/share/man/local"; then
5948: mandir="/usr/share/man/local"
5949: else
5950: mandir="/usr/man/local"
5951: fi
5952: fi
5953: fi
5954: # IRIX <= 4 needs -lsun
5955: if test "$OSREV" -le 4; then
1.16 millert 5956: echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
1.9 millert 5957: echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
5958: if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
5959: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5960: else
1.9 millert 5961: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5962: LIBS="-lsun $LIBS"
1.9 millert 5963: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 5964: #line $LINENO "configure"
5965: /* confdefs.h. */
5966: _ACEOF
5967: cat confdefs.h >>conftest.$ac_ext
5968: cat >>conftest.$ac_ext <<_ACEOF
5969: /* end confdefs.h. */
1.9 millert 5970:
1.1 millert 5971: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5972: #ifdef __cplusplus
5973: extern "C"
5974: #endif
1.1 millert 5975: /* We use char because int might match the return type of a gcc2
1.9 millert 5976: builtin and then its argument prototype would still apply. */
5977: char getpwnam ();
5978: int
5979: main ()
5980: {
5981: getpwnam ();
5982: ;
5983: return 0;
5984: }
5985: _ACEOF
5986: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 5987: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 5988: (eval $ac_link) 2>&5
5989: ac_status=$?
1.16 millert 5990: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5991: (exit $ac_status); } &&
5992: { ac_try='test -s conftest$ac_exeext'
1.16 millert 5993: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 5994: (eval $ac_try) 2>&5
5995: ac_status=$?
1.16 millert 5996: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 5997: (exit $ac_status); }; }; then
5998: ac_cv_lib_sun_getpwnam=yes
5999: else
6000: echo "$as_me: failed program was:" >&5
1.16 millert 6001: sed 's/^/| /' conftest.$ac_ext >&5
6002:
1.9 millert 6003: ac_cv_lib_sun_getpwnam=no
6004: fi
6005: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6006: LIBS=$ac_check_lib_save_LIBS
6007: fi
1.16 millert 6008: echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
1.9 millert 6009: echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
6010: if test $ac_cv_lib_sun_getpwnam = yes; then
1.1 millert 6011: LIBS="${LIBS} -lsun"
6012: fi
6013:
6014: fi
1.9 millert 6015: test -n "$mansectsu" || mansectsu=1m
6016: test -n "$mansectform" || mansectform=4
1.1 millert 6017: ;;
6018: *-*-linux*)
6019: # Some Linux versions need to link with -lshadow
6020: if test "$CHECKSHADOW" = "true"; then
1.9 millert 6021:
6022: for ac_func in getspnam
6023: do
6024: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 6025: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 6026: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6027: if eval "test \"\${$as_ac_var+set}\" = set"; then
6028: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6029: else
1.9 millert 6030: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 6031: #line $LINENO "configure"
6032: /* confdefs.h. */
6033: _ACEOF
6034: cat confdefs.h >>conftest.$ac_ext
6035: cat >>conftest.$ac_ext <<_ACEOF
6036: /* end confdefs.h. */
1.1 millert 6037: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 6038: which can conflict with char $ac_func (); below.
6039: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6040: <limits.h> exists even on freestanding compilers. */
6041: #ifdef __STDC__
6042: # include <limits.h>
6043: #else
6044: # include <assert.h>
6045: #endif
1.1 millert 6046: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 6047: #ifdef __cplusplus
6048: extern "C"
1.16 millert 6049: {
1.9 millert 6050: #endif
1.1 millert 6051: /* We use char because int might match the return type of a gcc2
1.9 millert 6052: builtin and then its argument prototype would still apply. */
6053: char $ac_func ();
1.1 millert 6054: /* The GNU C library defines this for functions which it implements
6055: to always fail with ENOSYS. Some functions are actually named
6056: something starting with __ and the normal name is an alias. */
1.9 millert 6057: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 6058: choke me
6059: #else
1.16 millert 6060: char (*f) () = $ac_func;
6061: #endif
6062: #ifdef __cplusplus
6063: }
1.1 millert 6064: #endif
6065:
1.16 millert 6066: int
6067: main ()
6068: {
6069: return f != $ac_func;
1.9 millert 6070: ;
6071: return 0;
6072: }
6073: _ACEOF
6074: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 6075: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 6076: (eval $ac_link) 2>&5
6077: ac_status=$?
1.16 millert 6078: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6079: (exit $ac_status); } &&
6080: { ac_try='test -s conftest$ac_exeext'
1.16 millert 6081: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 6082: (eval $ac_try) 2>&5
6083: ac_status=$?
1.16 millert 6084: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6085: (exit $ac_status); }; }; then
6086: eval "$as_ac_var=yes"
6087: else
6088: echo "$as_me: failed program was:" >&5
1.16 millert 6089: sed 's/^/| /' conftest.$ac_ext >&5
6090:
1.9 millert 6091: eval "$as_ac_var=no"
6092: fi
6093: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6094: fi
1.16 millert 6095: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 6096: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6097: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 6098: cat >>confdefs.h <<_ACEOF
1.9 millert 6099: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 6100: _ACEOF
1.1 millert 6101:
6102: else
1.16 millert 6103: echo "$as_me:$LINENO: checking for getspnam in -lshadow" >&5
1.9 millert 6104: echo $ECHO_N "checking for getspnam in -lshadow... $ECHO_C" >&6
6105: if test "${ac_cv_lib_shadow_getspnam+set}" = set; then
6106: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6107: else
1.9 millert 6108: ac_check_lib_save_LIBS=$LIBS
1.1 millert 6109: LIBS="-lshadow $LIBS"
1.9 millert 6110: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 6111: #line $LINENO "configure"
6112: /* confdefs.h. */
6113: _ACEOF
6114: cat confdefs.h >>conftest.$ac_ext
6115: cat >>conftest.$ac_ext <<_ACEOF
6116: /* end confdefs.h. */
1.9 millert 6117:
1.1 millert 6118: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 6119: #ifdef __cplusplus
6120: extern "C"
6121: #endif
1.1 millert 6122: /* We use char because int might match the return type of a gcc2
1.9 millert 6123: builtin and then its argument prototype would still apply. */
6124: char getspnam ();
6125: int
6126: main ()
6127: {
6128: getspnam ();
6129: ;
6130: return 0;
6131: }
6132: _ACEOF
6133: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 6134: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 6135: (eval $ac_link) 2>&5
6136: ac_status=$?
1.16 millert 6137: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6138: (exit $ac_status); } &&
6139: { ac_try='test -s conftest$ac_exeext'
1.16 millert 6140: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 6141: (eval $ac_try) 2>&5
6142: ac_status=$?
1.16 millert 6143: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6144: (exit $ac_status); }; }; then
6145: ac_cv_lib_shadow_getspnam=yes
6146: else
6147: echo "$as_me: failed program was:" >&5
1.16 millert 6148: sed 's/^/| /' conftest.$ac_ext >&5
6149:
1.9 millert 6150: ac_cv_lib_shadow_getspnam=no
6151: fi
6152: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6153: LIBS=$ac_check_lib_save_LIBS
6154: fi
1.16 millert 6155: echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspnam" >&5
1.9 millert 6156: echo "${ECHO_T}$ac_cv_lib_shadow_getspnam" >&6
6157: if test $ac_cv_lib_shadow_getspnam = yes; then
1.16 millert 6158: cat >>confdefs.h <<\_ACEOF
1.1 millert 6159: #define HAVE_GETSPNAM 1
1.16 millert 6160: _ACEOF
1.1 millert 6161: SUDO_LIBS="${SUDO_LIBS} -lshadow"; LIBS="${LIBS} -lshadow"
6162: fi
6163:
6164: fi
1.9 millert 6165: done
1.1 millert 6166:
6167: CHECKSHADOW="false"
6168: fi
6169: ;;
6170: *-convex-bsd*)
1.9 millert 6171: cat >>confdefs.h <<\EOF
1.1 millert 6172: #define _CONVEX_SOURCE 1
6173: EOF
6174:
6175: if test -z "$GCC"; then
6176: CFLAGS="${CFLAGS} -D__STDC__"
6177: fi
6178:
6179: if test "$CHECKSHADOW" = "true"; then
1.16 millert 6180: echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
1.9 millert 6181: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
6182: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
6183: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6184: else
1.9 millert 6185: ac_check_lib_save_LIBS=$LIBS
1.1 millert 6186: LIBS="-lsec $LIBS"
1.9 millert 6187: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 6188: #line $LINENO "configure"
6189: /* confdefs.h. */
6190: _ACEOF
6191: cat confdefs.h >>conftest.$ac_ext
6192: cat >>conftest.$ac_ext <<_ACEOF
6193: /* end confdefs.h. */
1.9 millert 6194:
1.1 millert 6195: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 6196: #ifdef __cplusplus
6197: extern "C"
6198: #endif
1.1 millert 6199: /* We use char because int might match the return type of a gcc2
1.9 millert 6200: builtin and then its argument prototype would still apply. */
6201: char getprpwnam ();
6202: int
6203: main ()
6204: {
6205: getprpwnam ();
6206: ;
6207: return 0;
6208: }
6209: _ACEOF
6210: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 6211: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 6212: (eval $ac_link) 2>&5
6213: ac_status=$?
1.16 millert 6214: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6215: (exit $ac_status); } &&
6216: { ac_try='test -s conftest$ac_exeext'
1.16 millert 6217: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 6218: (eval $ac_try) 2>&5
6219: ac_status=$?
1.16 millert 6220: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6221: (exit $ac_status); }; }; then
6222: ac_cv_lib_sec_getprpwnam=yes
6223: else
6224: echo "$as_me: failed program was:" >&5
1.16 millert 6225: sed 's/^/| /' conftest.$ac_ext >&5
6226:
1.9 millert 6227: ac_cv_lib_sec_getprpwnam=no
6228: fi
6229: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6230: LIBS=$ac_check_lib_save_LIBS
6231: fi
1.16 millert 6232: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
1.9 millert 6233: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
6234: if test $ac_cv_lib_sec_getprpwnam = yes; then
1.16 millert 6235: cat >>confdefs.h <<\_ACEOF
1.1 millert 6236: #define HAVE_GETPRPWNAM 1
1.16 millert 6237: _ACEOF
1.1 millert 6238: SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"; OSDEFS="${OSDEFS} -D_AUDIT -D_ACL -DSecureWare"; SECUREWARE=1
6239: fi
6240:
6241: CHECKSHADOW="false"
6242: fi
6243: ;;
6244: *-*-ultrix*)
6245: OS="ultrix"
6246: if test "$CHECKSHADOW" = "true"; then
1.16 millert 6247: echo "$as_me:$LINENO: checking for getauthuid in -lauth" >&5
1.9 millert 6248: echo $ECHO_N "checking for getauthuid in -lauth... $ECHO_C" >&6
6249: if test "${ac_cv_lib_auth_getauthuid+set}" = set; then
6250: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6251: else
1.9 millert 6252: ac_check_lib_save_LIBS=$LIBS
1.1 millert 6253: LIBS="-lauth $LIBS"
1.9 millert 6254: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 6255: #line $LINENO "configure"
6256: /* confdefs.h. */
6257: _ACEOF
6258: cat confdefs.h >>conftest.$ac_ext
6259: cat >>conftest.$ac_ext <<_ACEOF
6260: /* end confdefs.h. */
1.9 millert 6261:
1.1 millert 6262: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 6263: #ifdef __cplusplus
6264: extern "C"
6265: #endif
1.1 millert 6266: /* We use char because int might match the return type of a gcc2
1.9 millert 6267: builtin and then its argument prototype would still apply. */
6268: char getauthuid ();
6269: int
6270: main ()
6271: {
6272: getauthuid ();
6273: ;
6274: return 0;
6275: }
6276: _ACEOF
6277: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 6278: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 6279: (eval $ac_link) 2>&5
6280: ac_status=$?
1.16 millert 6281: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6282: (exit $ac_status); } &&
6283: { ac_try='test -s conftest$ac_exeext'
1.16 millert 6284: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 6285: (eval $ac_try) 2>&5
6286: ac_status=$?
1.16 millert 6287: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6288: (exit $ac_status); }; }; then
6289: ac_cv_lib_auth_getauthuid=yes
6290: else
6291: echo "$as_me: failed program was:" >&5
1.16 millert 6292: sed 's/^/| /' conftest.$ac_ext >&5
6293:
1.9 millert 6294: ac_cv_lib_auth_getauthuid=no
6295: fi
6296: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6297: LIBS=$ac_check_lib_save_LIBS
6298: fi
1.16 millert 6299: echo "$as_me:$LINENO: result: $ac_cv_lib_auth_getauthuid" >&5
1.9 millert 6300: echo "${ECHO_T}$ac_cv_lib_auth_getauthuid" >&6
6301: if test $ac_cv_lib_auth_getauthuid = yes; then
1.1 millert 6302:
1.16 millert 6303: cat >>confdefs.h <<\_ACEOF
1.1 millert 6304: #define HAVE_GETAUTHUID 1
1.16 millert 6305: _ACEOF
1.1 millert 6306: SUDO_LIBS="${SUDO_LIBS} -lauth"; LIBS="${LIBS} -lauth"
6307: fi
6308:
6309: CHECKSHADOW="false"
6310: fi
6311: ;;
6312: *-*-riscos*)
6313: LIBS="${LIBS} -lsun -lbsd"
6314: CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
6315: OSDEFS="${OSDEFS} -D_MIPS"
1.9 millert 6316: test -n "$mansectsu" || mansectsu=1m
6317: test -n "$mansectform" || mansectform=4
1.1 millert 6318: ;;
6319: *-*-isc*)
6320: OSDEFS="${OSDEFS} -D_ISC"
6321: LIB_CRYPT=1
6322: SUDO_LIBS="${SUDO_LIBS} -lcrypt"
6323: LIBS="${LIBS} -lcrypt"
6324:
6325: if test "$CHECKSHADOW" = "true"; then
1.16 millert 6326: echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
1.9 millert 6327: echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
6328: if test "${ac_cv_lib_sec_getspnam+set}" = set; then
6329: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6330: else
1.9 millert 6331: ac_check_lib_save_LIBS=$LIBS
1.1 millert 6332: LIBS="-lsec $LIBS"
1.9 millert 6333: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 6334: #line $LINENO "configure"
6335: /* confdefs.h. */
6336: _ACEOF
6337: cat confdefs.h >>conftest.$ac_ext
6338: cat >>conftest.$ac_ext <<_ACEOF
6339: /* end confdefs.h. */
1.9 millert 6340:
1.1 millert 6341: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 6342: #ifdef __cplusplus
6343: extern "C"
6344: #endif
1.1 millert 6345: /* We use char because int might match the return type of a gcc2
1.9 millert 6346: builtin and then its argument prototype would still apply. */
6347: char getspnam ();
6348: int
6349: main ()
6350: {
6351: getspnam ();
6352: ;
6353: return 0;
6354: }
6355: _ACEOF
6356: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 6357: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 6358: (eval $ac_link) 2>&5
6359: ac_status=$?
1.16 millert 6360: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6361: (exit $ac_status); } &&
6362: { ac_try='test -s conftest$ac_exeext'
1.16 millert 6363: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 6364: (eval $ac_try) 2>&5
6365: ac_status=$?
1.16 millert 6366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6367: (exit $ac_status); }; }; then
6368: ac_cv_lib_sec_getspnam=yes
6369: else
6370: echo "$as_me: failed program was:" >&5
1.16 millert 6371: sed 's/^/| /' conftest.$ac_ext >&5
6372:
1.9 millert 6373: ac_cv_lib_sec_getspnam=no
6374: fi
6375: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6376: LIBS=$ac_check_lib_save_LIBS
6377: fi
1.16 millert 6378: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
1.9 millert 6379: echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
6380: if test $ac_cv_lib_sec_getspnam = yes; then
1.16 millert 6381: cat >>confdefs.h <<\_ACEOF
1.1 millert 6382: #define HAVE_GETSPNAM 1
1.16 millert 6383: _ACEOF
1.1 millert 6384: SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
6385: fi
6386:
6387: CHECKSHADOW="false"
6388: fi
1.9 millert 6389: test -n "$mansectsu" || mansectsu=1m
6390: test -n "$mansectform" || mansectform=4
1.1 millert 6391: ;;
1.9 millert 6392: *-*-sco*|*-sco-*)
1.1 millert 6393: if test "$CHECKSHADOW" = "true"; then
1.16 millert 6394: echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
1.9 millert 6395: echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
6396: if test "${ac_cv_lib_prot_getprpwnam_lx+set}" = set; then
6397: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6398: else
1.9 millert 6399: ac_check_lib_save_LIBS=$LIBS
1.1 millert 6400: LIBS="-lprot -lx $LIBS"
1.9 millert 6401: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 6402: #line $LINENO "configure"
6403: /* confdefs.h. */
6404: _ACEOF
6405: cat confdefs.h >>conftest.$ac_ext
6406: cat >>conftest.$ac_ext <<_ACEOF
6407: /* end confdefs.h. */
1.9 millert 6408:
1.1 millert 6409: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 6410: #ifdef __cplusplus
6411: extern "C"
6412: #endif
1.1 millert 6413: /* We use char because int might match the return type of a gcc2
1.9 millert 6414: builtin and then its argument prototype would still apply. */
6415: char getprpwnam ();
6416: int
6417: main ()
6418: {
6419: getprpwnam ();
6420: ;
6421: return 0;
6422: }
6423: _ACEOF
6424: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 6425: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 6426: (eval $ac_link) 2>&5
6427: ac_status=$?
1.16 millert 6428: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6429: (exit $ac_status); } &&
6430: { ac_try='test -s conftest$ac_exeext'
1.16 millert 6431: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 6432: (eval $ac_try) 2>&5
6433: ac_status=$?
1.16 millert 6434: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6435: (exit $ac_status); }; }; then
6436: ac_cv_lib_prot_getprpwnam_lx=yes
6437: else
6438: echo "$as_me: failed program was:" >&5
1.16 millert 6439: sed 's/^/| /' conftest.$ac_ext >&5
6440:
1.9 millert 6441: ac_cv_lib_prot_getprpwnam_lx=no
6442: fi
6443: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6444: LIBS=$ac_check_lib_save_LIBS
6445: fi
1.16 millert 6446: echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam_lx" >&5
1.9 millert 6447: echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam_lx" >&6
6448: if test $ac_cv_lib_prot_getprpwnam_lx = yes; then
1.16 millert 6449: cat >>confdefs.h <<\_ACEOF
1.1 millert 6450: #define HAVE_GETPRPWNAM 1
1.16 millert 6451: _ACEOF
1.1 millert 6452: SUDO_LIBS="${SUDO_LIBS} -lprot -lx"; LIBS="${LIBS} -lprot -lx"; SECUREWARE=1
6453: fi
6454:
1.16 millert 6455: echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
1.9 millert 6456: echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
6457: if test "${ac_cv_lib_gen_getspnam+set}" = set; then
6458: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6459: else
1.9 millert 6460: ac_check_lib_save_LIBS=$LIBS
1.1 millert 6461: LIBS="-lgen $LIBS"
1.9 millert 6462: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 6463: #line $LINENO "configure"
6464: /* confdefs.h. */
6465: _ACEOF
6466: cat confdefs.h >>conftest.$ac_ext
6467: cat >>conftest.$ac_ext <<_ACEOF
6468: /* end confdefs.h. */
1.9 millert 6469:
1.1 millert 6470: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 6471: #ifdef __cplusplus
6472: extern "C"
6473: #endif
1.1 millert 6474: /* We use char because int might match the return type of a gcc2
1.9 millert 6475: builtin and then its argument prototype would still apply. */
6476: char getspnam ();
6477: int
6478: main ()
6479: {
6480: getspnam ();
6481: ;
6482: return 0;
6483: }
6484: _ACEOF
6485: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 6486: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 6487: (eval $ac_link) 2>&5
6488: ac_status=$?
1.16 millert 6489: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6490: (exit $ac_status); } &&
6491: { ac_try='test -s conftest$ac_exeext'
1.16 millert 6492: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 6493: (eval $ac_try) 2>&5
6494: ac_status=$?
1.16 millert 6495: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6496: (exit $ac_status); }; }; then
6497: ac_cv_lib_gen_getspnam=yes
6498: else
6499: echo "$as_me: failed program was:" >&5
1.16 millert 6500: sed 's/^/| /' conftest.$ac_ext >&5
6501:
1.9 millert 6502: ac_cv_lib_gen_getspnam=no
6503: fi
6504: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6505: LIBS=$ac_check_lib_save_LIBS
6506: fi
1.16 millert 6507: echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
1.9 millert 6508: echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
6509: if test $ac_cv_lib_gen_getspnam = yes; then
1.16 millert 6510: cat >>confdefs.h <<\_ACEOF
1.1 millert 6511: #define HAVE_GETSPNAM 1
1.16 millert 6512: _ACEOF
1.1 millert 6513: SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
6514: fi
6515:
6516: CHECKSHADOW="false"
6517: fi
1.9 millert 6518: test -n "$mansectsu" || mansectsu=1m
6519: test -n "$mansectform" || mansectform=4
1.1 millert 6520: ;;
1.10 millert 6521: m88k-motorola-sysv*)
6522: # motorolla's cc (a variant of gcc) does -O but not -O2
6523: CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
6524: test -n "$mansectsu" || mansectsu=1m
6525: test -n "$mansectform" || mansectform=4
6526: ;;
1.1 millert 6527: *-sequent-sysv*)
6528: if test "$CHECKSHADOW" = "true"; then
1.16 millert 6529: echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
1.9 millert 6530: echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
6531: if test "${ac_cv_lib_sec_getspnam+set}" = set; then
6532: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6533: else
1.9 millert 6534: ac_check_lib_save_LIBS=$LIBS
1.1 millert 6535: LIBS="-lsec $LIBS"
1.9 millert 6536: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 6537: #line $LINENO "configure"
6538: /* confdefs.h. */
6539: _ACEOF
6540: cat confdefs.h >>conftest.$ac_ext
6541: cat >>conftest.$ac_ext <<_ACEOF
6542: /* end confdefs.h. */
1.9 millert 6543:
1.1 millert 6544: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 6545: #ifdef __cplusplus
6546: extern "C"
6547: #endif
1.1 millert 6548: /* We use char because int might match the return type of a gcc2
1.9 millert 6549: builtin and then its argument prototype would still apply. */
6550: char getspnam ();
6551: int
6552: main ()
6553: {
6554: getspnam ();
6555: ;
6556: return 0;
6557: }
6558: _ACEOF
6559: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 6560: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 6561: (eval $ac_link) 2>&5
6562: ac_status=$?
1.16 millert 6563: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6564: (exit $ac_status); } &&
6565: { ac_try='test -s conftest$ac_exeext'
1.16 millert 6566: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 6567: (eval $ac_try) 2>&5
6568: ac_status=$?
1.16 millert 6569: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6570: (exit $ac_status); }; }; then
6571: ac_cv_lib_sec_getspnam=yes
6572: else
6573: echo "$as_me: failed program was:" >&5
1.16 millert 6574: sed 's/^/| /' conftest.$ac_ext >&5
6575:
1.9 millert 6576: ac_cv_lib_sec_getspnam=no
6577: fi
6578: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6579: LIBS=$ac_check_lib_save_LIBS
6580: fi
1.16 millert 6581: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
1.9 millert 6582: echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
6583: if test $ac_cv_lib_sec_getspnam = yes; then
1.16 millert 6584: cat >>confdefs.h <<\_ACEOF
1.1 millert 6585: #define HAVE_GETSPNAM 1
1.16 millert 6586: _ACEOF
1.1 millert 6587: SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
6588: fi
6589:
6590: CHECKSHADOW="false"
6591: fi
1.9 millert 6592: test -n "$mansectsu" || mansectsu=1m
6593: test -n "$mansectform" || mansectform=4
1.17 millert 6594: test -n "$with_rpath" || with_rpath=yes
1.9 millert 6595: ;;
6596: *-ncr-sysv4*|*-ncr-sysvr4*)
1.16 millert 6597: echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
1.9 millert 6598: echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6
6599: if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
6600: echo $ECHO_N "(cached) $ECHO_C" >&6
6601: else
6602: ac_check_lib_save_LIBS=$LIBS
6603: LIBS="-lc89 $LIBS"
6604: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 6605: #line $LINENO "configure"
6606: /* confdefs.h. */
6607: _ACEOF
6608: cat confdefs.h >>conftest.$ac_ext
6609: cat >>conftest.$ac_ext <<_ACEOF
6610: /* end confdefs.h. */
1.9 millert 6611:
6612: /* Override any gcc2 internal prototype to avoid an error. */
6613: #ifdef __cplusplus
6614: extern "C"
6615: #endif
6616: /* We use char because int might match the return type of a gcc2
6617: builtin and then its argument prototype would still apply. */
6618: char strcasecmp ();
6619: int
6620: main ()
6621: {
6622: strcasecmp ();
6623: ;
6624: return 0;
6625: }
6626: _ACEOF
6627: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 6628: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 6629: (eval $ac_link) 2>&5
6630: ac_status=$?
1.16 millert 6631: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6632: (exit $ac_status); } &&
6633: { ac_try='test -s conftest$ac_exeext'
1.16 millert 6634: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 6635: (eval $ac_try) 2>&5
6636: ac_status=$?
1.16 millert 6637: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6638: (exit $ac_status); }; }; then
6639: ac_cv_lib_c89_strcasecmp=yes
6640: else
6641: echo "$as_me: failed program was:" >&5
1.16 millert 6642: sed 's/^/| /' conftest.$ac_ext >&5
6643:
1.9 millert 6644: ac_cv_lib_c89_strcasecmp=no
6645: fi
6646: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6647: LIBS=$ac_check_lib_save_LIBS
6648: fi
1.16 millert 6649: echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
1.9 millert 6650: echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6
6651: if test $ac_cv_lib_c89_strcasecmp = yes; then
1.16 millert 6652: cat >>confdefs.h <<\_ACEOF
1.9 millert 6653: #define HAVE_STRCASECMP 1
1.16 millert 6654: _ACEOF
1.9 millert 6655: LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
6656: fi
6657:
6658: test -n "$mansectsu" || mansectsu=1m
6659: test -n "$mansectform" || mansectform=4
1.17 millert 6660: test -n "$with_rpath" || with_rpath=yes
1.1 millert 6661: ;;
1.9 millert 6662: *-ccur-sysv4*|*-ccur-sysvr4*)
1.1 millert 6663: LIBS="${LIBS} -lgen"
6664: SUDO_LIBS="${SUDO_LIBS} -lgen"
1.9 millert 6665: test -n "$mansectsu" || mansectsu=1m
6666: test -n "$mansectform" || mansectform=4
1.17 millert 6667: test -n "$with_rpath" || with_rpath=yes
1.1 millert 6668: ;;
6669: *-*-bsdi*)
1.16 millert 6670: SKIP_SETREUID=yes
1.6 millert 6671: # Use shlicc for BSD/OS [23].x unless asked to do otherwise
6672: if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
6673: case "$OSREV" in
1.17 millert 6674: 2|3) { echo "$as_me:$LINENO: using shlicc as CC" >&5
6675: echo "$as_me: using shlicc as CC" >&6;}
1.6 millert 6676: ac_cv_prog_CC=shlicc
6677: CC="$ac_cv_prog_CC"
6678: ;;
6679: esac
6680: fi
6681: ;;
6682: *-*-freebsd*)
1.13 millert 6683: # FreeBSD has a real setreuid(2) starting with 2.1 and
6684: # backported to 2.0.5. We just take 2.1 and above...
6685: case "`echo $host_os | sed 's/^freebsd\([0-9\.]*\).*$/\1/'`" in
6686: 0.*|1.*|2.0*)
1.16 millert 6687: SKIP_SETREUID=yes
1.13 millert 6688: ;;
6689: esac
1.7 millert 6690: if test "$with_logincap" = "yes"; then
6691: SUDO_LIBS="${SUDO_LIBS} -lutil"
6692: fi
1.6 millert 6693: if test "$with_skey" = "yes"; then
6694: SUDO_LIBS="${SUDO_LIBS} -lmd"
6695: fi
6696: if test "$CHECKSHADOW" = "true"; then
6697: CHECKSHADOW="false"
1.1 millert 6698: fi
6699: ;;
1.9 millert 6700: *-*-*openbsd*)
1.16 millert 6701: SKIP_SETREUID=yes
1.9 millert 6702: if test "$CHECKSHADOW" = "true"; then
6703: CHECKSHADOW="false"
6704: fi
6705: ;;
6706: *-*-*netbsd*)
1.13 millert 6707: # NetBSD has a real setreuid(2) starting with 1.3.2
6708: case "`echo $host_os | sed 's/^netbsd\([0-9\.]*\).*$/\1/'`" in
6709: 0.9*|1.012*|1.3|1.3.1)
1.16 millert 6710: SKIP_SETREUID=yes
1.13 millert 6711: ;;
6712: esac
1.9 millert 6713: if test "$CHECKSHADOW" = "true"; then
6714: CHECKSHADOW="false"
6715: fi
6716: ;;
1.1 millert 6717: *-*-*bsd*)
6718: if test "$CHECKSHADOW" = "true"; then
6719: CHECKSHADOW="false"
6720: fi
6721: ;;
1.21 ! millert 6722: *-*-darwin*)
! 6723: SKIP_SETREUID=yes
! 6724: if test "$CHECKSHADOW" = "true"; then
! 6725: CHECKSHADOW="false"
! 6726: fi
! 6727: ;;
1.9 millert 6728: *-*-nextstep*)
6729: # lockf() on is broken on the NeXT -- use flock instead
6730: ac_cv_func_lockf=no
6731: ac_cv_func_flock=yes
6732: ;;
1.17 millert 6733: *-*-*sysv4*)
6734: test -n "$mansectsu" || mansectsu=1m
6735: test -n "$mansectform" || mansectform=4
6736: test -n "$with_rpath" || with_rpath=yes
6737: ;;
1.6 millert 6738: *-*-sysv*)
1.9 millert 6739: test -n "$mansectsu" || mansectsu=1m
6740: test -n "$mansectform" || mansectform=4
1.6 millert 6741: ;;
1.1 millert 6742: esac
6743:
1.6 millert 6744: test -n "$mansectsu" || mansectsu=8
6745: test -n "$mansectform" || mansectform=5
6746:
1.17 millert 6747: if test -n "$with_libpath"; then
6748: for i in ${with_libpath}; do
6749:
6750: if test X"$with_rpath" = X"yes"; then
6751: LDFLAGS="${LDFLAGS} -L$i -R$i"
6752: else
6753: LDFLAGS="${LDFLAGS} -L$i"
6754: fi
6755: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
6756: blibpath_add="${blibpath_add}:$i"
6757: fi
6758:
6759: done
6760: fi
6761: if test -n "$with_libraries"; then
6762: for i in ${with_libraries}; do
6763: case $i in
6764: -l*) ;;
6765: *.a) ;;
6766: *.o) ;;
6767: *) i="-l${i}";;
6768: esac
6769: LIBS="${LIBS} ${i}"
6770: done
6771: fi
6772:
1.1 millert 6773: if test "$CHECKSHADOW" = "true"; then
1.9 millert 6774:
6775: for ac_func in getspnam
6776: do
6777: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 6778: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 6779: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6780: if eval "test \"\${$as_ac_var+set}\" = set"; then
6781: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6782: else
1.9 millert 6783: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 6784: #line $LINENO "configure"
6785: /* confdefs.h. */
6786: _ACEOF
6787: cat confdefs.h >>conftest.$ac_ext
6788: cat >>conftest.$ac_ext <<_ACEOF
6789: /* end confdefs.h. */
1.1 millert 6790: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 6791: which can conflict with char $ac_func (); below.
6792: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6793: <limits.h> exists even on freestanding compilers. */
6794: #ifdef __STDC__
6795: # include <limits.h>
6796: #else
6797: # include <assert.h>
6798: #endif
1.1 millert 6799: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 6800: #ifdef __cplusplus
6801: extern "C"
1.16 millert 6802: {
1.9 millert 6803: #endif
1.1 millert 6804: /* We use char because int might match the return type of a gcc2
1.9 millert 6805: builtin and then its argument prototype would still apply. */
6806: char $ac_func ();
1.1 millert 6807: /* The GNU C library defines this for functions which it implements
6808: to always fail with ENOSYS. Some functions are actually named
6809: something starting with __ and the normal name is an alias. */
1.9 millert 6810: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 6811: choke me
6812: #else
1.16 millert 6813: char (*f) () = $ac_func;
6814: #endif
6815: #ifdef __cplusplus
6816: }
1.1 millert 6817: #endif
6818:
1.16 millert 6819: int
6820: main ()
6821: {
6822: return f != $ac_func;
1.9 millert 6823: ;
6824: return 0;
6825: }
6826: _ACEOF
6827: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 6828: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 6829: (eval $ac_link) 2>&5
6830: ac_status=$?
1.16 millert 6831: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6832: (exit $ac_status); } &&
6833: { ac_try='test -s conftest$ac_exeext'
1.16 millert 6834: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 6835: (eval $ac_try) 2>&5
6836: ac_status=$?
1.16 millert 6837: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6838: (exit $ac_status); }; }; then
6839: eval "$as_ac_var=yes"
6840: else
6841: echo "$as_me: failed program was:" >&5
1.16 millert 6842: sed 's/^/| /' conftest.$ac_ext >&5
6843:
1.9 millert 6844: eval "$as_ac_var=no"
6845: fi
6846: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6847: fi
1.16 millert 6848: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 6849: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6850: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 6851: cat >>confdefs.h <<_ACEOF
1.9 millert 6852: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 6853: _ACEOF
1.9 millert 6854: CHECKSHADOW="false"
1.1 millert 6855: else
1.16 millert 6856: echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
1.9 millert 6857: echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
6858: if test "${ac_cv_lib_gen_getspnam+set}" = set; then
6859: echo $ECHO_N "(cached) $ECHO_C" >&6
6860: else
6861: ac_check_lib_save_LIBS=$LIBS
6862: LIBS="-lgen $LIBS"
6863: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 6864: #line $LINENO "configure"
6865: /* confdefs.h. */
6866: _ACEOF
6867: cat confdefs.h >>conftest.$ac_ext
6868: cat >>conftest.$ac_ext <<_ACEOF
6869: /* end confdefs.h. */
1.9 millert 6870:
6871: /* Override any gcc2 internal prototype to avoid an error. */
6872: #ifdef __cplusplus
6873: extern "C"
6874: #endif
6875: /* We use char because int might match the return type of a gcc2
6876: builtin and then its argument prototype would still apply. */
6877: char getspnam ();
6878: int
6879: main ()
6880: {
6881: getspnam ();
6882: ;
6883: return 0;
6884: }
6885: _ACEOF
6886: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 6887: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 6888: (eval $ac_link) 2>&5
6889: ac_status=$?
1.16 millert 6890: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6891: (exit $ac_status); } &&
6892: { ac_try='test -s conftest$ac_exeext'
1.16 millert 6893: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 6894: (eval $ac_try) 2>&5
6895: ac_status=$?
1.16 millert 6896: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6897: (exit $ac_status); }; }; then
6898: ac_cv_lib_gen_getspnam=yes
6899: else
6900: echo "$as_me: failed program was:" >&5
1.16 millert 6901: sed 's/^/| /' conftest.$ac_ext >&5
6902:
1.9 millert 6903: ac_cv_lib_gen_getspnam=no
6904: fi
6905: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6906: LIBS=$ac_check_lib_save_LIBS
6907: fi
1.16 millert 6908: echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
1.9 millert 6909: echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
6910: if test $ac_cv_lib_gen_getspnam = yes; then
1.1 millert 6911:
1.16 millert 6912: cat >>confdefs.h <<\_ACEOF
1.1 millert 6913: #define HAVE_GETSPNAM 1
1.16 millert 6914: _ACEOF
1.9 millert 6915: SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
6916: fi
6917:
1.1 millert 6918: fi
1.9 millert 6919: done
1.1 millert 6920:
6921: fi
6922: if test "$CHECKSHADOW" = "true"; then
1.16 millert 6923: echo "$as_me:$LINENO: checking for getprpwnam" >&5
1.9 millert 6924: echo $ECHO_N "checking for getprpwnam... $ECHO_C" >&6
6925: if test "${ac_cv_func_getprpwnam+set}" = set; then
6926: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6927: else
1.9 millert 6928: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 6929: #line $LINENO "configure"
6930: /* confdefs.h. */
6931: _ACEOF
6932: cat confdefs.h >>conftest.$ac_ext
6933: cat >>conftest.$ac_ext <<_ACEOF
6934: /* end confdefs.h. */
1.1 millert 6935: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 6936: which can conflict with char getprpwnam (); below.
6937: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6938: <limits.h> exists even on freestanding compilers. */
6939: #ifdef __STDC__
6940: # include <limits.h>
6941: #else
6942: # include <assert.h>
6943: #endif
1.1 millert 6944: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 6945: #ifdef __cplusplus
6946: extern "C"
1.16 millert 6947: {
1.9 millert 6948: #endif
1.1 millert 6949: /* We use char because int might match the return type of a gcc2
1.9 millert 6950: builtin and then its argument prototype would still apply. */
6951: char getprpwnam ();
1.1 millert 6952: /* The GNU C library defines this for functions which it implements
6953: to always fail with ENOSYS. Some functions are actually named
6954: something starting with __ and the normal name is an alias. */
6955: #if defined (__stub_getprpwnam) || defined (__stub___getprpwnam)
6956: choke me
6957: #else
1.16 millert 6958: char (*f) () = getprpwnam;
6959: #endif
6960: #ifdef __cplusplus
6961: }
1.1 millert 6962: #endif
6963:
1.16 millert 6964: int
6965: main ()
6966: {
6967: return f != getprpwnam;
1.9 millert 6968: ;
6969: return 0;
6970: }
6971: _ACEOF
6972: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 6973: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 6974: (eval $ac_link) 2>&5
6975: ac_status=$?
1.16 millert 6976: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6977: (exit $ac_status); } &&
6978: { ac_try='test -s conftest$ac_exeext'
1.16 millert 6979: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 6980: (eval $ac_try) 2>&5
6981: ac_status=$?
1.16 millert 6982: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6983: (exit $ac_status); }; }; then
6984: ac_cv_func_getprpwnam=yes
6985: else
6986: echo "$as_me: failed program was:" >&5
1.16 millert 6987: sed 's/^/| /' conftest.$ac_ext >&5
6988:
1.9 millert 6989: ac_cv_func_getprpwnam=no
6990: fi
6991: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6992: fi
1.16 millert 6993: echo "$as_me:$LINENO: result: $ac_cv_func_getprpwnam" >&5
1.9 millert 6994: echo "${ECHO_T}$ac_cv_func_getprpwnam" >&6
6995: if test $ac_cv_func_getprpwnam = yes; then
1.16 millert 6996: cat >>confdefs.h <<\_ACEOF
1.1 millert 6997: #define HAVE_GETPRPWNAM 1
1.16 millert 6998: _ACEOF
6999: CHECKSHADOW="false"; SECUREWARE=1, echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
1.9 millert 7000: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
7001: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
7002: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7003: else
1.9 millert 7004: ac_check_lib_save_LIBS=$LIBS
1.1 millert 7005: LIBS="-lsec $LIBS"
1.9 millert 7006: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7007: #line $LINENO "configure"
7008: /* confdefs.h. */
7009: _ACEOF
7010: cat confdefs.h >>conftest.$ac_ext
7011: cat >>conftest.$ac_ext <<_ACEOF
7012: /* end confdefs.h. */
1.9 millert 7013:
1.1 millert 7014: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 7015: #ifdef __cplusplus
7016: extern "C"
7017: #endif
1.1 millert 7018: /* We use char because int might match the return type of a gcc2
1.9 millert 7019: builtin and then its argument prototype would still apply. */
7020: char getprpwnam ();
7021: int
7022: main ()
7023: {
7024: getprpwnam ();
7025: ;
7026: return 0;
7027: }
7028: _ACEOF
7029: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 7030: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 7031: (eval $ac_link) 2>&5
7032: ac_status=$?
1.16 millert 7033: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7034: (exit $ac_status); } &&
7035: { ac_try='test -s conftest$ac_exeext'
1.16 millert 7036: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 7037: (eval $ac_try) 2>&5
7038: ac_status=$?
1.16 millert 7039: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7040: (exit $ac_status); }; }; then
7041: ac_cv_lib_sec_getprpwnam=yes
7042: else
7043: echo "$as_me: failed program was:" >&5
1.16 millert 7044: sed 's/^/| /' conftest.$ac_ext >&5
7045:
1.9 millert 7046: ac_cv_lib_sec_getprpwnam=no
7047: fi
7048: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7049: LIBS=$ac_check_lib_save_LIBS
7050: fi
1.16 millert 7051: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
1.9 millert 7052: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
7053: if test $ac_cv_lib_sec_getprpwnam = yes; then
1.16 millert 7054: cat >>confdefs.h <<\_ACEOF
1.1 millert 7055: #define HAVE_GETPRPWNAM 1
1.16 millert 7056: _ACEOF
1.1 millert 7057: CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
7058: else
1.16 millert 7059: echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
1.9 millert 7060: echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
7061: if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
7062: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7063: else
1.9 millert 7064: ac_check_lib_save_LIBS=$LIBS
1.1 millert 7065: LIBS="-lsecurity $LIBS"
1.9 millert 7066: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7067: #line $LINENO "configure"
7068: /* confdefs.h. */
7069: _ACEOF
7070: cat confdefs.h >>conftest.$ac_ext
7071: cat >>conftest.$ac_ext <<_ACEOF
7072: /* end confdefs.h. */
1.9 millert 7073:
1.1 millert 7074: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 7075: #ifdef __cplusplus
7076: extern "C"
7077: #endif
1.1 millert 7078: /* We use char because int might match the return type of a gcc2
1.9 millert 7079: builtin and then its argument prototype would still apply. */
7080: char getprpwnam ();
7081: int
7082: main ()
7083: {
7084: getprpwnam ();
7085: ;
7086: return 0;
7087: }
7088: _ACEOF
7089: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 7090: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 7091: (eval $ac_link) 2>&5
7092: ac_status=$?
1.16 millert 7093: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7094: (exit $ac_status); } &&
7095: { ac_try='test -s conftest$ac_exeext'
1.16 millert 7096: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 7097: (eval $ac_try) 2>&5
7098: ac_status=$?
1.16 millert 7099: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7100: (exit $ac_status); }; }; then
7101: ac_cv_lib_security_getprpwnam=yes
7102: else
7103: echo "$as_me: failed program was:" >&5
1.16 millert 7104: sed 's/^/| /' conftest.$ac_ext >&5
7105:
1.9 millert 7106: ac_cv_lib_security_getprpwnam=no
7107: fi
7108: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7109: LIBS=$ac_check_lib_save_LIBS
7110: fi
1.16 millert 7111: echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
1.9 millert 7112: echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
7113: if test $ac_cv_lib_security_getprpwnam = yes; then
1.16 millert 7114: cat >>confdefs.h <<\_ACEOF
1.1 millert 7115: #define HAVE_GETPRPWNAM 1
1.16 millert 7116: _ACEOF
1.1 millert 7117: CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"
7118: else
1.16 millert 7119: echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
1.9 millert 7120: echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
7121: if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
7122: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7123: else
1.9 millert 7124: ac_check_lib_save_LIBS=$LIBS
1.1 millert 7125: LIBS="-lprot $LIBS"
1.9 millert 7126: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7127: #line $LINENO "configure"
7128: /* confdefs.h. */
7129: _ACEOF
7130: cat confdefs.h >>conftest.$ac_ext
7131: cat >>conftest.$ac_ext <<_ACEOF
7132: /* end confdefs.h. */
1.9 millert 7133:
1.1 millert 7134: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 7135: #ifdef __cplusplus
7136: extern "C"
7137: #endif
1.1 millert 7138: /* We use char because int might match the return type of a gcc2
1.9 millert 7139: builtin and then its argument prototype would still apply. */
7140: char getprpwnam ();
7141: int
7142: main ()
7143: {
7144: getprpwnam ();
7145: ;
7146: return 0;
7147: }
7148: _ACEOF
7149: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 7150: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 7151: (eval $ac_link) 2>&5
7152: ac_status=$?
1.16 millert 7153: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7154: (exit $ac_status); } &&
7155: { ac_try='test -s conftest$ac_exeext'
1.16 millert 7156: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 7157: (eval $ac_try) 2>&5
7158: ac_status=$?
1.16 millert 7159: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7160: (exit $ac_status); }; }; then
7161: ac_cv_lib_prot_getprpwnam=yes
7162: else
7163: echo "$as_me: failed program was:" >&5
1.16 millert 7164: sed 's/^/| /' conftest.$ac_ext >&5
7165:
1.9 millert 7166: ac_cv_lib_prot_getprpwnam=no
7167: fi
7168: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7169: LIBS=$ac_check_lib_save_LIBS
7170: fi
1.16 millert 7171: echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
1.9 millert 7172: echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
7173: if test $ac_cv_lib_prot_getprpwnam = yes; then
1.16 millert 7174: cat >>confdefs.h <<\_ACEOF
1.1 millert 7175: #define HAVE_GETPRPWNAM 1
1.16 millert 7176: _ACEOF
1.1 millert 7177: CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"
7178: fi
7179:
7180: fi
7181:
7182: fi
7183:
7184: fi
7185:
7186: fi
7187:
1.16 millert 7188:
7189: echo "$as_me:$LINENO: checking for egrep" >&5
7190: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7191: if test "${ac_cv_prog_egrep+set}" = set; then
7192: echo $ECHO_N "(cached) $ECHO_C" >&6
7193: else
7194: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7195: then ac_cv_prog_egrep='grep -E'
7196: else ac_cv_prog_egrep='egrep'
7197: fi
7198: fi
7199: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7200: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7201: EGREP=$ac_cv_prog_egrep
7202:
7203:
1.9 millert 7204: if test $ac_cv_c_compiler_gnu = yes; then
1.16 millert 7205: echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
1.9 millert 7206: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
7207: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
7208: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7209: else
7210: ac_pattern="Autoconf.*'x'"
1.9 millert 7211: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7212: #line $LINENO "configure"
7213: /* confdefs.h. */
7214: _ACEOF
7215: cat confdefs.h >>conftest.$ac_ext
7216: cat >>conftest.$ac_ext <<_ACEOF
7217: /* end confdefs.h. */
1.1 millert 7218: #include <sgtty.h>
7219: Autoconf TIOCGETP
1.9 millert 7220: _ACEOF
1.1 millert 7221: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 7222: $EGREP "$ac_pattern" >/dev/null 2>&1; then
1.1 millert 7223: ac_cv_prog_gcc_traditional=yes
7224: else
7225: ac_cv_prog_gcc_traditional=no
7226: fi
7227: rm -f conftest*
7228:
1.16 millert 7229:
1.1 millert 7230: if test $ac_cv_prog_gcc_traditional = no; then
1.9 millert 7231: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7232: #line $LINENO "configure"
7233: /* confdefs.h. */
7234: _ACEOF
7235: cat confdefs.h >>conftest.$ac_ext
7236: cat >>conftest.$ac_ext <<_ACEOF
7237: /* end confdefs.h. */
1.1 millert 7238: #include <termio.h>
7239: Autoconf TCGETA
1.9 millert 7240: _ACEOF
1.1 millert 7241: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 7242: $EGREP "$ac_pattern" >/dev/null 2>&1; then
1.1 millert 7243: ac_cv_prog_gcc_traditional=yes
7244: fi
7245: rm -f conftest*
7246:
7247: fi
7248: fi
1.16 millert 7249: echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
1.9 millert 7250: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
1.1 millert 7251: if test $ac_cv_prog_gcc_traditional = yes; then
7252: CC="$CC -traditional"
7253: fi
7254: fi
7255:
1.16 millert 7256: echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
1.9 millert 7257: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7258: if test "${ac_cv_c_const+set}" = set; then
7259: echo $ECHO_N "(cached) $ECHO_C" >&6
7260: else
7261: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7262: #line $LINENO "configure"
7263: /* confdefs.h. */
7264: _ACEOF
7265: cat confdefs.h >>conftest.$ac_ext
7266: cat >>conftest.$ac_ext <<_ACEOF
7267: /* end confdefs.h. */
1.9 millert 7268:
7269: int
7270: main ()
7271: {
7272: /* FIXME: Include the comments suggested by Paul. */
7273: #ifndef __cplusplus
7274: /* Ultrix mips cc rejects this. */
7275: typedef int charset[2];
7276: const charset x;
7277: /* SunOS 4.1.1 cc rejects this. */
7278: char const *const *ccp;
7279: char **p;
7280: /* NEC SVR4.0.2 mips cc rejects this. */
7281: struct point {int x, y;};
7282: static struct point const zero = {0,0};
7283: /* AIX XL C 1.02.0.0 rejects this.
7284: It does not let you subtract one const X* pointer from another in
7285: an arm of an if-expression whose if-part is not a constant
7286: expression */
7287: const char *g = "string";
7288: ccp = &g + (g ? g-g : 0);
7289: /* HPUX 7.0 cc rejects these. */
7290: ++ccp;
7291: p = (char**) ccp;
7292: ccp = (char const *const *) p;
7293: { /* SCO 3.2v4 cc rejects this. */
7294: char *t;
7295: char const *s = 0 ? (char *) 0 : (char const *) 0;
7296:
7297: *t++ = 0;
7298: }
7299: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7300: int x[] = {25, 17};
7301: const int *foo = &x[0];
7302: ++foo;
7303: }
7304: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7305: typedef const int *iptr;
7306: iptr p = 0;
7307: ++p;
7308: }
7309: { /* AIX XL C 1.02.0.0 rejects this saying
7310: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7311: struct s { int j; const int *ap[3]; };
7312: struct s *b; b->j = 5;
7313: }
7314: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7315: const int foo = 10;
7316: }
7317: #endif
7318:
7319: ;
7320: return 0;
1.1 millert 7321: }
1.9 millert 7322: _ACEOF
7323: rm -f conftest.$ac_objext
1.16 millert 7324: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 7325: (eval $ac_compile) 2>&5
7326: ac_status=$?
1.16 millert 7327: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7328: (exit $ac_status); } &&
7329: { ac_try='test -s conftest.$ac_objext'
1.16 millert 7330: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 7331: (eval $ac_try) 2>&5
7332: ac_status=$?
1.16 millert 7333: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7334: (exit $ac_status); }; }; then
1.1 millert 7335: ac_cv_c_const=yes
7336: else
1.9 millert 7337: echo "$as_me: failed program was:" >&5
1.16 millert 7338: sed 's/^/| /' conftest.$ac_ext >&5
7339:
1.9 millert 7340: ac_cv_c_const=no
7341: fi
7342: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 7343: fi
1.16 millert 7344: echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
1.9 millert 7345: echo "${ECHO_T}$ac_cv_c_const" >&6
7346: if test $ac_cv_c_const = no; then
7347:
1.16 millert 7348: cat >>confdefs.h <<\_ACEOF
1.9 millert 7349: #define const
1.16 millert 7350: _ACEOF
1.9 millert 7351:
1.1 millert 7352: fi
7353:
1.16 millert 7354: echo "$as_me:$LINENO: checking for working volatile" >&5
1.9 millert 7355: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7356: if test "${ac_cv_c_volatile+set}" = set; then
7357: echo $ECHO_N "(cached) $ECHO_C" >&6
7358: else
7359: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7360: #line $LINENO "configure"
7361: /* confdefs.h. */
7362: _ACEOF
7363: cat confdefs.h >>conftest.$ac_ext
7364: cat >>conftest.$ac_ext <<_ACEOF
7365: /* end confdefs.h. */
1.9 millert 7366:
7367: int
7368: main ()
7369: {
7370:
7371: volatile int x;
7372: int * volatile y;
7373: ;
7374: return 0;
7375: }
7376: _ACEOF
7377: rm -f conftest.$ac_objext
1.16 millert 7378: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 7379: (eval $ac_compile) 2>&5
7380: ac_status=$?
1.16 millert 7381: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7382: (exit $ac_status); } &&
7383: { ac_try='test -s conftest.$ac_objext'
1.16 millert 7384: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 7385: (eval $ac_try) 2>&5
7386: ac_status=$?
1.16 millert 7387: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7388: (exit $ac_status); }; }; then
7389: ac_cv_c_volatile=yes
7390: else
7391: echo "$as_me: failed program was:" >&5
1.16 millert 7392: sed 's/^/| /' conftest.$ac_ext >&5
7393:
1.9 millert 7394: ac_cv_c_volatile=no
7395: fi
7396: rm -f conftest.$ac_objext conftest.$ac_ext
7397: fi
1.16 millert 7398: echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
1.9 millert 7399: echo "${ECHO_T}$ac_cv_c_volatile" >&6
7400: if test $ac_cv_c_volatile = no; then
7401:
1.16 millert 7402: cat >>confdefs.h <<\_ACEOF
1.9 millert 7403: #define volatile
1.16 millert 7404: _ACEOF
1.1 millert 7405:
7406: fi
7407:
7408: for ac_prog in 'bison -y' byacc
7409: do
1.9 millert 7410: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.1 millert 7411: set dummy $ac_prog; ac_word=$2
1.16 millert 7412: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 7413: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7414: if test "${ac_cv_prog_YACC+set}" = set; then
7415: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7416: else
7417: if test -n "$YACC"; then
7418: ac_cv_prog_YACC="$YACC" # Let the user override the test.
7419: else
1.16 millert 7420: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421: for as_dir in $PATH
7422: do
7423: IFS=$as_save_IFS
7424: test -z "$as_dir" && as_dir=.
7425: for ac_exec_ext in '' $ac_executable_extensions; do
7426: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7427: ac_cv_prog_YACC="$ac_prog"
7428: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429: break 2
7430: fi
7431: done
1.9 millert 7432: done
7433:
1.1 millert 7434: fi
7435: fi
1.9 millert 7436: YACC=$ac_cv_prog_YACC
1.1 millert 7437: if test -n "$YACC"; then
1.16 millert 7438: echo "$as_me:$LINENO: result: $YACC" >&5
1.9 millert 7439: echo "${ECHO_T}$YACC" >&6
1.1 millert 7440: else
1.16 millert 7441: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 7442: echo "${ECHO_T}no" >&6
1.1 millert 7443: fi
7444:
1.9 millert 7445: test -n "$YACC" && break
1.1 millert 7446: done
7447: test -n "$YACC" || YACC="yacc"
7448:
1.16 millert 7449: echo "$as_me:$LINENO: checking for mv" >&5
1.9 millert 7450: echo $ECHO_N "checking for mv... $ECHO_C" >&6
1.1 millert 7451: if test -f "/usr/bin/mv"; then
1.16 millert 7452: echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
1.9 millert 7453: echo "${ECHO_T}/usr/bin/mv" >&6
7454: cat >>confdefs.h <<\EOF
1.1 millert 7455: #define _PATH_MV "/usr/bin/mv"
7456: EOF
7457:
7458: elif test -f "/bin/mv"; then
1.16 millert 7459: echo "$as_me:$LINENO: result: /bin/mv" >&5
1.9 millert 7460: echo "${ECHO_T}/bin/mv" >&6
7461: cat >>confdefs.h <<\EOF
1.1 millert 7462: #define _PATH_MV "/bin/mv"
7463: EOF
7464:
7465: elif test -f "/usr/ucb/mv"; then
1.16 millert 7466: echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
1.9 millert 7467: echo "${ECHO_T}/usr/ucb/mv" >&6
7468: cat >>confdefs.h <<\EOF
1.1 millert 7469: #define _PATH_MV "/usr/ucb/mv"
7470: EOF
7471:
7472: elif test -f "/usr/sbin/mv"; then
1.16 millert 7473: echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
1.9 millert 7474: echo "${ECHO_T}/usr/sbin/mv" >&6
7475: cat >>confdefs.h <<\EOF
1.1 millert 7476: #define _PATH_MV "/usr/sbin/mv"
7477: EOF
7478:
7479: else
1.16 millert 7480: echo "$as_me:$LINENO: result: not found" >&5
1.9 millert 7481: echo "${ECHO_T}not found" >&6
1.1 millert 7482: fi
7483:
1.16 millert 7484: echo "$as_me:$LINENO: checking for bourne shell" >&5
1.9 millert 7485: echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6
1.1 millert 7486: if test -f "/bin/sh"; then
1.16 millert 7487: echo "$as_me:$LINENO: result: /bin/sh" >&5
1.9 millert 7488: echo "${ECHO_T}/bin/sh" >&6
7489: cat >>confdefs.h <<\EOF
1.1 millert 7490: #define _PATH_BSHELL "/bin/sh"
7491: EOF
7492:
7493: elif test -f "/usr/bin/sh"; then
1.16 millert 7494: echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
1.9 millert 7495: echo "${ECHO_T}/usr/bin/sh" >&6
7496: cat >>confdefs.h <<\EOF
1.1 millert 7497: #define _PATH_BSHELL "/usr/bin/sh"
7498: EOF
7499:
7500: elif test -f "/sbin/sh"; then
1.16 millert 7501: echo "$as_me:$LINENO: result: /sbin/sh" >&5
1.9 millert 7502: echo "${ECHO_T}/sbin/sh" >&6
7503: cat >>confdefs.h <<\EOF
1.1 millert 7504: #define _PATH_BSHELL "/sbin/sh"
7505: EOF
7506:
7507: elif test -f "/usr/sbin/sh"; then
1.16 millert 7508: echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
1.9 millert 7509: echo "${ECHO_T}/usr/sbin/sh" >&6
7510: cat >>confdefs.h <<\EOF
1.1 millert 7511: #define _PATH_BSHELL "/usr/sbin/sh"
7512: EOF
7513:
7514: elif test -f "/bin/ksh"; then
1.16 millert 7515: echo "$as_me:$LINENO: result: /bin/ksh" >&5
1.9 millert 7516: echo "${ECHO_T}/bin/ksh" >&6
7517: cat >>confdefs.h <<\EOF
1.1 millert 7518: #define _PATH_BSHELL "/bin/ksh"
7519: EOF
7520:
7521: elif test -f "/usr/bin/ksh"; then
1.16 millert 7522: echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
1.9 millert 7523: echo "${ECHO_T}/usr/bin/ksh" >&6
7524: cat >>confdefs.h <<\EOF
1.1 millert 7525: #define _PATH_BSHELL "/usr/bin/ksh"
7526: EOF
7527:
7528: elif test -f "/bin/bash"; then
1.16 millert 7529: echo "$as_me:$LINENO: result: /bin/bash" >&5
1.9 millert 7530: echo "${ECHO_T}/bin/bash" >&6
7531: cat >>confdefs.h <<\EOF
1.1 millert 7532: #define _PATH_BSHELL "/bin/bash"
7533: EOF
7534:
7535: elif test -f "/usr/bin/bash"; then
1.16 millert 7536: echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
1.9 millert 7537: echo "${ECHO_T}/usr/bin/bash" >&6
7538: cat >>confdefs.h <<\EOF
1.1 millert 7539: #define _PATH_BSHELL "/usr/bin/bash"
7540: EOF
7541:
7542: else
1.16 millert 7543: echo "$as_me:$LINENO: result: not found" >&5
1.9 millert 7544: echo "${ECHO_T}not found" >&6
7545: fi
7546:
7547: if test -z "$with_sendmail"; then
1.16 millert 7548: echo "$as_me:$LINENO: checking for sendmail" >&5
1.9 millert 7549: echo $ECHO_N "checking for sendmail... $ECHO_C" >&6
7550: if test -f "/usr/sbin/sendmail"; then
1.16 millert 7551: echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
1.9 millert 7552: echo "${ECHO_T}/usr/sbin/sendmail" >&6
7553: cat >>confdefs.h <<\EOF
7554: #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
7555: EOF
7556:
7557: elif test -f "/usr/lib/sendmail"; then
1.16 millert 7558: echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
1.9 millert 7559: echo "${ECHO_T}/usr/lib/sendmail" >&6
7560: cat >>confdefs.h <<\EOF
7561: #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
7562: EOF
7563:
7564: elif test -f "/usr/etc/sendmail"; then
1.16 millert 7565: echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
1.9 millert 7566: echo "${ECHO_T}/usr/etc/sendmail" >&6
7567: cat >>confdefs.h <<\EOF
7568: #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
7569: EOF
7570:
7571: elif test -f "/usr/ucblib/sendmail"; then
1.16 millert 7572: echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
1.9 millert 7573: echo "${ECHO_T}/usr/ucblib/sendmail" >&6
7574: cat >>confdefs.h <<\EOF
7575: #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
7576: EOF
7577:
7578: elif test -f "/usr/local/lib/sendmail"; then
1.16 millert 7579: echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
1.9 millert 7580: echo "${ECHO_T}/usr/local/lib/sendmail" >&6
7581: cat >>confdefs.h <<\EOF
7582: #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
7583: EOF
7584:
7585: elif test -f "/usr/local/bin/sendmail"; then
1.16 millert 7586: echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
1.9 millert 7587: echo "${ECHO_T}/usr/local/bin/sendmail" >&6
7588: cat >>confdefs.h <<\EOF
7589: #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
7590: EOF
7591:
7592: else
1.16 millert 7593: echo "$as_me:$LINENO: result: not found" >&5
1.9 millert 7594: echo "${ECHO_T}not found" >&6
1.1 millert 7595: fi
7596:
1.9 millert 7597: fi
7598: if test -z "$with_editor"; then
1.16 millert 7599: echo "$as_me:$LINENO: checking for vi" >&5
1.9 millert 7600: echo $ECHO_N "checking for vi... $ECHO_C" >&6
1.1 millert 7601: if test -f "/usr/bin/vi"; then
1.16 millert 7602: echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
1.9 millert 7603: echo "${ECHO_T}/usr/bin/vi" >&6
7604: cat >>confdefs.h <<\EOF
1.1 millert 7605: #define _PATH_VI "/usr/bin/vi"
7606: EOF
7607:
7608: elif test -f "/usr/ucb/vi"; then
1.16 millert 7609: echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
1.9 millert 7610: echo "${ECHO_T}/usr/ucb/vi" >&6
7611: cat >>confdefs.h <<\EOF
1.1 millert 7612: #define _PATH_VI "/usr/ucb/vi"
7613: EOF
7614:
7615: elif test -f "/usr/bsd/vi"; then
1.16 millert 7616: echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
1.9 millert 7617: echo "${ECHO_T}/usr/bsd/vi" >&6
7618: cat >>confdefs.h <<\EOF
1.1 millert 7619: #define _PATH_VI "/usr/bsd/vi"
7620: EOF
7621:
7622: elif test -f "/bin/vi"; then
1.16 millert 7623: echo "$as_me:$LINENO: result: /bin/vi" >&5
1.9 millert 7624: echo "${ECHO_T}/bin/vi" >&6
7625: cat >>confdefs.h <<\EOF
1.1 millert 7626: #define _PATH_VI "/bin/vi"
7627: EOF
7628:
7629: elif test -f "/usr/local/bin/vi"; then
1.16 millert 7630: echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
1.9 millert 7631: echo "${ECHO_T}/usr/local/bin/vi" >&6
7632: cat >>confdefs.h <<\EOF
1.1 millert 7633: #define _PATH_VI "/usr/local/bin/vi"
7634: EOF
7635:
7636: else
1.16 millert 7637: echo "$as_me:$LINENO: result: not found" >&5
1.9 millert 7638: echo "${ECHO_T}not found" >&6
1.1 millert 7639: fi
7640:
1.9 millert 7641: fi
1.16 millert 7642: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1.9 millert 7643: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7644: if test "${ac_cv_header_stdc+set}" = set; then
7645: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7646: else
1.9 millert 7647: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7648: #line $LINENO "configure"
7649: /* confdefs.h. */
7650: _ACEOF
7651: cat confdefs.h >>conftest.$ac_ext
7652: cat >>conftest.$ac_ext <<_ACEOF
7653: /* end confdefs.h. */
1.1 millert 7654: #include <stdlib.h>
7655: #include <stdarg.h>
7656: #include <string.h>
7657: #include <float.h>
1.9 millert 7658:
1.16 millert 7659: int
7660: main ()
7661: {
7662:
7663: ;
7664: return 0;
7665: }
1.9 millert 7666: _ACEOF
1.16 millert 7667: rm -f conftest.$ac_objext
7668: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7669: (eval $ac_compile) 2>&5
7670: ac_status=$?
7671: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672: (exit $ac_status); } &&
7673: { ac_try='test -s conftest.$ac_objext'
7674: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675: (eval $ac_try) 2>&5
1.9 millert 7676: ac_status=$?
1.16 millert 7677: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678: (exit $ac_status); }; }; then
1.1 millert 7679: ac_cv_header_stdc=yes
7680: else
1.9 millert 7681: echo "$as_me: failed program was:" >&5
1.16 millert 7682: sed 's/^/| /' conftest.$ac_ext >&5
7683:
7684: ac_cv_header_stdc=no
1.1 millert 7685: fi
1.16 millert 7686: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 7687:
7688: if test $ac_cv_header_stdc = yes; then
7689: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.9 millert 7690: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7691: #line $LINENO "configure"
7692: /* confdefs.h. */
7693: _ACEOF
7694: cat confdefs.h >>conftest.$ac_ext
7695: cat >>conftest.$ac_ext <<_ACEOF
7696: /* end confdefs.h. */
1.1 millert 7697: #include <string.h>
1.9 millert 7698:
7699: _ACEOF
1.1 millert 7700: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 7701: $EGREP "memchr" >/dev/null 2>&1; then
1.1 millert 7702: :
7703: else
7704: ac_cv_header_stdc=no
7705: fi
7706: rm -f conftest*
7707:
7708: fi
7709:
7710: if test $ac_cv_header_stdc = yes; then
7711: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.9 millert 7712: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7713: #line $LINENO "configure"
7714: /* confdefs.h. */
7715: _ACEOF
7716: cat confdefs.h >>conftest.$ac_ext
7717: cat >>conftest.$ac_ext <<_ACEOF
7718: /* end confdefs.h. */
1.1 millert 7719: #include <stdlib.h>
1.9 millert 7720:
7721: _ACEOF
1.1 millert 7722: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 7723: $EGREP "free" >/dev/null 2>&1; then
1.1 millert 7724: :
7725: else
7726: ac_cv_header_stdc=no
7727: fi
7728: rm -f conftest*
7729:
7730: fi
7731:
7732: if test $ac_cv_header_stdc = yes; then
7733: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.9 millert 7734: if test "$cross_compiling" = yes; then
1.1 millert 7735: :
7736: else
1.9 millert 7737: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7738: #line $LINENO "configure"
7739: /* confdefs.h. */
7740: _ACEOF
7741: cat confdefs.h >>conftest.$ac_ext
7742: cat >>conftest.$ac_ext <<_ACEOF
7743: /* end confdefs.h. */
1.1 millert 7744: #include <ctype.h>
1.9 millert 7745: #if ((' ' & 0x0FF) == 0x020)
7746: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7747: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7748: #else
1.16 millert 7749: # define ISLOWER(c) \
7750: (('a' <= (c) && (c) <= 'i') \
1.9 millert 7751: || ('j' <= (c) && (c) <= 'r') \
7752: || ('s' <= (c) && (c) <= 'z'))
7753: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7754: #endif
7755:
1.1 millert 7756: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.9 millert 7757: int
7758: main ()
7759: {
7760: int i;
7761: for (i = 0; i < 256; i++)
7762: if (XOR (islower (i), ISLOWER (i))
7763: || toupper (i) != TOUPPER (i))
7764: exit(2);
7765: exit (0);
7766: }
7767: _ACEOF
7768: rm -f conftest$ac_exeext
1.16 millert 7769: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 7770: (eval $ac_link) 2>&5
7771: ac_status=$?
1.16 millert 7772: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7773: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16 millert 7774: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 7775: (eval $ac_try) 2>&5
7776: ac_status=$?
1.16 millert 7777: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7778: (exit $ac_status); }; }; then
1.1 millert 7779: :
7780: else
1.9 millert 7781: echo "$as_me: program exited with status $ac_status" >&5
7782: echo "$as_me: failed program was:" >&5
1.16 millert 7783: sed 's/^/| /' conftest.$ac_ext >&5
7784:
7785: ( exit $ac_status )
1.9 millert 7786: ac_cv_header_stdc=no
1.1 millert 7787: fi
1.16 millert 7788: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 7789: fi
7790: fi
7791: fi
1.16 millert 7792: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1.9 millert 7793: echo "${ECHO_T}$ac_cv_header_stdc" >&6
7794: if test $ac_cv_header_stdc = yes; then
1.1 millert 7795:
1.16 millert 7796: cat >>confdefs.h <<\_ACEOF
1.1 millert 7797: #define STDC_HEADERS 1
1.16 millert 7798: _ACEOF
1.1 millert 7799:
7800: fi
7801:
1.16 millert 7802:
7803:
7804:
7805:
7806:
1.1 millert 7807: ac_header_dirent=no
1.9 millert 7808: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7809: as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
1.16 millert 7810: echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
1.9 millert 7811: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7812: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7813: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7814: else
1.9 millert 7815: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7816: #line $LINENO "configure"
7817: /* confdefs.h. */
7818: _ACEOF
7819: cat confdefs.h >>conftest.$ac_ext
7820: cat >>conftest.$ac_ext <<_ACEOF
7821: /* end confdefs.h. */
1.1 millert 7822: #include <sys/types.h>
7823: #include <$ac_hdr>
1.9 millert 7824:
7825: int
7826: main ()
7827: {
7828: if ((DIR *) 0)
7829: return 0;
7830: ;
7831: return 0;
7832: }
7833: _ACEOF
7834: rm -f conftest.$ac_objext
1.16 millert 7835: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 7836: (eval $ac_compile) 2>&5
7837: ac_status=$?
1.16 millert 7838: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7839: (exit $ac_status); } &&
7840: { ac_try='test -s conftest.$ac_objext'
1.16 millert 7841: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 7842: (eval $ac_try) 2>&5
7843: ac_status=$?
1.16 millert 7844: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7845: (exit $ac_status); }; }; then
7846: eval "$as_ac_Header=yes"
7847: else
7848: echo "$as_me: failed program was:" >&5
1.16 millert 7849: sed 's/^/| /' conftest.$ac_ext >&5
7850:
1.9 millert 7851: eval "$as_ac_Header=no"
7852: fi
7853: rm -f conftest.$ac_objext conftest.$ac_ext
7854: fi
1.16 millert 7855: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9 millert 7856: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7857: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.16 millert 7858: cat >>confdefs.h <<_ACEOF
1.9 millert 7859: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
1.16 millert 7860: _ACEOF
1.9 millert 7861:
7862: ac_header_dirent=$ac_hdr; break
1.1 millert 7863: fi
1.9 millert 7864:
1.1 millert 7865: done
7866: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7867: if test $ac_header_dirent = dirent.h; then
1.16 millert 7868: echo "$as_me:$LINENO: checking for library containing opendir" >&5
7869: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7870: if test "${ac_cv_search_opendir+set}" = set; then
1.9 millert 7871: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7872: else
1.16 millert 7873: ac_func_search_save_LIBS=$LIBS
7874: ac_cv_search_opendir=no
1.9 millert 7875: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7876: #line $LINENO "configure"
7877: /* confdefs.h. */
7878: _ACEOF
7879: cat confdefs.h >>conftest.$ac_ext
7880: cat >>conftest.$ac_ext <<_ACEOF
7881: /* end confdefs.h. */
7882:
7883: /* Override any gcc2 internal prototype to avoid an error. */
7884: #ifdef __cplusplus
7885: extern "C"
7886: #endif
7887: /* We use char because int might match the return type of a gcc2
7888: builtin and then its argument prototype would still apply. */
7889: char opendir ();
7890: int
7891: main ()
7892: {
7893: opendir ();
7894: ;
7895: return 0;
7896: }
7897: _ACEOF
7898: rm -f conftest.$ac_objext conftest$ac_exeext
7899: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7900: (eval $ac_link) 2>&5
7901: ac_status=$?
7902: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903: (exit $ac_status); } &&
7904: { ac_try='test -s conftest$ac_exeext'
7905: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906: (eval $ac_try) 2>&5
7907: ac_status=$?
7908: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909: (exit $ac_status); }; }; then
7910: ac_cv_search_opendir="none required"
7911: else
7912: echo "$as_me: failed program was:" >&5
7913: sed 's/^/| /' conftest.$ac_ext >&5
7914:
7915: fi
7916: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7917: if test "$ac_cv_search_opendir" = no; then
7918: for ac_lib in dir; do
7919: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7920: cat >conftest.$ac_ext <<_ACEOF
7921: #line $LINENO "configure"
7922: /* confdefs.h. */
7923: _ACEOF
7924: cat confdefs.h >>conftest.$ac_ext
7925: cat >>conftest.$ac_ext <<_ACEOF
7926: /* end confdefs.h. */
1.9 millert 7927:
1.1 millert 7928: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 7929: #ifdef __cplusplus
7930: extern "C"
7931: #endif
1.1 millert 7932: /* We use char because int might match the return type of a gcc2
1.9 millert 7933: builtin and then its argument prototype would still apply. */
7934: char opendir ();
7935: int
7936: main ()
7937: {
7938: opendir ();
7939: ;
7940: return 0;
7941: }
7942: _ACEOF
7943: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 7944: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 7945: (eval $ac_link) 2>&5
7946: ac_status=$?
1.16 millert 7947: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7948: (exit $ac_status); } &&
7949: { ac_try='test -s conftest$ac_exeext'
1.16 millert 7950: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 7951: (eval $ac_try) 2>&5
7952: ac_status=$?
1.16 millert 7953: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7954: (exit $ac_status); }; }; then
1.16 millert 7955: ac_cv_search_opendir="-l$ac_lib"
7956: break
1.9 millert 7957: else
7958: echo "$as_me: failed program was:" >&5
1.16 millert 7959: sed 's/^/| /' conftest.$ac_ext >&5
7960:
1.9 millert 7961: fi
7962: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.16 millert 7963: done
7964: fi
7965: LIBS=$ac_func_search_save_LIBS
1.9 millert 7966: fi
1.16 millert 7967: echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7968: echo "${ECHO_T}$ac_cv_search_opendir" >&6
7969: if test "$ac_cv_search_opendir" != no; then
7970: test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7971:
1.1 millert 7972: fi
7973:
7974: else
1.16 millert 7975: echo "$as_me:$LINENO: checking for library containing opendir" >&5
7976: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7977: if test "${ac_cv_search_opendir+set}" = set; then
1.9 millert 7978: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7979: else
1.16 millert 7980: ac_func_search_save_LIBS=$LIBS
7981: ac_cv_search_opendir=no
1.9 millert 7982: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7983: #line $LINENO "configure"
7984: /* confdefs.h. */
7985: _ACEOF
7986: cat confdefs.h >>conftest.$ac_ext
7987: cat >>conftest.$ac_ext <<_ACEOF
7988: /* end confdefs.h. */
7989:
7990: /* Override any gcc2 internal prototype to avoid an error. */
7991: #ifdef __cplusplus
7992: extern "C"
7993: #endif
7994: /* We use char because int might match the return type of a gcc2
7995: builtin and then its argument prototype would still apply. */
7996: char opendir ();
7997: int
7998: main ()
7999: {
8000: opendir ();
8001: ;
8002: return 0;
8003: }
8004: _ACEOF
8005: rm -f conftest.$ac_objext conftest$ac_exeext
8006: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8007: (eval $ac_link) 2>&5
8008: ac_status=$?
8009: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010: (exit $ac_status); } &&
8011: { ac_try='test -s conftest$ac_exeext'
8012: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013: (eval $ac_try) 2>&5
8014: ac_status=$?
8015: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016: (exit $ac_status); }; }; then
8017: ac_cv_search_opendir="none required"
8018: else
8019: echo "$as_me: failed program was:" >&5
8020: sed 's/^/| /' conftest.$ac_ext >&5
8021:
8022: fi
8023: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8024: if test "$ac_cv_search_opendir" = no; then
8025: for ac_lib in x; do
8026: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8027: cat >conftest.$ac_ext <<_ACEOF
8028: #line $LINENO "configure"
8029: /* confdefs.h. */
8030: _ACEOF
8031: cat confdefs.h >>conftest.$ac_ext
8032: cat >>conftest.$ac_ext <<_ACEOF
8033: /* end confdefs.h. */
1.9 millert 8034:
1.1 millert 8035: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 8036: #ifdef __cplusplus
8037: extern "C"
8038: #endif
1.1 millert 8039: /* We use char because int might match the return type of a gcc2
1.9 millert 8040: builtin and then its argument prototype would still apply. */
8041: char opendir ();
8042: int
8043: main ()
8044: {
8045: opendir ();
8046: ;
8047: return 0;
8048: }
8049: _ACEOF
8050: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 8051: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 8052: (eval $ac_link) 2>&5
8053: ac_status=$?
1.16 millert 8054: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 8055: (exit $ac_status); } &&
8056: { ac_try='test -s conftest$ac_exeext'
1.16 millert 8057: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 8058: (eval $ac_try) 2>&5
8059: ac_status=$?
1.16 millert 8060: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 8061: (exit $ac_status); }; }; then
1.16 millert 8062: ac_cv_search_opendir="-l$ac_lib"
8063: break
1.9 millert 8064: else
8065: echo "$as_me: failed program was:" >&5
1.16 millert 8066: sed 's/^/| /' conftest.$ac_ext >&5
8067:
1.9 millert 8068: fi
8069: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.16 millert 8070: done
8071: fi
8072: LIBS=$ac_func_search_save_LIBS
8073: fi
8074: echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8075: echo "${ECHO_T}$ac_cv_search_opendir" >&6
8076: if test "$ac_cv_search_opendir" != no; then
8077: test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8078:
8079: fi
8080:
8081: fi
8082:
8083: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8084:
8085:
8086:
8087:
8088:
8089:
8090:
8091:
8092:
8093: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8094: inttypes.h stdint.h unistd.h
8095: do
8096: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8097: echo "$as_me:$LINENO: checking for $ac_header" >&5
8098: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8099: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8100: echo $ECHO_N "(cached) $ECHO_C" >&6
8101: else
8102: cat >conftest.$ac_ext <<_ACEOF
8103: #line $LINENO "configure"
8104: /* confdefs.h. */
8105: _ACEOF
8106: cat confdefs.h >>conftest.$ac_ext
8107: cat >>conftest.$ac_ext <<_ACEOF
8108: /* end confdefs.h. */
8109: $ac_includes_default
8110:
8111: #include <$ac_header>
8112: _ACEOF
8113: rm -f conftest.$ac_objext
8114: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8115: (eval $ac_compile) 2>&5
8116: ac_status=$?
8117: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118: (exit $ac_status); } &&
8119: { ac_try='test -s conftest.$ac_objext'
8120: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121: (eval $ac_try) 2>&5
8122: ac_status=$?
8123: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124: (exit $ac_status); }; }; then
8125: eval "$as_ac_Header=yes"
8126: else
8127: echo "$as_me: failed program was:" >&5
8128: sed 's/^/| /' conftest.$ac_ext >&5
8129:
8130: eval "$as_ac_Header=no"
1.9 millert 8131: fi
1.16 millert 8132: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 8133: fi
1.16 millert 8134: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8135: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8136: if test `eval echo '${'$as_ac_Header'}'` = yes; then
8137: cat >>confdefs.h <<_ACEOF
8138: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8139: _ACEOF
1.1 millert 8140:
8141: fi
8142:
1.16 millert 8143: done
8144:
8145:
8146:
8147:
8148:
8149:
8150:
8151:
8152:
1.9 millert 8153: for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
1.1 millert 8154: do
1.9 millert 8155: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.16 millert 8156: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8157: echo "$as_me:$LINENO: checking for $ac_header" >&5
1.9 millert 8158: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8159: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8160: echo $ECHO_N "(cached) $ECHO_C" >&6
1.16 millert 8161: fi
8162: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8163: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8164: else
8165: # Is the header compilable?
8166: echo "$as_me:$LINENO: checking $ac_header usability" >&5
8167: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8168: cat >conftest.$ac_ext <<_ACEOF
8169: #line $LINENO "configure"
8170: /* confdefs.h. */
8171: _ACEOF
8172: cat confdefs.h >>conftest.$ac_ext
8173: cat >>conftest.$ac_ext <<_ACEOF
8174: /* end confdefs.h. */
8175: $ac_includes_default
8176: #include <$ac_header>
8177: _ACEOF
8178: rm -f conftest.$ac_objext
8179: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180: (eval $ac_compile) 2>&5
8181: ac_status=$?
8182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183: (exit $ac_status); } &&
8184: { ac_try='test -s conftest.$ac_objext'
8185: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186: (eval $ac_try) 2>&5
8187: ac_status=$?
8188: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189: (exit $ac_status); }; }; then
8190: ac_header_compiler=yes
1.9 millert 8191: else
1.16 millert 8192: echo "$as_me: failed program was:" >&5
8193: sed 's/^/| /' conftest.$ac_ext >&5
8194:
8195: ac_header_compiler=no
8196: fi
8197: rm -f conftest.$ac_objext conftest.$ac_ext
8198: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8199: echo "${ECHO_T}$ac_header_compiler" >&6
8200:
8201: # Is the header present?
8202: echo "$as_me:$LINENO: checking $ac_header presence" >&5
8203: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8204: cat >conftest.$ac_ext <<_ACEOF
8205: #line $LINENO "configure"
8206: /* confdefs.h. */
8207: _ACEOF
8208: cat confdefs.h >>conftest.$ac_ext
8209: cat >>conftest.$ac_ext <<_ACEOF
8210: /* end confdefs.h. */
1.9 millert 8211: #include <$ac_header>
8212: _ACEOF
1.16 millert 8213: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 8214: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8215: ac_status=$?
1.16 millert 8216: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 8217: rm -f conftest.er1
8218: cat conftest.err >&5
1.16 millert 8219: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 8220: (exit $ac_status); } >/dev/null; then
8221: if test -s conftest.err; then
8222: ac_cpp_err=$ac_c_preproc_warn_flag
8223: else
8224: ac_cpp_err=
8225: fi
1.1 millert 8226: else
1.9 millert 8227: ac_cpp_err=yes
8228: fi
8229: if test -z "$ac_cpp_err"; then
1.16 millert 8230: ac_header_preproc=yes
1.1 millert 8231: else
1.9 millert 8232: echo "$as_me: failed program was:" >&5
1.16 millert 8233: sed 's/^/| /' conftest.$ac_ext >&5
8234:
8235: ac_header_preproc=no
1.1 millert 8236: fi
1.9 millert 8237: rm -f conftest.err conftest.$ac_ext
1.16 millert 8238: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8239: echo "${ECHO_T}$ac_header_preproc" >&6
8240:
8241: # So? What about this header?
8242: case $ac_header_compiler:$ac_header_preproc in
8243: yes:no )
8244: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8245: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8246: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8247: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8248: (
8249: cat <<\_ASBOX
8250: ## ------------------------------------ ##
8251: ## Report this to bug-autoconf@gnu.org. ##
8252: ## ------------------------------------ ##
8253: _ASBOX
8254: ) |
8255: sed "s/^/$as_me: WARNING: /" >&2
8256: ;;
8257: no:yes )
8258: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8259: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8260: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8261: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8262: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8263: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8264: (
8265: cat <<\_ASBOX
8266: ## ------------------------------------ ##
8267: ## Report this to bug-autoconf@gnu.org. ##
8268: ## ------------------------------------ ##
8269: _ASBOX
8270: ) |
8271: sed "s/^/$as_me: WARNING: /" >&2
8272: ;;
8273: esac
8274: echo "$as_me:$LINENO: checking for $ac_header" >&5
8275: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8276: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8277: echo $ECHO_N "(cached) $ECHO_C" >&6
8278: else
8279: eval "$as_ac_Header=$ac_header_preproc"
1.1 millert 8280: fi
1.16 millert 8281: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9 millert 8282: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.16 millert 8283:
8284: fi
1.9 millert 8285: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.16 millert 8286: cat >>confdefs.h <<_ACEOF
1.9 millert 8287: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.16 millert 8288: _ACEOF
1.9 millert 8289:
1.1 millert 8290: fi
1.16 millert 8291:
1.1 millert 8292: done
8293:
1.18 millert 8294:
8295: for ac_header in err.h
8296: do
8297: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8298: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8299: echo "$as_me:$LINENO: checking for $ac_header" >&5
8300: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8301: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8302: echo $ECHO_N "(cached) $ECHO_C" >&6
8303: fi
8304: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8305: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8306: else
8307: # Is the header compilable?
8308: echo "$as_me:$LINENO: checking $ac_header usability" >&5
8309: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8310: cat >conftest.$ac_ext <<_ACEOF
8311: #line $LINENO "configure"
8312: /* confdefs.h. */
8313: _ACEOF
8314: cat confdefs.h >>conftest.$ac_ext
8315: cat >>conftest.$ac_ext <<_ACEOF
8316: /* end confdefs.h. */
8317: $ac_includes_default
8318: #include <$ac_header>
8319: _ACEOF
8320: rm -f conftest.$ac_objext
8321: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8322: (eval $ac_compile) 2>&5
8323: ac_status=$?
8324: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325: (exit $ac_status); } &&
8326: { ac_try='test -s conftest.$ac_objext'
8327: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328: (eval $ac_try) 2>&5
8329: ac_status=$?
8330: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331: (exit $ac_status); }; }; then
8332: ac_header_compiler=yes
8333: else
8334: echo "$as_me: failed program was:" >&5
8335: sed 's/^/| /' conftest.$ac_ext >&5
8336:
8337: ac_header_compiler=no
8338: fi
8339: rm -f conftest.$ac_objext conftest.$ac_ext
8340: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8341: echo "${ECHO_T}$ac_header_compiler" >&6
8342:
8343: # Is the header present?
8344: echo "$as_me:$LINENO: checking $ac_header presence" >&5
8345: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8346: cat >conftest.$ac_ext <<_ACEOF
8347: #line $LINENO "configure"
8348: /* confdefs.h. */
8349: _ACEOF
8350: cat confdefs.h >>conftest.$ac_ext
8351: cat >>conftest.$ac_ext <<_ACEOF
8352: /* end confdefs.h. */
8353: #include <$ac_header>
8354: _ACEOF
8355: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8356: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8357: ac_status=$?
8358: grep -v '^ *+' conftest.er1 >conftest.err
8359: rm -f conftest.er1
8360: cat conftest.err >&5
8361: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362: (exit $ac_status); } >/dev/null; then
8363: if test -s conftest.err; then
8364: ac_cpp_err=$ac_c_preproc_warn_flag
8365: else
8366: ac_cpp_err=
8367: fi
8368: else
8369: ac_cpp_err=yes
8370: fi
8371: if test -z "$ac_cpp_err"; then
8372: ac_header_preproc=yes
8373: else
8374: echo "$as_me: failed program was:" >&5
8375: sed 's/^/| /' conftest.$ac_ext >&5
8376:
8377: ac_header_preproc=no
8378: fi
8379: rm -f conftest.err conftest.$ac_ext
8380: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8381: echo "${ECHO_T}$ac_header_preproc" >&6
8382:
8383: # So? What about this header?
8384: case $ac_header_compiler:$ac_header_preproc in
8385: yes:no )
8386: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8387: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8388: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8389: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8390: (
8391: cat <<\_ASBOX
8392: ## ------------------------------------ ##
8393: ## Report this to bug-autoconf@gnu.org. ##
8394: ## ------------------------------------ ##
8395: _ASBOX
8396: ) |
8397: sed "s/^/$as_me: WARNING: /" >&2
8398: ;;
8399: no:yes )
8400: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8401: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8402: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8403: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8404: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8405: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8406: (
8407: cat <<\_ASBOX
8408: ## ------------------------------------ ##
8409: ## Report this to bug-autoconf@gnu.org. ##
8410: ## ------------------------------------ ##
8411: _ASBOX
8412: ) |
8413: sed "s/^/$as_me: WARNING: /" >&2
8414: ;;
8415: esac
8416: echo "$as_me:$LINENO: checking for $ac_header" >&5
8417: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8418: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8419: echo $ECHO_N "(cached) $ECHO_C" >&6
8420: else
8421: eval "$as_ac_Header=$ac_header_preproc"
8422: fi
8423: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8424: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8425:
8426: fi
8427: if test `eval echo '${'$as_ac_Header'}'` = yes; then
8428: cat >>confdefs.h <<_ACEOF
8429: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8430: _ACEOF
8431:
8432: else
8433: LIBOBJS="$LIBOBJS err.$ac_objext"
8434: fi
8435:
8436: done
8437:
1.1 millert 8438: if test "$OS" != "ultrix"; then
1.16 millert 8439: echo "$as_me:$LINENO: checking POSIX termios" >&5
1.9 millert 8440: echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
8441: if test "${ac_cv_sys_posix_termios+set}" = set; then
8442: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8443: else
1.9 millert 8444: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 8445: #line $LINENO "configure"
8446: /* confdefs.h. */
8447: _ACEOF
8448: cat confdefs.h >>conftest.$ac_ext
8449: cat >>conftest.$ac_ext <<_ACEOF
8450: /* end confdefs.h. */
1.9 millert 8451: #include <sys/types.h>
8452: #include <unistd.h>
8453: #include <termios.h>
1.16 millert 8454:
1.9 millert 8455: int
8456: main ()
8457: {
8458: /* SunOS 4.0.3 has termios.h but not the library calls. */
8459: tcgetattr(0, 0);
8460: ;
8461: return 0;
8462: }
8463: _ACEOF
8464: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 8465: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 8466: (eval $ac_link) 2>&5
8467: ac_status=$?
1.16 millert 8468: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 8469: (exit $ac_status); } &&
8470: { ac_try='test -s conftest$ac_exeext'
1.16 millert 8471: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 8472: (eval $ac_try) 2>&5
8473: ac_status=$?
1.16 millert 8474: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 8475: (exit $ac_status); }; }; then
8476: ac_cv_sys_posix_termios=yes
8477: else
8478: echo "$as_me: failed program was:" >&5
1.16 millert 8479: sed 's/^/| /' conftest.$ac_ext >&5
8480:
1.9 millert 8481: ac_cv_sys_posix_termios=no
8482: fi
8483: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8484: fi
1.16 millert 8485: echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
1.9 millert 8486: echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
8487:
8488: if test "$ac_cv_sys_posix_termios" = "yes"; then
8489:
1.16 millert 8490: cat >>confdefs.h <<\_ACEOF
1.9 millert 8491: #define HAVE_TERMIOS_H 1
1.16 millert 8492: _ACEOF
1.9 millert 8493:
8494: else
8495:
8496: for ac_header in termio.h
8497: do
8498: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.16 millert 8499: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8500: echo "$as_me:$LINENO: checking for $ac_header" >&5
1.9 millert 8501: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8502: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8503: echo $ECHO_N "(cached) $ECHO_C" >&6
1.16 millert 8504: fi
8505: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8506: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8507: else
8508: # Is the header compilable?
8509: echo "$as_me:$LINENO: checking $ac_header usability" >&5
8510: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8511: cat >conftest.$ac_ext <<_ACEOF
8512: #line $LINENO "configure"
8513: /* confdefs.h. */
8514: _ACEOF
8515: cat confdefs.h >>conftest.$ac_ext
8516: cat >>conftest.$ac_ext <<_ACEOF
8517: /* end confdefs.h. */
8518: $ac_includes_default
8519: #include <$ac_header>
8520: _ACEOF
8521: rm -f conftest.$ac_objext
8522: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8523: (eval $ac_compile) 2>&5
8524: ac_status=$?
8525: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526: (exit $ac_status); } &&
8527: { ac_try='test -s conftest.$ac_objext'
8528: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529: (eval $ac_try) 2>&5
8530: ac_status=$?
8531: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532: (exit $ac_status); }; }; then
8533: ac_header_compiler=yes
8534: else
8535: echo "$as_me: failed program was:" >&5
8536: sed 's/^/| /' conftest.$ac_ext >&5
8537:
8538: ac_header_compiler=no
8539: fi
8540: rm -f conftest.$ac_objext conftest.$ac_ext
8541: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8542: echo "${ECHO_T}$ac_header_compiler" >&6
8543:
8544: # Is the header present?
8545: echo "$as_me:$LINENO: checking $ac_header presence" >&5
8546: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8547: cat >conftest.$ac_ext <<_ACEOF
8548: #line $LINENO "configure"
8549: /* confdefs.h. */
8550: _ACEOF
8551: cat confdefs.h >>conftest.$ac_ext
8552: cat >>conftest.$ac_ext <<_ACEOF
8553: /* end confdefs.h. */
1.9 millert 8554: #include <$ac_header>
8555: _ACEOF
1.16 millert 8556: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 8557: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8558: ac_status=$?
1.16 millert 8559: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 8560: rm -f conftest.er1
8561: cat conftest.err >&5
1.16 millert 8562: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 8563: (exit $ac_status); } >/dev/null; then
8564: if test -s conftest.err; then
8565: ac_cpp_err=$ac_c_preproc_warn_flag
8566: else
8567: ac_cpp_err=
8568: fi
8569: else
8570: ac_cpp_err=yes
8571: fi
8572: if test -z "$ac_cpp_err"; then
1.16 millert 8573: ac_header_preproc=yes
1.1 millert 8574: else
1.9 millert 8575: echo "$as_me: failed program was:" >&5
1.16 millert 8576: sed 's/^/| /' conftest.$ac_ext >&5
8577:
8578: ac_header_preproc=no
1.1 millert 8579: fi
1.9 millert 8580: rm -f conftest.err conftest.$ac_ext
1.16 millert 8581: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8582: echo "${ECHO_T}$ac_header_preproc" >&6
8583:
8584: # So? What about this header?
8585: case $ac_header_compiler:$ac_header_preproc in
8586: yes:no )
8587: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8588: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8589: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8590: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8591: (
8592: cat <<\_ASBOX
8593: ## ------------------------------------ ##
8594: ## Report this to bug-autoconf@gnu.org. ##
8595: ## ------------------------------------ ##
8596: _ASBOX
8597: ) |
8598: sed "s/^/$as_me: WARNING: /" >&2
8599: ;;
8600: no:yes )
8601: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8602: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8603: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8604: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8605: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8606: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8607: (
8608: cat <<\_ASBOX
8609: ## ------------------------------------ ##
8610: ## Report this to bug-autoconf@gnu.org. ##
8611: ## ------------------------------------ ##
8612: _ASBOX
8613: ) |
8614: sed "s/^/$as_me: WARNING: /" >&2
8615: ;;
8616: esac
8617: echo "$as_me:$LINENO: checking for $ac_header" >&5
8618: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8619: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8620: echo $ECHO_N "(cached) $ECHO_C" >&6
8621: else
8622: eval "$as_ac_Header=$ac_header_preproc"
1.1 millert 8623: fi
1.16 millert 8624: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9 millert 8625: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.16 millert 8626:
8627: fi
1.9 millert 8628: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.16 millert 8629: cat >>confdefs.h <<_ACEOF
1.9 millert 8630: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.16 millert 8631: _ACEOF
1.9 millert 8632:
1.1 millert 8633: fi
1.16 millert 8634:
1.1 millert 8635: done
8636:
1.9 millert 8637: fi
8638: fi
8639: if test "$with_logincap" = "yes"; then
8640:
8641: for ac_header in login_cap.h
1.1 millert 8642: do
1.9 millert 8643: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.16 millert 8644: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8645: echo "$as_me:$LINENO: checking for $ac_header" >&5
1.9 millert 8646: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8647: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8648: echo $ECHO_N "(cached) $ECHO_C" >&6
1.16 millert 8649: fi
8650: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8651: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8652: else
8653: # Is the header compilable?
8654: echo "$as_me:$LINENO: checking $ac_header usability" >&5
8655: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8656: cat >conftest.$ac_ext <<_ACEOF
8657: #line $LINENO "configure"
8658: /* confdefs.h. */
8659: _ACEOF
8660: cat confdefs.h >>conftest.$ac_ext
8661: cat >>conftest.$ac_ext <<_ACEOF
8662: /* end confdefs.h. */
8663: $ac_includes_default
8664: #include <$ac_header>
8665: _ACEOF
8666: rm -f conftest.$ac_objext
8667: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8668: (eval $ac_compile) 2>&5
8669: ac_status=$?
8670: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671: (exit $ac_status); } &&
8672: { ac_try='test -s conftest.$ac_objext'
8673: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674: (eval $ac_try) 2>&5
8675: ac_status=$?
8676: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677: (exit $ac_status); }; }; then
8678: ac_header_compiler=yes
1.9 millert 8679: else
1.16 millert 8680: echo "$as_me: failed program was:" >&5
8681: sed 's/^/| /' conftest.$ac_ext >&5
8682:
8683: ac_header_compiler=no
8684: fi
8685: rm -f conftest.$ac_objext conftest.$ac_ext
8686: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8687: echo "${ECHO_T}$ac_header_compiler" >&6
8688:
8689: # Is the header present?
8690: echo "$as_me:$LINENO: checking $ac_header presence" >&5
8691: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8692: cat >conftest.$ac_ext <<_ACEOF
8693: #line $LINENO "configure"
8694: /* confdefs.h. */
8695: _ACEOF
8696: cat confdefs.h >>conftest.$ac_ext
8697: cat >>conftest.$ac_ext <<_ACEOF
8698: /* end confdefs.h. */
1.9 millert 8699: #include <$ac_header>
8700: _ACEOF
1.16 millert 8701: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 8702: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8703: ac_status=$?
1.16 millert 8704: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 8705: rm -f conftest.er1
8706: cat conftest.err >&5
1.16 millert 8707: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 8708: (exit $ac_status); } >/dev/null; then
8709: if test -s conftest.err; then
8710: ac_cpp_err=$ac_c_preproc_warn_flag
8711: else
8712: ac_cpp_err=
8713: fi
1.1 millert 8714: else
1.9 millert 8715: ac_cpp_err=yes
8716: fi
8717: if test -z "$ac_cpp_err"; then
1.16 millert 8718: ac_header_preproc=yes
1.1 millert 8719: else
1.9 millert 8720: echo "$as_me: failed program was:" >&5
1.16 millert 8721: sed 's/^/| /' conftest.$ac_ext >&5
8722:
8723: ac_header_preproc=no
1.1 millert 8724: fi
1.9 millert 8725: rm -f conftest.err conftest.$ac_ext
1.16 millert 8726: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8727: echo "${ECHO_T}$ac_header_preproc" >&6
8728:
8729: # So? What about this header?
8730: case $ac_header_compiler:$ac_header_preproc in
8731: yes:no )
8732: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8733: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8734: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8735: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8736: (
8737: cat <<\_ASBOX
8738: ## ------------------------------------ ##
8739: ## Report this to bug-autoconf@gnu.org. ##
8740: ## ------------------------------------ ##
8741: _ASBOX
8742: ) |
8743: sed "s/^/$as_me: WARNING: /" >&2
8744: ;;
8745: no:yes )
8746: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8747: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8748: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8749: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8750: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8751: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8752: (
8753: cat <<\_ASBOX
8754: ## ------------------------------------ ##
8755: ## Report this to bug-autoconf@gnu.org. ##
8756: ## ------------------------------------ ##
8757: _ASBOX
8758: ) |
8759: sed "s/^/$as_me: WARNING: /" >&2
8760: ;;
8761: esac
8762: echo "$as_me:$LINENO: checking for $ac_header" >&5
8763: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8764: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8765: echo $ECHO_N "(cached) $ECHO_C" >&6
8766: else
8767: eval "$as_ac_Header=$ac_header_preproc"
1.1 millert 8768: fi
1.16 millert 8769: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9 millert 8770: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.16 millert 8771:
8772: fi
1.9 millert 8773: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.16 millert 8774: cat >>confdefs.h <<_ACEOF
1.9 millert 8775: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.16 millert 8776: _ACEOF
1.9 millert 8777:
8778: fi
1.16 millert 8779:
1.9 millert 8780: done
8781:
8782: fi
8783: if test "$with_bsdauth" = "yes"; then
1.16 millert 8784: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
8785: echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
1.9 millert 8786: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6
8787: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
8788: echo $ECHO_N "(cached) $ECHO_C" >&6
1.16 millert 8789: fi
8790: echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
8791: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6
8792: else
8793: # Is the header compilable?
8794: echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
8795: echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6
8796: cat >conftest.$ac_ext <<_ACEOF
8797: #line $LINENO "configure"
8798: /* confdefs.h. */
8799: _ACEOF
8800: cat confdefs.h >>conftest.$ac_ext
8801: cat >>conftest.$ac_ext <<_ACEOF
8802: /* end confdefs.h. */
8803: $ac_includes_default
8804: #include <bsd_auth.h>
8805: _ACEOF
8806: rm -f conftest.$ac_objext
8807: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8808: (eval $ac_compile) 2>&5
8809: ac_status=$?
8810: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811: (exit $ac_status); } &&
8812: { ac_try='test -s conftest.$ac_objext'
8813: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814: (eval $ac_try) 2>&5
8815: ac_status=$?
8816: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817: (exit $ac_status); }; }; then
8818: ac_header_compiler=yes
1.1 millert 8819: else
1.16 millert 8820: echo "$as_me: failed program was:" >&5
8821: sed 's/^/| /' conftest.$ac_ext >&5
8822:
8823: ac_header_compiler=no
8824: fi
8825: rm -f conftest.$ac_objext conftest.$ac_ext
8826: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8827: echo "${ECHO_T}$ac_header_compiler" >&6
8828:
8829: # Is the header present?
8830: echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
8831: echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6
8832: cat >conftest.$ac_ext <<_ACEOF
8833: #line $LINENO "configure"
8834: /* confdefs.h. */
8835: _ACEOF
8836: cat confdefs.h >>conftest.$ac_ext
8837: cat >>conftest.$ac_ext <<_ACEOF
8838: /* end confdefs.h. */
1.9 millert 8839: #include <bsd_auth.h>
8840: _ACEOF
1.16 millert 8841: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 8842: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8843: ac_status=$?
1.16 millert 8844: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 8845: rm -f conftest.er1
8846: cat conftest.err >&5
1.16 millert 8847: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 8848: (exit $ac_status); } >/dev/null; then
8849: if test -s conftest.err; then
8850: ac_cpp_err=$ac_c_preproc_warn_flag
8851: else
8852: ac_cpp_err=
8853: fi
8854: else
8855: ac_cpp_err=yes
8856: fi
8857: if test -z "$ac_cpp_err"; then
1.16 millert 8858: ac_header_preproc=yes
1.1 millert 8859: else
1.9 millert 8860: echo "$as_me: failed program was:" >&5
1.16 millert 8861: sed 's/^/| /' conftest.$ac_ext >&5
8862:
8863: ac_header_preproc=no
1.1 millert 8864: fi
1.9 millert 8865: rm -f conftest.err conftest.$ac_ext
1.16 millert 8866: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8867: echo "${ECHO_T}$ac_header_preproc" >&6
8868:
8869: # So? What about this header?
8870: case $ac_header_compiler:$ac_header_preproc in
8871: yes:no )
8872: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
8873: echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8874: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
8875: echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
8876: (
8877: cat <<\_ASBOX
8878: ## ------------------------------------ ##
8879: ## Report this to bug-autoconf@gnu.org. ##
8880: ## ------------------------------------ ##
8881: _ASBOX
8882: ) |
8883: sed "s/^/$as_me: WARNING: /" >&2
8884: ;;
8885: no:yes )
8886: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
8887: echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
8888: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&5
8889: echo "$as_me: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&2;}
8890: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
8891: echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
8892: (
8893: cat <<\_ASBOX
8894: ## ------------------------------------ ##
8895: ## Report this to bug-autoconf@gnu.org. ##
8896: ## ------------------------------------ ##
8897: _ASBOX
8898: ) |
8899: sed "s/^/$as_me: WARNING: /" >&2
8900: ;;
8901: esac
8902: echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
8903: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6
8904: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
8905: echo $ECHO_N "(cached) $ECHO_C" >&6
8906: else
8907: ac_cv_header_bsd_auth_h=$ac_header_preproc
1.1 millert 8908: fi
1.16 millert 8909: echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
1.9 millert 8910: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6
1.16 millert 8911:
8912: fi
1.9 millert 8913: if test $ac_cv_header_bsd_auth_h = yes; then
1.1 millert 8914:
1.16 millert 8915: cat >>confdefs.h <<\_ACEOF
1.9 millert 8916: #define HAVE_BSD_AUTH_H 1
1.16 millert 8917: _ACEOF
1.9 millert 8918: with_passwd=no; AUTH_OBJS=bsdauth.o
1.16 millert 8919: else
8920: -
1.9 millert 8921: fi
8922:
1.1 millert 8923:
8924: fi
1.16 millert 8925: echo "$as_me:$LINENO: checking for mode_t" >&5
1.9 millert 8926: echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
8927: if test "${ac_cv_type_mode_t+set}" = set; then
8928: echo $ECHO_N "(cached) $ECHO_C" >&6
1.7 millert 8929: else
1.9 millert 8930: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 8931: #line $LINENO "configure"
8932: /* confdefs.h. */
8933: _ACEOF
8934: cat confdefs.h >>conftest.$ac_ext
8935: cat >>conftest.$ac_ext <<_ACEOF
8936: /* end confdefs.h. */
1.9 millert 8937: $ac_includes_default
8938: int
8939: main ()
8940: {
8941: if ((mode_t *) 0)
8942: return 0;
8943: if (sizeof (mode_t))
8944: return 0;
8945: ;
8946: return 0;
8947: }
8948: _ACEOF
8949: rm -f conftest.$ac_objext
1.16 millert 8950: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 8951: (eval $ac_compile) 2>&5
8952: ac_status=$?
1.16 millert 8953: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 8954: (exit $ac_status); } &&
8955: { ac_try='test -s conftest.$ac_objext'
1.16 millert 8956: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 8957: (eval $ac_try) 2>&5
8958: ac_status=$?
1.16 millert 8959: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 8960: (exit $ac_status); }; }; then
8961: ac_cv_type_mode_t=yes
8962: else
8963: echo "$as_me: failed program was:" >&5
1.16 millert 8964: sed 's/^/| /' conftest.$ac_ext >&5
8965:
1.9 millert 8966: ac_cv_type_mode_t=no
8967: fi
8968: rm -f conftest.$ac_objext conftest.$ac_ext
8969: fi
1.16 millert 8970: echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
1.9 millert 8971: echo "${ECHO_T}$ac_cv_type_mode_t" >&6
8972: if test $ac_cv_type_mode_t = yes; then
8973: :
1.7 millert 8974: else
1.9 millert 8975:
1.16 millert 8976: cat >>confdefs.h <<_ACEOF
1.9 millert 8977: #define mode_t int
1.16 millert 8978: _ACEOF
1.9 millert 8979:
1.7 millert 8980: fi
8981:
1.16 millert 8982: echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
1.9 millert 8983: echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
8984: if test "${ac_cv_type_uid_t+set}" = set; then
8985: echo $ECHO_N "(cached) $ECHO_C" >&6
1.7 millert 8986: else
1.9 millert 8987: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 8988: #line $LINENO "configure"
8989: /* confdefs.h. */
8990: _ACEOF
8991: cat confdefs.h >>conftest.$ac_ext
8992: cat >>conftest.$ac_ext <<_ACEOF
8993: /* end confdefs.h. */
1.9 millert 8994: #include <sys/types.h>
8995:
8996: _ACEOF
8997: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 8998: $EGREP "uid_t" >/dev/null 2>&1; then
1.9 millert 8999: ac_cv_type_uid_t=yes
1.7 millert 9000: else
1.9 millert 9001: ac_cv_type_uid_t=no
1.7 millert 9002: fi
9003: rm -f conftest*
1.9 millert 9004:
1.7 millert 9005: fi
1.16 millert 9006: echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
1.9 millert 9007: echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9008: if test $ac_cv_type_uid_t = no; then
9009:
1.16 millert 9010: cat >>confdefs.h <<\_ACEOF
1.9 millert 9011: #define uid_t int
1.16 millert 9012: _ACEOF
9013:
1.9 millert 9014:
1.16 millert 9015: cat >>confdefs.h <<\_ACEOF
1.9 millert 9016: #define gid_t int
1.16 millert 9017: _ACEOF
1.9 millert 9018:
9019: fi
9020:
1.16 millert 9021: echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
1.9 millert 9022: echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
9023: if test "${ac_cv_type_sig_atomic_t+set}" = set; then
9024: echo $ECHO_N "(cached) $ECHO_C" >&6
9025: else
9026: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9027: #line $LINENO "configure"
9028: /* confdefs.h. */
9029: _ACEOF
9030: cat confdefs.h >>conftest.$ac_ext
9031: cat >>conftest.$ac_ext <<_ACEOF
9032: /* end confdefs.h. */
1.9 millert 9033: #include <sys/types.h>
9034: #include <signal.h>
9035:
9036: int
9037: main ()
9038: {
9039: if ((sig_atomic_t *) 0)
9040: return 0;
9041: if (sizeof (sig_atomic_t))
9042: return 0;
9043: ;
9044: return 0;
9045: }
9046: _ACEOF
9047: rm -f conftest.$ac_objext
1.16 millert 9048: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 9049: (eval $ac_compile) 2>&5
9050: ac_status=$?
1.16 millert 9051: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9052: (exit $ac_status); } &&
9053: { ac_try='test -s conftest.$ac_objext'
1.16 millert 9054: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 9055: (eval $ac_try) 2>&5
9056: ac_status=$?
1.16 millert 9057: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9058: (exit $ac_status); }; }; then
9059: ac_cv_type_sig_atomic_t=yes
1.7 millert 9060: else
1.9 millert 9061: echo "$as_me: failed program was:" >&5
1.16 millert 9062: sed 's/^/| /' conftest.$ac_ext >&5
9063:
1.9 millert 9064: ac_cv_type_sig_atomic_t=no
1.7 millert 9065: fi
1.9 millert 9066: rm -f conftest.$ac_objext conftest.$ac_ext
1.7 millert 9067: fi
1.16 millert 9068: echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
1.9 millert 9069: echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
9070: if test $ac_cv_type_sig_atomic_t = yes; then
1.7 millert 9071:
1.16 millert 9072: cat >>confdefs.h <<_ACEOF
1.9 millert 9073: #define HAVE_SIG_ATOMIC_T 1
1.16 millert 9074: _ACEOF
9075:
1.9 millert 9076:
1.1 millert 9077: else
9078:
1.16 millert 9079: cat >>confdefs.h <<\_ACEOF
1.9 millert 9080: #define sig_atomic_t int
1.16 millert 9081: _ACEOF
1.1 millert 9082:
9083: fi
9084:
1.16 millert 9085: echo "$as_me:$LINENO: checking for sigaction_t" >&5
1.9 millert 9086: echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6
9087: if test "${ac_cv_type_sigaction_t+set}" = set; then
9088: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9089: else
1.9 millert 9090: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9091: #line $LINENO "configure"
9092: /* confdefs.h. */
9093: _ACEOF
9094: cat confdefs.h >>conftest.$ac_ext
9095: cat >>conftest.$ac_ext <<_ACEOF
9096: /* end confdefs.h. */
1.1 millert 9097: #include <sys/types.h>
1.9 millert 9098: #include <signal.h>
9099:
9100: int
9101: main ()
9102: {
9103: if ((sigaction_t *) 0)
9104: return 0;
9105: if (sizeof (sigaction_t))
9106: return 0;
9107: ;
9108: return 0;
9109: }
9110: _ACEOF
9111: rm -f conftest.$ac_objext
1.16 millert 9112: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 9113: (eval $ac_compile) 2>&5
9114: ac_status=$?
1.16 millert 9115: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9116: (exit $ac_status); } &&
9117: { ac_try='test -s conftest.$ac_objext'
1.16 millert 9118: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 9119: (eval $ac_try) 2>&5
9120: ac_status=$?
1.16 millert 9121: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9122: (exit $ac_status); }; }; then
9123: ac_cv_type_sigaction_t=yes
1.1 millert 9124: else
1.9 millert 9125: echo "$as_me: failed program was:" >&5
1.16 millert 9126: sed 's/^/| /' conftest.$ac_ext >&5
9127:
1.9 millert 9128: ac_cv_type_sigaction_t=no
1.1 millert 9129: fi
1.9 millert 9130: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 9131: fi
1.16 millert 9132: echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
1.9 millert 9133: echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6
9134: if test $ac_cv_type_sigaction_t = yes; then
1.1 millert 9135:
1.16 millert 9136: cat >>confdefs.h <<_ACEOF
1.9 millert 9137: #define HAVE_SIGACTION_T 1
1.16 millert 9138: _ACEOF
9139:
1.1 millert 9140:
1.16 millert 9141: cat >>confdefs.h <<\_ACEOF
1.9 millert 9142: #define HAVE_SIGACTION_T 1
1.16 millert 9143: _ACEOF
1.1 millert 9144:
9145: fi
9146:
1.16 millert 9147: echo "$as_me:$LINENO: checking for size_t" >&5
1.9 millert 9148: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9149: if test "${sudo_cv_type_size_t+set}" = set; then
9150: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9151: else
1.9 millert 9152: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9153: #line $LINENO "configure"
9154: /* confdefs.h. */
9155: _ACEOF
9156: cat confdefs.h >>conftest.$ac_ext
9157: cat >>conftest.$ac_ext <<_ACEOF
9158: /* end confdefs.h. */
1.1 millert 9159: #include <sys/types.h>
1.9 millert 9160: #include <stdio.h>
1.1 millert 9161: #if STDC_HEADERS
9162: #include <stdlib.h>
9163: #endif
9164: #if HAVE_UNISTD_H
9165: #include <unistd.h>
9166: #endif
1.9 millert 9167: _ACEOF
1.1 millert 9168: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 9169: $EGREP "size_t" >/dev/null 2>&1; then
1.1 millert 9170: sudo_cv_type_size_t=yes
9171: else
9172: sudo_cv_type_size_t=no
9173: fi
9174: rm -f conftest*
9175:
9176: fi
1.16 millert 9177: echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
1.9 millert 9178: echo "${ECHO_T}$sudo_cv_type_size_t" >&6
1.1 millert 9179: if test $sudo_cv_type_size_t = no; then
1.9 millert 9180:
1.16 millert 9181: cat >>confdefs.h <<\_ACEOF
1.1 millert 9182: #define size_t int
1.16 millert 9183: _ACEOF
1.1 millert 9184:
9185: fi
9186:
1.16 millert 9187: echo "$as_me:$LINENO: checking for ssize_t" >&5
1.9 millert 9188: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9189: if test "${sudo_cv_type_ssize_t+set}" = set; then
9190: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9191: else
1.9 millert 9192: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9193: #line $LINENO "configure"
9194: /* confdefs.h. */
9195: _ACEOF
9196: cat confdefs.h >>conftest.$ac_ext
9197: cat >>conftest.$ac_ext <<_ACEOF
9198: /* end confdefs.h. */
1.1 millert 9199: #include <sys/types.h>
1.9 millert 9200: #include <stdio.h>
1.1 millert 9201: #if STDC_HEADERS
9202: #include <stdlib.h>
9203: #endif
9204: #if HAVE_UNISTD_H
9205: #include <unistd.h>
9206: #endif
1.9 millert 9207: _ACEOF
1.1 millert 9208: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 9209: $EGREP "ssize_t" >/dev/null 2>&1; then
1.1 millert 9210: sudo_cv_type_ssize_t=yes
9211: else
9212: sudo_cv_type_ssize_t=no
9213: fi
9214: rm -f conftest*
9215:
9216: fi
1.16 millert 9217: echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
1.9 millert 9218: echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6
1.1 millert 9219: if test $sudo_cv_type_ssize_t = no; then
1.9 millert 9220:
1.16 millert 9221: cat >>confdefs.h <<\_ACEOF
1.1 millert 9222: #define ssize_t int
1.16 millert 9223: _ACEOF
1.1 millert 9224:
9225: fi
9226:
1.16 millert 9227: echo "$as_me:$LINENO: checking for dev_t" >&5
1.9 millert 9228: echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
9229: if test "${sudo_cv_type_dev_t+set}" = set; then
9230: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9231: else
1.9 millert 9232: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9233: #line $LINENO "configure"
9234: /* confdefs.h. */
9235: _ACEOF
9236: cat confdefs.h >>conftest.$ac_ext
9237: cat >>conftest.$ac_ext <<_ACEOF
9238: /* end confdefs.h. */
1.1 millert 9239: #include <sys/types.h>
1.9 millert 9240: #include <stdio.h>
1.1 millert 9241: #if STDC_HEADERS
9242: #include <stdlib.h>
9243: #endif
9244: #if HAVE_UNISTD_H
9245: #include <unistd.h>
9246: #endif
1.9 millert 9247: _ACEOF
1.1 millert 9248: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 9249: $EGREP "dev_t" >/dev/null 2>&1; then
1.1 millert 9250: sudo_cv_type_dev_t=yes
9251: else
9252: sudo_cv_type_dev_t=no
9253: fi
9254: rm -f conftest*
9255:
9256: fi
1.16 millert 9257: echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
1.9 millert 9258: echo "${ECHO_T}$sudo_cv_type_dev_t" >&6
1.1 millert 9259: if test $sudo_cv_type_dev_t = no; then
1.9 millert 9260:
1.16 millert 9261: cat >>confdefs.h <<\_ACEOF
1.1 millert 9262: #define dev_t int
1.16 millert 9263: _ACEOF
1.1 millert 9264:
9265: fi
9266:
1.16 millert 9267: echo "$as_me:$LINENO: checking for ino_t" >&5
1.9 millert 9268: echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
9269: if test "${sudo_cv_type_ino_t+set}" = set; then
9270: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9271: else
1.9 millert 9272: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9273: #line $LINENO "configure"
9274: /* confdefs.h. */
9275: _ACEOF
9276: cat confdefs.h >>conftest.$ac_ext
9277: cat >>conftest.$ac_ext <<_ACEOF
9278: /* end confdefs.h. */
1.1 millert 9279: #include <sys/types.h>
1.9 millert 9280: #include <stdio.h>
1.1 millert 9281: #if STDC_HEADERS
9282: #include <stdlib.h>
9283: #endif
9284: #if HAVE_UNISTD_H
9285: #include <unistd.h>
9286: #endif
1.9 millert 9287: _ACEOF
1.1 millert 9288: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 9289: $EGREP "ino_t" >/dev/null 2>&1; then
1.1 millert 9290: sudo_cv_type_ino_t=yes
9291: else
9292: sudo_cv_type_ino_t=no
9293: fi
9294: rm -f conftest*
9295:
9296: fi
1.16 millert 9297: echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
1.9 millert 9298: echo "${ECHO_T}$sudo_cv_type_ino_t" >&6
1.1 millert 9299: if test $sudo_cv_type_ino_t = no; then
1.9 millert 9300:
1.16 millert 9301: cat >>confdefs.h <<\_ACEOF
1.1 millert 9302: #define ino_t unsigned int
1.16 millert 9303: _ACEOF
1.1 millert 9304:
9305: fi
9306:
1.16 millert 9307: echo "$as_me:$LINENO: checking for full void implementation" >&5
1.9 millert 9308: echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6
9309: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9310: #line $LINENO "configure"
9311: /* confdefs.h. */
9312: _ACEOF
9313: cat confdefs.h >>conftest.$ac_ext
9314: cat >>conftest.$ac_ext <<_ACEOF
9315: /* end confdefs.h. */
1.1 millert 9316:
1.9 millert 9317: int
9318: main ()
9319: {
1.1 millert 9320: void *foo;
9321: foo = (void *)0; (void *)"test";
1.9 millert 9322: ;
9323: return 0;
9324: }
9325: _ACEOF
9326: rm -f conftest.$ac_objext
1.16 millert 9327: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 9328: (eval $ac_compile) 2>&5
9329: ac_status=$?
1.16 millert 9330: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9331: (exit $ac_status); } &&
9332: { ac_try='test -s conftest.$ac_objext'
1.16 millert 9333: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 9334: (eval $ac_try) 2>&5
9335: ac_status=$?
1.16 millert 9336: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9337: (exit $ac_status); }; }; then
9338:
1.16 millert 9339: cat >>confdefs.h <<\_ACEOF
1.1 millert 9340: #define VOID void
1.16 millert 9341: _ACEOF
1.1 millert 9342:
1.16 millert 9343: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 9344: echo "${ECHO_T}yes" >&6
1.1 millert 9345: else
1.9 millert 9346: echo "$as_me: failed program was:" >&5
1.16 millert 9347: sed 's/^/| /' conftest.$ac_ext >&5
9348:
9349: cat >>confdefs.h <<\_ACEOF
1.1 millert 9350: #define VOID char
1.16 millert 9351: _ACEOF
1.1 millert 9352:
1.16 millert 9353: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 9354: echo "${ECHO_T}no" >&6
1.1 millert 9355: fi
1.9 millert 9356: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 9357:
1.16 millert 9358: echo "$as_me:$LINENO: checking max length of uid_t" >&5
1.9 millert 9359: echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6
9360: if test "${sudo_cv_uid_t_len+set}" = set; then
9361: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9362: else
9363: rm -f conftestdata
9364: if test "$cross_compiling" = yes; then
1.16 millert 9365: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9366: See \`config.log' for more details." >&5
9367: echo "$as_me: error: cannot run test program while cross compiling
9368: See \`config.log' for more details." >&2;}
1.9 millert 9369: { (exit 1); exit 1; }; }
1.1 millert 9370: else
1.9 millert 9371: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9372: #line $LINENO "configure"
9373: /* confdefs.h. */
9374: _ACEOF
9375: cat confdefs.h >>conftest.$ac_ext
9376: cat >>conftest.$ac_ext <<_ACEOF
9377: /* end confdefs.h. */
1.1 millert 9378: #include <stdio.h>
9379: #include <pwd.h>
9380: #include <limits.h>
9381: #include <sys/types.h>
9382: #include <sys/param.h>
9383: main() {
9384: FILE *f;
9385: char b[1024];
9386: uid_t u = (uid_t) -1;
9387:
9388: if ((f = fopen("conftestdata", "w")) == NULL)
9389: exit(1);
9390:
1.16 millert 9391: (void) sprintf(b, "%lu", (unsigned long) u);
1.1 millert 9392: (void) fprintf(f, "%d\n", strlen(b));
9393: (void) fclose(f);
9394: exit(0);
9395: }
1.9 millert 9396: _ACEOF
9397: rm -f conftest$ac_exeext
1.16 millert 9398: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 9399: (eval $ac_link) 2>&5
9400: ac_status=$?
1.16 millert 9401: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9402: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16 millert 9403: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 9404: (eval $ac_try) 2>&5
9405: ac_status=$?
1.16 millert 9406: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9407: (exit $ac_status); }; }; then
1.1 millert 9408: sudo_cv_uid_t_len=`cat conftestdata`
9409: else
1.9 millert 9410: echo "$as_me: program exited with status $ac_status" >&5
9411: echo "$as_me: failed program was:" >&5
1.16 millert 9412: sed 's/^/| /' conftest.$ac_ext >&5
9413:
9414: ( exit $ac_status )
1.9 millert 9415: sudo_cv_uid_t_len=10
1.1 millert 9416: fi
1.16 millert 9417: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 9418: fi
9419:
9420: fi
9421:
9422: rm -f conftestdata
1.16 millert 9423: echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
1.9 millert 9424: echo "${ECHO_T}$sudo_cv_uid_t_len" >&6
9425:
1.16 millert 9426: cat >>confdefs.h <<_ACEOF
1.1 millert 9427: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
1.16 millert 9428: _ACEOF
9429:
1.1 millert 9430:
1.16 millert 9431: echo "$as_me:$LINENO: checking for long long support" >&5
1.9 millert 9432: echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9433: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9434: #line $LINENO "configure"
9435: /* confdefs.h. */
9436: _ACEOF
9437: cat confdefs.h >>conftest.$ac_ext
9438: cat >>conftest.$ac_ext <<_ACEOF
9439: /* end confdefs.h. */
1.1 millert 9440:
1.9 millert 9441: int
9442: main ()
9443: {
1.1 millert 9444: long long foo = 1000; foo /= 10;
1.9 millert 9445: ;
9446: return 0;
9447: }
9448: _ACEOF
9449: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 9450: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 9451: (eval $ac_link) 2>&5
9452: ac_status=$?
1.16 millert 9453: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9454: (exit $ac_status); } &&
9455: { ac_try='test -s conftest$ac_exeext'
1.16 millert 9456: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 9457: (eval $ac_try) 2>&5
9458: ac_status=$?
1.16 millert 9459: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9460: (exit $ac_status); }; }; then
9461:
1.16 millert 9462: cat >>confdefs.h <<\_ACEOF
1.1 millert 9463: #define HAVE_LONG_LONG 1
1.16 millert 9464: _ACEOF
1.1 millert 9465:
9466: if test "$cross_compiling" = yes; then
1.16 millert 9467: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9468: See \`config.log' for more details." >&5
9469: echo "$as_me: error: cannot run test program while cross compiling
9470: See \`config.log' for more details." >&2;}
1.9 millert 9471: { (exit 1); exit 1; }; }
1.1 millert 9472: else
1.9 millert 9473: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9474: #line $LINENO "configure"
9475: /* confdefs.h. */
9476: _ACEOF
9477: cat confdefs.h >>conftest.$ac_ext
9478: cat >>conftest.$ac_ext <<_ACEOF
9479: /* end confdefs.h. */
1.1 millert 9480: main() {if (sizeof(long long) == sizeof(long)) exit(0); else exit(1);}
1.9 millert 9481: _ACEOF
9482: rm -f conftest$ac_exeext
1.16 millert 9483: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 9484: (eval $ac_link) 2>&5
9485: ac_status=$?
1.16 millert 9486: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9487: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16 millert 9488: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 9489: (eval $ac_try) 2>&5
9490: ac_status=$?
1.16 millert 9491: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9492: (exit $ac_status); }; }; then
9493:
1.16 millert 9494: cat >>confdefs.h <<\_ACEOF
1.1 millert 9495: #define LONG_IS_QUAD 1
1.16 millert 9496: _ACEOF
1.1 millert 9497:
9498: else
1.9 millert 9499: echo "$as_me: program exited with status $ac_status" >&5
9500: echo "$as_me: failed program was:" >&5
1.16 millert 9501: sed 's/^/| /' conftest.$ac_ext >&5
9502:
1.9 millert 9503: fi
1.16 millert 9504: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9 millert 9505: fi
1.16 millert 9506: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 9507: echo "${ECHO_T}yes" >&6
9508: else
9509: echo "$as_me: failed program was:" >&5
1.16 millert 9510: sed 's/^/| /' conftest.$ac_ext >&5
9511:
9512: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 9513: echo "${ECHO_T}no" >&6
9514: fi
9515: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.16 millert 9516: echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
1.9 millert 9517: echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6
9518: if test "${sudo_cv_sock_sa_len+set}" = set; then
9519: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9520: else
9521: if test "$cross_compiling" = yes; then
9522: sudo_cv_sock_sa_len=no
9523: else
1.9 millert 9524: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9525: #line $LINENO "configure"
9526: /* confdefs.h. */
9527: _ACEOF
9528: cat confdefs.h >>conftest.$ac_ext
9529: cat >>conftest.$ac_ext <<_ACEOF
9530: /* end confdefs.h. */
1.1 millert 9531: #include <sys/types.h>
9532: #include <sys/socket.h>
9533: main() {
9534: struct sockaddr s;
9535: s.sa_len = 0;
9536: exit(0);
9537: }
1.9 millert 9538: _ACEOF
9539: rm -f conftest$ac_exeext
1.16 millert 9540: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 9541: (eval $ac_link) 2>&5
9542: ac_status=$?
1.16 millert 9543: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9544: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16 millert 9545: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 9546: (eval $ac_try) 2>&5
9547: ac_status=$?
1.16 millert 9548: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9549: (exit $ac_status); }; }; then
1.1 millert 9550: sudo_cv_sock_sa_len=yes
9551: else
1.9 millert 9552: echo "$as_me: program exited with status $ac_status" >&5
9553: echo "$as_me: failed program was:" >&5
1.16 millert 9554: sed 's/^/| /' conftest.$ac_ext >&5
9555:
9556: ( exit $ac_status )
1.9 millert 9557: sudo_cv_sock_sa_len=no
1.1 millert 9558: fi
1.16 millert 9559: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 9560: fi
9561: rm -f core core.* *.core
9562: fi
1.16 millert 9563: echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
1.9 millert 9564: echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6
1.1 millert 9565: if test $sudo_cv_sock_sa_len = yes; then
1.9 millert 9566:
1.16 millert 9567: cat >>confdefs.h <<\_ACEOF
1.1 millert 9568: #define HAVE_SA_LEN 1
1.16 millert 9569: _ACEOF
1.1 millert 9570:
9571: fi
9572:
9573: case "$DEFS" in
9574: *"RETSIGTYPE"*) ;;
1.16 millert 9575: *) echo "$as_me:$LINENO: checking return type of signal handlers" >&5
1.9 millert 9576: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9577: if test "${ac_cv_type_signal+set}" = set; then
9578: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9579: else
1.9 millert 9580: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9581: #line $LINENO "configure"
9582: /* confdefs.h. */
9583: _ACEOF
9584: cat confdefs.h >>conftest.$ac_ext
9585: cat >>conftest.$ac_ext <<_ACEOF
9586: /* end confdefs.h. */
1.1 millert 9587: #include <sys/types.h>
9588: #include <signal.h>
9589: #ifdef signal
1.9 millert 9590: # undef signal
1.1 millert 9591: #endif
9592: #ifdef __cplusplus
9593: extern "C" void (*signal (int, void (*)(int)))(int);
9594: #else
9595: void (*signal ()) ();
9596: #endif
9597:
1.9 millert 9598: int
9599: main ()
9600: {
1.1 millert 9601: int i;
1.9 millert 9602: ;
9603: return 0;
9604: }
9605: _ACEOF
9606: rm -f conftest.$ac_objext
1.16 millert 9607: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 9608: (eval $ac_compile) 2>&5
9609: ac_status=$?
1.16 millert 9610: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611: (exit $ac_status); } &&
9612: { ac_try='test -s conftest.$ac_objext'
9613: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614: (eval $ac_try) 2>&5
9615: ac_status=$?
9616: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617: (exit $ac_status); }; }; then
9618: ac_cv_type_signal=void
9619: else
9620: echo "$as_me: failed program was:" >&5
9621: sed 's/^/| /' conftest.$ac_ext >&5
9622:
9623: ac_cv_type_signal=int
9624: fi
9625: rm -f conftest.$ac_objext conftest.$ac_ext
9626: fi
9627: echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9628: echo "${ECHO_T}$ac_cv_type_signal" >&6
9629:
9630: cat >>confdefs.h <<_ACEOF
9631: #define RETSIGTYPE $ac_cv_type_signal
9632: _ACEOF
9633:
9634: ;;
9635: esac
9636:
9637:
9638:
9639:
9640:
9641:
9642:
9643:
9644:
9645:
9646:
9647: for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
9648: strftime setrlimit initgroups fstat
9649: do
9650: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9651: echo "$as_me:$LINENO: checking for $ac_func" >&5
9652: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9653: if eval "test \"\${$as_ac_var+set}\" = set"; then
9654: echo $ECHO_N "(cached) $ECHO_C" >&6
9655: else
9656: cat >conftest.$ac_ext <<_ACEOF
9657: #line $LINENO "configure"
9658: /* confdefs.h. */
9659: _ACEOF
9660: cat confdefs.h >>conftest.$ac_ext
9661: cat >>conftest.$ac_ext <<_ACEOF
9662: /* end confdefs.h. */
9663: /* System header to define __stub macros and hopefully few prototypes,
9664: which can conflict with char $ac_func (); below.
9665: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9666: <limits.h> exists even on freestanding compilers. */
9667: #ifdef __STDC__
9668: # include <limits.h>
9669: #else
9670: # include <assert.h>
9671: #endif
9672: /* Override any gcc2 internal prototype to avoid an error. */
9673: #ifdef __cplusplus
9674: extern "C"
9675: {
9676: #endif
9677: /* We use char because int might match the return type of a gcc2
9678: builtin and then its argument prototype would still apply. */
9679: char $ac_func ();
9680: /* The GNU C library defines this for functions which it implements
9681: to always fail with ENOSYS. Some functions are actually named
9682: something starting with __ and the normal name is an alias. */
9683: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9684: choke me
9685: #else
9686: char (*f) () = $ac_func;
9687: #endif
9688: #ifdef __cplusplus
9689: }
9690: #endif
9691:
9692: int
9693: main ()
9694: {
9695: return f != $ac_func;
9696: ;
9697: return 0;
9698: }
9699: _ACEOF
9700: rm -f conftest.$ac_objext conftest$ac_exeext
9701: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9702: (eval $ac_link) 2>&5
9703: ac_status=$?
9704: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9705: (exit $ac_status); } &&
1.16 millert 9706: { ac_try='test -s conftest$ac_exeext'
9707: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 9708: (eval $ac_try) 2>&5
9709: ac_status=$?
1.16 millert 9710: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9711: (exit $ac_status); }; }; then
1.16 millert 9712: eval "$as_ac_var=yes"
1.1 millert 9713: else
1.9 millert 9714: echo "$as_me: failed program was:" >&5
1.16 millert 9715: sed 's/^/| /' conftest.$ac_ext >&5
9716:
9717: eval "$as_ac_var=no"
1.1 millert 9718: fi
1.16 millert 9719: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 millert 9720: fi
1.16 millert 9721: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9722: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9723: if test `eval echo '${'$as_ac_var'}'` = yes; then
9724: cat >>confdefs.h <<_ACEOF
9725: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9726: _ACEOF
1.1 millert 9727:
1.16 millert 9728: fi
9729: done
1.1 millert 9730:
1.16 millert 9731: if test -z "$SKIP_SETRESUID"; then
1.9 millert 9732:
1.16 millert 9733: for ac_func in setresuid
1.1 millert 9734: do
1.9 millert 9735: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 9736: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 9737: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9738: if eval "test \"\${$as_ac_var+set}\" = set"; then
9739: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9740: else
1.9 millert 9741: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9742: #line $LINENO "configure"
9743: /* confdefs.h. */
9744: _ACEOF
9745: cat confdefs.h >>conftest.$ac_ext
9746: cat >>conftest.$ac_ext <<_ACEOF
9747: /* end confdefs.h. */
1.1 millert 9748: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 9749: which can conflict with char $ac_func (); below.
9750: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9751: <limits.h> exists even on freestanding compilers. */
9752: #ifdef __STDC__
9753: # include <limits.h>
9754: #else
9755: # include <assert.h>
9756: #endif
1.1 millert 9757: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 9758: #ifdef __cplusplus
9759: extern "C"
1.16 millert 9760: {
1.9 millert 9761: #endif
1.1 millert 9762: /* We use char because int might match the return type of a gcc2
1.9 millert 9763: builtin and then its argument prototype would still apply. */
9764: char $ac_func ();
1.1 millert 9765: /* The GNU C library defines this for functions which it implements
9766: to always fail with ENOSYS. Some functions are actually named
9767: something starting with __ and the normal name is an alias. */
9768: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9769: choke me
9770: #else
1.16 millert 9771: char (*f) () = $ac_func;
9772: #endif
9773: #ifdef __cplusplus
9774: }
1.1 millert 9775: #endif
9776:
1.16 millert 9777: int
9778: main ()
9779: {
9780: return f != $ac_func;
1.9 millert 9781: ;
9782: return 0;
9783: }
9784: _ACEOF
9785: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 9786: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 9787: (eval $ac_link) 2>&5
9788: ac_status=$?
1.16 millert 9789: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9790: (exit $ac_status); } &&
9791: { ac_try='test -s conftest$ac_exeext'
1.16 millert 9792: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 9793: (eval $ac_try) 2>&5
9794: ac_status=$?
1.16 millert 9795: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9796: (exit $ac_status); }; }; then
9797: eval "$as_ac_var=yes"
9798: else
9799: echo "$as_me: failed program was:" >&5
1.16 millert 9800: sed 's/^/| /' conftest.$ac_ext >&5
9801:
1.9 millert 9802: eval "$as_ac_var=no"
9803: fi
9804: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9805: fi
1.16 millert 9806: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 9807: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9808: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 9809: cat >>confdefs.h <<_ACEOF
1.9 millert 9810: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 9811: _ACEOF
9812: SKIP_SETREUID=yes
1.1 millert 9813: fi
9814: done
9815:
1.16 millert 9816: fi
9817: if test -z "$SKIP_SETREUID"; then
1.9 millert 9818:
9819: for ac_func in setreuid
1.1 millert 9820: do
1.9 millert 9821: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 9822: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 9823: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9824: if eval "test \"\${$as_ac_var+set}\" = set"; then
9825: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9826: else
1.9 millert 9827: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9828: #line $LINENO "configure"
9829: /* confdefs.h. */
9830: _ACEOF
9831: cat confdefs.h >>conftest.$ac_ext
9832: cat >>conftest.$ac_ext <<_ACEOF
9833: /* end confdefs.h. */
1.1 millert 9834: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 9835: which can conflict with char $ac_func (); below.
9836: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9837: <limits.h> exists even on freestanding compilers. */
9838: #ifdef __STDC__
9839: # include <limits.h>
9840: #else
9841: # include <assert.h>
9842: #endif
1.1 millert 9843: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 9844: #ifdef __cplusplus
9845: extern "C"
1.16 millert 9846: {
1.9 millert 9847: #endif
1.1 millert 9848: /* We use char because int might match the return type of a gcc2
1.9 millert 9849: builtin and then its argument prototype would still apply. */
9850: char $ac_func ();
1.1 millert 9851: /* The GNU C library defines this for functions which it implements
9852: to always fail with ENOSYS. Some functions are actually named
9853: something starting with __ and the normal name is an alias. */
9854: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9855: choke me
9856: #else
1.16 millert 9857: char (*f) () = $ac_func;
9858: #endif
9859: #ifdef __cplusplus
9860: }
1.1 millert 9861: #endif
9862:
1.16 millert 9863: int
9864: main ()
9865: {
9866: return f != $ac_func;
1.9 millert 9867: ;
9868: return 0;
9869: }
9870: _ACEOF
9871: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 9872: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 9873: (eval $ac_link) 2>&5
9874: ac_status=$?
1.16 millert 9875: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9876: (exit $ac_status); } &&
9877: { ac_try='test -s conftest$ac_exeext'
1.16 millert 9878: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 9879: (eval $ac_try) 2>&5
9880: ac_status=$?
1.16 millert 9881: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9882: (exit $ac_status); }; }; then
9883: eval "$as_ac_var=yes"
9884: else
9885: echo "$as_me: failed program was:" >&5
1.16 millert 9886: sed 's/^/| /' conftest.$ac_ext >&5
9887:
1.9 millert 9888: eval "$as_ac_var=no"
9889: fi
9890: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9891: fi
1.16 millert 9892: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 9893: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9894: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 9895: cat >>confdefs.h <<_ACEOF
1.9 millert 9896: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 9897: _ACEOF
1.1 millert 9898:
9899: fi
9900: done
9901:
9902: fi
1.9 millert 9903: if test X"$with_interfaces" != X"no"; then
1.1 millert 9904:
1.9 millert 9905: for ac_func in getifaddrs
1.1 millert 9906: do
1.9 millert 9907: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 9908: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 9909: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9910: if eval "test \"\${$as_ac_var+set}\" = set"; then
9911: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9912: else
1.9 millert 9913: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9914: #line $LINENO "configure"
9915: /* confdefs.h. */
9916: _ACEOF
9917: cat confdefs.h >>conftest.$ac_ext
9918: cat >>conftest.$ac_ext <<_ACEOF
9919: /* end confdefs.h. */
1.1 millert 9920: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 9921: which can conflict with char $ac_func (); below.
9922: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9923: <limits.h> exists even on freestanding compilers. */
9924: #ifdef __STDC__
9925: # include <limits.h>
9926: #else
9927: # include <assert.h>
9928: #endif
1.1 millert 9929: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 9930: #ifdef __cplusplus
9931: extern "C"
1.16 millert 9932: {
1.9 millert 9933: #endif
1.1 millert 9934: /* We use char because int might match the return type of a gcc2
1.9 millert 9935: builtin and then its argument prototype would still apply. */
9936: char $ac_func ();
1.1 millert 9937: /* The GNU C library defines this for functions which it implements
9938: to always fail with ENOSYS. Some functions are actually named
9939: something starting with __ and the normal name is an alias. */
9940: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9941: choke me
9942: #else
1.16 millert 9943: char (*f) () = $ac_func;
9944: #endif
9945: #ifdef __cplusplus
9946: }
1.1 millert 9947: #endif
9948:
1.16 millert 9949: int
9950: main ()
9951: {
9952: return f != $ac_func;
1.9 millert 9953: ;
9954: return 0;
9955: }
9956: _ACEOF
9957: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 9958: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.13 millert 9959: (eval $ac_link) 2>&5
9960: ac_status=$?
1.16 millert 9961: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.13 millert 9962: (exit $ac_status); } &&
9963: { ac_try='test -s conftest$ac_exeext'
1.16 millert 9964: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.13 millert 9965: (eval $ac_try) 2>&5
9966: ac_status=$?
1.16 millert 9967: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.13 millert 9968: (exit $ac_status); }; }; then
9969: eval "$as_ac_var=yes"
9970: else
9971: echo "$as_me: failed program was:" >&5
1.16 millert 9972: sed 's/^/| /' conftest.$ac_ext >&5
9973:
1.13 millert 9974: eval "$as_ac_var=no"
9975: fi
9976: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9977: fi
1.16 millert 9978: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.13 millert 9979: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9980: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 9981: cat >>confdefs.h <<_ACEOF
1.13 millert 9982: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 9983: _ACEOF
1.13 millert 9984:
9985: for ac_func in freeifaddrs
9986: do
9987: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 9988: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.13 millert 9989: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9990: if eval "test \"\${$as_ac_var+set}\" = set"; then
9991: echo $ECHO_N "(cached) $ECHO_C" >&6
9992: else
9993: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9994: #line $LINENO "configure"
9995: /* confdefs.h. */
9996: _ACEOF
9997: cat confdefs.h >>conftest.$ac_ext
9998: cat >>conftest.$ac_ext <<_ACEOF
9999: /* end confdefs.h. */
10000: /* System header to define __stub macros and hopefully few prototypes,
10001: which can conflict with char $ac_func (); below.
10002: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10003: <limits.h> exists even on freestanding compilers. */
10004: #ifdef __STDC__
10005: # include <limits.h>
10006: #else
10007: # include <assert.h>
10008: #endif
1.13 millert 10009: /* Override any gcc2 internal prototype to avoid an error. */
10010: #ifdef __cplusplus
10011: extern "C"
1.16 millert 10012: {
1.13 millert 10013: #endif
10014: /* We use char because int might match the return type of a gcc2
10015: builtin and then its argument prototype would still apply. */
10016: char $ac_func ();
10017: /* The GNU C library defines this for functions which it implements
10018: to always fail with ENOSYS. Some functions are actually named
10019: something starting with __ and the normal name is an alias. */
10020: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10021: choke me
10022: #else
1.16 millert 10023: char (*f) () = $ac_func;
10024: #endif
10025: #ifdef __cplusplus
10026: }
1.13 millert 10027: #endif
10028:
1.16 millert 10029: int
10030: main ()
10031: {
10032: return f != $ac_func;
1.13 millert 10033: ;
10034: return 0;
10035: }
10036: _ACEOF
10037: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 10038: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10039: (eval $ac_link) 2>&5
10040: ac_status=$?
1.16 millert 10041: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10042: (exit $ac_status); } &&
10043: { ac_try='test -s conftest$ac_exeext'
1.16 millert 10044: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10045: (eval $ac_try) 2>&5
10046: ac_status=$?
1.16 millert 10047: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10048: (exit $ac_status); }; }; then
10049: eval "$as_ac_var=yes"
10050: else
10051: echo "$as_me: failed program was:" >&5
1.16 millert 10052: sed 's/^/| /' conftest.$ac_ext >&5
10053:
1.9 millert 10054: eval "$as_ac_var=no"
10055: fi
10056: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10057: fi
1.16 millert 10058: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 10059: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10060: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 10061: cat >>confdefs.h <<_ACEOF
1.9 millert 10062: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 10063: _ACEOF
1.1 millert 10064:
10065: fi
10066: done
10067:
10068: fi
1.13 millert 10069: done
10070:
10071: fi
1.9 millert 10072: if test -n "$SECUREWARE"; then
1.1 millert 10073:
1.16 millert 10074:
10075:
1.9 millert 10076: for ac_func in bigcrypt set_auth_parameters initprivs
10077: do
10078: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 10079: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 10080: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10081: if eval "test \"\${$as_ac_var+set}\" = set"; then
10082: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10083: else
1.9 millert 10084: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10085: #line $LINENO "configure"
10086: /* confdefs.h. */
10087: _ACEOF
10088: cat confdefs.h >>conftest.$ac_ext
10089: cat >>conftest.$ac_ext <<_ACEOF
10090: /* end confdefs.h. */
1.1 millert 10091: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 10092: which can conflict with char $ac_func (); below.
10093: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10094: <limits.h> exists even on freestanding compilers. */
10095: #ifdef __STDC__
10096: # include <limits.h>
10097: #else
10098: # include <assert.h>
10099: #endif
1.1 millert 10100: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 10101: #ifdef __cplusplus
10102: extern "C"
1.16 millert 10103: {
1.1 millert 10104: #endif
10105: /* We use char because int might match the return type of a gcc2
1.9 millert 10106: builtin and then its argument prototype would still apply. */
10107: char $ac_func ();
1.1 millert 10108: /* The GNU C library defines this for functions which it implements
10109: to always fail with ENOSYS. Some functions are actually named
10110: something starting with __ and the normal name is an alias. */
10111: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10112: choke me
10113: #else
1.16 millert 10114: char (*f) () = $ac_func;
10115: #endif
10116: #ifdef __cplusplus
10117: }
1.1 millert 10118: #endif
10119:
1.16 millert 10120: int
10121: main ()
10122: {
10123: return f != $ac_func;
1.9 millert 10124: ;
10125: return 0;
10126: }
10127: _ACEOF
10128: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 10129: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10130: (eval $ac_link) 2>&5
10131: ac_status=$?
1.16 millert 10132: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10133: (exit $ac_status); } &&
10134: { ac_try='test -s conftest$ac_exeext'
1.16 millert 10135: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10136: (eval $ac_try) 2>&5
10137: ac_status=$?
1.16 millert 10138: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10139: (exit $ac_status); }; }; then
10140: eval "$as_ac_var=yes"
10141: else
10142: echo "$as_me: failed program was:" >&5
1.16 millert 10143: sed 's/^/| /' conftest.$ac_ext >&5
10144:
1.9 millert 10145: eval "$as_ac_var=no"
10146: fi
10147: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10148: fi
1.16 millert 10149: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 10150: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10151: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 10152: cat >>confdefs.h <<_ACEOF
1.9 millert 10153: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 10154: _ACEOF
1.1 millert 10155:
10156: fi
10157: done
10158:
10159: fi
1.9 millert 10160: if test -z "$BROKEN_GETCWD"; then
1.1 millert 10161:
1.9 millert 10162: for ac_func in getcwd
10163: do
10164: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 10165: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 10166: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10167: if eval "test \"\${$as_ac_var+set}\" = set"; then
10168: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10169: else
1.9 millert 10170: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10171: #line $LINENO "configure"
10172: /* confdefs.h. */
10173: _ACEOF
10174: cat confdefs.h >>conftest.$ac_ext
10175: cat >>conftest.$ac_ext <<_ACEOF
10176: /* end confdefs.h. */
1.1 millert 10177: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 10178: which can conflict with char $ac_func (); below.
10179: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10180: <limits.h> exists even on freestanding compilers. */
10181: #ifdef __STDC__
10182: # include <limits.h>
10183: #else
10184: # include <assert.h>
10185: #endif
1.1 millert 10186: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 10187: #ifdef __cplusplus
10188: extern "C"
1.16 millert 10189: {
1.1 millert 10190: #endif
10191: /* We use char because int might match the return type of a gcc2
1.9 millert 10192: builtin and then its argument prototype would still apply. */
10193: char $ac_func ();
1.1 millert 10194: /* The GNU C library defines this for functions which it implements
10195: to always fail with ENOSYS. Some functions are actually named
10196: something starting with __ and the normal name is an alias. */
10197: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10198: choke me
10199: #else
1.16 millert 10200: char (*f) () = $ac_func;
10201: #endif
10202: #ifdef __cplusplus
10203: }
1.1 millert 10204: #endif
10205:
1.16 millert 10206: int
10207: main ()
10208: {
10209: return f != $ac_func;
1.9 millert 10210: ;
10211: return 0;
10212: }
10213: _ACEOF
10214: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 10215: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10216: (eval $ac_link) 2>&5
10217: ac_status=$?
1.16 millert 10218: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10219: (exit $ac_status); } &&
10220: { ac_try='test -s conftest$ac_exeext'
1.16 millert 10221: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10222: (eval $ac_try) 2>&5
10223: ac_status=$?
1.16 millert 10224: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10225: (exit $ac_status); }; }; then
10226: eval "$as_ac_var=yes"
10227: else
10228: echo "$as_me: failed program was:" >&5
1.16 millert 10229: sed 's/^/| /' conftest.$ac_ext >&5
10230:
1.9 millert 10231: eval "$as_ac_var=no"
10232: fi
10233: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10234: fi
1.16 millert 10235: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 10236: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10237: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 10238: cat >>confdefs.h <<_ACEOF
1.9 millert 10239: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 10240: _ACEOF
1.1 millert 10241:
10242: else
1.9 millert 10243: LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
1.1 millert 10244: fi
10245: done
10246:
1.16 millert 10247:
1.1 millert 10248: fi
10249:
1.16 millert 10250:
1.9 millert 10251: for ac_func in lockf flock
10252: do
10253: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 10254: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 10255: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10256: if eval "test \"\${$as_ac_var+set}\" = set"; then
10257: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10258: else
1.9 millert 10259: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10260: #line $LINENO "configure"
10261: /* confdefs.h. */
10262: _ACEOF
10263: cat confdefs.h >>conftest.$ac_ext
10264: cat >>conftest.$ac_ext <<_ACEOF
10265: /* end confdefs.h. */
1.1 millert 10266: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 10267: which can conflict with char $ac_func (); below.
10268: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10269: <limits.h> exists even on freestanding compilers. */
10270: #ifdef __STDC__
10271: # include <limits.h>
10272: #else
10273: # include <assert.h>
10274: #endif
1.1 millert 10275: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 10276: #ifdef __cplusplus
10277: extern "C"
1.16 millert 10278: {
1.9 millert 10279: #endif
1.1 millert 10280: /* We use char because int might match the return type of a gcc2
1.9 millert 10281: builtin and then its argument prototype would still apply. */
10282: char $ac_func ();
1.1 millert 10283: /* The GNU C library defines this for functions which it implements
10284: to always fail with ENOSYS. Some functions are actually named
10285: something starting with __ and the normal name is an alias. */
1.9 millert 10286: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 10287: choke me
10288: #else
1.16 millert 10289: char (*f) () = $ac_func;
10290: #endif
10291: #ifdef __cplusplus
10292: }
1.1 millert 10293: #endif
10294:
1.16 millert 10295: int
10296: main ()
10297: {
10298: return f != $ac_func;
1.9 millert 10299: ;
10300: return 0;
10301: }
10302: _ACEOF
10303: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 10304: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10305: (eval $ac_link) 2>&5
10306: ac_status=$?
1.16 millert 10307: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10308: (exit $ac_status); } &&
10309: { ac_try='test -s conftest$ac_exeext'
1.16 millert 10310: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10311: (eval $ac_try) 2>&5
10312: ac_status=$?
1.16 millert 10313: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10314: (exit $ac_status); }; }; then
10315: eval "$as_ac_var=yes"
10316: else
10317: echo "$as_me: failed program was:" >&5
1.16 millert 10318: sed 's/^/| /' conftest.$ac_ext >&5
10319:
1.9 millert 10320: eval "$as_ac_var=no"
10321: fi
10322: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10323: fi
1.16 millert 10324: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 10325: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10326: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 10327: cat >>confdefs.h <<_ACEOF
1.9 millert 10328: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 10329: _ACEOF
1.9 millert 10330: break
1.1 millert 10331: fi
1.9 millert 10332: done
1.1 millert 10333:
1.16 millert 10334:
10335:
1.9 millert 10336: for ac_func in waitpid wait3
1.1 millert 10337: do
1.9 millert 10338: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 10339: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 10340: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10341: if eval "test \"\${$as_ac_var+set}\" = set"; then
10342: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10343: else
1.9 millert 10344: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10345: #line $LINENO "configure"
10346: /* confdefs.h. */
10347: _ACEOF
10348: cat confdefs.h >>conftest.$ac_ext
10349: cat >>conftest.$ac_ext <<_ACEOF
10350: /* end confdefs.h. */
1.1 millert 10351: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 10352: which can conflict with char $ac_func (); below.
10353: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10354: <limits.h> exists even on freestanding compilers. */
10355: #ifdef __STDC__
10356: # include <limits.h>
10357: #else
10358: # include <assert.h>
10359: #endif
1.1 millert 10360: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 10361: #ifdef __cplusplus
10362: extern "C"
1.16 millert 10363: {
1.9 millert 10364: #endif
1.1 millert 10365: /* We use char because int might match the return type of a gcc2
1.9 millert 10366: builtin and then its argument prototype would still apply. */
10367: char $ac_func ();
1.1 millert 10368: /* The GNU C library defines this for functions which it implements
10369: to always fail with ENOSYS. Some functions are actually named
10370: something starting with __ and the normal name is an alias. */
10371: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10372: choke me
10373: #else
1.16 millert 10374: char (*f) () = $ac_func;
10375: #endif
10376: #ifdef __cplusplus
10377: }
1.1 millert 10378: #endif
10379:
1.16 millert 10380: int
10381: main ()
10382: {
10383: return f != $ac_func;
1.9 millert 10384: ;
10385: return 0;
10386: }
10387: _ACEOF
10388: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 10389: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10390: (eval $ac_link) 2>&5
10391: ac_status=$?
1.16 millert 10392: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10393: (exit $ac_status); } &&
10394: { ac_try='test -s conftest$ac_exeext'
1.16 millert 10395: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10396: (eval $ac_try) 2>&5
10397: ac_status=$?
1.16 millert 10398: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10399: (exit $ac_status); }; }; then
10400: eval "$as_ac_var=yes"
10401: else
10402: echo "$as_me: failed program was:" >&5
1.16 millert 10403: sed 's/^/| /' conftest.$ac_ext >&5
10404:
1.9 millert 10405: eval "$as_ac_var=no"
10406: fi
10407: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10408: fi
1.16 millert 10409: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 10410: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10411: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 10412: cat >>confdefs.h <<_ACEOF
1.9 millert 10413: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 10414: _ACEOF
1.9 millert 10415: break
1.1 millert 10416: fi
10417: done
10418:
1.16 millert 10419:
10420:
1.9 millert 10421: for ac_func in innetgr _innetgr
10422: do
10423: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 10424: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 10425: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10426: if eval "test \"\${$as_ac_var+set}\" = set"; then
10427: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10428: else
1.9 millert 10429: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10430: #line $LINENO "configure"
10431: /* confdefs.h. */
10432: _ACEOF
10433: cat confdefs.h >>conftest.$ac_ext
10434: cat >>conftest.$ac_ext <<_ACEOF
10435: /* end confdefs.h. */
1.1 millert 10436: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 10437: which can conflict with char $ac_func (); below.
10438: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10439: <limits.h> exists even on freestanding compilers. */
10440: #ifdef __STDC__
10441: # include <limits.h>
10442: #else
10443: # include <assert.h>
10444: #endif
1.1 millert 10445: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 10446: #ifdef __cplusplus
10447: extern "C"
1.16 millert 10448: {
1.9 millert 10449: #endif
1.1 millert 10450: /* We use char because int might match the return type of a gcc2
1.9 millert 10451: builtin and then its argument prototype would still apply. */
10452: char $ac_func ();
1.1 millert 10453: /* The GNU C library defines this for functions which it implements
10454: to always fail with ENOSYS. Some functions are actually named
10455: something starting with __ and the normal name is an alias. */
1.9 millert 10456: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 10457: choke me
10458: #else
1.16 millert 10459: char (*f) () = $ac_func;
10460: #endif
10461: #ifdef __cplusplus
10462: }
1.1 millert 10463: #endif
10464:
1.16 millert 10465: int
10466: main ()
10467: {
10468: return f != $ac_func;
1.9 millert 10469: ;
10470: return 0;
10471: }
10472: _ACEOF
10473: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 10474: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10475: (eval $ac_link) 2>&5
10476: ac_status=$?
1.16 millert 10477: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10478: (exit $ac_status); } &&
10479: { ac_try='test -s conftest$ac_exeext'
1.16 millert 10480: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10481: (eval $ac_try) 2>&5
10482: ac_status=$?
1.16 millert 10483: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10484: (exit $ac_status); }; }; then
10485: eval "$as_ac_var=yes"
10486: else
10487: echo "$as_me: failed program was:" >&5
1.16 millert 10488: sed 's/^/| /' conftest.$ac_ext >&5
10489:
1.9 millert 10490: eval "$as_ac_var=no"
10491: fi
10492: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10493: fi
1.16 millert 10494: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 10495: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10496: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 10497: cat >>confdefs.h <<_ACEOF
1.9 millert 10498: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 10499: _ACEOF
1.1 millert 10500:
1.9 millert 10501: for ac_func in getdomainname
10502: do
10503: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 10504: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 10505: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10506: if eval "test \"\${$as_ac_var+set}\" = set"; then
10507: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10508: else
1.9 millert 10509: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10510: #line $LINENO "configure"
10511: /* confdefs.h. */
10512: _ACEOF
10513: cat confdefs.h >>conftest.$ac_ext
10514: cat >>conftest.$ac_ext <<_ACEOF
10515: /* end confdefs.h. */
10516: /* System header to define __stub macros and hopefully few prototypes,
10517: which can conflict with char $ac_func (); below.
10518: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10519: <limits.h> exists even on freestanding compilers. */
10520: #ifdef __STDC__
10521: # include <limits.h>
10522: #else
10523: # include <assert.h>
10524: #endif
1.1 millert 10525: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 10526: #ifdef __cplusplus
10527: extern "C"
1.16 millert 10528: {
1.9 millert 10529: #endif
1.1 millert 10530: /* We use char because int might match the return type of a gcc2
1.9 millert 10531: builtin and then its argument prototype would still apply. */
10532: char $ac_func ();
1.1 millert 10533: /* The GNU C library defines this for functions which it implements
10534: to always fail with ENOSYS. Some functions are actually named
10535: something starting with __ and the normal name is an alias. */
1.9 millert 10536: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 10537: choke me
10538: #else
1.16 millert 10539: char (*f) () = $ac_func;
10540: #endif
10541: #ifdef __cplusplus
10542: }
1.1 millert 10543: #endif
10544:
1.16 millert 10545: int
10546: main ()
10547: {
10548: return f != $ac_func;
1.9 millert 10549: ;
10550: return 0;
10551: }
10552: _ACEOF
10553: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 10554: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10555: (eval $ac_link) 2>&5
10556: ac_status=$?
1.16 millert 10557: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10558: (exit $ac_status); } &&
10559: { ac_try='test -s conftest$ac_exeext'
1.16 millert 10560: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10561: (eval $ac_try) 2>&5
10562: ac_status=$?
1.16 millert 10563: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10564: (exit $ac_status); }; }; then
10565: eval "$as_ac_var=yes"
10566: else
10567: echo "$as_me: failed program was:" >&5
1.16 millert 10568: sed 's/^/| /' conftest.$ac_ext >&5
10569:
1.9 millert 10570: eval "$as_ac_var=no"
10571: fi
10572: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10573: fi
1.16 millert 10574: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 10575: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10576: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 10577: cat >>confdefs.h <<_ACEOF
1.9 millert 10578: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 10579: _ACEOF
1.9 millert 10580:
1.1 millert 10581: fi
1.9 millert 10582: done
10583: break
1.1 millert 10584: fi
1.9 millert 10585: done
1.1 millert 10586:
1.16 millert 10587:
1.9 millert 10588: for ac_func in lsearch
10589: do
10590: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 10591: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 10592: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10593: if eval "test \"\${$as_ac_var+set}\" = set"; then
10594: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10595: else
1.9 millert 10596: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10597: #line $LINENO "configure"
10598: /* confdefs.h. */
10599: _ACEOF
10600: cat confdefs.h >>conftest.$ac_ext
10601: cat >>conftest.$ac_ext <<_ACEOF
10602: /* end confdefs.h. */
1.1 millert 10603: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 10604: which can conflict with char $ac_func (); below.
10605: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10606: <limits.h> exists even on freestanding compilers. */
10607: #ifdef __STDC__
10608: # include <limits.h>
10609: #else
10610: # include <assert.h>
10611: #endif
1.1 millert 10612: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 10613: #ifdef __cplusplus
10614: extern "C"
1.16 millert 10615: {
1.9 millert 10616: #endif
1.1 millert 10617: /* We use char because int might match the return type of a gcc2
1.9 millert 10618: builtin and then its argument prototype would still apply. */
10619: char $ac_func ();
1.1 millert 10620: /* The GNU C library defines this for functions which it implements
10621: to always fail with ENOSYS. Some functions are actually named
10622: something starting with __ and the normal name is an alias. */
1.9 millert 10623: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 10624: choke me
10625: #else
1.16 millert 10626: char (*f) () = $ac_func;
10627: #endif
10628: #ifdef __cplusplus
10629: }
1.1 millert 10630: #endif
10631:
1.16 millert 10632: int
10633: main ()
10634: {
10635: return f != $ac_func;
1.9 millert 10636: ;
10637: return 0;
10638: }
10639: _ACEOF
10640: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 10641: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10642: (eval $ac_link) 2>&5
10643: ac_status=$?
1.16 millert 10644: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10645: (exit $ac_status); } &&
10646: { ac_try='test -s conftest$ac_exeext'
1.16 millert 10647: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10648: (eval $ac_try) 2>&5
10649: ac_status=$?
1.16 millert 10650: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10651: (exit $ac_status); }; }; then
10652: eval "$as_ac_var=yes"
10653: else
10654: echo "$as_me: failed program was:" >&5
1.16 millert 10655: sed 's/^/| /' conftest.$ac_ext >&5
10656:
1.9 millert 10657: eval "$as_ac_var=no"
10658: fi
10659: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10660: fi
1.16 millert 10661: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 10662: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10663: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 10664: cat >>confdefs.h <<_ACEOF
1.9 millert 10665: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 10666: _ACEOF
1.9 millert 10667:
10668: else
1.16 millert 10669: echo "$as_me:$LINENO: checking for lsearch in -lcompat" >&5
1.9 millert 10670: echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6
10671: if test "${ac_cv_lib_compat_lsearch+set}" = set; then
10672: echo $ECHO_N "(cached) $ECHO_C" >&6
10673: else
10674: ac_check_lib_save_LIBS=$LIBS
10675: LIBS="-lcompat $LIBS"
10676: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10677: #line $LINENO "configure"
10678: /* confdefs.h. */
10679: _ACEOF
10680: cat confdefs.h >>conftest.$ac_ext
10681: cat >>conftest.$ac_ext <<_ACEOF
10682: /* end confdefs.h. */
1.9 millert 10683:
10684: /* Override any gcc2 internal prototype to avoid an error. */
10685: #ifdef __cplusplus
10686: extern "C"
10687: #endif
10688: /* We use char because int might match the return type of a gcc2
10689: builtin and then its argument prototype would still apply. */
10690: char lsearch ();
10691: int
10692: main ()
10693: {
10694: lsearch ();
10695: ;
10696: return 0;
10697: }
10698: _ACEOF
10699: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 10700: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10701: (eval $ac_link) 2>&5
10702: ac_status=$?
1.16 millert 10703: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10704: (exit $ac_status); } &&
10705: { ac_try='test -s conftest$ac_exeext'
1.16 millert 10706: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10707: (eval $ac_try) 2>&5
10708: ac_status=$?
1.16 millert 10709: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10710: (exit $ac_status); }; }; then
10711: ac_cv_lib_compat_lsearch=yes
10712: else
10713: echo "$as_me: failed program was:" >&5
1.16 millert 10714: sed 's/^/| /' conftest.$ac_ext >&5
10715:
1.9 millert 10716: ac_cv_lib_compat_lsearch=no
10717: fi
10718: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10719: LIBS=$ac_check_lib_save_LIBS
10720: fi
1.16 millert 10721: echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lsearch" >&5
1.9 millert 10722: echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6
10723: if test $ac_cv_lib_compat_lsearch = yes; then
1.16 millert 10724: echo "$as_me:$LINENO: checking for search.h" >&5
1.9 millert 10725: echo $ECHO_N "checking for search.h... $ECHO_C" >&6
10726: if test "${ac_cv_header_search_h+set}" = set; then
10727: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10728: else
1.9 millert 10729: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10730: #line $LINENO "configure"
10731: /* confdefs.h. */
10732: _ACEOF
10733: cat confdefs.h >>conftest.$ac_ext
10734: cat >>conftest.$ac_ext <<_ACEOF
10735: /* end confdefs.h. */
1.9 millert 10736: #include <search.h>
10737: _ACEOF
1.16 millert 10738: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 10739: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10740: ac_status=$?
1.16 millert 10741: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 10742: rm -f conftest.er1
10743: cat conftest.err >&5
1.16 millert 10744: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10745: (exit $ac_status); } >/dev/null; then
10746: if test -s conftest.err; then
10747: ac_cpp_err=$ac_c_preproc_warn_flag
10748: else
10749: ac_cpp_err=
10750: fi
10751: else
10752: ac_cpp_err=yes
10753: fi
10754: if test -z "$ac_cpp_err"; then
10755: ac_cv_header_search_h=yes
10756: else
10757: echo "$as_me: failed program was:" >&5
1.16 millert 10758: sed 's/^/| /' conftest.$ac_ext >&5
10759:
1.9 millert 10760: ac_cv_header_search_h=no
1.1 millert 10761: fi
1.9 millert 10762: rm -f conftest.err conftest.$ac_ext
1.1 millert 10763: fi
1.16 millert 10764: echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
1.9 millert 10765: echo "${ECHO_T}$ac_cv_header_search_h" >&6
10766: if test $ac_cv_header_search_h = yes; then
1.16 millert 10767: cat >>confdefs.h <<\_ACEOF
1.9 millert 10768: #define HAVE_LSEARCH 1
1.16 millert 10769: _ACEOF
1.9 millert 10770: LIBS="${LIBS} -lcompat"
10771: else
10772: LIBOBJS="$LIBOBJS lsearch.$ac_objext"
10773: fi
1.1 millert 10774:
1.16 millert 10775:
1.1 millert 10776: else
1.9 millert 10777: LIBOBJS="$LIBOBJS lsearch.$ac_objext"
1.1 millert 10778: fi
10779:
10780: fi
1.9 millert 10781: done
1.1 millert 10782:
1.16 millert 10783:
1.9 millert 10784: for ac_func in utime
10785: do
10786: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 10787: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 10788: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10789: if eval "test \"\${$as_ac_var+set}\" = set"; then
10790: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10791: else
1.9 millert 10792: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10793: #line $LINENO "configure"
10794: /* confdefs.h. */
10795: _ACEOF
10796: cat confdefs.h >>conftest.$ac_ext
10797: cat >>conftest.$ac_ext <<_ACEOF
10798: /* end confdefs.h. */
1.1 millert 10799: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 10800: which can conflict with char $ac_func (); below.
10801: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10802: <limits.h> exists even on freestanding compilers. */
10803: #ifdef __STDC__
10804: # include <limits.h>
10805: #else
10806: # include <assert.h>
10807: #endif
1.1 millert 10808: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 10809: #ifdef __cplusplus
10810: extern "C"
1.16 millert 10811: {
1.9 millert 10812: #endif
1.1 millert 10813: /* We use char because int might match the return type of a gcc2
1.9 millert 10814: builtin and then its argument prototype would still apply. */
10815: char $ac_func ();
1.1 millert 10816: /* The GNU C library defines this for functions which it implements
10817: to always fail with ENOSYS. Some functions are actually named
10818: something starting with __ and the normal name is an alias. */
1.9 millert 10819: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 10820: choke me
10821: #else
1.16 millert 10822: char (*f) () = $ac_func;
10823: #endif
10824: #ifdef __cplusplus
10825: }
1.1 millert 10826: #endif
10827:
1.16 millert 10828: int
10829: main ()
10830: {
10831: return f != $ac_func;
1.9 millert 10832: ;
10833: return 0;
10834: }
10835: _ACEOF
10836: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 10837: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10838: (eval $ac_link) 2>&5
10839: ac_status=$?
1.16 millert 10840: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10841: (exit $ac_status); } &&
10842: { ac_try='test -s conftest$ac_exeext'
1.16 millert 10843: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10844: (eval $ac_try) 2>&5
10845: ac_status=$?
1.16 millert 10846: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10847: (exit $ac_status); }; }; then
10848: eval "$as_ac_var=yes"
10849: else
10850: echo "$as_me: failed program was:" >&5
1.16 millert 10851: sed 's/^/| /' conftest.$ac_ext >&5
10852:
1.9 millert 10853: eval "$as_ac_var=no"
10854: fi
10855: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10856: fi
1.16 millert 10857: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 10858: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10859: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 10860: cat >>confdefs.h <<_ACEOF
1.9 millert 10861: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 10862: _ACEOF
10863: echo "$as_me:$LINENO: checking for POSIX utime" >&5
1.9 millert 10864: echo $ECHO_N "checking for POSIX utime... $ECHO_C" >&6
10865: if test "${sudo_cv_func_utime_posix+set}" = set; then
10866: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10867: else
10868: rm -f conftestdata; > conftestdata
10869: if test "$cross_compiling" = yes; then
10870: sudo_cv_func_utime_posix=no
10871: else
1.9 millert 10872: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10873: #line $LINENO "configure"
10874: /* confdefs.h. */
10875: _ACEOF
10876: cat confdefs.h >>conftest.$ac_ext
10877: cat >>conftest.$ac_ext <<_ACEOF
10878: /* end confdefs.h. */
1.1 millert 10879: #include <sys/types.h>
10880: #include <sys/time.h>
10881: #include <utime.h>
10882: main() {
10883: struct utimbuf ut;
10884: ut.actime = ut.modtime = time(0);
10885: utime("conftestdata", &ut);
10886: exit(0);
10887: }
1.9 millert 10888: _ACEOF
10889: rm -f conftest$ac_exeext
1.16 millert 10890: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10891: (eval $ac_link) 2>&5
10892: ac_status=$?
1.16 millert 10893: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10894: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16 millert 10895: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10896: (eval $ac_try) 2>&5
10897: ac_status=$?
1.16 millert 10898: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10899: (exit $ac_status); }; }; then
1.1 millert 10900: sudo_cv_func_utime_posix=yes
10901: else
1.9 millert 10902: echo "$as_me: program exited with status $ac_status" >&5
10903: echo "$as_me: failed program was:" >&5
1.16 millert 10904: sed 's/^/| /' conftest.$ac_ext >&5
10905:
10906: ( exit $ac_status )
1.9 millert 10907: sudo_cv_func_utime_posix=no
1.1 millert 10908: fi
1.16 millert 10909: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 10910: fi
10911: rm -f core core.* *.core
10912: fi
1.16 millert 10913: echo "$as_me:$LINENO: result: $sudo_cv_func_utime_posix" >&5
1.9 millert 10914: echo "${ECHO_T}$sudo_cv_func_utime_posix" >&6
1.1 millert 10915: if test $sudo_cv_func_utime_posix = yes; then
1.9 millert 10916:
1.16 millert 10917: cat >>confdefs.h <<\_ACEOF
1.1 millert 10918: #define HAVE_UTIME_POSIX 1
1.16 millert 10919: _ACEOF
1.1 millert 10920:
10921: fi
10922:
10923: else
1.9 millert 10924: LIBOBJS="$LIBOBJS utime.$ac_objext"
1.1 millert 10925: fi
1.9 millert 10926: done
1.1 millert 10927:
1.16 millert 10928: echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
1.9 millert 10929: echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6
10930: if test "${sudo_cv_func_fnmatch+set}" = set; then
10931: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10932: else
10933: rm -f conftestdata; > conftestdata
10934: if test "$cross_compiling" = yes; then
10935: sudo_cv_func_fnmatch=no
10936: else
1.9 millert 10937: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10938: #line $LINENO "configure"
10939: /* confdefs.h. */
10940: _ACEOF
10941: cat confdefs.h >>conftest.$ac_ext
10942: cat >>conftest.$ac_ext <<_ACEOF
10943: /* end confdefs.h. */
1.3 millert 10944: #include <fnmatch.h>
1.6 millert 10945: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
1.3 millert 10946:
1.9 millert 10947: _ACEOF
10948: rm -f conftest$ac_exeext
1.16 millert 10949: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10950: (eval $ac_link) 2>&5
10951: ac_status=$?
1.16 millert 10952: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10953: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16 millert 10954: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10955: (eval $ac_try) 2>&5
10956: ac_status=$?
1.16 millert 10957: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10958: (exit $ac_status); }; }; then
1.1 millert 10959: sudo_cv_func_fnmatch=yes
10960: else
1.9 millert 10961: echo "$as_me: program exited with status $ac_status" >&5
10962: echo "$as_me: failed program was:" >&5
1.16 millert 10963: sed 's/^/| /' conftest.$ac_ext >&5
10964:
10965: ( exit $ac_status )
1.9 millert 10966: sudo_cv_func_fnmatch=no
1.1 millert 10967: fi
1.16 millert 10968: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 10969: fi
10970: rm -f core core.* *.core
10971: fi
1.16 millert 10972: echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
1.9 millert 10973: echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6
1.1 millert 10974: if test $sudo_cv_func_fnmatch = yes; then
1.9 millert 10975:
1.16 millert 10976: cat >>confdefs.h <<\_ACEOF
1.1 millert 10977: #define HAVE_FNMATCH 1
1.16 millert 10978: _ACEOF
1.1 millert 10979:
10980: else
1.9 millert 10981: LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
1.1 millert 10982: fi
10983:
1.16 millert 10984: echo "$as_me:$LINENO: checking for isblank" >&5
1.9 millert 10985: echo $ECHO_N "checking for isblank... $ECHO_C" >&6
10986: if test "${sudo_cv_func_isblank+set}" = set; then
10987: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10988: else
1.9 millert 10989: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10990: #line $LINENO "configure"
10991: /* confdefs.h. */
10992: _ACEOF
10993: cat confdefs.h >>conftest.$ac_ext
10994: cat >>conftest.$ac_ext <<_ACEOF
10995: /* end confdefs.h. */
1.9 millert 10996: #include <ctype.h>
10997: int
10998: main ()
10999: {
11000: (void)isblank(1);
11001: ;
11002: return 0;
11003: }
11004: _ACEOF
11005: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11006: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11007: (eval $ac_link) 2>&5
11008: ac_status=$?
1.16 millert 11009: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11010: (exit $ac_status); } &&
11011: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11012: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11013: (eval $ac_try) 2>&5
11014: ac_status=$?
1.16 millert 11015: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11016: (exit $ac_status); }; }; then
11017: sudo_cv_func_isblank=yes
11018: else
11019: echo "$as_me: failed program was:" >&5
1.16 millert 11020: sed 's/^/| /' conftest.$ac_ext >&5
11021:
1.9 millert 11022: sudo_cv_func_isblank=no
11023: fi
11024: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 millert 11025: fi
1.16 millert 11026: echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
1.9 millert 11027: echo "${ECHO_T}$sudo_cv_func_isblank" >&6
1.1 millert 11028:
1.9 millert 11029: if test "$sudo_cv_func_isblank" = "yes"; then
1.1 millert 11030:
1.16 millert 11031: cat >>confdefs.h <<\_ACEOF
1.9 millert 11032: #define HAVE_ISBLANK 1
1.16 millert 11033: _ACEOF
1.1 millert 11034:
1.9 millert 11035: fi
1.1 millert 11036:
1.16 millert 11037:
11038:
11039:
11040:
11041:
11042: for ac_func in strerror strcasecmp sigaction strlcpy strlcat
1.9 millert 11043: do
11044: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 11045: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 11046: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11047: if eval "test \"\${$as_ac_var+set}\" = set"; then
11048: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11049: else
1.9 millert 11050: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11051: #line $LINENO "configure"
11052: /* confdefs.h. */
11053: _ACEOF
11054: cat confdefs.h >>conftest.$ac_ext
11055: cat >>conftest.$ac_ext <<_ACEOF
11056: /* end confdefs.h. */
1.1 millert 11057: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 11058: which can conflict with char $ac_func (); below.
11059: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11060: <limits.h> exists even on freestanding compilers. */
11061: #ifdef __STDC__
11062: # include <limits.h>
11063: #else
11064: # include <assert.h>
11065: #endif
1.1 millert 11066: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11067: #ifdef __cplusplus
11068: extern "C"
1.16 millert 11069: {
1.1 millert 11070: #endif
11071: /* We use char because int might match the return type of a gcc2
1.9 millert 11072: builtin and then its argument prototype would still apply. */
11073: char $ac_func ();
1.1 millert 11074: /* The GNU C library defines this for functions which it implements
11075: to always fail with ENOSYS. Some functions are actually named
11076: something starting with __ and the normal name is an alias. */
1.9 millert 11077: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 11078: choke me
11079: #else
1.16 millert 11080: char (*f) () = $ac_func;
11081: #endif
11082: #ifdef __cplusplus
11083: }
1.1 millert 11084: #endif
11085:
1.16 millert 11086: int
11087: main ()
11088: {
11089: return f != $ac_func;
1.9 millert 11090: ;
11091: return 0;
11092: }
11093: _ACEOF
11094: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11095: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11096: (eval $ac_link) 2>&5
11097: ac_status=$?
1.16 millert 11098: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11099: (exit $ac_status); } &&
11100: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11101: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11102: (eval $ac_try) 2>&5
11103: ac_status=$?
1.16 millert 11104: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11105: (exit $ac_status); }; }; then
11106: eval "$as_ac_var=yes"
11107: else
11108: echo "$as_me: failed program was:" >&5
1.16 millert 11109: sed 's/^/| /' conftest.$ac_ext >&5
11110:
1.9 millert 11111: eval "$as_ac_var=no"
11112: fi
11113: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11114: fi
1.16 millert 11115: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 11116: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11117: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 11118: cat >>confdefs.h <<_ACEOF
1.9 millert 11119: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 11120: _ACEOF
1.1 millert 11121:
11122: else
1.9 millert 11123: LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
1.1 millert 11124: fi
1.9 millert 11125: done
1.1 millert 11126:
1.16 millert 11127:
11128:
11129:
11130:
11131:
1.9 millert 11132: for ac_func in snprintf vsnprintf asprintf vasprintf
11133: do
11134: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 11135: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 11136: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11137: if eval "test \"\${$as_ac_var+set}\" = set"; then
11138: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11139: else
1.9 millert 11140: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11141: #line $LINENO "configure"
11142: /* confdefs.h. */
11143: _ACEOF
11144: cat confdefs.h >>conftest.$ac_ext
11145: cat >>conftest.$ac_ext <<_ACEOF
11146: /* end confdefs.h. */
1.1 millert 11147: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 11148: which can conflict with char $ac_func (); below.
11149: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11150: <limits.h> exists even on freestanding compilers. */
11151: #ifdef __STDC__
11152: # include <limits.h>
11153: #else
11154: # include <assert.h>
11155: #endif
1.1 millert 11156: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11157: #ifdef __cplusplus
11158: extern "C"
1.16 millert 11159: {
1.9 millert 11160: #endif
1.1 millert 11161: /* We use char because int might match the return type of a gcc2
1.9 millert 11162: builtin and then its argument prototype would still apply. */
11163: char $ac_func ();
1.1 millert 11164: /* The GNU C library defines this for functions which it implements
11165: to always fail with ENOSYS. Some functions are actually named
11166: something starting with __ and the normal name is an alias. */
1.9 millert 11167: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 11168: choke me
11169: #else
1.16 millert 11170: char (*f) () = $ac_func;
11171: #endif
11172: #ifdef __cplusplus
11173: }
1.1 millert 11174: #endif
11175:
1.16 millert 11176: int
11177: main ()
11178: {
11179: return f != $ac_func;
1.9 millert 11180: ;
11181: return 0;
11182: }
11183: _ACEOF
11184: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11185: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11186: (eval $ac_link) 2>&5
11187: ac_status=$?
1.16 millert 11188: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11189: (exit $ac_status); } &&
11190: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11191: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11192: (eval $ac_try) 2>&5
11193: ac_status=$?
1.16 millert 11194: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11195: (exit $ac_status); }; }; then
11196: eval "$as_ac_var=yes"
11197: else
11198: echo "$as_me: failed program was:" >&5
1.16 millert 11199: sed 's/^/| /' conftest.$ac_ext >&5
11200:
1.9 millert 11201: eval "$as_ac_var=no"
11202: fi
11203: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11204: fi
1.16 millert 11205: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 11206: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11207: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 11208: cat >>confdefs.h <<_ACEOF
1.9 millert 11209: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 11210: _ACEOF
1.1 millert 11211:
11212: else
1.9 millert 11213: NEED_SNPRINTF=1
1.1 millert 11214: fi
1.9 millert 11215: done
1.1 millert 11216:
11217: if test -n "$NEED_SNPRINTF"; then
1.9 millert 11218: LIBOBJS="$LIBOBJS snprintf.$ac_objext"
1.1 millert 11219: fi
11220: if test -z "$LIB_CRYPT"; then
1.16 millert 11221: echo "$as_me:$LINENO: checking for crypt" >&5
1.9 millert 11222: echo $ECHO_N "checking for crypt... $ECHO_C" >&6
11223: if test "${ac_cv_func_crypt+set}" = set; then
11224: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11225: else
1.9 millert 11226: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11227: #line $LINENO "configure"
11228: /* confdefs.h. */
11229: _ACEOF
11230: cat confdefs.h >>conftest.$ac_ext
11231: cat >>conftest.$ac_ext <<_ACEOF
11232: /* end confdefs.h. */
1.1 millert 11233: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 11234: which can conflict with char crypt (); below.
11235: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11236: <limits.h> exists even on freestanding compilers. */
11237: #ifdef __STDC__
11238: # include <limits.h>
11239: #else
11240: # include <assert.h>
11241: #endif
1.1 millert 11242: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11243: #ifdef __cplusplus
11244: extern "C"
1.16 millert 11245: {
1.9 millert 11246: #endif
1.1 millert 11247: /* We use char because int might match the return type of a gcc2
1.9 millert 11248: builtin and then its argument prototype would still apply. */
11249: char crypt ();
1.1 millert 11250: /* The GNU C library defines this for functions which it implements
11251: to always fail with ENOSYS. Some functions are actually named
11252: something starting with __ and the normal name is an alias. */
11253: #if defined (__stub_crypt) || defined (__stub___crypt)
11254: choke me
11255: #else
1.16 millert 11256: char (*f) () = crypt;
11257: #endif
11258: #ifdef __cplusplus
11259: }
1.1 millert 11260: #endif
11261:
1.16 millert 11262: int
11263: main ()
11264: {
11265: return f != crypt;
1.9 millert 11266: ;
11267: return 0;
11268: }
11269: _ACEOF
11270: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11271: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11272: (eval $ac_link) 2>&5
11273: ac_status=$?
1.16 millert 11274: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11275: (exit $ac_status); } &&
11276: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11277: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11278: (eval $ac_try) 2>&5
11279: ac_status=$?
1.16 millert 11280: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11281: (exit $ac_status); }; }; then
11282: ac_cv_func_crypt=yes
11283: else
11284: echo "$as_me: failed program was:" >&5
1.16 millert 11285: sed 's/^/| /' conftest.$ac_ext >&5
11286:
1.9 millert 11287: ac_cv_func_crypt=no
11288: fi
11289: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11290: fi
1.16 millert 11291: echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
1.9 millert 11292: echo "${ECHO_T}$ac_cv_func_crypt" >&6
11293: if test $ac_cv_func_crypt = yes; then
1.1 millert 11294: :
11295: else
1.16 millert 11296: echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
1.9 millert 11297: echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
11298: if test "${ac_cv_lib_crypt_crypt+set}" = set; then
11299: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11300: else
1.9 millert 11301: ac_check_lib_save_LIBS=$LIBS
1.1 millert 11302: LIBS="-lcrypt $LIBS"
1.9 millert 11303: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11304: #line $LINENO "configure"
11305: /* confdefs.h. */
11306: _ACEOF
11307: cat confdefs.h >>conftest.$ac_ext
11308: cat >>conftest.$ac_ext <<_ACEOF
11309: /* end confdefs.h. */
1.9 millert 11310:
1.1 millert 11311: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11312: #ifdef __cplusplus
11313: extern "C"
11314: #endif
1.1 millert 11315: /* We use char because int might match the return type of a gcc2
1.9 millert 11316: builtin and then its argument prototype would still apply. */
11317: char crypt ();
11318: int
11319: main ()
11320: {
11321: crypt ();
11322: ;
11323: return 0;
11324: }
11325: _ACEOF
11326: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11327: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11328: (eval $ac_link) 2>&5
11329: ac_status=$?
1.16 millert 11330: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11331: (exit $ac_status); } &&
11332: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11333: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11334: (eval $ac_try) 2>&5
11335: ac_status=$?
1.16 millert 11336: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11337: (exit $ac_status); }; }; then
11338: ac_cv_lib_crypt_crypt=yes
11339: else
11340: echo "$as_me: failed program was:" >&5
1.16 millert 11341: sed 's/^/| /' conftest.$ac_ext >&5
11342:
1.9 millert 11343: ac_cv_lib_crypt_crypt=no
11344: fi
11345: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11346: LIBS=$ac_check_lib_save_LIBS
11347: fi
1.16 millert 11348: echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
1.9 millert 11349: echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
11350: if test $ac_cv_lib_crypt_crypt = yes; then
1.1 millert 11351: SUDO_LIBS="${SUDO_LIBS} -lcrypt"; LIBS="${LIBS} -lcrypt"
11352: else
1.16 millert 11353: echo "$as_me:$LINENO: checking for crypt in -lcrypt_d" >&5
1.9 millert 11354: echo $ECHO_N "checking for crypt in -lcrypt_d... $ECHO_C" >&6
11355: if test "${ac_cv_lib_crypt_d_crypt+set}" = set; then
11356: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11357: else
1.9 millert 11358: ac_check_lib_save_LIBS=$LIBS
1.1 millert 11359: LIBS="-lcrypt_d $LIBS"
1.9 millert 11360: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11361: #line $LINENO "configure"
11362: /* confdefs.h. */
11363: _ACEOF
11364: cat confdefs.h >>conftest.$ac_ext
11365: cat >>conftest.$ac_ext <<_ACEOF
11366: /* end confdefs.h. */
1.9 millert 11367:
1.1 millert 11368: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11369: #ifdef __cplusplus
11370: extern "C"
11371: #endif
1.1 millert 11372: /* We use char because int might match the return type of a gcc2
1.9 millert 11373: builtin and then its argument prototype would still apply. */
11374: char crypt ();
11375: int
11376: main ()
11377: {
11378: crypt ();
11379: ;
11380: return 0;
11381: }
11382: _ACEOF
11383: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11384: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11385: (eval $ac_link) 2>&5
11386: ac_status=$?
1.16 millert 11387: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11388: (exit $ac_status); } &&
11389: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11390: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11391: (eval $ac_try) 2>&5
11392: ac_status=$?
1.16 millert 11393: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11394: (exit $ac_status); }; }; then
11395: ac_cv_lib_crypt_d_crypt=yes
11396: else
11397: echo "$as_me: failed program was:" >&5
1.16 millert 11398: sed 's/^/| /' conftest.$ac_ext >&5
11399:
1.9 millert 11400: ac_cv_lib_crypt_d_crypt=no
11401: fi
11402: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11403: LIBS=$ac_check_lib_save_LIBS
11404: fi
1.16 millert 11405: echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_d_crypt" >&5
1.9 millert 11406: echo "${ECHO_T}$ac_cv_lib_crypt_d_crypt" >&6
11407: if test $ac_cv_lib_crypt_d_crypt = yes; then
1.1 millert 11408: SUDO_LIBS="${SUDO_LIBS} -lcrypt_d"; LIBS="${LIBS} -lcrypt_d"
11409: else
1.16 millert 11410: echo "$as_me:$LINENO: checking for crypt in -lufc" >&5
1.9 millert 11411: echo $ECHO_N "checking for crypt in -lufc... $ECHO_C" >&6
11412: if test "${ac_cv_lib_ufc_crypt+set}" = set; then
11413: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11414: else
1.9 millert 11415: ac_check_lib_save_LIBS=$LIBS
1.1 millert 11416: LIBS="-lufc $LIBS"
1.9 millert 11417: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11418: #line $LINENO "configure"
11419: /* confdefs.h. */
11420: _ACEOF
11421: cat confdefs.h >>conftest.$ac_ext
11422: cat >>conftest.$ac_ext <<_ACEOF
11423: /* end confdefs.h. */
1.9 millert 11424:
1.1 millert 11425: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11426: #ifdef __cplusplus
11427: extern "C"
11428: #endif
1.1 millert 11429: /* We use char because int might match the return type of a gcc2
1.9 millert 11430: builtin and then its argument prototype would still apply. */
11431: char crypt ();
11432: int
11433: main ()
11434: {
11435: crypt ();
11436: ;
11437: return 0;
11438: }
11439: _ACEOF
11440: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11441: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11442: (eval $ac_link) 2>&5
11443: ac_status=$?
1.16 millert 11444: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11445: (exit $ac_status); } &&
11446: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11447: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11448: (eval $ac_try) 2>&5
11449: ac_status=$?
1.16 millert 11450: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11451: (exit $ac_status); }; }; then
11452: ac_cv_lib_ufc_crypt=yes
11453: else
11454: echo "$as_me: failed program was:" >&5
1.16 millert 11455: sed 's/^/| /' conftest.$ac_ext >&5
11456:
1.9 millert 11457: ac_cv_lib_ufc_crypt=no
11458: fi
11459: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11460: LIBS=$ac_check_lib_save_LIBS
11461: fi
1.16 millert 11462: echo "$as_me:$LINENO: result: $ac_cv_lib_ufc_crypt" >&5
1.9 millert 11463: echo "${ECHO_T}$ac_cv_lib_ufc_crypt" >&6
11464: if test $ac_cv_lib_ufc_crypt = yes; then
1.1 millert 11465: SUDO_LIBS="${SUDO_LIBS} -lufc"; LIBS="${LIBS} -lufc"
11466: fi
11467:
11468: fi
11469:
11470: fi
11471:
11472: fi
11473:
11474: fi
1.16 millert 11475: echo "$as_me:$LINENO: checking for socket" >&5
1.9 millert 11476: echo $ECHO_N "checking for socket... $ECHO_C" >&6
11477: if test "${ac_cv_func_socket+set}" = set; then
11478: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11479: else
1.9 millert 11480: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11481: #line $LINENO "configure"
11482: /* confdefs.h. */
11483: _ACEOF
11484: cat confdefs.h >>conftest.$ac_ext
11485: cat >>conftest.$ac_ext <<_ACEOF
11486: /* end confdefs.h. */
1.1 millert 11487: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 11488: which can conflict with char socket (); below.
11489: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11490: <limits.h> exists even on freestanding compilers. */
11491: #ifdef __STDC__
11492: # include <limits.h>
11493: #else
11494: # include <assert.h>
11495: #endif
1.1 millert 11496: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11497: #ifdef __cplusplus
11498: extern "C"
1.16 millert 11499: {
1.9 millert 11500: #endif
1.1 millert 11501: /* We use char because int might match the return type of a gcc2
1.9 millert 11502: builtin and then its argument prototype would still apply. */
11503: char socket ();
1.1 millert 11504: /* The GNU C library defines this for functions which it implements
11505: to always fail with ENOSYS. Some functions are actually named
11506: something starting with __ and the normal name is an alias. */
11507: #if defined (__stub_socket) || defined (__stub___socket)
11508: choke me
11509: #else
1.16 millert 11510: char (*f) () = socket;
11511: #endif
11512: #ifdef __cplusplus
11513: }
1.1 millert 11514: #endif
11515:
1.16 millert 11516: int
11517: main ()
11518: {
11519: return f != socket;
1.9 millert 11520: ;
11521: return 0;
11522: }
11523: _ACEOF
11524: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11525: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11526: (eval $ac_link) 2>&5
11527: ac_status=$?
1.16 millert 11528: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11529: (exit $ac_status); } &&
11530: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11531: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11532: (eval $ac_try) 2>&5
11533: ac_status=$?
1.16 millert 11534: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11535: (exit $ac_status); }; }; then
11536: ac_cv_func_socket=yes
11537: else
11538: echo "$as_me: failed program was:" >&5
1.16 millert 11539: sed 's/^/| /' conftest.$ac_ext >&5
11540:
1.9 millert 11541: ac_cv_func_socket=no
11542: fi
11543: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11544: fi
1.16 millert 11545: echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
1.9 millert 11546: echo "${ECHO_T}$ac_cv_func_socket" >&6
11547: if test $ac_cv_func_socket = yes; then
1.1 millert 11548: :
11549: else
1.16 millert 11550: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
1.9 millert 11551: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11552: if test "${ac_cv_lib_socket_socket+set}" = set; then
11553: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11554: else
1.9 millert 11555: ac_check_lib_save_LIBS=$LIBS
1.1 millert 11556: LIBS="-lsocket $LIBS"
1.9 millert 11557: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11558: #line $LINENO "configure"
11559: /* confdefs.h. */
11560: _ACEOF
11561: cat confdefs.h >>conftest.$ac_ext
11562: cat >>conftest.$ac_ext <<_ACEOF
11563: /* end confdefs.h. */
1.9 millert 11564:
1.1 millert 11565: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11566: #ifdef __cplusplus
11567: extern "C"
11568: #endif
1.1 millert 11569: /* We use char because int might match the return type of a gcc2
1.9 millert 11570: builtin and then its argument prototype would still apply. */
11571: char socket ();
11572: int
11573: main ()
11574: {
11575: socket ();
11576: ;
11577: return 0;
11578: }
11579: _ACEOF
11580: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11581: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11582: (eval $ac_link) 2>&5
11583: ac_status=$?
1.16 millert 11584: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11585: (exit $ac_status); } &&
11586: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11587: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11588: (eval $ac_try) 2>&5
11589: ac_status=$?
1.16 millert 11590: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11591: (exit $ac_status); }; }; then
11592: ac_cv_lib_socket_socket=yes
11593: else
11594: echo "$as_me: failed program was:" >&5
1.16 millert 11595: sed 's/^/| /' conftest.$ac_ext >&5
11596:
1.9 millert 11597: ac_cv_lib_socket_socket=no
11598: fi
11599: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11600: LIBS=$ac_check_lib_save_LIBS
11601: fi
1.16 millert 11602: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
1.9 millert 11603: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11604: if test $ac_cv_lib_socket_socket = yes; then
1.1 millert 11605: NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
11606: else
1.16 millert 11607: echo "$as_me:$LINENO: checking for socket in -linet" >&5
1.9 millert 11608: echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
11609: if test "${ac_cv_lib_inet_socket+set}" = set; then
11610: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11611: else
1.9 millert 11612: ac_check_lib_save_LIBS=$LIBS
1.1 millert 11613: LIBS="-linet $LIBS"
1.9 millert 11614: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11615: #line $LINENO "configure"
11616: /* confdefs.h. */
11617: _ACEOF
11618: cat confdefs.h >>conftest.$ac_ext
11619: cat >>conftest.$ac_ext <<_ACEOF
11620: /* end confdefs.h. */
1.9 millert 11621:
1.1 millert 11622: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11623: #ifdef __cplusplus
11624: extern "C"
11625: #endif
1.1 millert 11626: /* We use char because int might match the return type of a gcc2
1.9 millert 11627: builtin and then its argument prototype would still apply. */
11628: char socket ();
11629: int
11630: main ()
11631: {
11632: socket ();
11633: ;
11634: return 0;
11635: }
11636: _ACEOF
11637: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11638: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11639: (eval $ac_link) 2>&5
11640: ac_status=$?
1.16 millert 11641: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11642: (exit $ac_status); } &&
11643: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11644: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11645: (eval $ac_try) 2>&5
11646: ac_status=$?
1.16 millert 11647: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11648: (exit $ac_status); }; }; then
11649: ac_cv_lib_inet_socket=yes
11650: else
11651: echo "$as_me: failed program was:" >&5
1.16 millert 11652: sed 's/^/| /' conftest.$ac_ext >&5
11653:
1.9 millert 11654: ac_cv_lib_inet_socket=no
11655: fi
11656: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11657: LIBS=$ac_check_lib_save_LIBS
11658: fi
1.16 millert 11659: echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
1.9 millert 11660: echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
11661: if test $ac_cv_lib_inet_socket = yes; then
1.1 millert 11662: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
11663: else
1.16 millert 11664: { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
1.9 millert 11665: echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
1.16 millert 11666: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
1.9 millert 11667: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11668: if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
11669: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11670: else
1.9 millert 11671: ac_check_lib_save_LIBS=$LIBS
1.1 millert 11672: LIBS="-lsocket -lnsl $LIBS"
1.9 millert 11673: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11674: #line $LINENO "configure"
11675: /* confdefs.h. */
11676: _ACEOF
11677: cat confdefs.h >>conftest.$ac_ext
11678: cat >>conftest.$ac_ext <<_ACEOF
11679: /* end confdefs.h. */
1.9 millert 11680:
1.1 millert 11681: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11682: #ifdef __cplusplus
11683: extern "C"
11684: #endif
1.1 millert 11685: /* We use char because int might match the return type of a gcc2
1.9 millert 11686: builtin and then its argument prototype would still apply. */
11687: char socket ();
11688: int
11689: main ()
11690: {
11691: socket ();
11692: ;
11693: return 0;
11694: }
11695: _ACEOF
11696: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11697: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11698: (eval $ac_link) 2>&5
11699: ac_status=$?
1.16 millert 11700: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11701: (exit $ac_status); } &&
11702: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11703: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11704: (eval $ac_try) 2>&5
11705: ac_status=$?
1.16 millert 11706: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11707: (exit $ac_status); }; }; then
11708: ac_cv_lib_socket_socket_lnsl=yes
11709: else
11710: echo "$as_me: failed program was:" >&5
1.16 millert 11711: sed 's/^/| /' conftest.$ac_ext >&5
11712:
1.9 millert 11713: ac_cv_lib_socket_socket_lnsl=no
11714: fi
11715: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11716: LIBS=$ac_check_lib_save_LIBS
11717: fi
1.16 millert 11718: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
1.9 millert 11719: echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6
11720: if test $ac_cv_lib_socket_socket_lnsl = yes; then
1.1 millert 11721: NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
11722: fi
11723:
11724: fi
11725:
11726: fi
11727:
11728: fi
11729:
1.16 millert 11730: echo "$as_me:$LINENO: checking for inet_addr" >&5
1.9 millert 11731: echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6
11732: if test "${ac_cv_func_inet_addr+set}" = set; then
11733: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11734: else
1.9 millert 11735: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11736: #line $LINENO "configure"
11737: /* confdefs.h. */
11738: _ACEOF
11739: cat confdefs.h >>conftest.$ac_ext
11740: cat >>conftest.$ac_ext <<_ACEOF
11741: /* end confdefs.h. */
1.1 millert 11742: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 11743: which can conflict with char inet_addr (); below.
11744: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11745: <limits.h> exists even on freestanding compilers. */
11746: #ifdef __STDC__
11747: # include <limits.h>
11748: #else
11749: # include <assert.h>
11750: #endif
1.1 millert 11751: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11752: #ifdef __cplusplus
11753: extern "C"
1.16 millert 11754: {
1.9 millert 11755: #endif
1.1 millert 11756: /* We use char because int might match the return type of a gcc2
1.9 millert 11757: builtin and then its argument prototype would still apply. */
11758: char inet_addr ();
1.1 millert 11759: /* The GNU C library defines this for functions which it implements
11760: to always fail with ENOSYS. Some functions are actually named
11761: something starting with __ and the normal name is an alias. */
11762: #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
11763: choke me
11764: #else
1.16 millert 11765: char (*f) () = inet_addr;
11766: #endif
11767: #ifdef __cplusplus
11768: }
1.1 millert 11769: #endif
11770:
1.16 millert 11771: int
11772: main ()
11773: {
11774: return f != inet_addr;
1.9 millert 11775: ;
11776: return 0;
11777: }
11778: _ACEOF
11779: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11780: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11781: (eval $ac_link) 2>&5
11782: ac_status=$?
1.16 millert 11783: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11784: (exit $ac_status); } &&
11785: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11786: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11787: (eval $ac_try) 2>&5
11788: ac_status=$?
1.16 millert 11789: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11790: (exit $ac_status); }; }; then
11791: ac_cv_func_inet_addr=yes
11792: else
11793: echo "$as_me: failed program was:" >&5
1.16 millert 11794: sed 's/^/| /' conftest.$ac_ext >&5
11795:
1.9 millert 11796: ac_cv_func_inet_addr=no
11797: fi
11798: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11799: fi
1.16 millert 11800: echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
1.9 millert 11801: echo "${ECHO_T}$ac_cv_func_inet_addr" >&6
11802: if test $ac_cv_func_inet_addr = yes; then
1.1 millert 11803: :
11804: else
1.16 millert 11805: echo "$as_me:$LINENO: checking for __inet_addr" >&5
1.9 millert 11806: echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6
11807: if test "${ac_cv_func___inet_addr+set}" = set; then
11808: echo $ECHO_N "(cached) $ECHO_C" >&6
1.6 millert 11809: else
1.9 millert 11810: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11811: #line $LINENO "configure"
11812: /* confdefs.h. */
11813: _ACEOF
11814: cat confdefs.h >>conftest.$ac_ext
11815: cat >>conftest.$ac_ext <<_ACEOF
11816: /* end confdefs.h. */
1.6 millert 11817: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 11818: which can conflict with char __inet_addr (); below.
11819: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11820: <limits.h> exists even on freestanding compilers. */
11821: #ifdef __STDC__
11822: # include <limits.h>
11823: #else
11824: # include <assert.h>
11825: #endif
1.6 millert 11826: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11827: #ifdef __cplusplus
11828: extern "C"
1.16 millert 11829: {
1.9 millert 11830: #endif
1.6 millert 11831: /* We use char because int might match the return type of a gcc2
1.9 millert 11832: builtin and then its argument prototype would still apply. */
11833: char __inet_addr ();
1.6 millert 11834: /* The GNU C library defines this for functions which it implements
11835: to always fail with ENOSYS. Some functions are actually named
11836: something starting with __ and the normal name is an alias. */
11837: #if defined (__stub___inet_addr) || defined (__stub_____inet_addr)
11838: choke me
11839: #else
1.16 millert 11840: char (*f) () = __inet_addr;
11841: #endif
11842: #ifdef __cplusplus
11843: }
1.6 millert 11844: #endif
11845:
1.16 millert 11846: int
11847: main ()
11848: {
11849: return f != __inet_addr;
1.9 millert 11850: ;
11851: return 0;
11852: }
11853: _ACEOF
11854: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11855: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11856: (eval $ac_link) 2>&5
11857: ac_status=$?
1.16 millert 11858: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11859: (exit $ac_status); } &&
11860: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11861: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11862: (eval $ac_try) 2>&5
11863: ac_status=$?
1.16 millert 11864: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11865: (exit $ac_status); }; }; then
11866: ac_cv_func___inet_addr=yes
11867: else
11868: echo "$as_me: failed program was:" >&5
1.16 millert 11869: sed 's/^/| /' conftest.$ac_ext >&5
11870:
1.9 millert 11871: ac_cv_func___inet_addr=no
11872: fi
11873: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11874: fi
1.16 millert 11875: echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
1.9 millert 11876: echo "${ECHO_T}$ac_cv_func___inet_addr" >&6
11877: if test $ac_cv_func___inet_addr = yes; then
1.6 millert 11878: :
11879: else
1.16 millert 11880: echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
1.9 millert 11881: echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
11882: if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
11883: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11884: else
1.9 millert 11885: ac_check_lib_save_LIBS=$LIBS
1.1 millert 11886: LIBS="-lnsl $LIBS"
1.9 millert 11887: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11888: #line $LINENO "configure"
11889: /* confdefs.h. */
11890: _ACEOF
11891: cat confdefs.h >>conftest.$ac_ext
11892: cat >>conftest.$ac_ext <<_ACEOF
11893: /* end confdefs.h. */
1.9 millert 11894:
1.1 millert 11895: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11896: #ifdef __cplusplus
11897: extern "C"
11898: #endif
1.1 millert 11899: /* We use char because int might match the return type of a gcc2
1.9 millert 11900: builtin and then its argument prototype would still apply. */
11901: char inet_addr ();
11902: int
11903: main ()
11904: {
11905: inet_addr ();
11906: ;
11907: return 0;
11908: }
11909: _ACEOF
11910: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11911: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11912: (eval $ac_link) 2>&5
11913: ac_status=$?
1.16 millert 11914: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11915: (exit $ac_status); } &&
11916: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11917: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11918: (eval $ac_try) 2>&5
11919: ac_status=$?
1.16 millert 11920: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11921: (exit $ac_status); }; }; then
11922: ac_cv_lib_nsl_inet_addr=yes
11923: else
11924: echo "$as_me: failed program was:" >&5
1.16 millert 11925: sed 's/^/| /' conftest.$ac_ext >&5
11926:
1.9 millert 11927: ac_cv_lib_nsl_inet_addr=no
11928: fi
11929: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11930: LIBS=$ac_check_lib_save_LIBS
11931: fi
1.16 millert 11932: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
1.9 millert 11933: echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
11934: if test $ac_cv_lib_nsl_inet_addr = yes; then
1.1 millert 11935: NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
11936: else
1.16 millert 11937: echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
1.9 millert 11938: echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6
11939: if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
11940: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11941: else
1.9 millert 11942: ac_check_lib_save_LIBS=$LIBS
1.1 millert 11943: LIBS="-linet $LIBS"
1.9 millert 11944: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11945: #line $LINENO "configure"
11946: /* confdefs.h. */
11947: _ACEOF
11948: cat confdefs.h >>conftest.$ac_ext
11949: cat >>conftest.$ac_ext <<_ACEOF
11950: /* end confdefs.h. */
1.9 millert 11951:
1.1 millert 11952: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11953: #ifdef __cplusplus
11954: extern "C"
11955: #endif
1.1 millert 11956: /* We use char because int might match the return type of a gcc2
1.9 millert 11957: builtin and then its argument prototype would still apply. */
11958: char inet_addr ();
11959: int
11960: main ()
11961: {
11962: inet_addr ();
11963: ;
11964: return 0;
11965: }
11966: _ACEOF
11967: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11968: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11969: (eval $ac_link) 2>&5
11970: ac_status=$?
1.16 millert 11971: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11972: (exit $ac_status); } &&
11973: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11974: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11975: (eval $ac_try) 2>&5
11976: ac_status=$?
1.16 millert 11977: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11978: (exit $ac_status); }; }; then
11979: ac_cv_lib_inet_inet_addr=yes
11980: else
11981: echo "$as_me: failed program was:" >&5
1.16 millert 11982: sed 's/^/| /' conftest.$ac_ext >&5
11983:
1.9 millert 11984: ac_cv_lib_inet_inet_addr=no
11985: fi
11986: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11987: LIBS=$ac_check_lib_save_LIBS
11988: fi
1.16 millert 11989: echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
1.9 millert 11990: echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6
11991: if test $ac_cv_lib_inet_inet_addr = yes; then
1.1 millert 11992: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
11993: else
1.16 millert 11994: { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
1.9 millert 11995: echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
1.16 millert 11996: echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
1.9 millert 11997: echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
11998: if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
11999: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12000: else
1.9 millert 12001: ac_check_lib_save_LIBS=$LIBS
1.1 millert 12002: LIBS="-lsocket -lnsl $LIBS"
1.9 millert 12003: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12004: #line $LINENO "configure"
12005: /* confdefs.h. */
12006: _ACEOF
12007: cat confdefs.h >>conftest.$ac_ext
12008: cat >>conftest.$ac_ext <<_ACEOF
12009: /* end confdefs.h. */
1.9 millert 12010:
1.1 millert 12011: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 12012: #ifdef __cplusplus
12013: extern "C"
12014: #endif
1.1 millert 12015: /* We use char because int might match the return type of a gcc2
1.9 millert 12016: builtin and then its argument prototype would still apply. */
12017: char inet_addr ();
12018: int
12019: main ()
12020: {
12021: inet_addr ();
12022: ;
12023: return 0;
12024: }
12025: _ACEOF
12026: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 12027: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 12028: (eval $ac_link) 2>&5
12029: ac_status=$?
1.16 millert 12030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12031: (exit $ac_status); } &&
12032: { ac_try='test -s conftest$ac_exeext'
1.16 millert 12033: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12034: (eval $ac_try) 2>&5
12035: ac_status=$?
1.16 millert 12036: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12037: (exit $ac_status); }; }; then
12038: ac_cv_lib_socket_inet_addr_lnsl=yes
12039: else
12040: echo "$as_me: failed program was:" >&5
1.16 millert 12041: sed 's/^/| /' conftest.$ac_ext >&5
12042:
1.9 millert 12043: ac_cv_lib_socket_inet_addr_lnsl=no
12044: fi
12045: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12046: LIBS=$ac_check_lib_save_LIBS
12047: fi
1.16 millert 12048: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
1.9 millert 12049: echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6
12050: if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
1.1 millert 12051: NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
12052: fi
12053:
12054: fi
12055:
12056: fi
12057:
12058: fi
12059:
1.6 millert 12060: fi
12061:
1.16 millert 12062: echo "$as_me:$LINENO: checking for syslog" >&5
1.9 millert 12063: echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12064: if test "${ac_cv_func_syslog+set}" = set; then
12065: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12066: else
1.9 millert 12067: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12068: #line $LINENO "configure"
12069: /* confdefs.h. */
12070: _ACEOF
12071: cat confdefs.h >>conftest.$ac_ext
12072: cat >>conftest.$ac_ext <<_ACEOF
12073: /* end confdefs.h. */
1.1 millert 12074: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 12075: which can conflict with char syslog (); below.
12076: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12077: <limits.h> exists even on freestanding compilers. */
12078: #ifdef __STDC__
12079: # include <limits.h>
12080: #else
12081: # include <assert.h>
12082: #endif
1.1 millert 12083: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 12084: #ifdef __cplusplus
12085: extern "C"
1.16 millert 12086: {
1.9 millert 12087: #endif
1.1 millert 12088: /* We use char because int might match the return type of a gcc2
1.9 millert 12089: builtin and then its argument prototype would still apply. */
12090: char syslog ();
1.1 millert 12091: /* The GNU C library defines this for functions which it implements
12092: to always fail with ENOSYS. Some functions are actually named
12093: something starting with __ and the normal name is an alias. */
12094: #if defined (__stub_syslog) || defined (__stub___syslog)
12095: choke me
12096: #else
1.16 millert 12097: char (*f) () = syslog;
12098: #endif
12099: #ifdef __cplusplus
12100: }
1.1 millert 12101: #endif
12102:
1.16 millert 12103: int
12104: main ()
12105: {
12106: return f != syslog;
1.9 millert 12107: ;
12108: return 0;
12109: }
12110: _ACEOF
12111: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 12112: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 12113: (eval $ac_link) 2>&5
12114: ac_status=$?
1.16 millert 12115: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12116: (exit $ac_status); } &&
12117: { ac_try='test -s conftest$ac_exeext'
1.16 millert 12118: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12119: (eval $ac_try) 2>&5
12120: ac_status=$?
1.16 millert 12121: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12122: (exit $ac_status); }; }; then
12123: ac_cv_func_syslog=yes
12124: else
12125: echo "$as_me: failed program was:" >&5
1.16 millert 12126: sed 's/^/| /' conftest.$ac_ext >&5
12127:
1.9 millert 12128: ac_cv_func_syslog=no
12129: fi
12130: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12131: fi
1.16 millert 12132: echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
1.9 millert 12133: echo "${ECHO_T}$ac_cv_func_syslog" >&6
12134: if test $ac_cv_func_syslog = yes; then
1.1 millert 12135: :
12136: else
1.16 millert 12137: echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
1.9 millert 12138: echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6
12139: if test "${ac_cv_lib_socket_syslog+set}" = set; then
12140: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12141: else
1.9 millert 12142: ac_check_lib_save_LIBS=$LIBS
1.1 millert 12143: LIBS="-lsocket $LIBS"
1.9 millert 12144: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12145: #line $LINENO "configure"
12146: /* confdefs.h. */
12147: _ACEOF
12148: cat confdefs.h >>conftest.$ac_ext
12149: cat >>conftest.$ac_ext <<_ACEOF
12150: /* end confdefs.h. */
1.9 millert 12151:
1.1 millert 12152: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 12153: #ifdef __cplusplus
12154: extern "C"
12155: #endif
1.1 millert 12156: /* We use char because int might match the return type of a gcc2
1.9 millert 12157: builtin and then its argument prototype would still apply. */
12158: char syslog ();
12159: int
12160: main ()
12161: {
12162: syslog ();
12163: ;
12164: return 0;
12165: }
12166: _ACEOF
12167: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 12168: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 12169: (eval $ac_link) 2>&5
12170: ac_status=$?
1.16 millert 12171: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12172: (exit $ac_status); } &&
12173: { ac_try='test -s conftest$ac_exeext'
1.16 millert 12174: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12175: (eval $ac_try) 2>&5
12176: ac_status=$?
1.16 millert 12177: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12178: (exit $ac_status); }; }; then
12179: ac_cv_lib_socket_syslog=yes
12180: else
12181: echo "$as_me: failed program was:" >&5
1.16 millert 12182: sed 's/^/| /' conftest.$ac_ext >&5
12183:
1.9 millert 12184: ac_cv_lib_socket_syslog=no
12185: fi
12186: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12187: LIBS=$ac_check_lib_save_LIBS
12188: fi
1.16 millert 12189: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
1.9 millert 12190: echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6
12191: if test $ac_cv_lib_socket_syslog = yes; then
1.1 millert 12192: NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
12193: else
1.16 millert 12194: echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
1.9 millert 12195: echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6
12196: if test "${ac_cv_lib_nsl_syslog+set}" = set; then
12197: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12198: else
1.9 millert 12199: ac_check_lib_save_LIBS=$LIBS
1.1 millert 12200: LIBS="-lnsl $LIBS"
1.9 millert 12201: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12202: #line $LINENO "configure"
12203: /* confdefs.h. */
12204: _ACEOF
12205: cat confdefs.h >>conftest.$ac_ext
12206: cat >>conftest.$ac_ext <<_ACEOF
12207: /* end confdefs.h. */
1.1 millert 12208:
1.9 millert 12209: /* Override any gcc2 internal prototype to avoid an error. */
12210: #ifdef __cplusplus
12211: extern "C"
12212: #endif
12213: /* We use char because int might match the return type of a gcc2
12214: builtin and then its argument prototype would still apply. */
12215: char syslog ();
12216: int
12217: main ()
12218: {
12219: syslog ();
12220: ;
12221: return 0;
12222: }
12223: _ACEOF
12224: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 12225: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 12226: (eval $ac_link) 2>&5
12227: ac_status=$?
1.16 millert 12228: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12229: (exit $ac_status); } &&
12230: { ac_try='test -s conftest$ac_exeext'
1.16 millert 12231: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12232: (eval $ac_try) 2>&5
12233: ac_status=$?
1.16 millert 12234: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12235: (exit $ac_status); }; }; then
12236: ac_cv_lib_nsl_syslog=yes
12237: else
12238: echo "$as_me: failed program was:" >&5
1.16 millert 12239: sed 's/^/| /' conftest.$ac_ext >&5
12240:
1.9 millert 12241: ac_cv_lib_nsl_syslog=no
12242: fi
12243: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12244: LIBS=$ac_check_lib_save_LIBS
12245: fi
1.16 millert 12246: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
1.9 millert 12247: echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6
12248: if test $ac_cv_lib_nsl_syslog = yes; then
1.1 millert 12249: NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
12250: else
1.16 millert 12251: echo "$as_me:$LINENO: checking for syslog in -linet" >&5
1.9 millert 12252: echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6
12253: if test "${ac_cv_lib_inet_syslog+set}" = set; then
12254: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12255: else
1.9 millert 12256: ac_check_lib_save_LIBS=$LIBS
1.1 millert 12257: LIBS="-linet $LIBS"
1.9 millert 12258: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12259: #line $LINENO "configure"
12260: /* confdefs.h. */
12261: _ACEOF
12262: cat confdefs.h >>conftest.$ac_ext
12263: cat >>conftest.$ac_ext <<_ACEOF
12264: /* end confdefs.h. */
1.9 millert 12265:
1.1 millert 12266: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 12267: #ifdef __cplusplus
12268: extern "C"
12269: #endif
1.1 millert 12270: /* We use char because int might match the return type of a gcc2
1.9 millert 12271: builtin and then its argument prototype would still apply. */
12272: char syslog ();
12273: int
12274: main ()
12275: {
12276: syslog ();
12277: ;
12278: return 0;
12279: }
12280: _ACEOF
12281: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 12282: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 12283: (eval $ac_link) 2>&5
12284: ac_status=$?
1.16 millert 12285: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12286: (exit $ac_status); } &&
12287: { ac_try='test -s conftest$ac_exeext'
1.16 millert 12288: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12289: (eval $ac_try) 2>&5
12290: ac_status=$?
1.16 millert 12291: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12292: (exit $ac_status); }; }; then
12293: ac_cv_lib_inet_syslog=yes
12294: else
12295: echo "$as_me: failed program was:" >&5
1.16 millert 12296: sed 's/^/| /' conftest.$ac_ext >&5
12297:
1.9 millert 12298: ac_cv_lib_inet_syslog=no
12299: fi
12300: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12301: LIBS=$ac_check_lib_save_LIBS
12302: fi
1.16 millert 12303: echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
1.9 millert 12304: echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6
12305: if test $ac_cv_lib_inet_syslog = yes; then
1.1 millert 12306: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
12307: fi
12308:
12309: fi
12310:
12311: fi
12312:
12313: fi
12314:
12315: if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
12316: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12317: # for constant arguments. Useless!
1.16 millert 12318: echo "$as_me:$LINENO: checking for working alloca.h" >&5
1.9 millert 12319: echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12320: if test "${ac_cv_working_alloca_h+set}" = set; then
12321: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12322: else
1.9 millert 12323: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12324: #line $LINENO "configure"
12325: /* confdefs.h. */
12326: _ACEOF
12327: cat confdefs.h >>conftest.$ac_ext
12328: cat >>conftest.$ac_ext <<_ACEOF
12329: /* end confdefs.h. */
1.1 millert 12330: #include <alloca.h>
1.9 millert 12331: int
12332: main ()
12333: {
12334: char *p = (char *) alloca (2 * sizeof (int));
12335: ;
12336: return 0;
12337: }
12338: _ACEOF
12339: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 12340: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 12341: (eval $ac_link) 2>&5
12342: ac_status=$?
1.16 millert 12343: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12344: (exit $ac_status); } &&
12345: { ac_try='test -s conftest$ac_exeext'
1.16 millert 12346: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12347: (eval $ac_try) 2>&5
12348: ac_status=$?
1.16 millert 12349: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12350: (exit $ac_status); }; }; then
12351: ac_cv_working_alloca_h=yes
12352: else
12353: echo "$as_me: failed program was:" >&5
1.16 millert 12354: sed 's/^/| /' conftest.$ac_ext >&5
12355:
1.9 millert 12356: ac_cv_working_alloca_h=no
12357: fi
12358: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12359: fi
1.16 millert 12360: echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
1.9 millert 12361: echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12362: if test $ac_cv_working_alloca_h = yes; then
1.1 millert 12363:
1.16 millert 12364: cat >>confdefs.h <<\_ACEOF
1.1 millert 12365: #define HAVE_ALLOCA_H 1
1.16 millert 12366: _ACEOF
1.1 millert 12367:
12368: fi
12369:
1.16 millert 12370: echo "$as_me:$LINENO: checking for alloca" >&5
1.9 millert 12371: echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12372: if test "${ac_cv_func_alloca_works+set}" = set; then
12373: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12374: else
1.9 millert 12375: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12376: #line $LINENO "configure"
12377: /* confdefs.h. */
12378: _ACEOF
12379: cat confdefs.h >>conftest.$ac_ext
12380: cat >>conftest.$ac_ext <<_ACEOF
12381: /* end confdefs.h. */
1.1 millert 12382: #ifdef __GNUC__
12383: # define alloca __builtin_alloca
12384: #else
1.9 millert 12385: # ifdef _MSC_VER
12386: # include <malloc.h>
12387: # define alloca _alloca
1.1 millert 12388: # else
1.9 millert 12389: # if HAVE_ALLOCA_H
12390: # include <alloca.h>
12391: # else
12392: # ifdef _AIX
1.1 millert 12393: #pragma alloca
1.9 millert 12394: # else
12395: # ifndef alloca /* predefined by HP cc +Olibcalls */
1.1 millert 12396: char *alloca ();
1.9 millert 12397: # endif
1.1 millert 12398: # endif
12399: # endif
12400: # endif
12401: #endif
12402:
1.9 millert 12403: int
12404: main ()
12405: {
12406: char *p = (char *) alloca (1);
12407: ;
12408: return 0;
12409: }
12410: _ACEOF
12411: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 12412: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 12413: (eval $ac_link) 2>&5
12414: ac_status=$?
1.16 millert 12415: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12416: (exit $ac_status); } &&
12417: { ac_try='test -s conftest$ac_exeext'
1.16 millert 12418: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12419: (eval $ac_try) 2>&5
12420: ac_status=$?
1.16 millert 12421: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12422: (exit $ac_status); }; }; then
1.1 millert 12423: ac_cv_func_alloca_works=yes
12424: else
1.9 millert 12425: echo "$as_me: failed program was:" >&5
1.16 millert 12426: sed 's/^/| /' conftest.$ac_ext >&5
12427:
1.9 millert 12428: ac_cv_func_alloca_works=no
1.1 millert 12429: fi
1.9 millert 12430: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 millert 12431: fi
1.16 millert 12432: echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
1.9 millert 12433: echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
1.1 millert 12434:
12435: if test $ac_cv_func_alloca_works = yes; then
1.9 millert 12436:
1.16 millert 12437: cat >>confdefs.h <<\_ACEOF
1.1 millert 12438: #define HAVE_ALLOCA 1
1.16 millert 12439: _ACEOF
1.1 millert 12440:
1.9 millert 12441: else
12442: # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12443: # that cause trouble. Some versions do not even contain alloca or
12444: # contain a buggy version. If you still want to use their alloca,
12445: # use ar to extract alloca.o from them instead of compiling alloca.c.
12446:
12447: ALLOCA=alloca.$ac_objext
1.1 millert 12448:
1.16 millert 12449: cat >>confdefs.h <<\_ACEOF
1.1 millert 12450: #define C_ALLOCA 1
1.16 millert 12451: _ACEOF
12452:
1.1 millert 12453:
1.16 millert 12454: echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
1.9 millert 12455: echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12456: if test "${ac_cv_os_cray+set}" = set; then
12457: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12458: else
1.9 millert 12459: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12460: #line $LINENO "configure"
12461: /* confdefs.h. */
12462: _ACEOF
12463: cat confdefs.h >>conftest.$ac_ext
12464: cat >>conftest.$ac_ext <<_ACEOF
12465: /* end confdefs.h. */
1.1 millert 12466: #if defined(CRAY) && ! defined(CRAY2)
12467: webecray
12468: #else
12469: wenotbecray
12470: #endif
12471:
1.9 millert 12472: _ACEOF
1.1 millert 12473: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 12474: $EGREP "webecray" >/dev/null 2>&1; then
1.1 millert 12475: ac_cv_os_cray=yes
12476: else
12477: ac_cv_os_cray=no
12478: fi
12479: rm -f conftest*
12480:
12481: fi
1.16 millert 12482: echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
1.9 millert 12483: echo "${ECHO_T}$ac_cv_os_cray" >&6
1.1 millert 12484: if test $ac_cv_os_cray = yes; then
1.9 millert 12485: for ac_func in _getb67 GETB67 getb67; do
12486: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 12487: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 12488: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12489: if eval "test \"\${$as_ac_var+set}\" = set"; then
12490: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12491: else
1.9 millert 12492: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12493: #line $LINENO "configure"
12494: /* confdefs.h. */
12495: _ACEOF
12496: cat confdefs.h >>conftest.$ac_ext
12497: cat >>conftest.$ac_ext <<_ACEOF
12498: /* end confdefs.h. */
1.1 millert 12499: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 12500: which can conflict with char $ac_func (); below.
12501: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12502: <limits.h> exists even on freestanding compilers. */
12503: #ifdef __STDC__
12504: # include <limits.h>
12505: #else
12506: # include <assert.h>
12507: #endif
1.1 millert 12508: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 12509: #ifdef __cplusplus
12510: extern "C"
1.16 millert 12511: {
1.9 millert 12512: #endif
1.1 millert 12513: /* We use char because int might match the return type of a gcc2
1.9 millert 12514: builtin and then its argument prototype would still apply. */
12515: char $ac_func ();
1.1 millert 12516: /* The GNU C library defines this for functions which it implements
12517: to always fail with ENOSYS. Some functions are actually named
12518: something starting with __ and the normal name is an alias. */
12519: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12520: choke me
12521: #else
1.16 millert 12522: char (*f) () = $ac_func;
12523: #endif
12524: #ifdef __cplusplus
12525: }
1.1 millert 12526: #endif
12527:
1.16 millert 12528: int
12529: main ()
12530: {
12531: return f != $ac_func;
1.9 millert 12532: ;
12533: return 0;
12534: }
12535: _ACEOF
12536: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 12537: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 12538: (eval $ac_link) 2>&5
12539: ac_status=$?
1.16 millert 12540: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12541: (exit $ac_status); } &&
12542: { ac_try='test -s conftest$ac_exeext'
1.16 millert 12543: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12544: (eval $ac_try) 2>&5
12545: ac_status=$?
1.16 millert 12546: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12547: (exit $ac_status); }; }; then
12548: eval "$as_ac_var=yes"
12549: else
12550: echo "$as_me: failed program was:" >&5
1.16 millert 12551: sed 's/^/| /' conftest.$ac_ext >&5
12552:
1.9 millert 12553: eval "$as_ac_var=no"
12554: fi
12555: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12556: fi
1.16 millert 12557: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 12558: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12559: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 millert 12560:
1.16 millert 12561: cat >>confdefs.h <<_ACEOF
1.1 millert 12562: #define CRAY_STACKSEG_END $ac_func
1.16 millert 12563: _ACEOF
1.1 millert 12564:
1.9 millert 12565: break
1.1 millert 12566: fi
12567:
1.9 millert 12568: done
1.1 millert 12569: fi
12570:
1.16 millert 12571: echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
1.9 millert 12572: echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12573: if test "${ac_cv_c_stack_direction+set}" = set; then
12574: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12575: else
12576: if test "$cross_compiling" = yes; then
12577: ac_cv_c_stack_direction=0
12578: else
1.9 millert 12579: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12580: #line $LINENO "configure"
12581: /* confdefs.h. */
12582: _ACEOF
12583: cat confdefs.h >>conftest.$ac_ext
12584: cat >>conftest.$ac_ext <<_ACEOF
12585: /* end confdefs.h. */
1.9 millert 12586: int
1.1 millert 12587: find_stack_direction ()
12588: {
12589: static char *addr = 0;
12590: auto char dummy;
12591: if (addr == 0)
12592: {
12593: addr = &dummy;
12594: return find_stack_direction ();
12595: }
12596: else
12597: return (&dummy > addr) ? 1 : -1;
12598: }
1.9 millert 12599:
12600: int
1.1 millert 12601: main ()
12602: {
1.9 millert 12603: exit (find_stack_direction () < 0);
1.1 millert 12604: }
1.9 millert 12605: _ACEOF
12606: rm -f conftest$ac_exeext
1.16 millert 12607: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 12608: (eval $ac_link) 2>&5
12609: ac_status=$?
1.16 millert 12610: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12611: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16 millert 12612: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12613: (eval $ac_try) 2>&5
12614: ac_status=$?
1.16 millert 12615: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12616: (exit $ac_status); }; }; then
1.1 millert 12617: ac_cv_c_stack_direction=1
12618: else
1.9 millert 12619: echo "$as_me: program exited with status $ac_status" >&5
12620: echo "$as_me: failed program was:" >&5
1.16 millert 12621: sed 's/^/| /' conftest.$ac_ext >&5
12622:
12623: ( exit $ac_status )
1.9 millert 12624: ac_cv_c_stack_direction=-1
1.1 millert 12625: fi
1.16 millert 12626: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 12627: fi
12628: fi
1.16 millert 12629: echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
1.9 millert 12630: echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
1.1 millert 12631:
1.16 millert 12632: cat >>confdefs.h <<_ACEOF
1.1 millert 12633: #define STACK_DIRECTION $ac_cv_c_stack_direction
1.16 millert 12634: _ACEOF
12635:
1.1 millert 12636:
12637: fi
12638:
12639: fi
12640:
1.18 millert 12641: for ac_func in getprogname
12642: do
12643: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12644: echo "$as_me:$LINENO: checking for $ac_func" >&5
12645: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12646: if eval "test \"\${$as_ac_var+set}\" = set"; then
12647: echo $ECHO_N "(cached) $ECHO_C" >&6
12648: else
12649: cat >conftest.$ac_ext <<_ACEOF
12650: #line $LINENO "configure"
12651: /* confdefs.h. */
12652: _ACEOF
12653: cat confdefs.h >>conftest.$ac_ext
12654: cat >>conftest.$ac_ext <<_ACEOF
12655: /* end confdefs.h. */
12656: /* System header to define __stub macros and hopefully few prototypes,
12657: which can conflict with char $ac_func (); below.
12658: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12659: <limits.h> exists even on freestanding compilers. */
12660: #ifdef __STDC__
12661: # include <limits.h>
12662: #else
12663: # include <assert.h>
12664: #endif
12665: /* Override any gcc2 internal prototype to avoid an error. */
12666: #ifdef __cplusplus
12667: extern "C"
12668: {
12669: #endif
12670: /* We use char because int might match the return type of a gcc2
12671: builtin and then its argument prototype would still apply. */
12672: char $ac_func ();
12673: /* The GNU C library defines this for functions which it implements
12674: to always fail with ENOSYS. Some functions are actually named
12675: something starting with __ and the normal name is an alias. */
12676: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12677: choke me
12678: #else
12679: char (*f) () = $ac_func;
12680: #endif
12681: #ifdef __cplusplus
12682: }
12683: #endif
12684:
12685: int
12686: main ()
12687: {
12688: return f != $ac_func;
12689: ;
12690: return 0;
12691: }
12692: _ACEOF
12693: rm -f conftest.$ac_objext conftest$ac_exeext
12694: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12695: (eval $ac_link) 2>&5
12696: ac_status=$?
12697: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698: (exit $ac_status); } &&
12699: { ac_try='test -s conftest$ac_exeext'
12700: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701: (eval $ac_try) 2>&5
12702: ac_status=$?
12703: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704: (exit $ac_status); }; }; then
12705: eval "$as_ac_var=yes"
12706: else
12707: echo "$as_me: failed program was:" >&5
12708: sed 's/^/| /' conftest.$ac_ext >&5
12709:
12710: eval "$as_ac_var=no"
12711: fi
12712: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12713: fi
12714: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12715: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12716: if test `eval echo '${'$as_ac_var'}'` = yes; then
12717: cat >>confdefs.h <<_ACEOF
12718: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12719: _ACEOF
12720:
12721: else
12722:
12723: echo "$as_me:$LINENO: checking for __progname" >&5
12724: echo $ECHO_N "checking for __progname... $ECHO_C" >&6
12725: if test "${sudo_cv___progname+set}" = set; then
12726: echo $ECHO_N "(cached) $ECHO_C" >&6
12727: else
12728:
12729: cat >conftest.$ac_ext <<_ACEOF
12730: #line $LINENO "configure"
12731: /* confdefs.h. */
12732: _ACEOF
12733: cat confdefs.h >>conftest.$ac_ext
12734: cat >>conftest.$ac_ext <<_ACEOF
12735: /* end confdefs.h. */
12736:
12737: int
12738: main ()
12739: {
12740: extern char *__progname; (void)puts(__progname);
12741: ;
12742: return 0;
12743: }
12744: _ACEOF
12745: rm -f conftest.$ac_objext conftest$ac_exeext
12746: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12747: (eval $ac_link) 2>&5
12748: ac_status=$?
12749: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750: (exit $ac_status); } &&
12751: { ac_try='test -s conftest$ac_exeext'
12752: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753: (eval $ac_try) 2>&5
12754: ac_status=$?
12755: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756: (exit $ac_status); }; }; then
12757: sudo_cv___progname=yes
12758: else
12759: echo "$as_me: failed program was:" >&5
12760: sed 's/^/| /' conftest.$ac_ext >&5
12761:
12762: sudo_cv___progname=no
12763: fi
12764: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12765: fi
12766:
12767: if test "$sudo_cv___progname" = "yes"; then
12768:
12769: cat >>confdefs.h <<\_ACEOF
12770: #define HAVE___PROGNAME 1
12771: _ACEOF
12772:
12773: else
12774: LIBOBJS="$LIBOBJS getprogname.$ac_objext"
12775: fi
12776: echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
12777: echo "${ECHO_T}$sudo_cv___progname" >&6
12778:
12779: fi
12780: done
12781:
1.17 millert 12782: if test -n "$with_kerb4"; then
1.9 millert 12783:
1.16 millert 12784: cat >>confdefs.h <<\_ACEOF
1.17 millert 12785: #define HAVE_KERB4 1
12786: _ACEOF
12787:
12788: O_LDFLAGS="$LDFLAGS"
12789: if test "$with_kerb4" = "yes"; then
12790: found=no
12791: O_CPPFLAGS="$CPPFLAGS"
12792: for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
12793: CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
12794: cat >conftest.$ac_ext <<_ACEOF
12795: #include <krb.h>
1.16 millert 12796: _ACEOF
1.17 millert 12797: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12798: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12799: ac_status=$?
12800: grep -v '^ *+' conftest.er1 >conftest.err
12801: rm -f conftest.er1
12802: cat conftest.err >&5
12803: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804: (exit $ac_status); } >/dev/null; then
12805: if test -s conftest.err; then
12806: ac_cpp_err=$ac_c_preproc_warn_flag
12807: else
12808: ac_cpp_err=
12809: fi
12810: else
12811: ac_cpp_err=yes
12812: fi
12813: if test -z "$ac_cpp_err"; then
12814: found=yes; break
12815: else
12816: echo "$as_me: failed program was:" >&5
12817: sed 's/^/| /' conftest.$ac_ext >&5
12818:
12819:
12820: fi
12821: rm -f conftest.err conftest.$ac_ext
12822: done
12823: test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
12824: else
1.1 millert 12825:
1.17 millert 12826: if test X"$with_rpath" = X"yes"; then
12827: LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
1.1 millert 12828: else
1.17 millert 12829: LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
12830: fi
12831: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
12832: blibpath_add="${blibpath_add}:${with_kerb4}/lib"
1.1 millert 12833: fi
12834:
1.17 millert 12835:
12836: if test X"$with_rpath" = X"yes"; then
12837: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
1.1 millert 12838: else
1.17 millert 12839: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
12840: fi
12841: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
12842: blibpath_add="${blibpath_add}:${with_kerb4}/lib"
1.1 millert 12843: fi
12844:
1.17 millert 12845: CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
12846: if test "${ac_cv_header_krb_h+set}" = set; then
12847: echo "$as_me:$LINENO: checking for krb.h" >&5
12848: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
12849: if test "${ac_cv_header_krb_h+set}" = set; then
12850: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12851: fi
1.17 millert 12852: echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
12853: echo "${ECHO_T}$ac_cv_header_krb_h" >&6
1.5 millert 12854: else
1.17 millert 12855: # Is the header compilable?
12856: echo "$as_me:$LINENO: checking krb.h usability" >&5
12857: echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
1.9 millert 12858: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12859: #line $LINENO "configure"
12860: /* confdefs.h. */
12861: _ACEOF
12862: cat confdefs.h >>conftest.$ac_ext
12863: cat >>conftest.$ac_ext <<_ACEOF
12864: /* end confdefs.h. */
1.17 millert 12865: $ac_includes_default
12866: #include <krb.h>
1.9 millert 12867: _ACEOF
1.17 millert 12868: rm -f conftest.$ac_objext
12869: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12870: (eval $ac_compile) 2>&5
1.9 millert 12871: ac_status=$?
1.16 millert 12872: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12873: (exit $ac_status); } &&
1.17 millert 12874: { ac_try='test -s conftest.$ac_objext'
1.16 millert 12875: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12876: (eval $ac_try) 2>&5
12877: ac_status=$?
1.16 millert 12878: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12879: (exit $ac_status); }; }; then
1.17 millert 12880: ac_header_compiler=yes
1.9 millert 12881: else
12882: echo "$as_me: failed program was:" >&5
1.16 millert 12883: sed 's/^/| /' conftest.$ac_ext >&5
12884:
1.17 millert 12885: ac_header_compiler=no
1.9 millert 12886: fi
1.17 millert 12887: rm -f conftest.$ac_objext conftest.$ac_ext
12888: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12889: echo "${ECHO_T}$ac_header_compiler" >&6
12890:
12891: # Is the header present?
12892: echo "$as_me:$LINENO: checking krb.h presence" >&5
12893: echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
12894: cat >conftest.$ac_ext <<_ACEOF
12895: #line $LINENO "configure"
12896: /* confdefs.h. */
12897: _ACEOF
12898: cat confdefs.h >>conftest.$ac_ext
12899: cat >>conftest.$ac_ext <<_ACEOF
12900: /* end confdefs.h. */
12901: #include <krb.h>
12902: _ACEOF
12903: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12904: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12905: ac_status=$?
12906: grep -v '^ *+' conftest.er1 >conftest.err
12907: rm -f conftest.er1
12908: cat conftest.err >&5
12909: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910: (exit $ac_status); } >/dev/null; then
12911: if test -s conftest.err; then
12912: ac_cpp_err=$ac_c_preproc_warn_flag
12913: else
12914: ac_cpp_err=
12915: fi
12916: else
12917: ac_cpp_err=yes
1.9 millert 12918: fi
1.17 millert 12919: if test -z "$ac_cpp_err"; then
12920: ac_header_preproc=yes
1.5 millert 12921: else
1.17 millert 12922: echo "$as_me: failed program was:" >&5
12923: sed 's/^/| /' conftest.$ac_ext >&5
12924:
12925: ac_header_preproc=no
1.5 millert 12926: fi
1.17 millert 12927: rm -f conftest.err conftest.$ac_ext
12928: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12929: echo "${ECHO_T}$ac_header_preproc" >&6
1.5 millert 12930:
1.17 millert 12931: # So? What about this header?
12932: case $ac_header_compiler:$ac_header_preproc in
12933: yes:no )
12934: { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
12935: echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12936: { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
12937: echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
12938: (
12939: cat <<\_ASBOX
12940: ## ------------------------------------ ##
12941: ## Report this to bug-autoconf@gnu.org. ##
12942: ## ------------------------------------ ##
12943: _ASBOX
12944: ) |
12945: sed "s/^/$as_me: WARNING: /" >&2
12946: ;;
12947: no:yes )
12948: { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
12949: echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
12950: { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
12951: echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
12952: { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
12953: echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
12954: (
12955: cat <<\_ASBOX
12956: ## ------------------------------------ ##
12957: ## Report this to bug-autoconf@gnu.org. ##
12958: ## ------------------------------------ ##
12959: _ASBOX
12960: ) |
12961: sed "s/^/$as_me: WARNING: /" >&2
12962: ;;
12963: esac
12964: echo "$as_me:$LINENO: checking for krb.h" >&5
12965: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
12966: if test "${ac_cv_header_krb_h+set}" = set; then
12967: echo $ECHO_N "(cached) $ECHO_C" >&6
12968: else
12969: ac_cv_header_krb_h=$ac_header_preproc
1.5 millert 12970: fi
1.17 millert 12971: echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
12972: echo "${ECHO_T}$ac_cv_header_krb_h" >&6
1.5 millert 12973:
1.17 millert 12974: fi
12975: if test $ac_cv_header_krb_h = yes; then
12976: found=yes
12977: else
12978: found=no
12979: fi
1.9 millert 12980:
1.1 millert 12981:
1.17 millert 12982: fi
12983: if test X"$found" = X"no"; then
12984: { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
12985: echo "$as_me: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
1.1 millert 12986: fi
12987:
1.17 millert 12988: echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
12989: echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
12990: if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
1.9 millert 12991: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12992: else
1.9 millert 12993: ac_check_lib_save_LIBS=$LIBS
1.1 millert 12994: LIBS="-ldes $LIBS"
1.9 millert 12995: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12996: #line $LINENO "configure"
12997: /* confdefs.h. */
12998: _ACEOF
12999: cat confdefs.h >>conftest.$ac_ext
13000: cat >>conftest.$ac_ext <<_ACEOF
13001: /* end confdefs.h. */
13002:
1.17 millert 13003: /* Override any gcc2 internal prototype to avoid an error. */
13004: #ifdef __cplusplus
13005: extern "C"
13006: #endif
13007: /* We use char because int might match the return type of a gcc2
13008: builtin and then its argument prototype would still apply. */
13009: char des_cbc_encrypt ();
1.9 millert 13010: int
13011: main ()
13012: {
1.17 millert 13013: des_cbc_encrypt ();
1.9 millert 13014: ;
13015: return 0;
13016: }
13017: _ACEOF
13018: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 13019: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 13020: (eval $ac_link) 2>&5
13021: ac_status=$?
1.16 millert 13022: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 13023: (exit $ac_status); } &&
13024: { ac_try='test -s conftest$ac_exeext'
1.16 millert 13025: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 13026: (eval $ac_try) 2>&5
13027: ac_status=$?
1.16 millert 13028: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 13029: (exit $ac_status); }; }; then
1.17 millert 13030: ac_cv_lib_des_des_cbc_encrypt=yes
1.9 millert 13031: else
13032: echo "$as_me: failed program was:" >&5
1.16 millert 13033: sed 's/^/| /' conftest.$ac_ext >&5
13034:
1.17 millert 13035: ac_cv_lib_des_des_cbc_encrypt=no
1.9 millert 13036: fi
13037: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13038: LIBS=$ac_check_lib_save_LIBS
13039: fi
1.17 millert 13040: echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13041: echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
13042: if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
13043: K4LIBS="-ldes"
1.1 millert 13044: else
13045:
1.17 millert 13046: echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
13047: echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
13048: if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
13049: echo $ECHO_N "(cached) $ECHO_C" >&6
13050: else
13051: ac_check_lib_save_LIBS=$LIBS
13052: LIBS="-ldes425 $LIBS"
13053: cat >conftest.$ac_ext <<_ACEOF
13054: #line $LINENO "configure"
13055: /* confdefs.h. */
13056: _ACEOF
13057: cat confdefs.h >>conftest.$ac_ext
13058: cat >>conftest.$ac_ext <<_ACEOF
13059: /* end confdefs.h. */
13060:
13061: /* Override any gcc2 internal prototype to avoid an error. */
13062: #ifdef __cplusplus
13063: extern "C"
13064: #endif
13065: /* We use char because int might match the return type of a gcc2
13066: builtin and then its argument prototype would still apply. */
13067: char des_cbc_encrypt ();
13068: int
13069: main ()
13070: {
13071: des_cbc_encrypt ();
13072: ;
13073: return 0;
13074: }
13075: _ACEOF
13076: rm -f conftest.$ac_objext conftest$ac_exeext
13077: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13078: (eval $ac_link) 2>&5
13079: ac_status=$?
13080: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081: (exit $ac_status); } &&
13082: { ac_try='test -s conftest$ac_exeext'
13083: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13084: (eval $ac_try) 2>&5
13085: ac_status=$?
13086: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087: (exit $ac_status); }; }; then
13088: ac_cv_lib_des425_des_cbc_encrypt=yes
13089: else
13090: echo "$as_me: failed program was:" >&5
13091: sed 's/^/| /' conftest.$ac_ext >&5
13092:
13093: ac_cv_lib_des425_des_cbc_encrypt=no
13094: fi
13095: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13096: LIBS=$ac_check_lib_save_LIBS
13097: fi
13098: echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13099: echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
13100: if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
13101: K4LIBS="-ldes425"
13102: else
13103: K4LIBS=""
13104: fi
13105:
13106:
13107: fi
13108:
13109: echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
13110: echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6
13111: cat >conftest.$ac_ext <<_ACEOF
13112: #line $LINENO "configure"
13113: /* confdefs.h. */
13114: _ACEOF
13115: cat confdefs.h >>conftest.$ac_ext
13116: cat >>conftest.$ac_ext <<_ACEOF
13117: /* end confdefs.h. */
13118: #include <krb.h>
13119: int
13120: main ()
13121: {
13122: const char *tmp = krb4_version;
13123: ;
13124: return 0;
13125: }
13126: _ACEOF
13127: rm -f conftest.$ac_objext
13128: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13129: (eval $ac_compile) 2>&5
13130: ac_status=$?
13131: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132: (exit $ac_status); } &&
13133: { ac_try='test -s conftest.$ac_objext'
13134: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135: (eval $ac_try) 2>&5
13136: ac_status=$?
13137: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138: (exit $ac_status); }; }; then
13139:
13140: echo "$as_me:$LINENO: result: yes" >&5
13141: echo "${ECHO_T}yes" >&6
13142: K4LIBS="${K4LIBS} -lcom_err"
13143: echo "$as_me:$LINENO: checking for main in -lroken" >&5
13144: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6
13145: if test "${ac_cv_lib_roken_main+set}" = set; then
13146: echo $ECHO_N "(cached) $ECHO_C" >&6
13147: else
13148: ac_check_lib_save_LIBS=$LIBS
13149: LIBS="-lroken $LIBS"
13150: cat >conftest.$ac_ext <<_ACEOF
13151: #line $LINENO "configure"
13152: /* confdefs.h. */
13153: _ACEOF
13154: cat confdefs.h >>conftest.$ac_ext
13155: cat >>conftest.$ac_ext <<_ACEOF
13156: /* end confdefs.h. */
13157:
13158:
13159: int
13160: main ()
13161: {
13162: main ();
13163: ;
13164: return 0;
13165: }
13166: _ACEOF
13167: rm -f conftest.$ac_objext conftest$ac_exeext
13168: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13169: (eval $ac_link) 2>&5
13170: ac_status=$?
13171: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172: (exit $ac_status); } &&
13173: { ac_try='test -s conftest$ac_exeext'
13174: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175: (eval $ac_try) 2>&5
13176: ac_status=$?
13177: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178: (exit $ac_status); }; }; then
13179: ac_cv_lib_roken_main=yes
13180: else
13181: echo "$as_me: failed program was:" >&5
13182: sed 's/^/| /' conftest.$ac_ext >&5
13183:
13184: ac_cv_lib_roken_main=no
13185: fi
13186: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13187: LIBS=$ac_check_lib_save_LIBS
13188: fi
13189: echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
13190: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6
13191: if test $ac_cv_lib_roken_main = yes; then
13192: K4LIBS="${K4LIBS} -lroken"
13193: fi
13194:
13195:
13196: else
13197: echo "$as_me: failed program was:" >&5
13198: sed 's/^/| /' conftest.$ac_ext >&5
13199:
13200:
13201: echo "$as_me:$LINENO: result: no" >&5
13202: echo "${ECHO_T}no" >&6
13203:
13204:
13205: fi
13206: rm -f conftest.$ac_objext conftest.$ac_ext
13207: as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
13208: echo "$as_me:$LINENO: checking for main in -lkrb" >&5
13209: echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
13210: if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13211: echo $ECHO_N "(cached) $ECHO_C" >&6
13212: else
13213: ac_check_lib_save_LIBS=$LIBS
13214: LIBS="-lkrb $K4LIBS $LIBS"
13215: cat >conftest.$ac_ext <<_ACEOF
13216: #line $LINENO "configure"
13217: /* confdefs.h. */
13218: _ACEOF
13219: cat confdefs.h >>conftest.$ac_ext
13220: cat >>conftest.$ac_ext <<_ACEOF
13221: /* end confdefs.h. */
13222:
13223:
13224: int
13225: main ()
13226: {
13227: main ();
13228: ;
13229: return 0;
13230: }
13231: _ACEOF
13232: rm -f conftest.$ac_objext conftest$ac_exeext
13233: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13234: (eval $ac_link) 2>&5
13235: ac_status=$?
13236: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237: (exit $ac_status); } &&
13238: { ac_try='test -s conftest$ac_exeext'
13239: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240: (eval $ac_try) 2>&5
13241: ac_status=$?
13242: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243: (exit $ac_status); }; }; then
13244: eval "$as_ac_Lib=yes"
13245: else
13246: echo "$as_me: failed program was:" >&5
13247: sed 's/^/| /' conftest.$ac_ext >&5
13248:
13249: eval "$as_ac_Lib=no"
13250: fi
13251: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13252: LIBS=$ac_check_lib_save_LIBS
13253: fi
13254: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13255: echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13256: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13257: K4LIBS="-lkrb $K4LIBS"
13258: else
13259:
13260: as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
13261: echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
13262: echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
13263: if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13264: echo $ECHO_N "(cached) $ECHO_C" >&6
13265: else
13266: ac_check_lib_save_LIBS=$LIBS
13267: LIBS="-lkrb4 $K4LIBS $LIBS"
13268: cat >conftest.$ac_ext <<_ACEOF
13269: #line $LINENO "configure"
13270: /* confdefs.h. */
13271: _ACEOF
13272: cat confdefs.h >>conftest.$ac_ext
13273: cat >>conftest.$ac_ext <<_ACEOF
13274: /* end confdefs.h. */
13275:
13276:
13277: int
13278: main ()
13279: {
13280: main ();
13281: ;
13282: return 0;
13283: }
13284: _ACEOF
13285: rm -f conftest.$ac_objext conftest$ac_exeext
13286: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13287: (eval $ac_link) 2>&5
13288: ac_status=$?
13289: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290: (exit $ac_status); } &&
13291: { ac_try='test -s conftest$ac_exeext'
13292: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13293: (eval $ac_try) 2>&5
13294: ac_status=$?
13295: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296: (exit $ac_status); }; }; then
13297: eval "$as_ac_Lib=yes"
13298: else
13299: echo "$as_me: failed program was:" >&5
13300: sed 's/^/| /' conftest.$ac_ext >&5
13301:
13302: eval "$as_ac_Lib=no"
13303: fi
13304: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13305: LIBS=$ac_check_lib_save_LIBS
13306: fi
13307: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13308: echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13309: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13310: K4LIBS="-lkrb4 $K4LIBS"
13311: else
13312: K4LIBS="-lkrb $K4LIBS"
13313: { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&5
13314: echo "$as_me: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&2;}
13315:
13316: fi
13317:
13318:
13319: fi
13320:
13321: LDFLAGS="$O_LDFLAGS"
13322: SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
13323: AUTH_OBJS="${AUTH_OBJS} kerb4.o"
13324: fi
13325:
1.18 millert 13326: if test "$with_kerb5" = "yes"; then
13327: # Extract the first word of "krb5-config", so it can be a program name with args.
13328: set dummy krb5-config; ac_word=$2
13329: echo "$as_me:$LINENO: checking for $ac_word" >&5
13330: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13331: if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
13332: echo $ECHO_N "(cached) $ECHO_C" >&6
13333: else
13334: if test -n "$KRB5CONFIG"; then
13335: ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
13336: else
13337: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13338: for as_dir in $PATH
13339: do
13340: IFS=$as_save_IFS
13341: test -z "$as_dir" && as_dir=.
13342: for ac_exec_ext in '' $ac_executable_extensions; do
13343: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13344: ac_cv_prog_KRB5CONFIG="yes"
13345: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13346: break 2
13347: fi
13348: done
13349: done
13350:
13351: test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
13352: fi
13353: fi
13354: KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
13355: if test -n "$KRB5CONFIG"; then
13356: echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
13357: echo "${ECHO_T}$KRB5CONFIG" >&6
13358: else
13359: echo "$as_me:$LINENO: result: no" >&5
13360: echo "${ECHO_T}no" >&6
13361: fi
13362:
13363: if test -n "$KRB5CONFIG"; then
13364:
13365: cat >>confdefs.h <<\_ACEOF
13366: #define HAVE_KERB5 1
13367: _ACEOF
13368:
13369: AUTH_OBJS="${AUTH_OBJS} kerb5.o"
13370: CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
13371: SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
1.19 millert 13372: echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
13373: echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
13374: cat >conftest.$ac_ext <<_ACEOF
13375: #line $LINENO "configure"
13376: /* confdefs.h. */
13377: _ACEOF
13378: cat confdefs.h >>conftest.$ac_ext
13379: cat >>conftest.$ac_ext <<_ACEOF
13380: /* end confdefs.h. */
13381: #include <krb5.h>
13382: int
13383: main ()
13384: {
13385: const char *tmp = heimdal_version;
13386: ;
13387: return 0;
13388: }
13389: _ACEOF
13390: rm -f conftest.$ac_objext
13391: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13392: (eval $ac_compile) 2>&5
13393: ac_status=$?
13394: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395: (exit $ac_status); } &&
13396: { ac_try='test -s conftest.$ac_objext'
13397: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398: (eval $ac_try) 2>&5
13399: ac_status=$?
13400: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401: (exit $ac_status); }; }; then
13402:
13403: echo "$as_me:$LINENO: result: yes" >&5
13404: echo "${ECHO_T}yes" >&6
13405:
13406: cat >>confdefs.h <<\_ACEOF
13407: #define HAVE_HEIMDAL 1
13408: _ACEOF
13409:
13410:
13411:
13412: else
13413: echo "$as_me: failed program was:" >&5
13414: sed 's/^/| /' conftest.$ac_ext >&5
13415:
13416: fi
13417: rm -f conftest.$ac_objext conftest.$ac_ext
1.18 millert 13418: fi
13419: fi
13420: if test -n "$with_kerb5" -a -z "$KRB5CONFIG"; then
1.17 millert 13421:
13422: cat >>confdefs.h <<\_ACEOF
13423: #define HAVE_KERB5 1
13424: _ACEOF
13425:
13426: if test "$with_kerb5" = "yes"; then
13427: found=no
13428: O_CPPFLAGS="$CPPFLAGS"
13429: for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
13430: CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
13431: cat >conftest.$ac_ext <<_ACEOF
13432: #include <krb5.h>
13433: _ACEOF
13434: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13435: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13436: ac_status=$?
13437: grep -v '^ *+' conftest.er1 >conftest.err
13438: rm -f conftest.er1
13439: cat conftest.err >&5
13440: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441: (exit $ac_status); } >/dev/null; then
13442: if test -s conftest.err; then
13443: ac_cpp_err=$ac_c_preproc_warn_flag
13444: else
13445: ac_cpp_err=
13446: fi
13447: else
13448: ac_cpp_err=yes
13449: fi
13450: if test -z "$ac_cpp_err"; then
13451: found=yes; break
13452: else
13453: echo "$as_me: failed program was:" >&5
13454: sed 's/^/| /' conftest.$ac_ext >&5
13455:
13456:
13457: fi
13458: rm -f conftest.err conftest.$ac_ext
13459: done
13460: if test X"$found" = X"no"; then
13461: CPPFLAGS="$O_CPPFLAGS"
13462: { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
13463: echo "$as_me: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
13464: fi
13465: else
13466:
13467: if test X"$with_rpath" = X"yes"; then
13468: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
13469: else
13470: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
13471: fi
13472: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
13473: blibpath_add="${blibpath_add}:${with_kerb5}/lib"
13474: fi
13475:
13476: CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
13477: fi
13478:
13479: echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
13480: echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
13481: cat >conftest.$ac_ext <<_ACEOF
13482: #line $LINENO "configure"
13483: /* confdefs.h. */
13484: _ACEOF
13485: cat confdefs.h >>conftest.$ac_ext
13486: cat >>conftest.$ac_ext <<_ACEOF
13487: /* end confdefs.h. */
13488: #include <krb5.h>
13489: int
13490: main ()
13491: {
13492: const char *tmp = heimdal_version;
13493: ;
13494: return 0;
13495: }
13496: _ACEOF
13497: rm -f conftest.$ac_objext
13498: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13499: (eval $ac_compile) 2>&5
13500: ac_status=$?
13501: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502: (exit $ac_status); } &&
13503: { ac_try='test -s conftest.$ac_objext'
13504: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505: (eval $ac_try) 2>&5
13506: ac_status=$?
13507: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508: (exit $ac_status); }; }; then
13509:
13510: echo "$as_me:$LINENO: result: yes" >&5
13511: echo "${ECHO_T}yes" >&6
1.19 millert 13512:
13513: cat >>confdefs.h <<\_ACEOF
13514: #define HAVE_HEIMDAL 1
13515: _ACEOF
13516:
1.17 millert 13517: SUDO_LIBS="${SUDO_LIBS} -lkrb5 -ldes -lcom_err -lasn1"
13518: echo "$as_me:$LINENO: checking for main in -lroken" >&5
13519: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6
13520: if test "${ac_cv_lib_roken_main+set}" = set; then
13521: echo $ECHO_N "(cached) $ECHO_C" >&6
13522: else
13523: ac_check_lib_save_LIBS=$LIBS
13524: LIBS="-lroken $LIBS"
13525: cat >conftest.$ac_ext <<_ACEOF
13526: #line $LINENO "configure"
13527: /* confdefs.h. */
13528: _ACEOF
13529: cat confdefs.h >>conftest.$ac_ext
13530: cat >>conftest.$ac_ext <<_ACEOF
13531: /* end confdefs.h. */
13532:
13533:
13534: int
13535: main ()
13536: {
13537: main ();
13538: ;
13539: return 0;
13540: }
13541: _ACEOF
13542: rm -f conftest.$ac_objext conftest$ac_exeext
13543: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13544: (eval $ac_link) 2>&5
13545: ac_status=$?
13546: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547: (exit $ac_status); } &&
13548: { ac_try='test -s conftest$ac_exeext'
13549: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550: (eval $ac_try) 2>&5
13551: ac_status=$?
13552: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553: (exit $ac_status); }; }; then
13554: ac_cv_lib_roken_main=yes
13555: else
13556: echo "$as_me: failed program was:" >&5
13557: sed 's/^/| /' conftest.$ac_ext >&5
13558:
13559: ac_cv_lib_roken_main=no
13560: fi
13561: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13562: LIBS=$ac_check_lib_save_LIBS
13563: fi
13564: echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
13565: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6
13566: if test $ac_cv_lib_roken_main = yes; then
13567: SUDO_LIBS="${SUDO_LIBS} -lroken"
13568: fi
13569:
13570:
13571: else
13572: echo "$as_me: failed program was:" >&5
13573: sed 's/^/| /' conftest.$ac_ext >&5
13574:
13575:
13576: echo "$as_me:$LINENO: result: no" >&5
13577: echo "${ECHO_T}no" >&6
13578: SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
13579:
13580:
13581: fi
13582: rm -f conftest.$ac_objext conftest.$ac_ext
13583: AUTH_OBJS="${AUTH_OBJS} kerb5.o"
13584: fi
13585:
13586: if test "$with_pam" = "yes"; then
13587: echo "$as_me:$LINENO: checking for main in -ldl" >&5
13588: echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13589: if test "${ac_cv_lib_dl_main+set}" = set; then
13590: echo $ECHO_N "(cached) $ECHO_C" >&6
13591: else
13592: ac_check_lib_save_LIBS=$LIBS
13593: LIBS="-ldl $LIBS"
13594: cat >conftest.$ac_ext <<_ACEOF
13595: #line $LINENO "configure"
13596: /* confdefs.h. */
13597: _ACEOF
13598: cat confdefs.h >>conftest.$ac_ext
13599: cat >>conftest.$ac_ext <<_ACEOF
13600: /* end confdefs.h. */
13601:
13602:
13603: int
13604: main ()
13605: {
13606: main ();
13607: ;
13608: return 0;
13609: }
13610: _ACEOF
13611: rm -f conftest.$ac_objext conftest$ac_exeext
13612: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13613: (eval $ac_link) 2>&5
13614: ac_status=$?
13615: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616: (exit $ac_status); } &&
13617: { ac_try='test -s conftest$ac_exeext'
13618: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619: (eval $ac_try) 2>&5
13620: ac_status=$?
13621: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622: (exit $ac_status); }; }; then
13623: ac_cv_lib_dl_main=yes
13624: else
13625: echo "$as_me: failed program was:" >&5
13626: sed 's/^/| /' conftest.$ac_ext >&5
13627:
13628: ac_cv_lib_dl_main=no
13629: fi
13630: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13631: LIBS=$ac_check_lib_save_LIBS
13632: fi
13633: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13634: echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13635: if test $ac_cv_lib_dl_main = yes; then
13636: SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
13637: else
13638: SUDO_LIBS="${SUDO_LIBS} -lpam"
13639: fi
13640: ac_cv_lib_dl=ac_cv_lib_dl_main
13641:
13642: fi
13643:
13644: if test "$with_AFS" = "yes"; then
13645:
13646: # looks like the "standard" place for AFS libs is /usr/afsws/lib
13647: AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
13648: for i in $AFSLIBDIRS; do
13649: if test -d ${i}; then
13650:
13651: if test X"$with_rpath" = X"yes"; then
13652: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
13653: else
13654: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
13655: fi
13656: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
13657: blibpath_add="${blibpath_add}:$i"
13658: fi
13659:
13660: FOUND_AFSLIBDIR=true
13661: fi
13662: done
13663: if test -z "$FOUND_AFSLIBDIR"; then
13664: { echo "$as_me:$LINENO: WARNING: 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." >&5
13665: echo "$as_me: WARNING: 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." >&2;}
13666: fi
13667:
13668: # Order is important here. Note that we build AFS_LIBS from right to left
13669: # since AFS_LIBS may be initialized with BSD compat libs that must go last
13670: AFS_LIBS="-laudit ${AFS_LIBS}"
13671: for i in $AFSLIBDIRS; do
13672: if test -f ${i}/util.a; then
13673: AFS_LIBS="${i}/util.a ${AFS_LIBS}"
13674: FOUND_UTIL_A=true
13675: break;
13676: fi
13677: done
13678: if test -z "$FOUND_UTIL_A"; then
13679: AFS_LIBS="-lutil ${AFS_LIBS}"
13680: fi
13681: AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
13682:
13683: # AFS includes may live in /usr/include on some machines...
13684: for i in /usr/afsws/include; do
13685: if test -d ${i}; then
13686: CPPFLAGS="${CPPFLAGS} -I${i}"
13687: FOUND_AFSINCDIR=true
13688: fi
13689: done
13690:
13691: if test -z "$FOUND_AFSLIBDIR"; then
13692: { echo "$as_me:$LINENO: WARNING: 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." >&5
13693: echo "$as_me: WARNING: 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." >&2;}
13694: fi
13695: fi
13696:
13697: if test "$with_DCE" = "yes"; then
13698: DCE_OBJS="${DCE_OBJS} dce_pwent.o"
13699: SUDO_LIBS="${SUDO_LIBS} -ldce"
13700: fi
13701:
13702: if test -n "$with_skey"; then
13703: O_LDFLAGS="$LDFLAGS"
13704: if test "$with_skey" != "yes"; then
13705: CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
13706:
13707: if test X"$with_rpath" = X"yes"; then
13708: LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
13709: else
13710: LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
13711: fi
13712: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
13713: blibpath_add="${blibpath_add}:${with_skey}/lib"
13714: fi
13715:
13716:
13717: if test X"$with_rpath" = X"yes"; then
13718: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
13719: else
13720: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
13721: fi
13722: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
13723: blibpath_add="${blibpath_add}:${with_skey}/lib"
13724: fi
13725:
13726: cat >conftest.$ac_ext <<_ACEOF
13727: #include <skey.h>
13728: _ACEOF
13729: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13730: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13731: ac_status=$?
13732: grep -v '^ *+' conftest.er1 >conftest.err
13733: rm -f conftest.er1
13734: cat conftest.err >&5
13735: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736: (exit $ac_status); } >/dev/null; then
13737: if test -s conftest.err; then
13738: ac_cpp_err=$ac_c_preproc_warn_flag
13739: else
13740: ac_cpp_err=
13741: fi
13742: else
13743: ac_cpp_err=yes
13744: fi
13745: if test -z "$ac_cpp_err"; then
13746: found=yes
13747: else
13748: echo "$as_me: failed program was:" >&5
13749: sed 's/^/| /' conftest.$ac_ext >&5
13750:
13751: found=no
13752: fi
13753: rm -f conftest.err conftest.$ac_ext
13754: else
13755: found=no
13756: O_CPPFLAGS="$CPPFLAGS"
13757: for dir in "" "/usr/local" "/usr/contrib"; do
13758: test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
13759: cat >conftest.$ac_ext <<_ACEOF
13760: #include <skey.h>
13761: _ACEOF
13762: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13763: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13764: ac_status=$?
13765: grep -v '^ *+' conftest.er1 >conftest.err
13766: rm -f conftest.er1
13767: cat conftest.err >&5
13768: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769: (exit $ac_status); } >/dev/null; then
13770: if test -s conftest.err; then
13771: ac_cpp_err=$ac_c_preproc_warn_flag
13772: else
13773: ac_cpp_err=
13774: fi
13775: else
13776: ac_cpp_err=yes
13777: fi
13778: if test -z "$ac_cpp_err"; then
13779: found=yes; break
13780: else
13781: echo "$as_me: failed program was:" >&5
13782: sed 's/^/| /' conftest.$ac_ext >&5
13783:
13784:
13785: fi
13786: rm -f conftest.err conftest.$ac_ext
13787: done
13788: if test "$found" = "no" -o -z "$dir"; then
13789: CPPFLAGS="$O_CPPFLAGS"
13790: else
13791:
13792: if test X"$with_rpath" = X"yes"; then
13793: LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
13794: else
13795: LDFLAGS="${LDFLAGS} -L${dir}/lib"
13796: fi
13797: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
13798: blibpath_add="${blibpath_add}:${dir}/lib"
13799: fi
1.1 millert 13800:
13801:
1.17 millert 13802: if test X"$with_rpath" = X"yes"; then
13803: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
13804: else
13805: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
13806: fi
13807: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
13808: blibpath_add="${blibpath_add}:${dir}/lib"
1.1 millert 13809: fi
13810:
13811: fi
13812: fi
1.17 millert 13813: if test "$found" = "no"; then
13814: { echo "$as_me:$LINENO: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&5
13815: echo "$as_me: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&2;}
13816: fi
13817: echo "$as_me:$LINENO: checking for main in -lskey" >&5
13818: echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6
13819: if test "${ac_cv_lib_skey_main+set}" = set; then
13820: echo $ECHO_N "(cached) $ECHO_C" >&6
13821: else
13822: ac_check_lib_save_LIBS=$LIBS
13823: LIBS="-lskey $LIBS"
13824: cat >conftest.$ac_ext <<_ACEOF
13825: #line $LINENO "configure"
13826: /* confdefs.h. */
13827: _ACEOF
13828: cat confdefs.h >>conftest.$ac_ext
13829: cat >>conftest.$ac_ext <<_ACEOF
13830: /* end confdefs.h. */
13831:
1.1 millert 13832:
1.17 millert 13833: int
13834: main ()
13835: {
13836: main ();
13837: ;
13838: return 0;
13839: }
13840: _ACEOF
13841: rm -f conftest.$ac_objext conftest$ac_exeext
13842: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13843: (eval $ac_link) 2>&5
13844: ac_status=$?
13845: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846: (exit $ac_status); } &&
13847: { ac_try='test -s conftest$ac_exeext'
13848: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849: (eval $ac_try) 2>&5
13850: ac_status=$?
13851: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852: (exit $ac_status); }; }; then
13853: ac_cv_lib_skey_main=yes
13854: else
13855: echo "$as_me: failed program was:" >&5
13856: sed 's/^/| /' conftest.$ac_ext >&5
1.1 millert 13857:
1.17 millert 13858: ac_cv_lib_skey_main=no
13859: fi
13860: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13861: LIBS=$ac_check_lib_save_LIBS
1.1 millert 13862: fi
1.17 millert 13863: echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
13864: echo "${ECHO_T}$ac_cv_lib_skey_main" >&6
13865: if test $ac_cv_lib_skey_main = yes; then
13866: found=yes
13867: else
13868: { echo "$as_me:$LINENO: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&5
13869: echo "$as_me: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&2;}
1.1 millert 13870: fi
13871:
1.16 millert 13872: echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
1.9 millert 13873: echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6
13874: if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
13875: echo $ECHO_N "(cached) $ECHO_C" >&6
13876: else
13877: ac_check_lib_save_LIBS=$LIBS
1.16 millert 13878: LIBS="-lskey $LIBS"
13879: cat >conftest.$ac_ext <<_ACEOF
13880: #line $LINENO "configure"
13881: /* confdefs.h. */
13882: _ACEOF
13883: cat confdefs.h >>conftest.$ac_ext
13884: cat >>conftest.$ac_ext <<_ACEOF
13885: /* end confdefs.h. */
13886:
13887: /* Override any gcc2 internal prototype to avoid an error. */
13888: #ifdef __cplusplus
13889: extern "C"
13890: #endif
13891: /* We use char because int might match the return type of a gcc2
13892: builtin and then its argument prototype would still apply. */
13893: char skeyaccess ();
13894: int
13895: main ()
13896: {
13897: skeyaccess ();
13898: ;
13899: return 0;
13900: }
13901: _ACEOF
13902: rm -f conftest.$ac_objext conftest$ac_exeext
13903: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13904: (eval $ac_link) 2>&5
13905: ac_status=$?
13906: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907: (exit $ac_status); } &&
13908: { ac_try='test -s conftest$ac_exeext'
13909: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910: (eval $ac_try) 2>&5
13911: ac_status=$?
13912: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913: (exit $ac_status); }; }; then
13914: ac_cv_lib_skey_skeyaccess=yes
13915: else
13916: echo "$as_me: failed program was:" >&5
13917: sed 's/^/| /' conftest.$ac_ext >&5
13918:
13919: ac_cv_lib_skey_skeyaccess=no
13920: fi
13921: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13922: LIBS=$ac_check_lib_save_LIBS
13923: fi
13924: echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
13925: echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6
13926: if test $ac_cv_lib_skey_skeyaccess = yes; then
13927:
13928: cat >>confdefs.h <<\_ACEOF
13929: #define HAVE_SKEYACCESS 1
13930: _ACEOF
13931:
13932: fi
13933:
1.17 millert 13934: LDFLAGS="$O_LDFLAGS"
13935: SUDO_LIBS="${SUDO_LIBS} -lskey"
13936: fi
13937:
13938: if test -n "$with_opie"; then
13939: O_LDFLAGS="$LDFLAGS"
13940: if test "$with_opie" != "yes"; then
13941: CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
13942:
13943: if test X"$with_rpath" = X"yes"; then
13944: LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
13945: else
13946: LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
13947: fi
13948: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
13949: blibpath_add="${blibpath_add}:${with_opie}/lib"
13950: fi
13951:
13952:
13953: if test X"$with_rpath" = X"yes"; then
13954: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
13955: else
13956: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
13957: fi
13958: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
13959: blibpath_add="${blibpath_add}:${with_opie}/lib"
13960: fi
13961:
13962: cat >conftest.$ac_ext <<_ACEOF
13963: #include <opie.h>
13964: _ACEOF
13965: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13966: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13967: ac_status=$?
13968: grep -v '^ *+' conftest.er1 >conftest.err
13969: rm -f conftest.er1
13970: cat conftest.err >&5
13971: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972: (exit $ac_status); } >/dev/null; then
13973: if test -s conftest.err; then
13974: ac_cpp_err=$ac_c_preproc_warn_flag
13975: else
13976: ac_cpp_err=
13977: fi
13978: else
13979: ac_cpp_err=yes
13980: fi
13981: if test -z "$ac_cpp_err"; then
13982: found=yes
13983: else
13984: echo "$as_me: failed program was:" >&5
13985: sed 's/^/| /' conftest.$ac_ext >&5
13986:
13987: found=no
13988: fi
13989: rm -f conftest.err conftest.$ac_ext
13990: else
13991: found=no
13992: O_CPPFLAGS="$CPPFLAGS"
13993: for dir in "" "/usr/local" "/usr/contrib"; do
13994: test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
13995: cat >conftest.$ac_ext <<_ACEOF
13996: #include <opie.h>
13997: _ACEOF
13998: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13999: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14000: ac_status=$?
14001: grep -v '^ *+' conftest.er1 >conftest.err
14002: rm -f conftest.er1
14003: cat conftest.err >&5
14004: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005: (exit $ac_status); } >/dev/null; then
14006: if test -s conftest.err; then
14007: ac_cpp_err=$ac_c_preproc_warn_flag
14008: else
14009: ac_cpp_err=
14010: fi
14011: else
14012: ac_cpp_err=yes
14013: fi
14014: if test -z "$ac_cpp_err"; then
14015: found=yes; break
14016: else
14017: echo "$as_me: failed program was:" >&5
14018: sed 's/^/| /' conftest.$ac_ext >&5
14019:
14020:
1.16 millert 14021: fi
1.17 millert 14022: rm -f conftest.err conftest.$ac_ext
14023: done
14024: if test "$found" = "no" -o -z "$dir"; then
14025: CPPFLAGS="$O_CPPFLAGS"
14026: else
14027:
14028: if test X"$with_rpath" = X"yes"; then
14029: LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
14030: else
14031: LDFLAGS="${LDFLAGS} -L${dir}/lib"
14032: fi
14033: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
14034: blibpath_add="${blibpath_add}:${dir}/lib"
14035: fi
1.16 millert 14036:
1.17 millert 14037:
14038: if test X"$with_rpath" = X"yes"; then
14039: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
1.16 millert 14040: else
1.17 millert 14041: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
14042: fi
14043: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
14044: blibpath_add="${blibpath_add}:${dir}/lib"
14045: fi
14046:
14047: fi
14048: fi
14049: if test "$found" = "no"; then
14050: { echo "$as_me:$LINENO: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&5
14051: echo "$as_me: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&2;}
1.16 millert 14052: fi
1.17 millert 14053: echo "$as_me:$LINENO: checking for main in -lopie" >&5
14054: echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6
14055: if test "${ac_cv_lib_opie_main+set}" = set; then
14056: echo $ECHO_N "(cached) $ECHO_C" >&6
14057: else
14058: ac_check_lib_save_LIBS=$LIBS
14059: LIBS="-lopie $LIBS"
14060: cat >conftest.$ac_ext <<_ACEOF
14061: #line $LINENO "configure"
14062: /* confdefs.h. */
14063: _ACEOF
14064: cat confdefs.h >>conftest.$ac_ext
14065: cat >>conftest.$ac_ext <<_ACEOF
14066: /* end confdefs.h. */
14067:
14068:
14069: int
14070: main ()
14071: {
14072: main ();
14073: ;
14074: return 0;
14075: }
14076: _ACEOF
14077: rm -f conftest.$ac_objext conftest$ac_exeext
14078: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14079: (eval $ac_link) 2>&5
14080: ac_status=$?
14081: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082: (exit $ac_status); } &&
14083: { ac_try='test -s conftest$ac_exeext'
14084: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085: (eval $ac_try) 2>&5
14086: ac_status=$?
14087: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088: (exit $ac_status); }; }; then
14089: ac_cv_lib_opie_main=yes
14090: else
14091: echo "$as_me: failed program was:" >&5
14092: sed 's/^/| /' conftest.$ac_ext >&5
14093:
14094: ac_cv_lib_opie_main=no
14095: fi
14096: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14097: LIBS=$ac_check_lib_save_LIBS
14098: fi
14099: echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
14100: echo "${ECHO_T}$ac_cv_lib_opie_main" >&6
14101: if test $ac_cv_lib_opie_main = yes; then
14102: found=yes
14103: else
14104: { echo "$as_me:$LINENO: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&5
14105: echo "$as_me: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&2;}
14106: fi
14107:
14108: LDFLAGS="$O_LDFLAGS"
14109: SUDO_LIBS="${SUDO_LIBS} -lopie"
1.16 millert 14110: fi
14111:
14112: if test -n "$with_SecurID" -a "$with_SecurID" != "no"; then
14113: if test "$with_SecurID" != "yes"; then
14114: :
14115: elif test -d /usr/ace/examples; then
14116: with_SecurID=/usr/ace/examples
14117: else
14118: with_SecurID=/usr/ace
14119: fi
14120: CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
14121: _LDFLAGS="${LDFLAGS}"
1.17 millert 14122:
14123: if test X"$with_rpath" = X"yes"; then
14124: LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
14125: else
14126: LDFLAGS="${LDFLAGS} -L${with_SecurID}"
14127: fi
14128: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
14129: blibpath_add="${blibpath_add}:${with_SecurID}"
14130: fi
14131:
1.16 millert 14132: #
14133: # Determine whether to use the new or old SecurID API
14134: #
14135: echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
14136: echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6
1.17 millert 14137: if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
1.16 millert 14138: echo $ECHO_N "(cached) $ECHO_C" >&6
14139: else
14140: ac_check_lib_save_LIBS=$LIBS
1.17 millert 14141: LIBS="-laceclnt
14142: -lpthread
14143:
14144: $LIBS"
1.9 millert 14145: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14146: #line $LINENO "configure"
14147: /* confdefs.h. */
14148: _ACEOF
14149: cat confdefs.h >>conftest.$ac_ext
14150: cat >>conftest.$ac_ext <<_ACEOF
14151: /* end confdefs.h. */
1.9 millert 14152:
14153: /* Override any gcc2 internal prototype to avoid an error. */
14154: #ifdef __cplusplus
14155: extern "C"
14156: #endif
14157: /* We use char because int might match the return type of a gcc2
14158: builtin and then its argument prototype would still apply. */
1.16 millert 14159: char SD_Init ();
1.9 millert 14160: int
14161: main ()
14162: {
1.16 millert 14163: SD_Init ();
1.9 millert 14164: ;
14165: return 0;
14166: }
14167: _ACEOF
14168: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 14169: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 14170: (eval $ac_link) 2>&5
14171: ac_status=$?
1.16 millert 14172: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14173: (exit $ac_status); } &&
14174: { ac_try='test -s conftest$ac_exeext'
1.16 millert 14175: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 14176: (eval $ac_try) 2>&5
14177: ac_status=$?
1.16 millert 14178: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14179: (exit $ac_status); }; }; then
1.17 millert 14180: ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
1.9 millert 14181: else
14182: echo "$as_me: failed program was:" >&5
1.16 millert 14183: sed 's/^/| /' conftest.$ac_ext >&5
14184:
1.17 millert 14185: ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
1.9 millert 14186: fi
14187: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14188: LIBS=$ac_check_lib_save_LIBS
14189: fi
1.17 millert 14190: echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
14191: echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6
14192: if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
14193:
14194: AUTH_OBJS="securid5.o"
14195: SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
14196:
14197:
14198:
14199: if test X"$with_rpath" = X"yes"; then
14200: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
14201: else
14202: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
14203: fi
14204: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
14205: blibpath_add="${blibpath_add}:${with_SecurID}"
14206: fi
14207:
14208:
1.16 millert 14209: else
1.17 millert 14210:
14211: AUTH_OBJS="securid.o"
14212: SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
14213:
1.1 millert 14214: fi
14215:
1.16 millert 14216: LDFLAGS="${_LDFLAGS}"
1.1 millert 14217: fi
14218:
1.17 millert 14219: if test -n "$with_fwtk"; then
14220: if test "$with_fwtk" != "yes"; then
14221:
14222: if test X"$with_rpath" = X"yes"; then
14223: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
14224: else
14225: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
14226: fi
14227: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
14228: blibpath_add="${blibpath_add}:${with_fwtk}"
14229: fi
14230:
14231: CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
14232: with_fwtk=yes
14233: fi
1.1 millert 14234: SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
14235: fi
14236:
14237: if test "$with_authenticate" = "yes"; then
14238: SUDO_LIBS="${SUDO_LIBS} -ls"
14239: fi
14240:
1.17 millert 14241: if test -n "$blibpath"; then
14242: if test -n "$blibpath_add"; then
14243: SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
14244: elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
14245: SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
14246: fi
14247: fi
14248:
1.16 millert 14249: echo "$as_me:$LINENO: checking for log file location" >&5
1.9 millert 14250: echo $ECHO_N "checking for log file location... $ECHO_C" >&6
1.1 millert 14251: if test -n "$with_logpath"; then
1.16 millert 14252: echo "$as_me:$LINENO: result: $with_logpath" >&5
1.9 millert 14253: echo "${ECHO_T}$with_logpath" >&6
14254: cat >>confdefs.h <<EOF
1.1 millert 14255: #define _PATH_SUDO_LOGFILE "$with_logpath"
14256: EOF
14257:
14258: elif test -d "/var/log"; then
1.16 millert 14259: echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
1.9 millert 14260: echo "${ECHO_T}/var/log/sudo.log" >&6
14261: cat >>confdefs.h <<\EOF
1.1 millert 14262: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
14263: EOF
14264:
14265: elif test -d "/var/adm"; then
1.16 millert 14266: echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
1.9 millert 14267: echo "${ECHO_T}/var/adm/sudo.log" >&6
14268: cat >>confdefs.h <<\EOF
1.1 millert 14269: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
14270: EOF
14271:
14272: elif test -d "/usr/adm"; then
1.16 millert 14273: echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
1.9 millert 14274: echo "${ECHO_T}/usr/adm/sudo.log" >&6
14275: cat >>confdefs.h <<\EOF
1.1 millert 14276: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
14277: EOF
14278:
14279: else
1.16 millert 14280: echo "$as_me:$LINENO: result: unknown" >&5
1.9 millert 14281: echo "${ECHO_T}unknown" >&6
1.1 millert 14282: fi
14283:
1.16 millert 14284: echo "$as_me:$LINENO: checking for timestamp file location" >&5
1.9 millert 14285: echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6
1.1 millert 14286: if test -n "$with_timedir"; then
1.16 millert 14287: echo "$as_me:$LINENO: result: $with_timedir" >&5
1.9 millert 14288: echo "${ECHO_T}$with_timedir" >&6
14289: cat >>confdefs.h <<EOF
1.1 millert 14290: #define _PATH_SUDO_TIMEDIR "$with_timedir"
14291: EOF
14292:
1.9 millert 14293: timedir="$with_timedir"
1.1 millert 14294: elif test -d "/var/run"; then
1.16 millert 14295: echo "$as_me:$LINENO: result: /var/run/sudo" >&5
1.9 millert 14296: echo "${ECHO_T}/var/run/sudo" >&6
14297: cat >>confdefs.h <<\EOF
1.1 millert 14298: #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
14299: EOF
14300:
1.9 millert 14301: timedir="/var/run/sudo"
1.6 millert 14302: else
1.16 millert 14303: echo "$as_me:$LINENO: result: /tmp/.odus" >&5
1.9 millert 14304: echo "${ECHO_T}/tmp/.odus" >&6
14305: cat >>confdefs.h <<\EOF
1.1 millert 14306: #define _PATH_SUDO_TIMEDIR "/tmp/.odus"
14307: EOF
14308:
1.9 millert 14309: timedir="/tmp/.odus"
1.1 millert 14310: fi
14311:
1.16 millert 14312:
1.1 millert 14313: if test "$with_passwd" = "no"; then
1.16 millert 14314: cat >>confdefs.h <<\_ACEOF
1.9 millert 14315: #define WITHOUT_PASSWD 1. Define to avoid using the passwd/shadow file for authentication.
1.16 millert 14316: _ACEOF
1.1 millert 14317:
14318: if test -z "$AUTH_OBJS"; then
1.16 millert 14319: { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
1.9 millert 14320: echo "$as_me: error: no authentication methods defined." >&2;}
14321: { (exit 1); exit 1; }; }
1.1 millert 14322: fi
14323: else
14324: if test -n "$SECUREWARE"; then
14325: AUTH_OBJS="${AUTH_OBJS} passwd.o secureware.o"
14326: else
14327: AUTH_OBJS="${AUTH_OBJS} passwd.o"
14328: fi
14329: fi
14330:
14331: if test -n "$LIBS"; then
14332: L="$LIBS"
14333: LIBS=
14334: for l in ${L}; do
14335: dupe=0
14336: for sl in ${SUDO_LIBS} ${NET_LIBS}; do
14337: test $l = $sl && dupe=1
14338: done
14339: test $dupe = 0 && LIBS="${LIBS} $l"
14340: done
14341: fi
14342:
14343: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
14344:
1.16 millert 14345: ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
1.9 millert 14346: cat >confcache <<\_ACEOF
1.1 millert 14347: # This file is a shell script that caches the results of configure
14348: # tests run on this system so they can be shared between configure
1.9 millert 14349: # scripts and configure runs, see configure's option --config-cache.
14350: # It is not useful on other systems. If it contains results you don't
14351: # want to keep, you may remove or edit it.
1.1 millert 14352: #
1.9 millert 14353: # config.status only pays attention to the cache file if you give it
14354: # the --recheck option to rerun configure.
1.1 millert 14355: #
1.16 millert 14356: # `ac_cv_env_foo' variables (set or unset) will be overridden when
1.9 millert 14357: # loading this file, other *unset* `ac_cv_foo' will be assigned the
14358: # following values.
14359:
14360: _ACEOF
14361:
1.1 millert 14362: # The following way of writing the cache mishandles newlines in values,
14363: # but we know of no workaround that is simple, portable, and efficient.
14364: # So, don't put newlines in cache variables' values.
14365: # Ultrix sh set writes to stderr and can't be redirected directly,
14366: # and sets the high bit in the cache file unless we assign to the vars.
1.9 millert 14367: {
14368: (set) 2>&1 |
14369: case `(ac_space=' '; set | grep ac_space) 2>&1` in
14370: *ac_space=\ *)
14371: # `set' does not quote correctly, so add quotes (double-quote
14372: # substitution turns \\\\ into \\, and sed turns \\ into \).
14373: sed -n \
14374: "s/'/'\\\\''/g;
14375: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14376: ;;
14377: *)
14378: # `set' quotes correctly as required by POSIX, so do not add quotes.
14379: sed -n \
14380: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14381: ;;
14382: esac;
14383: } |
14384: sed '
14385: t clear
14386: : clear
14387: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14388: t end
14389: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14390: : end' >>confcache
1.16 millert 14391: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1 millert 14392: if test -w $cache_file; then
1.9 millert 14393: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14394: cat confcache >$cache_file
1.1 millert 14395: else
14396: echo "not updating unwritable cache $cache_file"
14397: fi
14398: fi
14399: rm -f confcache
14400:
14401: test "x$prefix" = xNONE && prefix=$ac_default_prefix
14402: # Let make expand exec_prefix.
14403: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14404:
1.9 millert 14405: # VPATH may cause trouble with some makes, so we remove $(srcdir),
14406: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14407: # trailing colons and then remove the whole line if VPATH becomes empty
14408: # (actually we leave an empty line to preserve line numbers).
1.1 millert 14409: if test "x$srcdir" = x.; then
1.9 millert 14410: ac_vpsub='/^[ ]*VPATH[ ]*=/{
14411: s/:*\$(srcdir):*/:/;
14412: s/:*\${srcdir}:*/:/;
14413: s/:*@srcdir@:*/:/;
14414: s/^\([^=]*=[ ]*\):*/\1/;
14415: s/:*$//;
14416: s/^[^=]*=[ ]*$//;
14417: }'
1.1 millert 14418: fi
14419:
14420: DEFS=-DHAVE_CONFIG_H
14421:
1.16 millert 14422: ac_libobjs=
14423: ac_ltlibobjs=
14424: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14425: # 1. Remove the extension, and $U if already installed.
14426: ac_i=`echo "$ac_i" |
14427: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14428: # 2. Add them.
14429: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14430: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14431: done
14432: LIBOBJS=$ac_libobjs
14433:
14434: LTLIBOBJS=$ac_ltlibobjs
14435:
14436:
14437:
1.1 millert 14438: : ${CONFIG_STATUS=./config.status}
1.9 millert 14439: ac_clean_files_save=$ac_clean_files
14440: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.16 millert 14441: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
1.9 millert 14442: echo "$as_me: creating $CONFIG_STATUS" >&6;}
14443: cat >$CONFIG_STATUS <<_ACEOF
14444: #! $SHELL
1.16 millert 14445: # Generated by $as_me.
1.1 millert 14446: # Run this file to recreate the current configuration.
14447: # Compiler output produced by configure, useful for debugging
1.9 millert 14448: # configure, is in config.log if it exists.
14449:
14450: debug=false
1.16 millert 14451: ac_cs_recheck=false
14452: ac_cs_silent=false
1.9 millert 14453: SHELL=\${CONFIG_SHELL-$SHELL}
14454: _ACEOF
14455:
14456: cat >>$CONFIG_STATUS <<\_ACEOF
1.16 millert 14457: ## --------------------- ##
14458: ## M4sh Initialization. ##
14459: ## --------------------- ##
14460:
1.9 millert 14461: # Be Bourne compatible
14462: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14463: emulate sh
14464: NULLCMD=:
1.16 millert 14465: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14466: # is contrary to our usage. Disable this feature.
14467: alias -g '${1+"$@"}'='"$@"'
1.9 millert 14468: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14469: set -o posix
14470: fi
14471:
1.16 millert 14472: # Support unset when possible.
14473: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
14474: as_unset=unset
14475: else
14476: as_unset=false
14477: fi
14478:
14479:
14480: # Work around bugs in pre-3.0 UWIN ksh.
14481: $as_unset ENV MAIL MAILPATH
14482: PS1='$ '
14483: PS2='> '
14484: PS4='+ '
14485:
14486: # NLS nuisances.
14487: for as_var in \
14488: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14489: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14490: LC_TELEPHONE LC_TIME
14491: do
14492: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
14493: eval $as_var=C; export $as_var
14494: else
14495: $as_unset $as_var
14496: fi
14497: done
14498:
14499: # Required to use basename.
14500: if expr a : '\(a\)' >/dev/null 2>&1; then
14501: as_expr=expr
14502: else
14503: as_expr=false
14504: fi
14505:
14506: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14507: as_basename=basename
14508: else
14509: as_basename=false
14510: fi
14511:
14512:
1.9 millert 14513: # Name of the executable.
1.16 millert 14514: as_me=`$as_basename "$0" ||
14515: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14516: X"$0" : 'X\(//\)$' \| \
14517: X"$0" : 'X\(/\)$' \| \
14518: . : '\(.\)' 2>/dev/null ||
14519: echo X/"$0" |
14520: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14521: /^X\/\(\/\/\)$/{ s//\1/; q; }
14522: /^X\/\(\/\).*/{ s//\1/; q; }
14523: s/.*/./; q'`
14524:
14525:
14526: # PATH needs CR, and LINENO needs CR and PATH.
14527: # Avoid depending upon Character Ranges.
14528: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14529: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14530: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14531: as_cr_digits='0123456789'
14532: as_cr_alnum=$as_cr_Letters$as_cr_digits
14533:
14534: # The user is always right.
14535: if test "${PATH_SEPARATOR+set}" != set; then
14536: echo "#! /bin/sh" >conf$$.sh
14537: echo "exit 0" >>conf$$.sh
14538: chmod +x conf$$.sh
14539: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14540: PATH_SEPARATOR=';'
14541: else
14542: PATH_SEPARATOR=:
14543: fi
14544: rm -f conf$$.sh
14545: fi
14546:
14547:
14548: as_lineno_1=$LINENO
14549: as_lineno_2=$LINENO
14550: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14551: test "x$as_lineno_1" != "x$as_lineno_2" &&
14552: test "x$as_lineno_3" = "x$as_lineno_2" || {
14553: # Find who we are. Look in the path if we contain no path at all
14554: # relative or not.
14555: case $0 in
14556: *[\\/]* ) as_myself=$0 ;;
14557: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14558: for as_dir in $PATH
14559: do
14560: IFS=$as_save_IFS
14561: test -z "$as_dir" && as_dir=.
14562: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14563: done
14564:
14565: ;;
14566: esac
14567: # We did not find ourselves, most probably we were run as `sh COMMAND'
14568: # in which case we are not to be found in the path.
14569: if test "x$as_myself" = x; then
14570: as_myself=$0
14571: fi
14572: if test ! -f "$as_myself"; then
14573: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14574: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14575: { (exit 1); exit 1; }; }
14576: fi
14577: case $CONFIG_SHELL in
14578: '')
14579: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14580: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14581: do
14582: IFS=$as_save_IFS
14583: test -z "$as_dir" && as_dir=.
14584: for as_base in sh bash ksh sh5; do
14585: case $as_dir in
14586: /*)
14587: if ("$as_dir/$as_base" -c '
14588: as_lineno_1=$LINENO
14589: as_lineno_2=$LINENO
14590: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14591: test "x$as_lineno_1" != "x$as_lineno_2" &&
14592: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14593: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14594: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14595: CONFIG_SHELL=$as_dir/$as_base
14596: export CONFIG_SHELL
14597: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14598: fi;;
14599: esac
14600: done
14601: done
14602: ;;
14603: esac
14604:
14605: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14606: # uniformly replaced by the line number. The first 'sed' inserts a
14607: # line-number line before each line; the second 'sed' does the real
14608: # work. The second script uses 'N' to pair each line-number line
14609: # with the numbered line, and appends trailing '-' during
14610: # substitution so that $LINENO is not a special case at line end.
14611: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14612: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14613: sed '=' <$as_myself |
14614: sed '
14615: N
14616: s,$,-,
14617: : loop
14618: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14619: t loop
14620: s,-$,,
14621: s,^['$as_cr_digits']*\n,,
14622: ' >$as_me.lineno &&
14623: chmod +x $as_me.lineno ||
14624: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14625: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14626: { (exit 1); exit 1; }; }
14627:
14628: # Don't try to exec as it changes $[0], causing all sort of problems
14629: # (the dirname of $[0] is not the place where we might find the
14630: # original and so on. Autoconf is especially sensible to this).
14631: . ./$as_me.lineno
14632: # Exit status is that of the last command.
14633: exit
14634: }
14635:
14636:
14637: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14638: *c*,-n*) ECHO_N= ECHO_C='
14639: ' ECHO_T=' ' ;;
14640: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14641: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14642: esac
1.9 millert 14643:
14644: if expr a : '\(a\)' >/dev/null 2>&1; then
14645: as_expr=expr
14646: else
14647: as_expr=false
14648: fi
14649:
14650: rm -f conf$$ conf$$.exe conf$$.file
14651: echo >conf$$.file
14652: if ln -s conf$$.file conf$$ 2>/dev/null; then
14653: # We could just check for DJGPP; but this test a) works b) is more generic
14654: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14655: if test -f conf$$.exe; then
14656: # Don't use ln at all; we don't have any links
14657: as_ln_s='cp -p'
14658: else
14659: as_ln_s='ln -s'
14660: fi
14661: elif ln conf$$.file conf$$ 2>/dev/null; then
14662: as_ln_s=ln
14663: else
14664: as_ln_s='cp -p'
14665: fi
14666: rm -f conf$$ conf$$.exe conf$$.file
14667:
1.16 millert 14668: if mkdir -p . 2>/dev/null; then
14669: as_mkdir_p=:
14670: else
14671: as_mkdir_p=false
14672: fi
14673:
1.9 millert 14674: as_executable_p="test -f"
14675:
1.16 millert 14676: # Sed expression to map a string onto a valid CPP name.
14677: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14678:
14679: # Sed expression to map a string onto a valid variable name.
14680: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
1.9 millert 14681:
14682:
14683: # IFS
14684: # We need space, tab and new line, in precisely that order.
14685: as_nl='
14686: '
14687: IFS=" $as_nl"
14688:
14689: # CDPATH.
1.16 millert 14690: $as_unset CDPATH
1.9 millert 14691:
14692: exec 6>&1
14693:
1.16 millert 14694: # Open the log real soon, to keep \$[0] and so on meaningful, and to
14695: # report actual input values of CONFIG_FILES etc. instead of their
14696: # values after options handling. Logging --version etc. is OK.
14697: exec 5>>config.log
14698: {
14699: echo
14700: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14701: ## Running $as_me. ##
14702: _ASBOX
14703: } >&5
14704: cat >&5 <<_CSEOF
14705:
1.21 ! millert 14706: This file was extended by sudo $as_me 1.6.7p5, which was
1.16 millert 14707: generated by GNU Autoconf 2.57. Invocation command line was
14708:
14709: CONFIG_FILES = $CONFIG_FILES
14710: CONFIG_HEADERS = $CONFIG_HEADERS
14711: CONFIG_LINKS = $CONFIG_LINKS
14712: CONFIG_COMMANDS = $CONFIG_COMMANDS
14713: $ $0 $@
14714:
14715: _CSEOF
14716: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14717: echo >&5
1.9 millert 14718: _ACEOF
14719:
14720: # Files that config.status was made for.
14721: if test -n "$ac_config_files"; then
14722: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14723: fi
14724:
14725: if test -n "$ac_config_headers"; then
14726: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14727: fi
14728:
14729: if test -n "$ac_config_links"; then
14730: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14731: fi
14732:
14733: if test -n "$ac_config_commands"; then
14734: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14735: fi
14736:
1.16 millert 14737: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 14738:
14739: ac_cs_usage="\
14740: \`$as_me' instantiates files from templates according to the
14741: current configuration.
14742:
14743: Usage: $0 [OPTIONS] [FILE]...
14744:
14745: -h, --help print this help, then exit
14746: -V, --version print version number, then exit
1.16 millert 14747: -q, --quiet do not print progress messages
1.9 millert 14748: -d, --debug don't remove temporary files
14749: --recheck update $as_me by reconfiguring in the same conditions
14750: --file=FILE[:TEMPLATE]
14751: instantiate the configuration file FILE
14752: --header=FILE[:TEMPLATE]
14753: instantiate the configuration header FILE
14754:
14755: Configuration files:
14756: $config_files
14757:
14758: Configuration headers:
14759: $config_headers
14760:
14761: Report bugs to <bug-autoconf@gnu.org>."
1.16 millert 14762: _ACEOF
1.9 millert 14763:
1.16 millert 14764: cat >>$CONFIG_STATUS <<_ACEOF
1.9 millert 14765: ac_cs_version="\\
1.21 ! millert 14766: sudo config.status 1.6.7p5
1.16 millert 14767: configured by $0, generated by GNU Autoconf 2.57,
1.9 millert 14768: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14769:
14770: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14771: Free Software Foundation, Inc.
14772: This config.status script is free software; the Free Software Foundation
14773: gives unlimited permission to copy, distribute and modify it."
14774: srcdir=$srcdir
1.16 millert 14775: _ACEOF
1.9 millert 14776:
1.16 millert 14777: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 14778: # If no file are specified by the user, then we need to provide default
14779: # value. By we need to know if files were specified by the user.
14780: ac_need_defaults=:
14781: while test $# != 0
1.1 millert 14782: do
1.9 millert 14783: case $1 in
14784: --*=*)
14785: ac_option=`expr "x$1" : 'x\([^=]*\)='`
14786: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1.16 millert 14787: ac_shift=:
14788: ;;
14789: -*)
14790: ac_option=$1
14791: ac_optarg=$2
14792: ac_shift=shift
1.9 millert 14793: ;;
14794: *) # This is not an option, so the user has probably given explicit
14795: # arguments.
1.16 millert 14796: ac_option=$1
1.9 millert 14797: ac_need_defaults=false;;
14798: esac
14799:
1.16 millert 14800: case $ac_option in
1.9 millert 14801: # Handling of the options.
1.16 millert 14802: _ACEOF
14803: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 millert 14804: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.16 millert 14805: ac_cs_recheck=: ;;
1.9 millert 14806: --version | --vers* | -V )
14807: echo "$ac_cs_version"; exit 0 ;;
14808: --he | --h)
14809: # Conflict between --help and --header
1.16 millert 14810: { { echo "$as_me:$LINENO: error: ambiguous option: $1
1.9 millert 14811: Try \`$0 --help' for more information." >&5
14812: echo "$as_me: error: ambiguous option: $1
14813: Try \`$0 --help' for more information." >&2;}
14814: { (exit 1); exit 1; }; };;
14815: --help | --hel | -h )
14816: echo "$ac_cs_usage"; exit 0 ;;
14817: --debug | --d* | -d )
14818: debug=: ;;
14819: --file | --fil | --fi | --f )
1.16 millert 14820: $ac_shift
14821: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
1.9 millert 14822: ac_need_defaults=false;;
14823: --header | --heade | --head | --hea )
1.16 millert 14824: $ac_shift
14825: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
1.9 millert 14826: ac_need_defaults=false;;
1.16 millert 14827: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14828: | -silent | --silent | --silen | --sile | --sil | --si | --s)
14829: ac_cs_silent=: ;;
1.9 millert 14830:
14831: # This is an error.
1.16 millert 14832: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
1.9 millert 14833: Try \`$0 --help' for more information." >&5
14834: echo "$as_me: error: unrecognized option: $1
14835: Try \`$0 --help' for more information." >&2;}
14836: { (exit 1); exit 1; }; } ;;
14837:
14838: *) ac_config_targets="$ac_config_targets $1" ;;
14839:
14840: esac
14841: shift
14842: done
14843:
1.16 millert 14844: ac_configure_extra_args=
1.9 millert 14845:
1.16 millert 14846: if $ac_cs_silent; then
14847: exec 6>/dev/null
14848: ac_configure_extra_args="$ac_configure_extra_args --silent"
14849: fi
1.9 millert 14850:
1.16 millert 14851: _ACEOF
14852: cat >>$CONFIG_STATUS <<_ACEOF
14853: if \$ac_cs_recheck; then
14854: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14855: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14856: fi
1.9 millert 14857:
14858: _ACEOF
14859:
1.16 millert 14860:
14861:
14862:
14863:
14864: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 14865: for ac_config_target in $ac_config_targets
14866: do
14867: case "$ac_config_target" in
14868: # Handling of arguments.
14869: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14870: "sudo.man" ) CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
14871: "visudo.man" ) CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
14872: "sudoers.man" ) CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
14873: "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14874: "pathnames.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
1.16 millert 14875: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
1.9 millert 14876: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14877: { (exit 1); exit 1; }; };;
1.1 millert 14878: esac
14879: done
14880:
1.9 millert 14881: # If the user did not use the arguments to specify the items to instantiate,
14882: # then the envvar interface is used. Set only those that are not.
14883: # We use the long form for the default assignment because of an extremely
14884: # bizarre bug on SunOS 4.1.3.
14885: if $ac_need_defaults; then
14886: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14887: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14888: fi
14889:
1.16 millert 14890: # Have a temporary directory for convenience. Make it in the build tree
14891: # simply because there is no reason to put it here, and in addition,
14892: # creating and moving files from /tmp can sometimes cause problems.
1.9 millert 14893: # Create a temporary directory, and hook for its removal unless debugging.
14894: $debug ||
14895: {
14896: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14897: trap '{ (exit 1); exit 1; }' 1 2 13 15
14898: }
14899:
14900: # Create a (secure) tmp directory for tmp files.
1.16 millert 14901:
1.9 millert 14902: {
1.16 millert 14903: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1.9 millert 14904: test -n "$tmp" && test -d "$tmp"
14905: } ||
14906: {
1.16 millert 14907: tmp=./confstat$$-$RANDOM
1.9 millert 14908: (umask 077 && mkdir $tmp)
14909: } ||
14910: {
1.16 millert 14911: echo "$me: cannot create a temporary directory in ." >&2
1.9 millert 14912: { (exit 1); exit 1; }
14913: }
1.1 millert 14914:
1.16 millert 14915: _ACEOF
1.1 millert 14916:
1.16 millert 14917: cat >>$CONFIG_STATUS <<_ACEOF
1.9 millert 14918:
14919: #
14920: # CONFIG_FILES section.
14921: #
1.1 millert 14922:
1.9 millert 14923: # No need to generate the scripts if there are no CONFIG_FILES.
14924: # This happens for instance when ./config.status config.h
14925: if test -n "\$CONFIG_FILES"; then
14926: # Protect against being on the right side of a sed subst in config.status.
14927: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14928: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14929: s,@SHELL@,$SHELL,;t t
1.16 millert 14930: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14931: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14932: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14933: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14934: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14935: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
1.9 millert 14936: s,@exec_prefix@,$exec_prefix,;t t
14937: s,@prefix@,$prefix,;t t
14938: s,@program_transform_name@,$program_transform_name,;t t
14939: s,@bindir@,$bindir,;t t
14940: s,@sbindir@,$sbindir,;t t
14941: s,@libexecdir@,$libexecdir,;t t
14942: s,@datadir@,$datadir,;t t
14943: s,@sysconfdir@,$sysconfdir,;t t
14944: s,@sharedstatedir@,$sharedstatedir,;t t
14945: s,@localstatedir@,$localstatedir,;t t
14946: s,@libdir@,$libdir,;t t
14947: s,@includedir@,$includedir,;t t
14948: s,@oldincludedir@,$oldincludedir,;t t
14949: s,@infodir@,$infodir,;t t
14950: s,@mandir@,$mandir,;t t
14951: s,@build_alias@,$build_alias,;t t
14952: s,@host_alias@,$host_alias,;t t
14953: s,@target_alias@,$target_alias,;t t
1.16 millert 14954: s,@DEFS@,$DEFS,;t t
1.9 millert 14955: s,@ECHO_C@,$ECHO_C,;t t
14956: s,@ECHO_N@,$ECHO_N,;t t
14957: s,@ECHO_T@,$ECHO_T,;t t
14958: s,@LIBS@,$LIBS,;t t
14959: s,@CFLAGS@,$CFLAGS,;t t
14960: s,@PROGS@,$PROGS,;t t
14961: s,@CPPFLAGS@,$CPPFLAGS,;t t
14962: s,@LDFLAGS@,$LDFLAGS,;t t
14963: s,@SUDO_LDFLAGS@,$SUDO_LDFLAGS,;t t
14964: s,@SUDO_LIBS@,$SUDO_LIBS,;t t
14965: s,@NET_LIBS@,$NET_LIBS,;t t
14966: s,@AFS_LIBS@,$AFS_LIBS,;t t
14967: s,@OSDEFS@,$OSDEFS,;t t
14968: s,@AUTH_OBJS@,$AUTH_OBJS,;t t
14969: s,@MANTYPE@,$MANTYPE,;t t
14970: s,@MAN_POSTINSTALL@,$MAN_POSTINSTALL,;t t
14971: s,@SUDOERS_MODE@,$SUDOERS_MODE,;t t
14972: s,@SUDOERS_UID@,$SUDOERS_UID,;t t
14973: s,@SUDOERS_GID@,$SUDOERS_GID,;t t
14974: s,@DEV@,$DEV,;t t
14975: s,@mansectsu@,$mansectsu,;t t
14976: s,@mansectform@,$mansectform,;t t
14977: s,@mansrcdir@,$mansrcdir,;t t
14978: s,@timedir@,$timedir,;t t
14979: s,@timeout@,$timeout,;t t
14980: s,@password_timeout@,$password_timeout,;t t
14981: s,@sudo_umask@,$sudo_umask,;t t
14982: s,@passprompt@,$passprompt,;t t
14983: s,@long_otp_prompt@,$long_otp_prompt,;t t
14984: s,@lecture@,$lecture,;t t
14985: s,@logfac@,$logfac,;t t
14986: s,@goodpri@,$goodpri,;t t
14987: s,@badpri@,$badpri,;t t
14988: s,@loglen@,$loglen,;t t
14989: s,@ignore_dot@,$ignore_dot,;t t
14990: s,@mail_no_user@,$mail_no_user,;t t
14991: s,@mail_no_host@,$mail_no_host,;t t
14992: s,@mail_no_perms@,$mail_no_perms,;t t
14993: s,@mailto@,$mailto,;t t
14994: s,@mailsub@,$mailsub,;t t
14995: s,@badpass_message@,$badpass_message,;t t
14996: s,@fqdn@,$fqdn,;t t
14997: s,@runas_default@,$runas_default,;t t
14998: s,@env_editor@,$env_editor,;t t
14999: s,@passwd_tries@,$passwd_tries,;t t
15000: s,@tty_tickets@,$tty_tickets,;t t
15001: s,@insults@,$insults,;t t
15002: s,@EGREPPROG@,$EGREPPROG,;t t
15003: s,@CC@,$CC,;t t
15004: s,@ac_ct_CC@,$ac_ct_CC,;t t
15005: s,@EXEEXT@,$EXEEXT,;t t
15006: s,@OBJEXT@,$OBJEXT,;t t
15007: s,@CPP@,$CPP,;t t
15008: s,@UNAMEPROG@,$UNAMEPROG,;t t
15009: s,@TRPROG@,$TRPROG,;t t
15010: s,@SEDPROG@,$SEDPROG,;t t
15011: s,@NROFFPROG@,$NROFFPROG,;t t
15012: s,@build@,$build,;t t
15013: s,@build_cpu@,$build_cpu,;t t
15014: s,@build_vendor@,$build_vendor,;t t
15015: s,@build_os@,$build_os,;t t
15016: s,@host@,$host,;t t
15017: s,@host_cpu@,$host_cpu,;t t
15018: s,@host_vendor@,$host_vendor,;t t
15019: s,@host_os@,$host_os,;t t
1.16 millert 15020: s,@EGREP@,$EGREP,;t t
1.9 millert 15021: s,@YACC@,$YACC,;t t
1.16 millert 15022: s,@LIBOBJS@,$LIBOBJS,;t t
1.9 millert 15023: s,@ALLOCA@,$ALLOCA,;t t
1.18 millert 15024: s,@KRB5CONFIG@,$KRB5CONFIG,;t t
1.16 millert 15025: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.1 millert 15026: CEOF
1.9 millert 15027:
1.16 millert 15028: _ACEOF
1.1 millert 15029:
1.16 millert 15030: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 15031: # Split the substitutions into bite-sized pieces for seds with
15032: # small command number limits, like on Digital OSF/1 and HP-UX.
15033: ac_max_sed_lines=48
15034: ac_sed_frag=1 # Number of current file.
15035: ac_beg=1 # First line for current file.
15036: ac_end=$ac_max_sed_lines # Line after last line for current file.
15037: ac_more_lines=:
15038: ac_sed_cmds=
15039: while $ac_more_lines; do
15040: if test $ac_beg -gt 1; then
15041: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15042: else
15043: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15044: fi
15045: if test ! -s $tmp/subs.frag; then
15046: ac_more_lines=false
1.1 millert 15047: else
1.9 millert 15048: # The purpose of the label and of the branching condition is to
15049: # speed up the sed processing (if there are no `@' at all, there
15050: # is no need to browse any of the substitutions).
15051: # These are the two extra sed commands mentioned above.
15052: (echo ':t
15053: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15054: if test -z "$ac_sed_cmds"; then
15055: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15056: else
15057: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15058: fi
15059: ac_sed_frag=`expr $ac_sed_frag + 1`
15060: ac_beg=$ac_end
15061: ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1 millert 15062: fi
1.9 millert 15063: done
15064: if test -z "$ac_sed_cmds"; then
15065: ac_sed_cmds=cat
1.1 millert 15066: fi
1.9 millert 15067: fi # test -n "$CONFIG_FILES"
1.1 millert 15068:
1.16 millert 15069: _ACEOF
15070: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 15071: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1.1 millert 15072: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.9 millert 15073: case $ac_file in
15074: - | *:- | *:-:* ) # input from stdin
15075: cat >$tmp/stdin
15076: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15077: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15078: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15079: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15080: * ) ac_file_in=$ac_file.in ;;
1.1 millert 15081: esac
15082:
1.9 millert 15083: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
1.16 millert 15084: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15085: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.9 millert 15086: X"$ac_file" : 'X\(//\)[^/]' \| \
15087: X"$ac_file" : 'X\(//\)$' \| \
15088: X"$ac_file" : 'X\(/\)' \| \
15089: . : '\(.\)' 2>/dev/null ||
15090: echo X"$ac_file" |
15091: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15092: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15093: /^X\(\/\/\)$/{ s//\1/; q; }
15094: /^X\(\/\).*/{ s//\1/; q; }
15095: s/.*/./; q'`
1.16 millert 15096: { if $as_mkdir_p; then
15097: mkdir -p "$ac_dir"
15098: else
15099: as_dir="$ac_dir"
15100: as_dirs=
15101: while test ! -d "$as_dir"; do
15102: as_dirs="$as_dir $as_dirs"
15103: as_dir=`(dirname "$as_dir") 2>/dev/null ||
15104: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15105: X"$as_dir" : 'X\(//\)[^/]' \| \
15106: X"$as_dir" : 'X\(//\)$' \| \
15107: X"$as_dir" : 'X\(/\)' \| \
15108: . : '\(.\)' 2>/dev/null ||
15109: echo X"$as_dir" |
15110: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15111: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15112: /^X\(\/\/\)$/{ s//\1/; q; }
15113: /^X\(\/\).*/{ s//\1/; q; }
15114: s/.*/./; q'`
15115: done
15116: test ! -n "$as_dirs" || mkdir $as_dirs
15117: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15118: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15119: { (exit 1); exit 1; }; }; }
15120:
15121: ac_builddir=.
15122:
15123: if test "$ac_dir" != .; then
15124: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15125: # A "../" for each directory in $ac_dir_suffix.
15126: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15127: else
15128: ac_dir_suffix= ac_top_builddir=
15129: fi
15130:
15131: case $srcdir in
15132: .) # No --srcdir option. We are building in place.
15133: ac_srcdir=.
15134: if test -z "$ac_top_builddir"; then
15135: ac_top_srcdir=.
15136: else
15137: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15138: fi ;;
15139: [\\/]* | ?:[\\/]* ) # Absolute path.
15140: ac_srcdir=$srcdir$ac_dir_suffix;
15141: ac_top_srcdir=$srcdir ;;
15142: *) # Relative path.
15143: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15144: ac_top_srcdir=$ac_top_builddir$srcdir ;;
15145: esac
15146: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15147: # absolute.
15148: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15149: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
15150: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15151: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1.1 millert 15152:
15153:
15154:
1.9 millert 15155: if test x"$ac_file" != x-; then
1.16 millert 15156: { echo "$as_me:$LINENO: creating $ac_file" >&5
1.9 millert 15157: echo "$as_me: creating $ac_file" >&6;}
15158: rm -f "$ac_file"
15159: fi
15160: # Let's still pretend it is `configure' which instantiates (i.e., don't
15161: # use $as_me), people would be surprised to read:
1.16 millert 15162: # /* config.h. Generated by config.status. */
15163: if test x"$ac_file" = x-; then
15164: configure_input=
15165: else
15166: configure_input="$ac_file. "
15167: fi
15168: configure_input=$configure_input"Generated from `echo $ac_file_in |
15169: sed 's,.*/,,'` by configure."
1.9 millert 15170:
15171: # First look for the input files in the build tree, otherwise in the
15172: # src tree.
15173: ac_file_inputs=`IFS=:
15174: for f in $ac_file_in; do
15175: case $f in
15176: -) echo $tmp/stdin ;;
15177: [\\/$]*)
15178: # Absolute (can't be DOS-style, as IFS=:)
1.16 millert 15179: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.9 millert 15180: echo "$as_me: error: cannot find input file: $f" >&2;}
15181: { (exit 1); exit 1; }; }
15182: echo $f;;
15183: *) # Relative
15184: if test -f "$f"; then
15185: # Build tree
15186: echo $f
15187: elif test -f "$srcdir/$f"; then
15188: # Source tree
15189: echo $srcdir/$f
15190: else
15191: # /dev/null tree
1.16 millert 15192: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.9 millert 15193: echo "$as_me: error: cannot find input file: $f" >&2;}
15194: { (exit 1); exit 1; }; }
15195: fi;;
15196: esac
15197: done` || { (exit 1); exit 1; }
1.16 millert 15198: _ACEOF
15199: cat >>$CONFIG_STATUS <<_ACEOF
1.9 millert 15200: sed "$ac_vpsub
15201: $extrasub
1.16 millert 15202: _ACEOF
15203: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 15204: :t
15205: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15206: s,@configure_input@,$configure_input,;t t
15207: s,@srcdir@,$ac_srcdir,;t t
1.16 millert 15208: s,@abs_srcdir@,$ac_abs_srcdir,;t t
1.9 millert 15209: s,@top_srcdir@,$ac_top_srcdir,;t t
1.16 millert 15210: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15211: s,@builddir@,$ac_builddir,;t t
15212: s,@abs_builddir@,$ac_abs_builddir,;t t
15213: s,@top_builddir@,$ac_top_builddir,;t t
15214: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
1.9 millert 15215: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15216: rm -f $tmp/stdin
15217: if test x"$ac_file" != x-; then
15218: mv $tmp/out $ac_file
15219: else
15220: cat $tmp/out
15221: rm -f $tmp/out
15222: fi
1.1 millert 15223:
1.9 millert 15224: done
1.16 millert 15225: _ACEOF
15226: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 millert 15227:
1.9 millert 15228: #
15229: # CONFIG_HEADER section.
15230: #
1.1 millert 15231:
15232: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15233: # NAME is the cpp macro being defined and VALUE is the value it is being given.
15234: #
15235: # ac_d sets the value in "#define NAME VALUE" lines.
1.9 millert 15236: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15237: ac_dB='[ ].*$,\1#\2'
15238: ac_dC=' '
15239: ac_dD=',;t'
15240: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15241: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15242: ac_uB='$,\1#\2define\3'
1.1 millert 15243: ac_uC=' '
1.9 millert 15244: ac_uD=',;t'
1.1 millert 15245:
1.9 millert 15246: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 millert 15247: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.9 millert 15248: case $ac_file in
15249: - | *:- | *:-:* ) # input from stdin
15250: cat >$tmp/stdin
15251: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15252: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15253: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15254: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15255: * ) ac_file_in=$ac_file.in ;;
1.1 millert 15256: esac
15257:
1.16 millert 15258: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
1.9 millert 15259: echo "$as_me: creating $ac_file" >&6;}
1.1 millert 15260:
1.9 millert 15261: # First look for the input files in the build tree, otherwise in the
15262: # src tree.
15263: ac_file_inputs=`IFS=:
15264: for f in $ac_file_in; do
15265: case $f in
15266: -) echo $tmp/stdin ;;
15267: [\\/$]*)
15268: # Absolute (can't be DOS-style, as IFS=:)
1.16 millert 15269: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.9 millert 15270: echo "$as_me: error: cannot find input file: $f" >&2;}
15271: { (exit 1); exit 1; }; }
15272: echo $f;;
15273: *) # Relative
15274: if test -f "$f"; then
15275: # Build tree
15276: echo $f
15277: elif test -f "$srcdir/$f"; then
15278: # Source tree
15279: echo $srcdir/$f
15280: else
15281: # /dev/null tree
1.16 millert 15282: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.9 millert 15283: echo "$as_me: error: cannot find input file: $f" >&2;}
15284: { (exit 1); exit 1; }; }
15285: fi;;
15286: esac
15287: done` || { (exit 1); exit 1; }
15288: # Remove the trailing spaces.
15289: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
1.1 millert 15290:
1.16 millert 15291: _ACEOF
1.1 millert 15292:
1.9 millert 15293: # Transform confdefs.h into two sed scripts, `conftest.defines' and
15294: # `conftest.undefs', that substitutes the proper values into
15295: # config.h.in to produce config.h. The first handles `#define'
15296: # templates, and the second `#undef' templates.
15297: # And first: Protect against being on the right side of a sed subst in
15298: # config.status. Protect against being in an unquoted here document
15299: # in config.status.
15300: rm -f conftest.defines conftest.undefs
15301: # Using a here document instead of a string reduces the quoting nightmare.
15302: # Putting comments in sed scripts is not portable.
15303: #
15304: # `end' is used to avoid that the second main sed command (meant for
15305: # 0-ary CPP macros) applies to n-ary macro definitions.
15306: # See the Autoconf documentation for `clear'.
1.16 millert 15307: cat >confdef2sed.sed <<\_ACEOF
1.9 millert 15308: s/[\\&,]/\\&/g
15309: s,[\\$`],\\&,g
15310: t clear
15311: : clear
1.16 millert 15312: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
1.9 millert 15313: t end
15314: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15315: : end
1.16 millert 15316: _ACEOF
1.9 millert 15317: # If some macros were called several times there might be several times
15318: # the same #defines, which is useless. Nevertheless, we may not want to
15319: # sort them, since we want the *last* AC-DEFINE to be honored.
15320: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15321: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15322: rm -f confdef2sed.sed
1.1 millert 15323:
15324: # This sed command replaces #undef with comments. This is necessary, for
15325: # example, in the case of _POSIX_SOURCE, which is predefined and required
15326: # on some systems where configure will not decide to define it.
1.16 millert 15327: cat >>conftest.undefs <<\_ACEOF
1.9 millert 15328: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.16 millert 15329: _ACEOF
1.1 millert 15330:
1.9 millert 15331: # Break up conftest.defines because some shells have a limit on the size
15332: # of here documents, and old seds have small limits too (100 cmds).
15333: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
1.16 millert 15334: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
1.9 millert 15335: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15336: echo ' :' >>$CONFIG_STATUS
15337: rm -f conftest.tail
15338: while grep . conftest.defines >/dev/null
15339: do
15340: # Write a limited-size here document to $tmp/defines.sed.
15341: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15342: # Speed up: don't consider the non `#define' lines.
15343: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15344: # Work around the forget-to-reset-the-flag bug.
15345: echo 't clr' >>$CONFIG_STATUS
15346: echo ': clr' >>$CONFIG_STATUS
15347: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15348: echo 'CEOF
15349: sed -f $tmp/defines.sed $tmp/in >$tmp/out
15350: rm -f $tmp/in
15351: mv $tmp/out $tmp/in
15352: ' >>$CONFIG_STATUS
15353: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15354: rm -f conftest.defines
15355: mv conftest.tail conftest.defines
15356: done
15357: rm -f conftest.defines
1.16 millert 15358: echo ' fi # grep' >>$CONFIG_STATUS
1.9 millert 15359: echo >>$CONFIG_STATUS
15360:
15361: # Break up conftest.undefs because some shells have a limit on the size
15362: # of here documents, and old seds have small limits too (100 cmds).
15363: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 millert 15364: rm -f conftest.tail
1.9 millert 15365: while grep . conftest.undefs >/dev/null
1.1 millert 15366: do
1.9 millert 15367: # Write a limited-size here document to $tmp/undefs.sed.
15368: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15369: # Speed up: don't consider the non `#undef'
15370: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15371: # Work around the forget-to-reset-the-flag bug.
15372: echo 't clr' >>$CONFIG_STATUS
15373: echo ': clr' >>$CONFIG_STATUS
15374: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 millert 15375: echo 'CEOF
1.9 millert 15376: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15377: rm -f $tmp/in
15378: mv $tmp/out $tmp/in
15379: ' >>$CONFIG_STATUS
15380: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15381: rm -f conftest.undefs
15382: mv conftest.tail conftest.undefs
15383: done
15384: rm -f conftest.undefs
15385:
1.16 millert 15386: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 15387: # Let's still pretend it is `configure' which instantiates (i.e., don't
15388: # use $as_me), people would be surprised to read:
1.16 millert 15389: # /* config.h. Generated by config.status. */
1.9 millert 15390: if test x"$ac_file" = x-; then
1.16 millert 15391: echo "/* Generated by configure. */" >$tmp/config.h
1.1 millert 15392: else
1.16 millert 15393: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
1.9 millert 15394: fi
15395: cat $tmp/in >>$tmp/config.h
15396: rm -f $tmp/in
15397: if test x"$ac_file" != x-; then
1.16 millert 15398: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15399: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
1.9 millert 15400: echo "$as_me: $ac_file is unchanged" >&6;}
15401: else
1.16 millert 15402: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15403: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.9 millert 15404: X"$ac_file" : 'X\(//\)[^/]' \| \
15405: X"$ac_file" : 'X\(//\)$' \| \
15406: X"$ac_file" : 'X\(/\)' \| \
15407: . : '\(.\)' 2>/dev/null ||
15408: echo X"$ac_file" |
15409: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15410: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15411: /^X\(\/\/\)$/{ s//\1/; q; }
15412: /^X\(\/\).*/{ s//\1/; q; }
15413: s/.*/./; q'`
1.16 millert 15414: { if $as_mkdir_p; then
15415: mkdir -p "$ac_dir"
15416: else
15417: as_dir="$ac_dir"
15418: as_dirs=
15419: while test ! -d "$as_dir"; do
15420: as_dirs="$as_dir $as_dirs"
15421: as_dir=`(dirname "$as_dir") 2>/dev/null ||
15422: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15423: X"$as_dir" : 'X\(//\)[^/]' \| \
15424: X"$as_dir" : 'X\(//\)$' \| \
15425: X"$as_dir" : 'X\(/\)' \| \
15426: . : '\(.\)' 2>/dev/null ||
15427: echo X"$as_dir" |
15428: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15429: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15430: /^X\(\/\/\)$/{ s//\1/; q; }
15431: /^X\(\/\).*/{ s//\1/; q; }
15432: s/.*/./; q'`
15433: done
15434: test ! -n "$as_dirs" || mkdir $as_dirs
15435: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15436: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15437: { (exit 1); exit 1; }; }; }
1.9 millert 15438:
15439: rm -f $ac_file
15440: mv $tmp/config.h $ac_file
1.1 millert 15441: fi
1.9 millert 15442: else
15443: cat $tmp/config.h
15444: rm -f $tmp/config.h
1.1 millert 15445: fi
1.9 millert 15446: done
1.16 millert 15447: _ACEOF
1.1 millert 15448:
1.16 millert 15449: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 millert 15450:
1.9 millert 15451: { (exit 0); exit 0; }
1.16 millert 15452: _ACEOF
1.1 millert 15453: chmod +x $CONFIG_STATUS
1.9 millert 15454: ac_clean_files=$ac_clean_files_save
1.1 millert 15455:
1.16 millert 15456:
1.9 millert 15457: # configure is writing to config.log, and then calls config.status.
15458: # config.status does its own redirection, appending to config.log.
15459: # Unfortunately, on DOS this fails, as config.log is still kept open
15460: # by configure, so config.status won't be able to write to it; its
15461: # output is simply discarded. So we exec the FD to /dev/null,
15462: # effectively closing config.log, so it can be properly (re)opened and
15463: # appended to by config.status. When coming back to configure, we
15464: # need to make the FD available again.
15465: if test "$no_create" != yes; then
15466: ac_cs_success=:
1.16 millert 15467: ac_config_status_args=
15468: test "$silent" = yes &&
15469: ac_config_status_args="$ac_config_status_args --quiet"
1.9 millert 15470: exec 5>/dev/null
1.16 millert 15471: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.9 millert 15472: exec 5>>config.log
15473: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15474: # would make configure fail if this is the last instruction.
15475: $ac_cs_success || { (exit 1); exit 1; }
15476: fi
1.1 millert 15477:
1.16 millert 15478:
1.1 millert 15479: if test "$with_pam" = "yes"; then
15480: case $host in
15481: *-*-linux*)
1.17 millert 15482: { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
15483: echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
1.1 millert 15484: ;;
15485: esac
15486: fi
1.16 millert 15487:
15488:
15489:
15490:
15491:
15492:
15493:
15494:
15495:
15496:
15497:
15498:
15499:
15500:
1.9 millert 15501: