Annotation of src/usr.bin/sudo/configure, Revision 1.18
1.1 millert 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.18 ! millert 3: # Generated by GNU Autoconf 2.57 for sudo 1.6.7p2.
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.18 ! millert 269: PACKAGE_VERSION='1.6.7p2'
! 270: PACKAGE_STRING='sudo 1.6.7p2'
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.18 ! millert 779: \`configure' configures sudo 1.6.7p2 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.18 ! millert 840: short | recursive ) echo "Configuration of sudo 1.6.7p2:";;
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"
929: --with-secure-path override the user's path with a builtin one
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.18 ! millert 1007: sudo configure 1.6.7p2
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.18 ! millert 1022: It was created by sudo $as_me 1.6.7p2, 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.18 ! millert 1360: { echo "$as_me:$LINENO: Configuring Sudo version 1.6.7p2" >&5
! 1361: echo "$as_me: Configuring Sudo version 1.6.7p2" >&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.9 millert 6722: *-*-nextstep*)
6723: # lockf() on is broken on the NeXT -- use flock instead
6724: ac_cv_func_lockf=no
6725: ac_cv_func_flock=yes
6726: ;;
1.17 millert 6727: *-*-*sysv4*)
6728: test -n "$mansectsu" || mansectsu=1m
6729: test -n "$mansectform" || mansectform=4
6730: test -n "$with_rpath" || with_rpath=yes
6731: ;;
1.6 millert 6732: *-*-sysv*)
1.9 millert 6733: test -n "$mansectsu" || mansectsu=1m
6734: test -n "$mansectform" || mansectform=4
1.6 millert 6735: ;;
1.1 millert 6736: esac
6737:
1.6 millert 6738: test -n "$mansectsu" || mansectsu=8
6739: test -n "$mansectform" || mansectform=5
6740:
1.17 millert 6741: if test -n "$with_libpath"; then
6742: for i in ${with_libpath}; do
6743:
6744: if test X"$with_rpath" = X"yes"; then
6745: LDFLAGS="${LDFLAGS} -L$i -R$i"
6746: else
6747: LDFLAGS="${LDFLAGS} -L$i"
6748: fi
6749: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
6750: blibpath_add="${blibpath_add}:$i"
6751: fi
6752:
6753: done
6754: fi
6755: if test -n "$with_libraries"; then
6756: for i in ${with_libraries}; do
6757: case $i in
6758: -l*) ;;
6759: *.a) ;;
6760: *.o) ;;
6761: *) i="-l${i}";;
6762: esac
6763: LIBS="${LIBS} ${i}"
6764: done
6765: fi
6766:
1.1 millert 6767: if test "$CHECKSHADOW" = "true"; then
1.9 millert 6768:
6769: for ac_func in getspnam
6770: do
6771: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 6772: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 6773: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6774: if eval "test \"\${$as_ac_var+set}\" = set"; then
6775: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6776: else
1.9 millert 6777: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 6778: #line $LINENO "configure"
6779: /* confdefs.h. */
6780: _ACEOF
6781: cat confdefs.h >>conftest.$ac_ext
6782: cat >>conftest.$ac_ext <<_ACEOF
6783: /* end confdefs.h. */
1.1 millert 6784: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 6785: which can conflict with char $ac_func (); below.
6786: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6787: <limits.h> exists even on freestanding compilers. */
6788: #ifdef __STDC__
6789: # include <limits.h>
6790: #else
6791: # include <assert.h>
6792: #endif
1.1 millert 6793: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 6794: #ifdef __cplusplus
6795: extern "C"
1.16 millert 6796: {
1.9 millert 6797: #endif
1.1 millert 6798: /* We use char because int might match the return type of a gcc2
1.9 millert 6799: builtin and then its argument prototype would still apply. */
6800: char $ac_func ();
1.1 millert 6801: /* The GNU C library defines this for functions which it implements
6802: to always fail with ENOSYS. Some functions are actually named
6803: something starting with __ and the normal name is an alias. */
1.9 millert 6804: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 6805: choke me
6806: #else
1.16 millert 6807: char (*f) () = $ac_func;
6808: #endif
6809: #ifdef __cplusplus
6810: }
1.1 millert 6811: #endif
6812:
1.16 millert 6813: int
6814: main ()
6815: {
6816: return f != $ac_func;
1.9 millert 6817: ;
6818: return 0;
6819: }
6820: _ACEOF
6821: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 6822: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 6823: (eval $ac_link) 2>&5
6824: ac_status=$?
1.16 millert 6825: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6826: (exit $ac_status); } &&
6827: { ac_try='test -s conftest$ac_exeext'
1.16 millert 6828: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 6829: (eval $ac_try) 2>&5
6830: ac_status=$?
1.16 millert 6831: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6832: (exit $ac_status); }; }; then
6833: eval "$as_ac_var=yes"
6834: else
6835: echo "$as_me: failed program was:" >&5
1.16 millert 6836: sed 's/^/| /' conftest.$ac_ext >&5
6837:
1.9 millert 6838: eval "$as_ac_var=no"
6839: fi
6840: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6841: fi
1.16 millert 6842: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 6843: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6844: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 6845: cat >>confdefs.h <<_ACEOF
1.9 millert 6846: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 6847: _ACEOF
1.9 millert 6848: CHECKSHADOW="false"
1.1 millert 6849: else
1.16 millert 6850: echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
1.9 millert 6851: echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
6852: if test "${ac_cv_lib_gen_getspnam+set}" = set; then
6853: echo $ECHO_N "(cached) $ECHO_C" >&6
6854: else
6855: ac_check_lib_save_LIBS=$LIBS
6856: LIBS="-lgen $LIBS"
6857: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 6858: #line $LINENO "configure"
6859: /* confdefs.h. */
6860: _ACEOF
6861: cat confdefs.h >>conftest.$ac_ext
6862: cat >>conftest.$ac_ext <<_ACEOF
6863: /* end confdefs.h. */
1.9 millert 6864:
6865: /* Override any gcc2 internal prototype to avoid an error. */
6866: #ifdef __cplusplus
6867: extern "C"
6868: #endif
6869: /* We use char because int might match the return type of a gcc2
6870: builtin and then its argument prototype would still apply. */
6871: char getspnam ();
6872: int
6873: main ()
6874: {
6875: getspnam ();
6876: ;
6877: return 0;
6878: }
6879: _ACEOF
6880: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 6881: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 6882: (eval $ac_link) 2>&5
6883: ac_status=$?
1.16 millert 6884: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6885: (exit $ac_status); } &&
6886: { ac_try='test -s conftest$ac_exeext'
1.16 millert 6887: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 6888: (eval $ac_try) 2>&5
6889: ac_status=$?
1.16 millert 6890: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6891: (exit $ac_status); }; }; then
6892: ac_cv_lib_gen_getspnam=yes
6893: else
6894: echo "$as_me: failed program was:" >&5
1.16 millert 6895: sed 's/^/| /' conftest.$ac_ext >&5
6896:
1.9 millert 6897: ac_cv_lib_gen_getspnam=no
6898: fi
6899: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6900: LIBS=$ac_check_lib_save_LIBS
6901: fi
1.16 millert 6902: echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
1.9 millert 6903: echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
6904: if test $ac_cv_lib_gen_getspnam = yes; then
1.1 millert 6905:
1.16 millert 6906: cat >>confdefs.h <<\_ACEOF
1.1 millert 6907: #define HAVE_GETSPNAM 1
1.16 millert 6908: _ACEOF
1.9 millert 6909: SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
6910: fi
6911:
1.1 millert 6912: fi
1.9 millert 6913: done
1.1 millert 6914:
6915: fi
6916: if test "$CHECKSHADOW" = "true"; then
1.16 millert 6917: echo "$as_me:$LINENO: checking for getprpwnam" >&5
1.9 millert 6918: echo $ECHO_N "checking for getprpwnam... $ECHO_C" >&6
6919: if test "${ac_cv_func_getprpwnam+set}" = set; then
6920: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6921: else
1.9 millert 6922: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 6923: #line $LINENO "configure"
6924: /* confdefs.h. */
6925: _ACEOF
6926: cat confdefs.h >>conftest.$ac_ext
6927: cat >>conftest.$ac_ext <<_ACEOF
6928: /* end confdefs.h. */
1.1 millert 6929: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 6930: which can conflict with char getprpwnam (); below.
6931: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6932: <limits.h> exists even on freestanding compilers. */
6933: #ifdef __STDC__
6934: # include <limits.h>
6935: #else
6936: # include <assert.h>
6937: #endif
1.1 millert 6938: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 6939: #ifdef __cplusplus
6940: extern "C"
1.16 millert 6941: {
1.9 millert 6942: #endif
1.1 millert 6943: /* We use char because int might match the return type of a gcc2
1.9 millert 6944: builtin and then its argument prototype would still apply. */
6945: char getprpwnam ();
1.1 millert 6946: /* The GNU C library defines this for functions which it implements
6947: to always fail with ENOSYS. Some functions are actually named
6948: something starting with __ and the normal name is an alias. */
6949: #if defined (__stub_getprpwnam) || defined (__stub___getprpwnam)
6950: choke me
6951: #else
1.16 millert 6952: char (*f) () = getprpwnam;
6953: #endif
6954: #ifdef __cplusplus
6955: }
1.1 millert 6956: #endif
6957:
1.16 millert 6958: int
6959: main ()
6960: {
6961: return f != getprpwnam;
1.9 millert 6962: ;
6963: return 0;
6964: }
6965: _ACEOF
6966: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 6967: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 6968: (eval $ac_link) 2>&5
6969: ac_status=$?
1.16 millert 6970: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6971: (exit $ac_status); } &&
6972: { ac_try='test -s conftest$ac_exeext'
1.16 millert 6973: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 6974: (eval $ac_try) 2>&5
6975: ac_status=$?
1.16 millert 6976: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 6977: (exit $ac_status); }; }; then
6978: ac_cv_func_getprpwnam=yes
6979: else
6980: echo "$as_me: failed program was:" >&5
1.16 millert 6981: sed 's/^/| /' conftest.$ac_ext >&5
6982:
1.9 millert 6983: ac_cv_func_getprpwnam=no
6984: fi
6985: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6986: fi
1.16 millert 6987: echo "$as_me:$LINENO: result: $ac_cv_func_getprpwnam" >&5
1.9 millert 6988: echo "${ECHO_T}$ac_cv_func_getprpwnam" >&6
6989: if test $ac_cv_func_getprpwnam = yes; then
1.16 millert 6990: cat >>confdefs.h <<\_ACEOF
1.1 millert 6991: #define HAVE_GETPRPWNAM 1
1.16 millert 6992: _ACEOF
6993: CHECKSHADOW="false"; SECUREWARE=1, echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
1.9 millert 6994: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
6995: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
6996: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6997: else
1.9 millert 6998: ac_check_lib_save_LIBS=$LIBS
1.1 millert 6999: LIBS="-lsec $LIBS"
1.9 millert 7000: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7001: #line $LINENO "configure"
7002: /* confdefs.h. */
7003: _ACEOF
7004: cat confdefs.h >>conftest.$ac_ext
7005: cat >>conftest.$ac_ext <<_ACEOF
7006: /* end confdefs.h. */
1.9 millert 7007:
1.1 millert 7008: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 7009: #ifdef __cplusplus
7010: extern "C"
7011: #endif
1.1 millert 7012: /* We use char because int might match the return type of a gcc2
1.9 millert 7013: builtin and then its argument prototype would still apply. */
7014: char getprpwnam ();
7015: int
7016: main ()
7017: {
7018: getprpwnam ();
7019: ;
7020: return 0;
7021: }
7022: _ACEOF
7023: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 7024: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 7025: (eval $ac_link) 2>&5
7026: ac_status=$?
1.16 millert 7027: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7028: (exit $ac_status); } &&
7029: { ac_try='test -s conftest$ac_exeext'
1.16 millert 7030: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 7031: (eval $ac_try) 2>&5
7032: ac_status=$?
1.16 millert 7033: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7034: (exit $ac_status); }; }; then
7035: ac_cv_lib_sec_getprpwnam=yes
7036: else
7037: echo "$as_me: failed program was:" >&5
1.16 millert 7038: sed 's/^/| /' conftest.$ac_ext >&5
7039:
1.9 millert 7040: ac_cv_lib_sec_getprpwnam=no
7041: fi
7042: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7043: LIBS=$ac_check_lib_save_LIBS
7044: fi
1.16 millert 7045: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
1.9 millert 7046: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
7047: if test $ac_cv_lib_sec_getprpwnam = yes; then
1.16 millert 7048: cat >>confdefs.h <<\_ACEOF
1.1 millert 7049: #define HAVE_GETPRPWNAM 1
1.16 millert 7050: _ACEOF
1.1 millert 7051: CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
7052: else
1.16 millert 7053: echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
1.9 millert 7054: echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
7055: if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
7056: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7057: else
1.9 millert 7058: ac_check_lib_save_LIBS=$LIBS
1.1 millert 7059: LIBS="-lsecurity $LIBS"
1.9 millert 7060: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7061: #line $LINENO "configure"
7062: /* confdefs.h. */
7063: _ACEOF
7064: cat confdefs.h >>conftest.$ac_ext
7065: cat >>conftest.$ac_ext <<_ACEOF
7066: /* end confdefs.h. */
1.9 millert 7067:
1.1 millert 7068: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 7069: #ifdef __cplusplus
7070: extern "C"
7071: #endif
1.1 millert 7072: /* We use char because int might match the return type of a gcc2
1.9 millert 7073: builtin and then its argument prototype would still apply. */
7074: char getprpwnam ();
7075: int
7076: main ()
7077: {
7078: getprpwnam ();
7079: ;
7080: return 0;
7081: }
7082: _ACEOF
7083: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 7084: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 7085: (eval $ac_link) 2>&5
7086: ac_status=$?
1.16 millert 7087: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7088: (exit $ac_status); } &&
7089: { ac_try='test -s conftest$ac_exeext'
1.16 millert 7090: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 7091: (eval $ac_try) 2>&5
7092: ac_status=$?
1.16 millert 7093: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7094: (exit $ac_status); }; }; then
7095: ac_cv_lib_security_getprpwnam=yes
7096: else
7097: echo "$as_me: failed program was:" >&5
1.16 millert 7098: sed 's/^/| /' conftest.$ac_ext >&5
7099:
1.9 millert 7100: ac_cv_lib_security_getprpwnam=no
7101: fi
7102: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7103: LIBS=$ac_check_lib_save_LIBS
7104: fi
1.16 millert 7105: echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
1.9 millert 7106: echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
7107: if test $ac_cv_lib_security_getprpwnam = yes; then
1.16 millert 7108: cat >>confdefs.h <<\_ACEOF
1.1 millert 7109: #define HAVE_GETPRPWNAM 1
1.16 millert 7110: _ACEOF
1.1 millert 7111: CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"
7112: else
1.16 millert 7113: echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
1.9 millert 7114: echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
7115: if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
7116: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7117: else
1.9 millert 7118: ac_check_lib_save_LIBS=$LIBS
1.1 millert 7119: LIBS="-lprot $LIBS"
1.9 millert 7120: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7121: #line $LINENO "configure"
7122: /* confdefs.h. */
7123: _ACEOF
7124: cat confdefs.h >>conftest.$ac_ext
7125: cat >>conftest.$ac_ext <<_ACEOF
7126: /* end confdefs.h. */
1.9 millert 7127:
1.1 millert 7128: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 7129: #ifdef __cplusplus
7130: extern "C"
7131: #endif
1.1 millert 7132: /* We use char because int might match the return type of a gcc2
1.9 millert 7133: builtin and then its argument prototype would still apply. */
7134: char getprpwnam ();
7135: int
7136: main ()
7137: {
7138: getprpwnam ();
7139: ;
7140: return 0;
7141: }
7142: _ACEOF
7143: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 7144: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 7145: (eval $ac_link) 2>&5
7146: ac_status=$?
1.16 millert 7147: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7148: (exit $ac_status); } &&
7149: { ac_try='test -s conftest$ac_exeext'
1.16 millert 7150: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 7151: (eval $ac_try) 2>&5
7152: ac_status=$?
1.16 millert 7153: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7154: (exit $ac_status); }; }; then
7155: ac_cv_lib_prot_getprpwnam=yes
7156: else
7157: echo "$as_me: failed program was:" >&5
1.16 millert 7158: sed 's/^/| /' conftest.$ac_ext >&5
7159:
1.9 millert 7160: ac_cv_lib_prot_getprpwnam=no
7161: fi
7162: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7163: LIBS=$ac_check_lib_save_LIBS
7164: fi
1.16 millert 7165: echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
1.9 millert 7166: echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
7167: if test $ac_cv_lib_prot_getprpwnam = yes; then
1.16 millert 7168: cat >>confdefs.h <<\_ACEOF
1.1 millert 7169: #define HAVE_GETPRPWNAM 1
1.16 millert 7170: _ACEOF
1.1 millert 7171: CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"
7172: fi
7173:
7174: fi
7175:
7176: fi
7177:
7178: fi
7179:
7180: fi
7181:
1.16 millert 7182:
7183: echo "$as_me:$LINENO: checking for egrep" >&5
7184: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7185: if test "${ac_cv_prog_egrep+set}" = set; then
7186: echo $ECHO_N "(cached) $ECHO_C" >&6
7187: else
7188: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7189: then ac_cv_prog_egrep='grep -E'
7190: else ac_cv_prog_egrep='egrep'
7191: fi
7192: fi
7193: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7194: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7195: EGREP=$ac_cv_prog_egrep
7196:
7197:
1.9 millert 7198: if test $ac_cv_c_compiler_gnu = yes; then
1.16 millert 7199: echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
1.9 millert 7200: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
7201: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
7202: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7203: else
7204: ac_pattern="Autoconf.*'x'"
1.9 millert 7205: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7206: #line $LINENO "configure"
7207: /* confdefs.h. */
7208: _ACEOF
7209: cat confdefs.h >>conftest.$ac_ext
7210: cat >>conftest.$ac_ext <<_ACEOF
7211: /* end confdefs.h. */
1.1 millert 7212: #include <sgtty.h>
7213: Autoconf TIOCGETP
1.9 millert 7214: _ACEOF
1.1 millert 7215: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 7216: $EGREP "$ac_pattern" >/dev/null 2>&1; then
1.1 millert 7217: ac_cv_prog_gcc_traditional=yes
7218: else
7219: ac_cv_prog_gcc_traditional=no
7220: fi
7221: rm -f conftest*
7222:
1.16 millert 7223:
1.1 millert 7224: if test $ac_cv_prog_gcc_traditional = no; then
1.9 millert 7225: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7226: #line $LINENO "configure"
7227: /* confdefs.h. */
7228: _ACEOF
7229: cat confdefs.h >>conftest.$ac_ext
7230: cat >>conftest.$ac_ext <<_ACEOF
7231: /* end confdefs.h. */
1.1 millert 7232: #include <termio.h>
7233: Autoconf TCGETA
1.9 millert 7234: _ACEOF
1.1 millert 7235: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 7236: $EGREP "$ac_pattern" >/dev/null 2>&1; then
1.1 millert 7237: ac_cv_prog_gcc_traditional=yes
7238: fi
7239: rm -f conftest*
7240:
7241: fi
7242: fi
1.16 millert 7243: echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
1.9 millert 7244: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
1.1 millert 7245: if test $ac_cv_prog_gcc_traditional = yes; then
7246: CC="$CC -traditional"
7247: fi
7248: fi
7249:
1.16 millert 7250: echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
1.9 millert 7251: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7252: if test "${ac_cv_c_const+set}" = set; then
7253: echo $ECHO_N "(cached) $ECHO_C" >&6
7254: else
7255: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7256: #line $LINENO "configure"
7257: /* confdefs.h. */
7258: _ACEOF
7259: cat confdefs.h >>conftest.$ac_ext
7260: cat >>conftest.$ac_ext <<_ACEOF
7261: /* end confdefs.h. */
1.9 millert 7262:
7263: int
7264: main ()
7265: {
7266: /* FIXME: Include the comments suggested by Paul. */
7267: #ifndef __cplusplus
7268: /* Ultrix mips cc rejects this. */
7269: typedef int charset[2];
7270: const charset x;
7271: /* SunOS 4.1.1 cc rejects this. */
7272: char const *const *ccp;
7273: char **p;
7274: /* NEC SVR4.0.2 mips cc rejects this. */
7275: struct point {int x, y;};
7276: static struct point const zero = {0,0};
7277: /* AIX XL C 1.02.0.0 rejects this.
7278: It does not let you subtract one const X* pointer from another in
7279: an arm of an if-expression whose if-part is not a constant
7280: expression */
7281: const char *g = "string";
7282: ccp = &g + (g ? g-g : 0);
7283: /* HPUX 7.0 cc rejects these. */
7284: ++ccp;
7285: p = (char**) ccp;
7286: ccp = (char const *const *) p;
7287: { /* SCO 3.2v4 cc rejects this. */
7288: char *t;
7289: char const *s = 0 ? (char *) 0 : (char const *) 0;
7290:
7291: *t++ = 0;
7292: }
7293: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7294: int x[] = {25, 17};
7295: const int *foo = &x[0];
7296: ++foo;
7297: }
7298: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7299: typedef const int *iptr;
7300: iptr p = 0;
7301: ++p;
7302: }
7303: { /* AIX XL C 1.02.0.0 rejects this saying
7304: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7305: struct s { int j; const int *ap[3]; };
7306: struct s *b; b->j = 5;
7307: }
7308: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7309: const int foo = 10;
7310: }
7311: #endif
7312:
7313: ;
7314: return 0;
1.1 millert 7315: }
1.9 millert 7316: _ACEOF
7317: rm -f conftest.$ac_objext
1.16 millert 7318: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 7319: (eval $ac_compile) 2>&5
7320: ac_status=$?
1.16 millert 7321: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7322: (exit $ac_status); } &&
7323: { ac_try='test -s conftest.$ac_objext'
1.16 millert 7324: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 7325: (eval $ac_try) 2>&5
7326: ac_status=$?
1.16 millert 7327: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7328: (exit $ac_status); }; }; then
1.1 millert 7329: ac_cv_c_const=yes
7330: else
1.9 millert 7331: echo "$as_me: failed program was:" >&5
1.16 millert 7332: sed 's/^/| /' conftest.$ac_ext >&5
7333:
1.9 millert 7334: ac_cv_c_const=no
7335: fi
7336: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 7337: fi
1.16 millert 7338: echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
1.9 millert 7339: echo "${ECHO_T}$ac_cv_c_const" >&6
7340: if test $ac_cv_c_const = no; then
7341:
1.16 millert 7342: cat >>confdefs.h <<\_ACEOF
1.9 millert 7343: #define const
1.16 millert 7344: _ACEOF
1.9 millert 7345:
1.1 millert 7346: fi
7347:
1.16 millert 7348: echo "$as_me:$LINENO: checking for working volatile" >&5
1.9 millert 7349: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7350: if test "${ac_cv_c_volatile+set}" = set; then
7351: echo $ECHO_N "(cached) $ECHO_C" >&6
7352: else
7353: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7354: #line $LINENO "configure"
7355: /* confdefs.h. */
7356: _ACEOF
7357: cat confdefs.h >>conftest.$ac_ext
7358: cat >>conftest.$ac_ext <<_ACEOF
7359: /* end confdefs.h. */
1.9 millert 7360:
7361: int
7362: main ()
7363: {
7364:
7365: volatile int x;
7366: int * volatile y;
7367: ;
7368: return 0;
7369: }
7370: _ACEOF
7371: rm -f conftest.$ac_objext
1.16 millert 7372: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 7373: (eval $ac_compile) 2>&5
7374: ac_status=$?
1.16 millert 7375: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7376: (exit $ac_status); } &&
7377: { ac_try='test -s conftest.$ac_objext'
1.16 millert 7378: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 7379: (eval $ac_try) 2>&5
7380: ac_status=$?
1.16 millert 7381: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7382: (exit $ac_status); }; }; then
7383: ac_cv_c_volatile=yes
7384: else
7385: echo "$as_me: failed program was:" >&5
1.16 millert 7386: sed 's/^/| /' conftest.$ac_ext >&5
7387:
1.9 millert 7388: ac_cv_c_volatile=no
7389: fi
7390: rm -f conftest.$ac_objext conftest.$ac_ext
7391: fi
1.16 millert 7392: echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
1.9 millert 7393: echo "${ECHO_T}$ac_cv_c_volatile" >&6
7394: if test $ac_cv_c_volatile = no; then
7395:
1.16 millert 7396: cat >>confdefs.h <<\_ACEOF
1.9 millert 7397: #define volatile
1.16 millert 7398: _ACEOF
1.1 millert 7399:
7400: fi
7401:
7402: for ac_prog in 'bison -y' byacc
7403: do
1.9 millert 7404: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.1 millert 7405: set dummy $ac_prog; ac_word=$2
1.16 millert 7406: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 7407: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7408: if test "${ac_cv_prog_YACC+set}" = set; then
7409: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7410: else
7411: if test -n "$YACC"; then
7412: ac_cv_prog_YACC="$YACC" # Let the user override the test.
7413: else
1.16 millert 7414: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415: for as_dir in $PATH
7416: do
7417: IFS=$as_save_IFS
7418: test -z "$as_dir" && as_dir=.
7419: for ac_exec_ext in '' $ac_executable_extensions; do
7420: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7421: ac_cv_prog_YACC="$ac_prog"
7422: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7423: break 2
7424: fi
7425: done
1.9 millert 7426: done
7427:
1.1 millert 7428: fi
7429: fi
1.9 millert 7430: YACC=$ac_cv_prog_YACC
1.1 millert 7431: if test -n "$YACC"; then
1.16 millert 7432: echo "$as_me:$LINENO: result: $YACC" >&5
1.9 millert 7433: echo "${ECHO_T}$YACC" >&6
1.1 millert 7434: else
1.16 millert 7435: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 7436: echo "${ECHO_T}no" >&6
1.1 millert 7437: fi
7438:
1.9 millert 7439: test -n "$YACC" && break
1.1 millert 7440: done
7441: test -n "$YACC" || YACC="yacc"
7442:
1.16 millert 7443: echo "$as_me:$LINENO: checking for mv" >&5
1.9 millert 7444: echo $ECHO_N "checking for mv... $ECHO_C" >&6
1.1 millert 7445: if test -f "/usr/bin/mv"; then
1.16 millert 7446: echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
1.9 millert 7447: echo "${ECHO_T}/usr/bin/mv" >&6
7448: cat >>confdefs.h <<\EOF
1.1 millert 7449: #define _PATH_MV "/usr/bin/mv"
7450: EOF
7451:
7452: elif test -f "/bin/mv"; then
1.16 millert 7453: echo "$as_me:$LINENO: result: /bin/mv" >&5
1.9 millert 7454: echo "${ECHO_T}/bin/mv" >&6
7455: cat >>confdefs.h <<\EOF
1.1 millert 7456: #define _PATH_MV "/bin/mv"
7457: EOF
7458:
7459: elif test -f "/usr/ucb/mv"; then
1.16 millert 7460: echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
1.9 millert 7461: echo "${ECHO_T}/usr/ucb/mv" >&6
7462: cat >>confdefs.h <<\EOF
1.1 millert 7463: #define _PATH_MV "/usr/ucb/mv"
7464: EOF
7465:
7466: elif test -f "/usr/sbin/mv"; then
1.16 millert 7467: echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
1.9 millert 7468: echo "${ECHO_T}/usr/sbin/mv" >&6
7469: cat >>confdefs.h <<\EOF
1.1 millert 7470: #define _PATH_MV "/usr/sbin/mv"
7471: EOF
7472:
7473: else
1.16 millert 7474: echo "$as_me:$LINENO: result: not found" >&5
1.9 millert 7475: echo "${ECHO_T}not found" >&6
1.1 millert 7476: fi
7477:
1.16 millert 7478: echo "$as_me:$LINENO: checking for bourne shell" >&5
1.9 millert 7479: echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6
1.1 millert 7480: if test -f "/bin/sh"; then
1.16 millert 7481: echo "$as_me:$LINENO: result: /bin/sh" >&5
1.9 millert 7482: echo "${ECHO_T}/bin/sh" >&6
7483: cat >>confdefs.h <<\EOF
1.1 millert 7484: #define _PATH_BSHELL "/bin/sh"
7485: EOF
7486:
7487: elif test -f "/usr/bin/sh"; then
1.16 millert 7488: echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
1.9 millert 7489: echo "${ECHO_T}/usr/bin/sh" >&6
7490: cat >>confdefs.h <<\EOF
1.1 millert 7491: #define _PATH_BSHELL "/usr/bin/sh"
7492: EOF
7493:
7494: elif test -f "/sbin/sh"; then
1.16 millert 7495: echo "$as_me:$LINENO: result: /sbin/sh" >&5
1.9 millert 7496: echo "${ECHO_T}/sbin/sh" >&6
7497: cat >>confdefs.h <<\EOF
1.1 millert 7498: #define _PATH_BSHELL "/sbin/sh"
7499: EOF
7500:
7501: elif test -f "/usr/sbin/sh"; then
1.16 millert 7502: echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
1.9 millert 7503: echo "${ECHO_T}/usr/sbin/sh" >&6
7504: cat >>confdefs.h <<\EOF
1.1 millert 7505: #define _PATH_BSHELL "/usr/sbin/sh"
7506: EOF
7507:
7508: elif test -f "/bin/ksh"; then
1.16 millert 7509: echo "$as_me:$LINENO: result: /bin/ksh" >&5
1.9 millert 7510: echo "${ECHO_T}/bin/ksh" >&6
7511: cat >>confdefs.h <<\EOF
1.1 millert 7512: #define _PATH_BSHELL "/bin/ksh"
7513: EOF
7514:
7515: elif test -f "/usr/bin/ksh"; then
1.16 millert 7516: echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
1.9 millert 7517: echo "${ECHO_T}/usr/bin/ksh" >&6
7518: cat >>confdefs.h <<\EOF
1.1 millert 7519: #define _PATH_BSHELL "/usr/bin/ksh"
7520: EOF
7521:
7522: elif test -f "/bin/bash"; then
1.16 millert 7523: echo "$as_me:$LINENO: result: /bin/bash" >&5
1.9 millert 7524: echo "${ECHO_T}/bin/bash" >&6
7525: cat >>confdefs.h <<\EOF
1.1 millert 7526: #define _PATH_BSHELL "/bin/bash"
7527: EOF
7528:
7529: elif test -f "/usr/bin/bash"; then
1.16 millert 7530: echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
1.9 millert 7531: echo "${ECHO_T}/usr/bin/bash" >&6
7532: cat >>confdefs.h <<\EOF
1.1 millert 7533: #define _PATH_BSHELL "/usr/bin/bash"
7534: EOF
7535:
7536: else
1.16 millert 7537: echo "$as_me:$LINENO: result: not found" >&5
1.9 millert 7538: echo "${ECHO_T}not found" >&6
7539: fi
7540:
7541: if test -z "$with_sendmail"; then
1.16 millert 7542: echo "$as_me:$LINENO: checking for sendmail" >&5
1.9 millert 7543: echo $ECHO_N "checking for sendmail... $ECHO_C" >&6
7544: if test -f "/usr/sbin/sendmail"; then
1.16 millert 7545: echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
1.9 millert 7546: echo "${ECHO_T}/usr/sbin/sendmail" >&6
7547: cat >>confdefs.h <<\EOF
7548: #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
7549: EOF
7550:
7551: elif test -f "/usr/lib/sendmail"; then
1.16 millert 7552: echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
1.9 millert 7553: echo "${ECHO_T}/usr/lib/sendmail" >&6
7554: cat >>confdefs.h <<\EOF
7555: #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
7556: EOF
7557:
7558: elif test -f "/usr/etc/sendmail"; then
1.16 millert 7559: echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
1.9 millert 7560: echo "${ECHO_T}/usr/etc/sendmail" >&6
7561: cat >>confdefs.h <<\EOF
7562: #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
7563: EOF
7564:
7565: elif test -f "/usr/ucblib/sendmail"; then
1.16 millert 7566: echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
1.9 millert 7567: echo "${ECHO_T}/usr/ucblib/sendmail" >&6
7568: cat >>confdefs.h <<\EOF
7569: #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
7570: EOF
7571:
7572: elif test -f "/usr/local/lib/sendmail"; then
1.16 millert 7573: echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
1.9 millert 7574: echo "${ECHO_T}/usr/local/lib/sendmail" >&6
7575: cat >>confdefs.h <<\EOF
7576: #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
7577: EOF
7578:
7579: elif test -f "/usr/local/bin/sendmail"; then
1.16 millert 7580: echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
1.9 millert 7581: echo "${ECHO_T}/usr/local/bin/sendmail" >&6
7582: cat >>confdefs.h <<\EOF
7583: #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
7584: EOF
7585:
7586: else
1.16 millert 7587: echo "$as_me:$LINENO: result: not found" >&5
1.9 millert 7588: echo "${ECHO_T}not found" >&6
1.1 millert 7589: fi
7590:
1.9 millert 7591: fi
7592: if test -z "$with_editor"; then
1.16 millert 7593: echo "$as_me:$LINENO: checking for vi" >&5
1.9 millert 7594: echo $ECHO_N "checking for vi... $ECHO_C" >&6
1.1 millert 7595: if test -f "/usr/bin/vi"; then
1.16 millert 7596: echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
1.9 millert 7597: echo "${ECHO_T}/usr/bin/vi" >&6
7598: cat >>confdefs.h <<\EOF
1.1 millert 7599: #define _PATH_VI "/usr/bin/vi"
7600: EOF
7601:
7602: elif test -f "/usr/ucb/vi"; then
1.16 millert 7603: echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
1.9 millert 7604: echo "${ECHO_T}/usr/ucb/vi" >&6
7605: cat >>confdefs.h <<\EOF
1.1 millert 7606: #define _PATH_VI "/usr/ucb/vi"
7607: EOF
7608:
7609: elif test -f "/usr/bsd/vi"; then
1.16 millert 7610: echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
1.9 millert 7611: echo "${ECHO_T}/usr/bsd/vi" >&6
7612: cat >>confdefs.h <<\EOF
1.1 millert 7613: #define _PATH_VI "/usr/bsd/vi"
7614: EOF
7615:
7616: elif test -f "/bin/vi"; then
1.16 millert 7617: echo "$as_me:$LINENO: result: /bin/vi" >&5
1.9 millert 7618: echo "${ECHO_T}/bin/vi" >&6
7619: cat >>confdefs.h <<\EOF
1.1 millert 7620: #define _PATH_VI "/bin/vi"
7621: EOF
7622:
7623: elif test -f "/usr/local/bin/vi"; then
1.16 millert 7624: echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
1.9 millert 7625: echo "${ECHO_T}/usr/local/bin/vi" >&6
7626: cat >>confdefs.h <<\EOF
1.1 millert 7627: #define _PATH_VI "/usr/local/bin/vi"
7628: EOF
7629:
7630: else
1.16 millert 7631: echo "$as_me:$LINENO: result: not found" >&5
1.9 millert 7632: echo "${ECHO_T}not found" >&6
1.1 millert 7633: fi
7634:
1.9 millert 7635: fi
1.16 millert 7636: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1.9 millert 7637: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7638: if test "${ac_cv_header_stdc+set}" = set; then
7639: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7640: else
1.9 millert 7641: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7642: #line $LINENO "configure"
7643: /* confdefs.h. */
7644: _ACEOF
7645: cat confdefs.h >>conftest.$ac_ext
7646: cat >>conftest.$ac_ext <<_ACEOF
7647: /* end confdefs.h. */
1.1 millert 7648: #include <stdlib.h>
7649: #include <stdarg.h>
7650: #include <string.h>
7651: #include <float.h>
1.9 millert 7652:
1.16 millert 7653: int
7654: main ()
7655: {
7656:
7657: ;
7658: return 0;
7659: }
1.9 millert 7660: _ACEOF
1.16 millert 7661: rm -f conftest.$ac_objext
7662: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7663: (eval $ac_compile) 2>&5
7664: ac_status=$?
7665: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666: (exit $ac_status); } &&
7667: { ac_try='test -s conftest.$ac_objext'
7668: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669: (eval $ac_try) 2>&5
1.9 millert 7670: ac_status=$?
1.16 millert 7671: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672: (exit $ac_status); }; }; then
1.1 millert 7673: ac_cv_header_stdc=yes
7674: else
1.9 millert 7675: echo "$as_me: failed program was:" >&5
1.16 millert 7676: sed 's/^/| /' conftest.$ac_ext >&5
7677:
7678: ac_cv_header_stdc=no
1.1 millert 7679: fi
1.16 millert 7680: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 7681:
7682: if test $ac_cv_header_stdc = yes; then
7683: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.9 millert 7684: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7685: #line $LINENO "configure"
7686: /* confdefs.h. */
7687: _ACEOF
7688: cat confdefs.h >>conftest.$ac_ext
7689: cat >>conftest.$ac_ext <<_ACEOF
7690: /* end confdefs.h. */
1.1 millert 7691: #include <string.h>
1.9 millert 7692:
7693: _ACEOF
1.1 millert 7694: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 7695: $EGREP "memchr" >/dev/null 2>&1; then
1.1 millert 7696: :
7697: else
7698: ac_cv_header_stdc=no
7699: fi
7700: rm -f conftest*
7701:
7702: fi
7703:
7704: if test $ac_cv_header_stdc = yes; then
7705: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.9 millert 7706: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7707: #line $LINENO "configure"
7708: /* confdefs.h. */
7709: _ACEOF
7710: cat confdefs.h >>conftest.$ac_ext
7711: cat >>conftest.$ac_ext <<_ACEOF
7712: /* end confdefs.h. */
1.1 millert 7713: #include <stdlib.h>
1.9 millert 7714:
7715: _ACEOF
1.1 millert 7716: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 7717: $EGREP "free" >/dev/null 2>&1; then
1.1 millert 7718: :
7719: else
7720: ac_cv_header_stdc=no
7721: fi
7722: rm -f conftest*
7723:
7724: fi
7725:
7726: if test $ac_cv_header_stdc = yes; then
7727: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.9 millert 7728: if test "$cross_compiling" = yes; then
1.1 millert 7729: :
7730: else
1.9 millert 7731: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7732: #line $LINENO "configure"
7733: /* confdefs.h. */
7734: _ACEOF
7735: cat confdefs.h >>conftest.$ac_ext
7736: cat >>conftest.$ac_ext <<_ACEOF
7737: /* end confdefs.h. */
1.1 millert 7738: #include <ctype.h>
1.9 millert 7739: #if ((' ' & 0x0FF) == 0x020)
7740: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7741: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7742: #else
1.16 millert 7743: # define ISLOWER(c) \
7744: (('a' <= (c) && (c) <= 'i') \
1.9 millert 7745: || ('j' <= (c) && (c) <= 'r') \
7746: || ('s' <= (c) && (c) <= 'z'))
7747: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7748: #endif
7749:
1.1 millert 7750: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.9 millert 7751: int
7752: main ()
7753: {
7754: int i;
7755: for (i = 0; i < 256; i++)
7756: if (XOR (islower (i), ISLOWER (i))
7757: || toupper (i) != TOUPPER (i))
7758: exit(2);
7759: exit (0);
7760: }
7761: _ACEOF
7762: rm -f conftest$ac_exeext
1.16 millert 7763: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 7764: (eval $ac_link) 2>&5
7765: ac_status=$?
1.16 millert 7766: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7767: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16 millert 7768: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 7769: (eval $ac_try) 2>&5
7770: ac_status=$?
1.16 millert 7771: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7772: (exit $ac_status); }; }; then
1.1 millert 7773: :
7774: else
1.9 millert 7775: echo "$as_me: program exited with status $ac_status" >&5
7776: echo "$as_me: failed program was:" >&5
1.16 millert 7777: sed 's/^/| /' conftest.$ac_ext >&5
7778:
7779: ( exit $ac_status )
1.9 millert 7780: ac_cv_header_stdc=no
1.1 millert 7781: fi
1.16 millert 7782: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 7783: fi
7784: fi
7785: fi
1.16 millert 7786: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1.9 millert 7787: echo "${ECHO_T}$ac_cv_header_stdc" >&6
7788: if test $ac_cv_header_stdc = yes; then
1.1 millert 7789:
1.16 millert 7790: cat >>confdefs.h <<\_ACEOF
1.1 millert 7791: #define STDC_HEADERS 1
1.16 millert 7792: _ACEOF
1.1 millert 7793:
7794: fi
7795:
1.16 millert 7796:
7797:
7798:
7799:
7800:
1.1 millert 7801: ac_header_dirent=no
1.9 millert 7802: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7803: as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
1.16 millert 7804: echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
1.9 millert 7805: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7806: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7807: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7808: else
1.9 millert 7809: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7810: #line $LINENO "configure"
7811: /* confdefs.h. */
7812: _ACEOF
7813: cat confdefs.h >>conftest.$ac_ext
7814: cat >>conftest.$ac_ext <<_ACEOF
7815: /* end confdefs.h. */
1.1 millert 7816: #include <sys/types.h>
7817: #include <$ac_hdr>
1.9 millert 7818:
7819: int
7820: main ()
7821: {
7822: if ((DIR *) 0)
7823: return 0;
7824: ;
7825: return 0;
7826: }
7827: _ACEOF
7828: rm -f conftest.$ac_objext
1.16 millert 7829: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 7830: (eval $ac_compile) 2>&5
7831: ac_status=$?
1.16 millert 7832: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7833: (exit $ac_status); } &&
7834: { ac_try='test -s conftest.$ac_objext'
1.16 millert 7835: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 7836: (eval $ac_try) 2>&5
7837: ac_status=$?
1.16 millert 7838: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7839: (exit $ac_status); }; }; then
7840: eval "$as_ac_Header=yes"
7841: else
7842: echo "$as_me: failed program was:" >&5
1.16 millert 7843: sed 's/^/| /' conftest.$ac_ext >&5
7844:
1.9 millert 7845: eval "$as_ac_Header=no"
7846: fi
7847: rm -f conftest.$ac_objext conftest.$ac_ext
7848: fi
1.16 millert 7849: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9 millert 7850: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7851: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.16 millert 7852: cat >>confdefs.h <<_ACEOF
1.9 millert 7853: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
1.16 millert 7854: _ACEOF
1.9 millert 7855:
7856: ac_header_dirent=$ac_hdr; break
1.1 millert 7857: fi
1.9 millert 7858:
1.1 millert 7859: done
7860: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7861: if test $ac_header_dirent = dirent.h; then
1.16 millert 7862: echo "$as_me:$LINENO: checking for library containing opendir" >&5
7863: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7864: if test "${ac_cv_search_opendir+set}" = set; then
1.9 millert 7865: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7866: else
1.16 millert 7867: ac_func_search_save_LIBS=$LIBS
7868: ac_cv_search_opendir=no
1.9 millert 7869: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7870: #line $LINENO "configure"
7871: /* confdefs.h. */
7872: _ACEOF
7873: cat confdefs.h >>conftest.$ac_ext
7874: cat >>conftest.$ac_ext <<_ACEOF
7875: /* end confdefs.h. */
7876:
7877: /* Override any gcc2 internal prototype to avoid an error. */
7878: #ifdef __cplusplus
7879: extern "C"
7880: #endif
7881: /* We use char because int might match the return type of a gcc2
7882: builtin and then its argument prototype would still apply. */
7883: char opendir ();
7884: int
7885: main ()
7886: {
7887: opendir ();
7888: ;
7889: return 0;
7890: }
7891: _ACEOF
7892: rm -f conftest.$ac_objext conftest$ac_exeext
7893: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894: (eval $ac_link) 2>&5
7895: ac_status=$?
7896: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897: (exit $ac_status); } &&
7898: { ac_try='test -s conftest$ac_exeext'
7899: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900: (eval $ac_try) 2>&5
7901: ac_status=$?
7902: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903: (exit $ac_status); }; }; then
7904: ac_cv_search_opendir="none required"
7905: else
7906: echo "$as_me: failed program was:" >&5
7907: sed 's/^/| /' conftest.$ac_ext >&5
7908:
7909: fi
7910: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7911: if test "$ac_cv_search_opendir" = no; then
7912: for ac_lib in dir; do
7913: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7914: cat >conftest.$ac_ext <<_ACEOF
7915: #line $LINENO "configure"
7916: /* confdefs.h. */
7917: _ACEOF
7918: cat confdefs.h >>conftest.$ac_ext
7919: cat >>conftest.$ac_ext <<_ACEOF
7920: /* end confdefs.h. */
1.9 millert 7921:
1.1 millert 7922: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 7923: #ifdef __cplusplus
7924: extern "C"
7925: #endif
1.1 millert 7926: /* We use char because int might match the return type of a gcc2
1.9 millert 7927: builtin and then its argument prototype would still apply. */
7928: char opendir ();
7929: int
7930: main ()
7931: {
7932: opendir ();
7933: ;
7934: return 0;
7935: }
7936: _ACEOF
7937: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 7938: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 7939: (eval $ac_link) 2>&5
7940: ac_status=$?
1.16 millert 7941: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7942: (exit $ac_status); } &&
7943: { ac_try='test -s conftest$ac_exeext'
1.16 millert 7944: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 7945: (eval $ac_try) 2>&5
7946: ac_status=$?
1.16 millert 7947: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 7948: (exit $ac_status); }; }; then
1.16 millert 7949: ac_cv_search_opendir="-l$ac_lib"
7950: break
1.9 millert 7951: else
7952: echo "$as_me: failed program was:" >&5
1.16 millert 7953: sed 's/^/| /' conftest.$ac_ext >&5
7954:
1.9 millert 7955: fi
7956: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.16 millert 7957: done
7958: fi
7959: LIBS=$ac_func_search_save_LIBS
1.9 millert 7960: fi
1.16 millert 7961: echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7962: echo "${ECHO_T}$ac_cv_search_opendir" >&6
7963: if test "$ac_cv_search_opendir" != no; then
7964: test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7965:
1.1 millert 7966: fi
7967:
7968: else
1.16 millert 7969: echo "$as_me:$LINENO: checking for library containing opendir" >&5
7970: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7971: if test "${ac_cv_search_opendir+set}" = set; then
1.9 millert 7972: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7973: else
1.16 millert 7974: ac_func_search_save_LIBS=$LIBS
7975: ac_cv_search_opendir=no
1.9 millert 7976: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 7977: #line $LINENO "configure"
7978: /* confdefs.h. */
7979: _ACEOF
7980: cat confdefs.h >>conftest.$ac_ext
7981: cat >>conftest.$ac_ext <<_ACEOF
7982: /* end confdefs.h. */
7983:
7984: /* Override any gcc2 internal prototype to avoid an error. */
7985: #ifdef __cplusplus
7986: extern "C"
7987: #endif
7988: /* We use char because int might match the return type of a gcc2
7989: builtin and then its argument prototype would still apply. */
7990: char opendir ();
7991: int
7992: main ()
7993: {
7994: opendir ();
7995: ;
7996: return 0;
7997: }
7998: _ACEOF
7999: rm -f conftest.$ac_objext conftest$ac_exeext
8000: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8001: (eval $ac_link) 2>&5
8002: ac_status=$?
8003: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004: (exit $ac_status); } &&
8005: { ac_try='test -s conftest$ac_exeext'
8006: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007: (eval $ac_try) 2>&5
8008: ac_status=$?
8009: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010: (exit $ac_status); }; }; then
8011: ac_cv_search_opendir="none required"
8012: else
8013: echo "$as_me: failed program was:" >&5
8014: sed 's/^/| /' conftest.$ac_ext >&5
8015:
8016: fi
8017: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8018: if test "$ac_cv_search_opendir" = no; then
8019: for ac_lib in x; do
8020: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8021: cat >conftest.$ac_ext <<_ACEOF
8022: #line $LINENO "configure"
8023: /* confdefs.h. */
8024: _ACEOF
8025: cat confdefs.h >>conftest.$ac_ext
8026: cat >>conftest.$ac_ext <<_ACEOF
8027: /* end confdefs.h. */
1.9 millert 8028:
1.1 millert 8029: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 8030: #ifdef __cplusplus
8031: extern "C"
8032: #endif
1.1 millert 8033: /* We use char because int might match the return type of a gcc2
1.9 millert 8034: builtin and then its argument prototype would still apply. */
8035: char opendir ();
8036: int
8037: main ()
8038: {
8039: opendir ();
8040: ;
8041: return 0;
8042: }
8043: _ACEOF
8044: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 8045: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 8046: (eval $ac_link) 2>&5
8047: ac_status=$?
1.16 millert 8048: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 8049: (exit $ac_status); } &&
8050: { ac_try='test -s conftest$ac_exeext'
1.16 millert 8051: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 8052: (eval $ac_try) 2>&5
8053: ac_status=$?
1.16 millert 8054: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 8055: (exit $ac_status); }; }; then
1.16 millert 8056: ac_cv_search_opendir="-l$ac_lib"
8057: break
1.9 millert 8058: else
8059: echo "$as_me: failed program was:" >&5
1.16 millert 8060: sed 's/^/| /' conftest.$ac_ext >&5
8061:
1.9 millert 8062: fi
8063: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.16 millert 8064: done
8065: fi
8066: LIBS=$ac_func_search_save_LIBS
8067: fi
8068: echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8069: echo "${ECHO_T}$ac_cv_search_opendir" >&6
8070: if test "$ac_cv_search_opendir" != no; then
8071: test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8072:
8073: fi
8074:
8075: fi
8076:
8077: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8078:
8079:
8080:
8081:
8082:
8083:
8084:
8085:
8086:
8087: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8088: inttypes.h stdint.h unistd.h
8089: do
8090: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8091: echo "$as_me:$LINENO: checking for $ac_header" >&5
8092: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8093: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8094: echo $ECHO_N "(cached) $ECHO_C" >&6
8095: else
8096: cat >conftest.$ac_ext <<_ACEOF
8097: #line $LINENO "configure"
8098: /* confdefs.h. */
8099: _ACEOF
8100: cat confdefs.h >>conftest.$ac_ext
8101: cat >>conftest.$ac_ext <<_ACEOF
8102: /* end confdefs.h. */
8103: $ac_includes_default
8104:
8105: #include <$ac_header>
8106: _ACEOF
8107: rm -f conftest.$ac_objext
8108: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8109: (eval $ac_compile) 2>&5
8110: ac_status=$?
8111: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112: (exit $ac_status); } &&
8113: { ac_try='test -s conftest.$ac_objext'
8114: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115: (eval $ac_try) 2>&5
8116: ac_status=$?
8117: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118: (exit $ac_status); }; }; then
8119: eval "$as_ac_Header=yes"
8120: else
8121: echo "$as_me: failed program was:" >&5
8122: sed 's/^/| /' conftest.$ac_ext >&5
8123:
8124: eval "$as_ac_Header=no"
1.9 millert 8125: fi
1.16 millert 8126: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 8127: fi
1.16 millert 8128: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8129: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8130: if test `eval echo '${'$as_ac_Header'}'` = yes; then
8131: cat >>confdefs.h <<_ACEOF
8132: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8133: _ACEOF
1.1 millert 8134:
8135: fi
8136:
1.16 millert 8137: done
8138:
8139:
8140:
8141:
8142:
8143:
8144:
8145:
8146:
1.9 millert 8147: for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
1.1 millert 8148: do
1.9 millert 8149: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.16 millert 8150: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8151: echo "$as_me:$LINENO: checking for $ac_header" >&5
1.9 millert 8152: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8153: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8154: echo $ECHO_N "(cached) $ECHO_C" >&6
1.16 millert 8155: fi
8156: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8157: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8158: else
8159: # Is the header compilable?
8160: echo "$as_me:$LINENO: checking $ac_header usability" >&5
8161: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8162: cat >conftest.$ac_ext <<_ACEOF
8163: #line $LINENO "configure"
8164: /* confdefs.h. */
8165: _ACEOF
8166: cat confdefs.h >>conftest.$ac_ext
8167: cat >>conftest.$ac_ext <<_ACEOF
8168: /* end confdefs.h. */
8169: $ac_includes_default
8170: #include <$ac_header>
8171: _ACEOF
8172: rm -f conftest.$ac_objext
8173: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8174: (eval $ac_compile) 2>&5
8175: ac_status=$?
8176: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177: (exit $ac_status); } &&
8178: { ac_try='test -s conftest.$ac_objext'
8179: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180: (eval $ac_try) 2>&5
8181: ac_status=$?
8182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183: (exit $ac_status); }; }; then
8184: ac_header_compiler=yes
1.9 millert 8185: else
1.16 millert 8186: echo "$as_me: failed program was:" >&5
8187: sed 's/^/| /' conftest.$ac_ext >&5
8188:
8189: ac_header_compiler=no
8190: fi
8191: rm -f conftest.$ac_objext conftest.$ac_ext
8192: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8193: echo "${ECHO_T}$ac_header_compiler" >&6
8194:
8195: # Is the header present?
8196: echo "$as_me:$LINENO: checking $ac_header presence" >&5
8197: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8198: cat >conftest.$ac_ext <<_ACEOF
8199: #line $LINENO "configure"
8200: /* confdefs.h. */
8201: _ACEOF
8202: cat confdefs.h >>conftest.$ac_ext
8203: cat >>conftest.$ac_ext <<_ACEOF
8204: /* end confdefs.h. */
1.9 millert 8205: #include <$ac_header>
8206: _ACEOF
1.16 millert 8207: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 8208: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8209: ac_status=$?
1.16 millert 8210: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 8211: rm -f conftest.er1
8212: cat conftest.err >&5
1.16 millert 8213: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 8214: (exit $ac_status); } >/dev/null; then
8215: if test -s conftest.err; then
8216: ac_cpp_err=$ac_c_preproc_warn_flag
8217: else
8218: ac_cpp_err=
8219: fi
1.1 millert 8220: else
1.9 millert 8221: ac_cpp_err=yes
8222: fi
8223: if test -z "$ac_cpp_err"; then
1.16 millert 8224: ac_header_preproc=yes
1.1 millert 8225: else
1.9 millert 8226: echo "$as_me: failed program was:" >&5
1.16 millert 8227: sed 's/^/| /' conftest.$ac_ext >&5
8228:
8229: ac_header_preproc=no
1.1 millert 8230: fi
1.9 millert 8231: rm -f conftest.err conftest.$ac_ext
1.16 millert 8232: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8233: echo "${ECHO_T}$ac_header_preproc" >&6
8234:
8235: # So? What about this header?
8236: case $ac_header_compiler:$ac_header_preproc in
8237: yes:no )
8238: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8239: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8240: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8241: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8242: (
8243: cat <<\_ASBOX
8244: ## ------------------------------------ ##
8245: ## Report this to bug-autoconf@gnu.org. ##
8246: ## ------------------------------------ ##
8247: _ASBOX
8248: ) |
8249: sed "s/^/$as_me: WARNING: /" >&2
8250: ;;
8251: no:yes )
8252: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8253: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8254: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8255: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8256: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8257: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8258: (
8259: cat <<\_ASBOX
8260: ## ------------------------------------ ##
8261: ## Report this to bug-autoconf@gnu.org. ##
8262: ## ------------------------------------ ##
8263: _ASBOX
8264: ) |
8265: sed "s/^/$as_me: WARNING: /" >&2
8266: ;;
8267: esac
8268: echo "$as_me:$LINENO: checking for $ac_header" >&5
8269: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8270: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8271: echo $ECHO_N "(cached) $ECHO_C" >&6
8272: else
8273: eval "$as_ac_Header=$ac_header_preproc"
1.1 millert 8274: fi
1.16 millert 8275: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9 millert 8276: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.16 millert 8277:
8278: fi
1.9 millert 8279: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.16 millert 8280: cat >>confdefs.h <<_ACEOF
1.9 millert 8281: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.16 millert 8282: _ACEOF
1.9 millert 8283:
1.1 millert 8284: fi
1.16 millert 8285:
1.1 millert 8286: done
8287:
1.18 ! millert 8288:
! 8289: for ac_header in err.h
! 8290: do
! 8291: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 8292: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 8293: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 8294: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 8295: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 8296: echo $ECHO_N "(cached) $ECHO_C" >&6
! 8297: fi
! 8298: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 8299: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 8300: else
! 8301: # Is the header compilable?
! 8302: echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 8303: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
! 8304: cat >conftest.$ac_ext <<_ACEOF
! 8305: #line $LINENO "configure"
! 8306: /* confdefs.h. */
! 8307: _ACEOF
! 8308: cat confdefs.h >>conftest.$ac_ext
! 8309: cat >>conftest.$ac_ext <<_ACEOF
! 8310: /* end confdefs.h. */
! 8311: $ac_includes_default
! 8312: #include <$ac_header>
! 8313: _ACEOF
! 8314: rm -f conftest.$ac_objext
! 8315: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 8316: (eval $ac_compile) 2>&5
! 8317: ac_status=$?
! 8318: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8319: (exit $ac_status); } &&
! 8320: { ac_try='test -s conftest.$ac_objext'
! 8321: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 8322: (eval $ac_try) 2>&5
! 8323: ac_status=$?
! 8324: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8325: (exit $ac_status); }; }; then
! 8326: ac_header_compiler=yes
! 8327: else
! 8328: echo "$as_me: failed program was:" >&5
! 8329: sed 's/^/| /' conftest.$ac_ext >&5
! 8330:
! 8331: ac_header_compiler=no
! 8332: fi
! 8333: rm -f conftest.$ac_objext conftest.$ac_ext
! 8334: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 8335: echo "${ECHO_T}$ac_header_compiler" >&6
! 8336:
! 8337: # Is the header present?
! 8338: echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 8339: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
! 8340: cat >conftest.$ac_ext <<_ACEOF
! 8341: #line $LINENO "configure"
! 8342: /* confdefs.h. */
! 8343: _ACEOF
! 8344: cat confdefs.h >>conftest.$ac_ext
! 8345: cat >>conftest.$ac_ext <<_ACEOF
! 8346: /* end confdefs.h. */
! 8347: #include <$ac_header>
! 8348: _ACEOF
! 8349: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 8350: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 8351: ac_status=$?
! 8352: grep -v '^ *+' conftest.er1 >conftest.err
! 8353: rm -f conftest.er1
! 8354: cat conftest.err >&5
! 8355: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8356: (exit $ac_status); } >/dev/null; then
! 8357: if test -s conftest.err; then
! 8358: ac_cpp_err=$ac_c_preproc_warn_flag
! 8359: else
! 8360: ac_cpp_err=
! 8361: fi
! 8362: else
! 8363: ac_cpp_err=yes
! 8364: fi
! 8365: if test -z "$ac_cpp_err"; then
! 8366: ac_header_preproc=yes
! 8367: else
! 8368: echo "$as_me: failed program was:" >&5
! 8369: sed 's/^/| /' conftest.$ac_ext >&5
! 8370:
! 8371: ac_header_preproc=no
! 8372: fi
! 8373: rm -f conftest.err conftest.$ac_ext
! 8374: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 8375: echo "${ECHO_T}$ac_header_preproc" >&6
! 8376:
! 8377: # So? What about this header?
! 8378: case $ac_header_compiler:$ac_header_preproc in
! 8379: yes:no )
! 8380: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 8381: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 8382: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 8383: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 8384: (
! 8385: cat <<\_ASBOX
! 8386: ## ------------------------------------ ##
! 8387: ## Report this to bug-autoconf@gnu.org. ##
! 8388: ## ------------------------------------ ##
! 8389: _ASBOX
! 8390: ) |
! 8391: sed "s/^/$as_me: WARNING: /" >&2
! 8392: ;;
! 8393: no:yes )
! 8394: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 8395: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 8396: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 8397: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 8398: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 8399: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 8400: (
! 8401: cat <<\_ASBOX
! 8402: ## ------------------------------------ ##
! 8403: ## Report this to bug-autoconf@gnu.org. ##
! 8404: ## ------------------------------------ ##
! 8405: _ASBOX
! 8406: ) |
! 8407: sed "s/^/$as_me: WARNING: /" >&2
! 8408: ;;
! 8409: esac
! 8410: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 8411: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 8412: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 8413: echo $ECHO_N "(cached) $ECHO_C" >&6
! 8414: else
! 8415: eval "$as_ac_Header=$ac_header_preproc"
! 8416: fi
! 8417: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 8418: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 8419:
! 8420: fi
! 8421: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 8422: cat >>confdefs.h <<_ACEOF
! 8423: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 8424: _ACEOF
! 8425:
! 8426: else
! 8427: LIBOBJS="$LIBOBJS err.$ac_objext"
! 8428: fi
! 8429:
! 8430: done
! 8431:
1.1 millert 8432: if test "$OS" != "ultrix"; then
1.16 millert 8433: echo "$as_me:$LINENO: checking POSIX termios" >&5
1.9 millert 8434: echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
8435: if test "${ac_cv_sys_posix_termios+set}" = set; then
8436: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8437: else
1.9 millert 8438: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 8439: #line $LINENO "configure"
8440: /* confdefs.h. */
8441: _ACEOF
8442: cat confdefs.h >>conftest.$ac_ext
8443: cat >>conftest.$ac_ext <<_ACEOF
8444: /* end confdefs.h. */
1.9 millert 8445: #include <sys/types.h>
8446: #include <unistd.h>
8447: #include <termios.h>
1.16 millert 8448:
1.9 millert 8449: int
8450: main ()
8451: {
8452: /* SunOS 4.0.3 has termios.h but not the library calls. */
8453: tcgetattr(0, 0);
8454: ;
8455: return 0;
8456: }
8457: _ACEOF
8458: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 8459: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 8460: (eval $ac_link) 2>&5
8461: ac_status=$?
1.16 millert 8462: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 8463: (exit $ac_status); } &&
8464: { ac_try='test -s conftest$ac_exeext'
1.16 millert 8465: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 8466: (eval $ac_try) 2>&5
8467: ac_status=$?
1.16 millert 8468: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 8469: (exit $ac_status); }; }; then
8470: ac_cv_sys_posix_termios=yes
8471: else
8472: echo "$as_me: failed program was:" >&5
1.16 millert 8473: sed 's/^/| /' conftest.$ac_ext >&5
8474:
1.9 millert 8475: ac_cv_sys_posix_termios=no
8476: fi
8477: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8478: fi
1.16 millert 8479: echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
1.9 millert 8480: echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
8481:
8482: if test "$ac_cv_sys_posix_termios" = "yes"; then
8483:
1.16 millert 8484: cat >>confdefs.h <<\_ACEOF
1.9 millert 8485: #define HAVE_TERMIOS_H 1
1.16 millert 8486: _ACEOF
1.9 millert 8487:
8488: else
8489:
8490: for ac_header in termio.h
8491: do
8492: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.16 millert 8493: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8494: echo "$as_me:$LINENO: checking for $ac_header" >&5
1.9 millert 8495: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8496: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8497: echo $ECHO_N "(cached) $ECHO_C" >&6
1.16 millert 8498: fi
8499: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8500: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8501: else
8502: # Is the header compilable?
8503: echo "$as_me:$LINENO: checking $ac_header usability" >&5
8504: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8505: cat >conftest.$ac_ext <<_ACEOF
8506: #line $LINENO "configure"
8507: /* confdefs.h. */
8508: _ACEOF
8509: cat confdefs.h >>conftest.$ac_ext
8510: cat >>conftest.$ac_ext <<_ACEOF
8511: /* end confdefs.h. */
8512: $ac_includes_default
8513: #include <$ac_header>
8514: _ACEOF
8515: rm -f conftest.$ac_objext
8516: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8517: (eval $ac_compile) 2>&5
8518: ac_status=$?
8519: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520: (exit $ac_status); } &&
8521: { ac_try='test -s conftest.$ac_objext'
8522: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523: (eval $ac_try) 2>&5
8524: ac_status=$?
8525: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526: (exit $ac_status); }; }; then
8527: ac_header_compiler=yes
8528: else
8529: echo "$as_me: failed program was:" >&5
8530: sed 's/^/| /' conftest.$ac_ext >&5
8531:
8532: ac_header_compiler=no
8533: fi
8534: rm -f conftest.$ac_objext conftest.$ac_ext
8535: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8536: echo "${ECHO_T}$ac_header_compiler" >&6
8537:
8538: # Is the header present?
8539: echo "$as_me:$LINENO: checking $ac_header presence" >&5
8540: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8541: cat >conftest.$ac_ext <<_ACEOF
8542: #line $LINENO "configure"
8543: /* confdefs.h. */
8544: _ACEOF
8545: cat confdefs.h >>conftest.$ac_ext
8546: cat >>conftest.$ac_ext <<_ACEOF
8547: /* end confdefs.h. */
1.9 millert 8548: #include <$ac_header>
8549: _ACEOF
1.16 millert 8550: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 8551: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8552: ac_status=$?
1.16 millert 8553: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 8554: rm -f conftest.er1
8555: cat conftest.err >&5
1.16 millert 8556: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 8557: (exit $ac_status); } >/dev/null; then
8558: if test -s conftest.err; then
8559: ac_cpp_err=$ac_c_preproc_warn_flag
8560: else
8561: ac_cpp_err=
8562: fi
8563: else
8564: ac_cpp_err=yes
8565: fi
8566: if test -z "$ac_cpp_err"; then
1.16 millert 8567: ac_header_preproc=yes
1.1 millert 8568: else
1.9 millert 8569: echo "$as_me: failed program was:" >&5
1.16 millert 8570: sed 's/^/| /' conftest.$ac_ext >&5
8571:
8572: ac_header_preproc=no
1.1 millert 8573: fi
1.9 millert 8574: rm -f conftest.err conftest.$ac_ext
1.16 millert 8575: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8576: echo "${ECHO_T}$ac_header_preproc" >&6
8577:
8578: # So? What about this header?
8579: case $ac_header_compiler:$ac_header_preproc in
8580: yes:no )
8581: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8582: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8583: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8584: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8585: (
8586: cat <<\_ASBOX
8587: ## ------------------------------------ ##
8588: ## Report this to bug-autoconf@gnu.org. ##
8589: ## ------------------------------------ ##
8590: _ASBOX
8591: ) |
8592: sed "s/^/$as_me: WARNING: /" >&2
8593: ;;
8594: no:yes )
8595: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8596: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8597: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8598: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8599: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8600: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8601: (
8602: cat <<\_ASBOX
8603: ## ------------------------------------ ##
8604: ## Report this to bug-autoconf@gnu.org. ##
8605: ## ------------------------------------ ##
8606: _ASBOX
8607: ) |
8608: sed "s/^/$as_me: WARNING: /" >&2
8609: ;;
8610: esac
8611: echo "$as_me:$LINENO: checking for $ac_header" >&5
8612: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8613: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8614: echo $ECHO_N "(cached) $ECHO_C" >&6
8615: else
8616: eval "$as_ac_Header=$ac_header_preproc"
1.1 millert 8617: fi
1.16 millert 8618: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9 millert 8619: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.16 millert 8620:
8621: fi
1.9 millert 8622: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.16 millert 8623: cat >>confdefs.h <<_ACEOF
1.9 millert 8624: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.16 millert 8625: _ACEOF
1.9 millert 8626:
1.1 millert 8627: fi
1.16 millert 8628:
1.1 millert 8629: done
8630:
1.9 millert 8631: fi
8632: fi
8633: if test "$with_logincap" = "yes"; then
8634:
8635: for ac_header in login_cap.h
1.1 millert 8636: do
1.9 millert 8637: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.16 millert 8638: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8639: echo "$as_me:$LINENO: checking for $ac_header" >&5
1.9 millert 8640: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8641: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8642: echo $ECHO_N "(cached) $ECHO_C" >&6
1.16 millert 8643: fi
8644: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8645: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8646: else
8647: # Is the header compilable?
8648: echo "$as_me:$LINENO: checking $ac_header usability" >&5
8649: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8650: cat >conftest.$ac_ext <<_ACEOF
8651: #line $LINENO "configure"
8652: /* confdefs.h. */
8653: _ACEOF
8654: cat confdefs.h >>conftest.$ac_ext
8655: cat >>conftest.$ac_ext <<_ACEOF
8656: /* end confdefs.h. */
8657: $ac_includes_default
8658: #include <$ac_header>
8659: _ACEOF
8660: rm -f conftest.$ac_objext
8661: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8662: (eval $ac_compile) 2>&5
8663: ac_status=$?
8664: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665: (exit $ac_status); } &&
8666: { ac_try='test -s conftest.$ac_objext'
8667: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668: (eval $ac_try) 2>&5
8669: ac_status=$?
8670: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671: (exit $ac_status); }; }; then
8672: ac_header_compiler=yes
1.9 millert 8673: else
1.16 millert 8674: echo "$as_me: failed program was:" >&5
8675: sed 's/^/| /' conftest.$ac_ext >&5
8676:
8677: ac_header_compiler=no
8678: fi
8679: rm -f conftest.$ac_objext conftest.$ac_ext
8680: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8681: echo "${ECHO_T}$ac_header_compiler" >&6
8682:
8683: # Is the header present?
8684: echo "$as_me:$LINENO: checking $ac_header presence" >&5
8685: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8686: cat >conftest.$ac_ext <<_ACEOF
8687: #line $LINENO "configure"
8688: /* confdefs.h. */
8689: _ACEOF
8690: cat confdefs.h >>conftest.$ac_ext
8691: cat >>conftest.$ac_ext <<_ACEOF
8692: /* end confdefs.h. */
1.9 millert 8693: #include <$ac_header>
8694: _ACEOF
1.16 millert 8695: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 8696: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8697: ac_status=$?
1.16 millert 8698: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 8699: rm -f conftest.er1
8700: cat conftest.err >&5
1.16 millert 8701: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 8702: (exit $ac_status); } >/dev/null; then
8703: if test -s conftest.err; then
8704: ac_cpp_err=$ac_c_preproc_warn_flag
8705: else
8706: ac_cpp_err=
8707: fi
1.1 millert 8708: else
1.9 millert 8709: ac_cpp_err=yes
8710: fi
8711: if test -z "$ac_cpp_err"; then
1.16 millert 8712: ac_header_preproc=yes
1.1 millert 8713: else
1.9 millert 8714: echo "$as_me: failed program was:" >&5
1.16 millert 8715: sed 's/^/| /' conftest.$ac_ext >&5
8716:
8717: ac_header_preproc=no
1.1 millert 8718: fi
1.9 millert 8719: rm -f conftest.err conftest.$ac_ext
1.16 millert 8720: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8721: echo "${ECHO_T}$ac_header_preproc" >&6
8722:
8723: # So? What about this header?
8724: case $ac_header_compiler:$ac_header_preproc in
8725: yes:no )
8726: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8727: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8728: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8729: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8730: (
8731: cat <<\_ASBOX
8732: ## ------------------------------------ ##
8733: ## Report this to bug-autoconf@gnu.org. ##
8734: ## ------------------------------------ ##
8735: _ASBOX
8736: ) |
8737: sed "s/^/$as_me: WARNING: /" >&2
8738: ;;
8739: no:yes )
8740: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8741: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8742: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8743: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8744: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8745: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8746: (
8747: cat <<\_ASBOX
8748: ## ------------------------------------ ##
8749: ## Report this to bug-autoconf@gnu.org. ##
8750: ## ------------------------------------ ##
8751: _ASBOX
8752: ) |
8753: sed "s/^/$as_me: WARNING: /" >&2
8754: ;;
8755: esac
8756: echo "$as_me:$LINENO: checking for $ac_header" >&5
8757: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8758: if eval "test \"\${$as_ac_Header+set}\" = set"; then
8759: echo $ECHO_N "(cached) $ECHO_C" >&6
8760: else
8761: eval "$as_ac_Header=$ac_header_preproc"
1.1 millert 8762: fi
1.16 millert 8763: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9 millert 8764: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.16 millert 8765:
8766: fi
1.9 millert 8767: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.16 millert 8768: cat >>confdefs.h <<_ACEOF
1.9 millert 8769: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.16 millert 8770: _ACEOF
1.9 millert 8771:
8772: fi
1.16 millert 8773:
1.9 millert 8774: done
8775:
8776: fi
8777: if test "$with_bsdauth" = "yes"; then
1.16 millert 8778: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
8779: echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
1.9 millert 8780: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6
8781: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
8782: echo $ECHO_N "(cached) $ECHO_C" >&6
1.16 millert 8783: fi
8784: echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
8785: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6
8786: else
8787: # Is the header compilable?
8788: echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
8789: echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6
8790: cat >conftest.$ac_ext <<_ACEOF
8791: #line $LINENO "configure"
8792: /* confdefs.h. */
8793: _ACEOF
8794: cat confdefs.h >>conftest.$ac_ext
8795: cat >>conftest.$ac_ext <<_ACEOF
8796: /* end confdefs.h. */
8797: $ac_includes_default
8798: #include <bsd_auth.h>
8799: _ACEOF
8800: rm -f conftest.$ac_objext
8801: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8802: (eval $ac_compile) 2>&5
8803: ac_status=$?
8804: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805: (exit $ac_status); } &&
8806: { ac_try='test -s conftest.$ac_objext'
8807: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808: (eval $ac_try) 2>&5
8809: ac_status=$?
8810: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811: (exit $ac_status); }; }; then
8812: ac_header_compiler=yes
1.1 millert 8813: else
1.16 millert 8814: echo "$as_me: failed program was:" >&5
8815: sed 's/^/| /' conftest.$ac_ext >&5
8816:
8817: ac_header_compiler=no
8818: fi
8819: rm -f conftest.$ac_objext conftest.$ac_ext
8820: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8821: echo "${ECHO_T}$ac_header_compiler" >&6
8822:
8823: # Is the header present?
8824: echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
8825: echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6
8826: cat >conftest.$ac_ext <<_ACEOF
8827: #line $LINENO "configure"
8828: /* confdefs.h. */
8829: _ACEOF
8830: cat confdefs.h >>conftest.$ac_ext
8831: cat >>conftest.$ac_ext <<_ACEOF
8832: /* end confdefs.h. */
1.9 millert 8833: #include <bsd_auth.h>
8834: _ACEOF
1.16 millert 8835: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 8836: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8837: ac_status=$?
1.16 millert 8838: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 8839: rm -f conftest.er1
8840: cat conftest.err >&5
1.16 millert 8841: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 8842: (exit $ac_status); } >/dev/null; then
8843: if test -s conftest.err; then
8844: ac_cpp_err=$ac_c_preproc_warn_flag
8845: else
8846: ac_cpp_err=
8847: fi
8848: else
8849: ac_cpp_err=yes
8850: fi
8851: if test -z "$ac_cpp_err"; then
1.16 millert 8852: ac_header_preproc=yes
1.1 millert 8853: else
1.9 millert 8854: echo "$as_me: failed program was:" >&5
1.16 millert 8855: sed 's/^/| /' conftest.$ac_ext >&5
8856:
8857: ac_header_preproc=no
1.1 millert 8858: fi
1.9 millert 8859: rm -f conftest.err conftest.$ac_ext
1.16 millert 8860: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8861: echo "${ECHO_T}$ac_header_preproc" >&6
8862:
8863: # So? What about this header?
8864: case $ac_header_compiler:$ac_header_preproc in
8865: yes:no )
8866: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
8867: echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8868: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
8869: echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
8870: (
8871: cat <<\_ASBOX
8872: ## ------------------------------------ ##
8873: ## Report this to bug-autoconf@gnu.org. ##
8874: ## ------------------------------------ ##
8875: _ASBOX
8876: ) |
8877: sed "s/^/$as_me: WARNING: /" >&2
8878: ;;
8879: no:yes )
8880: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
8881: echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
8882: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&5
8883: echo "$as_me: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&2;}
8884: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
8885: echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
8886: (
8887: cat <<\_ASBOX
8888: ## ------------------------------------ ##
8889: ## Report this to bug-autoconf@gnu.org. ##
8890: ## ------------------------------------ ##
8891: _ASBOX
8892: ) |
8893: sed "s/^/$as_me: WARNING: /" >&2
8894: ;;
8895: esac
8896: echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
8897: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6
8898: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
8899: echo $ECHO_N "(cached) $ECHO_C" >&6
8900: else
8901: ac_cv_header_bsd_auth_h=$ac_header_preproc
1.1 millert 8902: fi
1.16 millert 8903: echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
1.9 millert 8904: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6
1.16 millert 8905:
8906: fi
1.9 millert 8907: if test $ac_cv_header_bsd_auth_h = yes; then
1.1 millert 8908:
1.16 millert 8909: cat >>confdefs.h <<\_ACEOF
1.9 millert 8910: #define HAVE_BSD_AUTH_H 1
1.16 millert 8911: _ACEOF
1.9 millert 8912: with_passwd=no; AUTH_OBJS=bsdauth.o
1.16 millert 8913: else
8914: -
1.9 millert 8915: fi
8916:
1.1 millert 8917:
8918: fi
1.16 millert 8919: echo "$as_me:$LINENO: checking for mode_t" >&5
1.9 millert 8920: echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
8921: if test "${ac_cv_type_mode_t+set}" = set; then
8922: echo $ECHO_N "(cached) $ECHO_C" >&6
1.7 millert 8923: else
1.9 millert 8924: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 8925: #line $LINENO "configure"
8926: /* confdefs.h. */
8927: _ACEOF
8928: cat confdefs.h >>conftest.$ac_ext
8929: cat >>conftest.$ac_ext <<_ACEOF
8930: /* end confdefs.h. */
1.9 millert 8931: $ac_includes_default
8932: int
8933: main ()
8934: {
8935: if ((mode_t *) 0)
8936: return 0;
8937: if (sizeof (mode_t))
8938: return 0;
8939: ;
8940: return 0;
8941: }
8942: _ACEOF
8943: rm -f conftest.$ac_objext
1.16 millert 8944: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 8945: (eval $ac_compile) 2>&5
8946: ac_status=$?
1.16 millert 8947: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 8948: (exit $ac_status); } &&
8949: { ac_try='test -s conftest.$ac_objext'
1.16 millert 8950: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 8951: (eval $ac_try) 2>&5
8952: ac_status=$?
1.16 millert 8953: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 8954: (exit $ac_status); }; }; then
8955: ac_cv_type_mode_t=yes
8956: else
8957: echo "$as_me: failed program was:" >&5
1.16 millert 8958: sed 's/^/| /' conftest.$ac_ext >&5
8959:
1.9 millert 8960: ac_cv_type_mode_t=no
8961: fi
8962: rm -f conftest.$ac_objext conftest.$ac_ext
8963: fi
1.16 millert 8964: echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
1.9 millert 8965: echo "${ECHO_T}$ac_cv_type_mode_t" >&6
8966: if test $ac_cv_type_mode_t = yes; then
8967: :
1.7 millert 8968: else
1.9 millert 8969:
1.16 millert 8970: cat >>confdefs.h <<_ACEOF
1.9 millert 8971: #define mode_t int
1.16 millert 8972: _ACEOF
1.9 millert 8973:
1.7 millert 8974: fi
8975:
1.16 millert 8976: echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
1.9 millert 8977: echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
8978: if test "${ac_cv_type_uid_t+set}" = set; then
8979: echo $ECHO_N "(cached) $ECHO_C" >&6
1.7 millert 8980: else
1.9 millert 8981: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 8982: #line $LINENO "configure"
8983: /* confdefs.h. */
8984: _ACEOF
8985: cat confdefs.h >>conftest.$ac_ext
8986: cat >>conftest.$ac_ext <<_ACEOF
8987: /* end confdefs.h. */
1.9 millert 8988: #include <sys/types.h>
8989:
8990: _ACEOF
8991: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 8992: $EGREP "uid_t" >/dev/null 2>&1; then
1.9 millert 8993: ac_cv_type_uid_t=yes
1.7 millert 8994: else
1.9 millert 8995: ac_cv_type_uid_t=no
1.7 millert 8996: fi
8997: rm -f conftest*
1.9 millert 8998:
1.7 millert 8999: fi
1.16 millert 9000: echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
1.9 millert 9001: echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9002: if test $ac_cv_type_uid_t = no; then
9003:
1.16 millert 9004: cat >>confdefs.h <<\_ACEOF
1.9 millert 9005: #define uid_t int
1.16 millert 9006: _ACEOF
9007:
1.9 millert 9008:
1.16 millert 9009: cat >>confdefs.h <<\_ACEOF
1.9 millert 9010: #define gid_t int
1.16 millert 9011: _ACEOF
1.9 millert 9012:
9013: fi
9014:
1.16 millert 9015: echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
1.9 millert 9016: echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
9017: if test "${ac_cv_type_sig_atomic_t+set}" = set; then
9018: echo $ECHO_N "(cached) $ECHO_C" >&6
9019: else
9020: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9021: #line $LINENO "configure"
9022: /* confdefs.h. */
9023: _ACEOF
9024: cat confdefs.h >>conftest.$ac_ext
9025: cat >>conftest.$ac_ext <<_ACEOF
9026: /* end confdefs.h. */
1.9 millert 9027: #include <sys/types.h>
9028: #include <signal.h>
9029:
9030: int
9031: main ()
9032: {
9033: if ((sig_atomic_t *) 0)
9034: return 0;
9035: if (sizeof (sig_atomic_t))
9036: return 0;
9037: ;
9038: return 0;
9039: }
9040: _ACEOF
9041: rm -f conftest.$ac_objext
1.16 millert 9042: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 9043: (eval $ac_compile) 2>&5
9044: ac_status=$?
1.16 millert 9045: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9046: (exit $ac_status); } &&
9047: { ac_try='test -s conftest.$ac_objext'
1.16 millert 9048: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 9049: (eval $ac_try) 2>&5
9050: ac_status=$?
1.16 millert 9051: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9052: (exit $ac_status); }; }; then
9053: ac_cv_type_sig_atomic_t=yes
1.7 millert 9054: else
1.9 millert 9055: echo "$as_me: failed program was:" >&5
1.16 millert 9056: sed 's/^/| /' conftest.$ac_ext >&5
9057:
1.9 millert 9058: ac_cv_type_sig_atomic_t=no
1.7 millert 9059: fi
1.9 millert 9060: rm -f conftest.$ac_objext conftest.$ac_ext
1.7 millert 9061: fi
1.16 millert 9062: echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
1.9 millert 9063: echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
9064: if test $ac_cv_type_sig_atomic_t = yes; then
1.7 millert 9065:
1.16 millert 9066: cat >>confdefs.h <<_ACEOF
1.9 millert 9067: #define HAVE_SIG_ATOMIC_T 1
1.16 millert 9068: _ACEOF
9069:
1.9 millert 9070:
1.1 millert 9071: else
9072:
1.16 millert 9073: cat >>confdefs.h <<\_ACEOF
1.9 millert 9074: #define sig_atomic_t int
1.16 millert 9075: _ACEOF
1.1 millert 9076:
9077: fi
9078:
1.16 millert 9079: echo "$as_me:$LINENO: checking for sigaction_t" >&5
1.9 millert 9080: echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6
9081: if test "${ac_cv_type_sigaction_t+set}" = set; then
9082: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9083: else
1.9 millert 9084: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9085: #line $LINENO "configure"
9086: /* confdefs.h. */
9087: _ACEOF
9088: cat confdefs.h >>conftest.$ac_ext
9089: cat >>conftest.$ac_ext <<_ACEOF
9090: /* end confdefs.h. */
1.1 millert 9091: #include <sys/types.h>
1.9 millert 9092: #include <signal.h>
9093:
9094: int
9095: main ()
9096: {
9097: if ((sigaction_t *) 0)
9098: return 0;
9099: if (sizeof (sigaction_t))
9100: return 0;
9101: ;
9102: return 0;
9103: }
9104: _ACEOF
9105: rm -f conftest.$ac_objext
1.16 millert 9106: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 9107: (eval $ac_compile) 2>&5
9108: ac_status=$?
1.16 millert 9109: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9110: (exit $ac_status); } &&
9111: { ac_try='test -s conftest.$ac_objext'
1.16 millert 9112: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 9113: (eval $ac_try) 2>&5
9114: ac_status=$?
1.16 millert 9115: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9116: (exit $ac_status); }; }; then
9117: ac_cv_type_sigaction_t=yes
1.1 millert 9118: else
1.9 millert 9119: echo "$as_me: failed program was:" >&5
1.16 millert 9120: sed 's/^/| /' conftest.$ac_ext >&5
9121:
1.9 millert 9122: ac_cv_type_sigaction_t=no
1.1 millert 9123: fi
1.9 millert 9124: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 9125: fi
1.16 millert 9126: echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
1.9 millert 9127: echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6
9128: if test $ac_cv_type_sigaction_t = yes; then
1.1 millert 9129:
1.16 millert 9130: cat >>confdefs.h <<_ACEOF
1.9 millert 9131: #define HAVE_SIGACTION_T 1
1.16 millert 9132: _ACEOF
9133:
1.1 millert 9134:
1.16 millert 9135: cat >>confdefs.h <<\_ACEOF
1.9 millert 9136: #define HAVE_SIGACTION_T 1
1.16 millert 9137: _ACEOF
1.1 millert 9138:
9139: fi
9140:
1.16 millert 9141: echo "$as_me:$LINENO: checking for size_t" >&5
1.9 millert 9142: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9143: if test "${sudo_cv_type_size_t+set}" = set; then
9144: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9145: else
1.9 millert 9146: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9147: #line $LINENO "configure"
9148: /* confdefs.h. */
9149: _ACEOF
9150: cat confdefs.h >>conftest.$ac_ext
9151: cat >>conftest.$ac_ext <<_ACEOF
9152: /* end confdefs.h. */
1.1 millert 9153: #include <sys/types.h>
1.9 millert 9154: #include <stdio.h>
1.1 millert 9155: #if STDC_HEADERS
9156: #include <stdlib.h>
9157: #endif
9158: #if HAVE_UNISTD_H
9159: #include <unistd.h>
9160: #endif
1.9 millert 9161: _ACEOF
1.1 millert 9162: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 9163: $EGREP "size_t" >/dev/null 2>&1; then
1.1 millert 9164: sudo_cv_type_size_t=yes
9165: else
9166: sudo_cv_type_size_t=no
9167: fi
9168: rm -f conftest*
9169:
9170: fi
1.16 millert 9171: echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
1.9 millert 9172: echo "${ECHO_T}$sudo_cv_type_size_t" >&6
1.1 millert 9173: if test $sudo_cv_type_size_t = no; then
1.9 millert 9174:
1.16 millert 9175: cat >>confdefs.h <<\_ACEOF
1.1 millert 9176: #define size_t int
1.16 millert 9177: _ACEOF
1.1 millert 9178:
9179: fi
9180:
1.16 millert 9181: echo "$as_me:$LINENO: checking for ssize_t" >&5
1.9 millert 9182: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9183: if test "${sudo_cv_type_ssize_t+set}" = set; then
9184: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9185: else
1.9 millert 9186: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9187: #line $LINENO "configure"
9188: /* confdefs.h. */
9189: _ACEOF
9190: cat confdefs.h >>conftest.$ac_ext
9191: cat >>conftest.$ac_ext <<_ACEOF
9192: /* end confdefs.h. */
1.1 millert 9193: #include <sys/types.h>
1.9 millert 9194: #include <stdio.h>
1.1 millert 9195: #if STDC_HEADERS
9196: #include <stdlib.h>
9197: #endif
9198: #if HAVE_UNISTD_H
9199: #include <unistd.h>
9200: #endif
1.9 millert 9201: _ACEOF
1.1 millert 9202: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 9203: $EGREP "ssize_t" >/dev/null 2>&1; then
1.1 millert 9204: sudo_cv_type_ssize_t=yes
9205: else
9206: sudo_cv_type_ssize_t=no
9207: fi
9208: rm -f conftest*
9209:
9210: fi
1.16 millert 9211: echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
1.9 millert 9212: echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6
1.1 millert 9213: if test $sudo_cv_type_ssize_t = no; then
1.9 millert 9214:
1.16 millert 9215: cat >>confdefs.h <<\_ACEOF
1.1 millert 9216: #define ssize_t int
1.16 millert 9217: _ACEOF
1.1 millert 9218:
9219: fi
9220:
1.16 millert 9221: echo "$as_me:$LINENO: checking for dev_t" >&5
1.9 millert 9222: echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
9223: if test "${sudo_cv_type_dev_t+set}" = set; then
9224: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9225: else
1.9 millert 9226: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9227: #line $LINENO "configure"
9228: /* confdefs.h. */
9229: _ACEOF
9230: cat confdefs.h >>conftest.$ac_ext
9231: cat >>conftest.$ac_ext <<_ACEOF
9232: /* end confdefs.h. */
1.1 millert 9233: #include <sys/types.h>
1.9 millert 9234: #include <stdio.h>
1.1 millert 9235: #if STDC_HEADERS
9236: #include <stdlib.h>
9237: #endif
9238: #if HAVE_UNISTD_H
9239: #include <unistd.h>
9240: #endif
1.9 millert 9241: _ACEOF
1.1 millert 9242: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 9243: $EGREP "dev_t" >/dev/null 2>&1; then
1.1 millert 9244: sudo_cv_type_dev_t=yes
9245: else
9246: sudo_cv_type_dev_t=no
9247: fi
9248: rm -f conftest*
9249:
9250: fi
1.16 millert 9251: echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
1.9 millert 9252: echo "${ECHO_T}$sudo_cv_type_dev_t" >&6
1.1 millert 9253: if test $sudo_cv_type_dev_t = no; then
1.9 millert 9254:
1.16 millert 9255: cat >>confdefs.h <<\_ACEOF
1.1 millert 9256: #define dev_t int
1.16 millert 9257: _ACEOF
1.1 millert 9258:
9259: fi
9260:
1.16 millert 9261: echo "$as_me:$LINENO: checking for ino_t" >&5
1.9 millert 9262: echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
9263: if test "${sudo_cv_type_ino_t+set}" = set; then
9264: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9265: else
1.9 millert 9266: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9267: #line $LINENO "configure"
9268: /* confdefs.h. */
9269: _ACEOF
9270: cat confdefs.h >>conftest.$ac_ext
9271: cat >>conftest.$ac_ext <<_ACEOF
9272: /* end confdefs.h. */
1.1 millert 9273: #include <sys/types.h>
1.9 millert 9274: #include <stdio.h>
1.1 millert 9275: #if STDC_HEADERS
9276: #include <stdlib.h>
9277: #endif
9278: #if HAVE_UNISTD_H
9279: #include <unistd.h>
9280: #endif
1.9 millert 9281: _ACEOF
1.1 millert 9282: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 9283: $EGREP "ino_t" >/dev/null 2>&1; then
1.1 millert 9284: sudo_cv_type_ino_t=yes
9285: else
9286: sudo_cv_type_ino_t=no
9287: fi
9288: rm -f conftest*
9289:
9290: fi
1.16 millert 9291: echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
1.9 millert 9292: echo "${ECHO_T}$sudo_cv_type_ino_t" >&6
1.1 millert 9293: if test $sudo_cv_type_ino_t = no; then
1.9 millert 9294:
1.16 millert 9295: cat >>confdefs.h <<\_ACEOF
1.1 millert 9296: #define ino_t unsigned int
1.16 millert 9297: _ACEOF
1.1 millert 9298:
9299: fi
9300:
1.16 millert 9301: echo "$as_me:$LINENO: checking for full void implementation" >&5
1.9 millert 9302: echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6
9303: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9304: #line $LINENO "configure"
9305: /* confdefs.h. */
9306: _ACEOF
9307: cat confdefs.h >>conftest.$ac_ext
9308: cat >>conftest.$ac_ext <<_ACEOF
9309: /* end confdefs.h. */
1.1 millert 9310:
1.9 millert 9311: int
9312: main ()
9313: {
1.1 millert 9314: void *foo;
9315: foo = (void *)0; (void *)"test";
1.9 millert 9316: ;
9317: return 0;
9318: }
9319: _ACEOF
9320: rm -f conftest.$ac_objext
1.16 millert 9321: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 9322: (eval $ac_compile) 2>&5
9323: ac_status=$?
1.16 millert 9324: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9325: (exit $ac_status); } &&
9326: { ac_try='test -s conftest.$ac_objext'
1.16 millert 9327: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 9328: (eval $ac_try) 2>&5
9329: ac_status=$?
1.16 millert 9330: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9331: (exit $ac_status); }; }; then
9332:
1.16 millert 9333: cat >>confdefs.h <<\_ACEOF
1.1 millert 9334: #define VOID void
1.16 millert 9335: _ACEOF
1.1 millert 9336:
1.16 millert 9337: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 9338: echo "${ECHO_T}yes" >&6
1.1 millert 9339: else
1.9 millert 9340: echo "$as_me: failed program was:" >&5
1.16 millert 9341: sed 's/^/| /' conftest.$ac_ext >&5
9342:
9343: cat >>confdefs.h <<\_ACEOF
1.1 millert 9344: #define VOID char
1.16 millert 9345: _ACEOF
1.1 millert 9346:
1.16 millert 9347: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 9348: echo "${ECHO_T}no" >&6
1.1 millert 9349: fi
1.9 millert 9350: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 9351:
1.16 millert 9352: echo "$as_me:$LINENO: checking max length of uid_t" >&5
1.9 millert 9353: echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6
9354: if test "${sudo_cv_uid_t_len+set}" = set; then
9355: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9356: else
9357: rm -f conftestdata
9358: if test "$cross_compiling" = yes; then
1.16 millert 9359: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9360: See \`config.log' for more details." >&5
9361: echo "$as_me: error: cannot run test program while cross compiling
9362: See \`config.log' for more details." >&2;}
1.9 millert 9363: { (exit 1); exit 1; }; }
1.1 millert 9364: else
1.9 millert 9365: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9366: #line $LINENO "configure"
9367: /* confdefs.h. */
9368: _ACEOF
9369: cat confdefs.h >>conftest.$ac_ext
9370: cat >>conftest.$ac_ext <<_ACEOF
9371: /* end confdefs.h. */
1.1 millert 9372: #include <stdio.h>
9373: #include <pwd.h>
9374: #include <limits.h>
9375: #include <sys/types.h>
9376: #include <sys/param.h>
9377: main() {
9378: FILE *f;
9379: char b[1024];
9380: uid_t u = (uid_t) -1;
9381:
9382: if ((f = fopen("conftestdata", "w")) == NULL)
9383: exit(1);
9384:
1.16 millert 9385: (void) sprintf(b, "%lu", (unsigned long) u);
1.1 millert 9386: (void) fprintf(f, "%d\n", strlen(b));
9387: (void) fclose(f);
9388: exit(0);
9389: }
1.9 millert 9390: _ACEOF
9391: rm -f conftest$ac_exeext
1.16 millert 9392: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 9393: (eval $ac_link) 2>&5
9394: ac_status=$?
1.16 millert 9395: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9396: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16 millert 9397: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 9398: (eval $ac_try) 2>&5
9399: ac_status=$?
1.16 millert 9400: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9401: (exit $ac_status); }; }; then
1.1 millert 9402: sudo_cv_uid_t_len=`cat conftestdata`
9403: else
1.9 millert 9404: echo "$as_me: program exited with status $ac_status" >&5
9405: echo "$as_me: failed program was:" >&5
1.16 millert 9406: sed 's/^/| /' conftest.$ac_ext >&5
9407:
9408: ( exit $ac_status )
1.9 millert 9409: sudo_cv_uid_t_len=10
1.1 millert 9410: fi
1.16 millert 9411: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 9412: fi
9413:
9414: fi
9415:
9416: rm -f conftestdata
1.16 millert 9417: echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
1.9 millert 9418: echo "${ECHO_T}$sudo_cv_uid_t_len" >&6
9419:
1.16 millert 9420: cat >>confdefs.h <<_ACEOF
1.1 millert 9421: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
1.16 millert 9422: _ACEOF
9423:
1.1 millert 9424:
1.16 millert 9425: echo "$as_me:$LINENO: checking for long long support" >&5
1.9 millert 9426: echo $ECHO_N "checking for long long support... $ECHO_C" >&6
9427: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9428: #line $LINENO "configure"
9429: /* confdefs.h. */
9430: _ACEOF
9431: cat confdefs.h >>conftest.$ac_ext
9432: cat >>conftest.$ac_ext <<_ACEOF
9433: /* end confdefs.h. */
1.1 millert 9434:
1.9 millert 9435: int
9436: main ()
9437: {
1.1 millert 9438: long long foo = 1000; foo /= 10;
1.9 millert 9439: ;
9440: return 0;
9441: }
9442: _ACEOF
9443: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 9444: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 9445: (eval $ac_link) 2>&5
9446: ac_status=$?
1.16 millert 9447: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9448: (exit $ac_status); } &&
9449: { ac_try='test -s conftest$ac_exeext'
1.16 millert 9450: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 9451: (eval $ac_try) 2>&5
9452: ac_status=$?
1.16 millert 9453: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9454: (exit $ac_status); }; }; then
9455:
1.16 millert 9456: cat >>confdefs.h <<\_ACEOF
1.1 millert 9457: #define HAVE_LONG_LONG 1
1.16 millert 9458: _ACEOF
1.1 millert 9459:
9460: if test "$cross_compiling" = yes; then
1.16 millert 9461: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9462: See \`config.log' for more details." >&5
9463: echo "$as_me: error: cannot run test program while cross compiling
9464: See \`config.log' for more details." >&2;}
1.9 millert 9465: { (exit 1); exit 1; }; }
1.1 millert 9466: else
1.9 millert 9467: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9468: #line $LINENO "configure"
9469: /* confdefs.h. */
9470: _ACEOF
9471: cat confdefs.h >>conftest.$ac_ext
9472: cat >>conftest.$ac_ext <<_ACEOF
9473: /* end confdefs.h. */
1.1 millert 9474: main() {if (sizeof(long long) == sizeof(long)) exit(0); else exit(1);}
1.9 millert 9475: _ACEOF
9476: rm -f conftest$ac_exeext
1.16 millert 9477: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 9478: (eval $ac_link) 2>&5
9479: ac_status=$?
1.16 millert 9480: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9481: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16 millert 9482: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 9483: (eval $ac_try) 2>&5
9484: ac_status=$?
1.16 millert 9485: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9486: (exit $ac_status); }; }; then
9487:
1.16 millert 9488: cat >>confdefs.h <<\_ACEOF
1.1 millert 9489: #define LONG_IS_QUAD 1
1.16 millert 9490: _ACEOF
1.1 millert 9491:
9492: else
1.9 millert 9493: echo "$as_me: program exited with status $ac_status" >&5
9494: echo "$as_me: failed program was:" >&5
1.16 millert 9495: sed 's/^/| /' conftest.$ac_ext >&5
9496:
1.9 millert 9497: fi
1.16 millert 9498: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9 millert 9499: fi
1.16 millert 9500: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 9501: echo "${ECHO_T}yes" >&6
9502: else
9503: echo "$as_me: failed program was:" >&5
1.16 millert 9504: sed 's/^/| /' conftest.$ac_ext >&5
9505:
9506: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 9507: echo "${ECHO_T}no" >&6
9508: fi
9509: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.16 millert 9510: echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
1.9 millert 9511: echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6
9512: if test "${sudo_cv_sock_sa_len+set}" = set; then
9513: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9514: else
9515: if test "$cross_compiling" = yes; then
9516: sudo_cv_sock_sa_len=no
9517: else
1.9 millert 9518: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9519: #line $LINENO "configure"
9520: /* confdefs.h. */
9521: _ACEOF
9522: cat confdefs.h >>conftest.$ac_ext
9523: cat >>conftest.$ac_ext <<_ACEOF
9524: /* end confdefs.h. */
1.1 millert 9525: #include <sys/types.h>
9526: #include <sys/socket.h>
9527: main() {
9528: struct sockaddr s;
9529: s.sa_len = 0;
9530: exit(0);
9531: }
1.9 millert 9532: _ACEOF
9533: rm -f conftest$ac_exeext
1.16 millert 9534: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 9535: (eval $ac_link) 2>&5
9536: ac_status=$?
1.16 millert 9537: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9538: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16 millert 9539: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 9540: (eval $ac_try) 2>&5
9541: ac_status=$?
1.16 millert 9542: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9543: (exit $ac_status); }; }; then
1.1 millert 9544: sudo_cv_sock_sa_len=yes
9545: else
1.9 millert 9546: echo "$as_me: program exited with status $ac_status" >&5
9547: echo "$as_me: failed program was:" >&5
1.16 millert 9548: sed 's/^/| /' conftest.$ac_ext >&5
9549:
9550: ( exit $ac_status )
1.9 millert 9551: sudo_cv_sock_sa_len=no
1.1 millert 9552: fi
1.16 millert 9553: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 9554: fi
9555: rm -f core core.* *.core
9556: fi
1.16 millert 9557: echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
1.9 millert 9558: echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6
1.1 millert 9559: if test $sudo_cv_sock_sa_len = yes; then
1.9 millert 9560:
1.16 millert 9561: cat >>confdefs.h <<\_ACEOF
1.1 millert 9562: #define HAVE_SA_LEN 1
1.16 millert 9563: _ACEOF
1.1 millert 9564:
9565: fi
9566:
9567: case "$DEFS" in
9568: *"RETSIGTYPE"*) ;;
1.16 millert 9569: *) echo "$as_me:$LINENO: checking return type of signal handlers" >&5
1.9 millert 9570: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9571: if test "${ac_cv_type_signal+set}" = set; then
9572: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9573: else
1.9 millert 9574: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9575: #line $LINENO "configure"
9576: /* confdefs.h. */
9577: _ACEOF
9578: cat confdefs.h >>conftest.$ac_ext
9579: cat >>conftest.$ac_ext <<_ACEOF
9580: /* end confdefs.h. */
1.1 millert 9581: #include <sys/types.h>
9582: #include <signal.h>
9583: #ifdef signal
1.9 millert 9584: # undef signal
1.1 millert 9585: #endif
9586: #ifdef __cplusplus
9587: extern "C" void (*signal (int, void (*)(int)))(int);
9588: #else
9589: void (*signal ()) ();
9590: #endif
9591:
1.9 millert 9592: int
9593: main ()
9594: {
1.1 millert 9595: int i;
1.9 millert 9596: ;
9597: return 0;
9598: }
9599: _ACEOF
9600: rm -f conftest.$ac_objext
1.16 millert 9601: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 9602: (eval $ac_compile) 2>&5
9603: ac_status=$?
1.16 millert 9604: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605: (exit $ac_status); } &&
9606: { ac_try='test -s conftest.$ac_objext'
9607: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608: (eval $ac_try) 2>&5
9609: ac_status=$?
9610: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611: (exit $ac_status); }; }; then
9612: ac_cv_type_signal=void
9613: else
9614: echo "$as_me: failed program was:" >&5
9615: sed 's/^/| /' conftest.$ac_ext >&5
9616:
9617: ac_cv_type_signal=int
9618: fi
9619: rm -f conftest.$ac_objext conftest.$ac_ext
9620: fi
9621: echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9622: echo "${ECHO_T}$ac_cv_type_signal" >&6
9623:
9624: cat >>confdefs.h <<_ACEOF
9625: #define RETSIGTYPE $ac_cv_type_signal
9626: _ACEOF
9627:
9628: ;;
9629: esac
9630:
9631:
9632:
9633:
9634:
9635:
9636:
9637:
9638:
9639:
9640:
9641: for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
9642: strftime setrlimit initgroups fstat
9643: do
9644: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9645: echo "$as_me:$LINENO: checking for $ac_func" >&5
9646: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9647: if eval "test \"\${$as_ac_var+set}\" = set"; then
9648: echo $ECHO_N "(cached) $ECHO_C" >&6
9649: else
9650: cat >conftest.$ac_ext <<_ACEOF
9651: #line $LINENO "configure"
9652: /* confdefs.h. */
9653: _ACEOF
9654: cat confdefs.h >>conftest.$ac_ext
9655: cat >>conftest.$ac_ext <<_ACEOF
9656: /* end confdefs.h. */
9657: /* System header to define __stub macros and hopefully few prototypes,
9658: which can conflict with char $ac_func (); below.
9659: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9660: <limits.h> exists even on freestanding compilers. */
9661: #ifdef __STDC__
9662: # include <limits.h>
9663: #else
9664: # include <assert.h>
9665: #endif
9666: /* Override any gcc2 internal prototype to avoid an error. */
9667: #ifdef __cplusplus
9668: extern "C"
9669: {
9670: #endif
9671: /* We use char because int might match the return type of a gcc2
9672: builtin and then its argument prototype would still apply. */
9673: char $ac_func ();
9674: /* The GNU C library defines this for functions which it implements
9675: to always fail with ENOSYS. Some functions are actually named
9676: something starting with __ and the normal name is an alias. */
9677: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9678: choke me
9679: #else
9680: char (*f) () = $ac_func;
9681: #endif
9682: #ifdef __cplusplus
9683: }
9684: #endif
9685:
9686: int
9687: main ()
9688: {
9689: return f != $ac_func;
9690: ;
9691: return 0;
9692: }
9693: _ACEOF
9694: rm -f conftest.$ac_objext conftest$ac_exeext
9695: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9696: (eval $ac_link) 2>&5
9697: ac_status=$?
9698: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9699: (exit $ac_status); } &&
1.16 millert 9700: { ac_try='test -s conftest$ac_exeext'
9701: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 9702: (eval $ac_try) 2>&5
9703: ac_status=$?
1.16 millert 9704: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9705: (exit $ac_status); }; }; then
1.16 millert 9706: eval "$as_ac_var=yes"
1.1 millert 9707: else
1.9 millert 9708: echo "$as_me: failed program was:" >&5
1.16 millert 9709: sed 's/^/| /' conftest.$ac_ext >&5
9710:
9711: eval "$as_ac_var=no"
1.1 millert 9712: fi
1.16 millert 9713: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 millert 9714: fi
1.16 millert 9715: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9716: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9717: if test `eval echo '${'$as_ac_var'}'` = yes; then
9718: cat >>confdefs.h <<_ACEOF
9719: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9720: _ACEOF
1.1 millert 9721:
1.16 millert 9722: fi
9723: done
1.1 millert 9724:
1.16 millert 9725: if test -z "$SKIP_SETRESUID"; then
1.9 millert 9726:
1.16 millert 9727: for ac_func in setresuid
1.1 millert 9728: do
1.9 millert 9729: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 9730: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 9731: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9732: if eval "test \"\${$as_ac_var+set}\" = set"; then
9733: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9734: else
1.9 millert 9735: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9736: #line $LINENO "configure"
9737: /* confdefs.h. */
9738: _ACEOF
9739: cat confdefs.h >>conftest.$ac_ext
9740: cat >>conftest.$ac_ext <<_ACEOF
9741: /* end confdefs.h. */
1.1 millert 9742: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 9743: which can conflict with char $ac_func (); below.
9744: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9745: <limits.h> exists even on freestanding compilers. */
9746: #ifdef __STDC__
9747: # include <limits.h>
9748: #else
9749: # include <assert.h>
9750: #endif
1.1 millert 9751: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 9752: #ifdef __cplusplus
9753: extern "C"
1.16 millert 9754: {
1.9 millert 9755: #endif
1.1 millert 9756: /* We use char because int might match the return type of a gcc2
1.9 millert 9757: builtin and then its argument prototype would still apply. */
9758: char $ac_func ();
1.1 millert 9759: /* The GNU C library defines this for functions which it implements
9760: to always fail with ENOSYS. Some functions are actually named
9761: something starting with __ and the normal name is an alias. */
9762: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9763: choke me
9764: #else
1.16 millert 9765: char (*f) () = $ac_func;
9766: #endif
9767: #ifdef __cplusplus
9768: }
1.1 millert 9769: #endif
9770:
1.16 millert 9771: int
9772: main ()
9773: {
9774: return f != $ac_func;
1.9 millert 9775: ;
9776: return 0;
9777: }
9778: _ACEOF
9779: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 9780: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 9781: (eval $ac_link) 2>&5
9782: ac_status=$?
1.16 millert 9783: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9784: (exit $ac_status); } &&
9785: { ac_try='test -s conftest$ac_exeext'
1.16 millert 9786: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 9787: (eval $ac_try) 2>&5
9788: ac_status=$?
1.16 millert 9789: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9790: (exit $ac_status); }; }; then
9791: eval "$as_ac_var=yes"
9792: else
9793: echo "$as_me: failed program was:" >&5
1.16 millert 9794: sed 's/^/| /' conftest.$ac_ext >&5
9795:
1.9 millert 9796: eval "$as_ac_var=no"
9797: fi
9798: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9799: fi
1.16 millert 9800: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 9801: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9802: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 9803: cat >>confdefs.h <<_ACEOF
1.9 millert 9804: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 9805: _ACEOF
9806: SKIP_SETREUID=yes
1.1 millert 9807: fi
9808: done
9809:
1.16 millert 9810: fi
9811: if test -z "$SKIP_SETREUID"; then
1.9 millert 9812:
9813: for ac_func in setreuid
1.1 millert 9814: do
1.9 millert 9815: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 9816: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 9817: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9818: if eval "test \"\${$as_ac_var+set}\" = set"; then
9819: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9820: else
1.9 millert 9821: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9822: #line $LINENO "configure"
9823: /* confdefs.h. */
9824: _ACEOF
9825: cat confdefs.h >>conftest.$ac_ext
9826: cat >>conftest.$ac_ext <<_ACEOF
9827: /* end confdefs.h. */
1.1 millert 9828: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 9829: which can conflict with char $ac_func (); below.
9830: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9831: <limits.h> exists even on freestanding compilers. */
9832: #ifdef __STDC__
9833: # include <limits.h>
9834: #else
9835: # include <assert.h>
9836: #endif
1.1 millert 9837: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 9838: #ifdef __cplusplus
9839: extern "C"
1.16 millert 9840: {
1.9 millert 9841: #endif
1.1 millert 9842: /* We use char because int might match the return type of a gcc2
1.9 millert 9843: builtin and then its argument prototype would still apply. */
9844: char $ac_func ();
1.1 millert 9845: /* The GNU C library defines this for functions which it implements
9846: to always fail with ENOSYS. Some functions are actually named
9847: something starting with __ and the normal name is an alias. */
9848: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9849: choke me
9850: #else
1.16 millert 9851: char (*f) () = $ac_func;
9852: #endif
9853: #ifdef __cplusplus
9854: }
1.1 millert 9855: #endif
9856:
1.16 millert 9857: int
9858: main ()
9859: {
9860: return f != $ac_func;
1.9 millert 9861: ;
9862: return 0;
9863: }
9864: _ACEOF
9865: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 9866: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 9867: (eval $ac_link) 2>&5
9868: ac_status=$?
1.16 millert 9869: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9870: (exit $ac_status); } &&
9871: { ac_try='test -s conftest$ac_exeext'
1.16 millert 9872: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 9873: (eval $ac_try) 2>&5
9874: ac_status=$?
1.16 millert 9875: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 9876: (exit $ac_status); }; }; then
9877: eval "$as_ac_var=yes"
9878: else
9879: echo "$as_me: failed program was:" >&5
1.16 millert 9880: sed 's/^/| /' conftest.$ac_ext >&5
9881:
1.9 millert 9882: eval "$as_ac_var=no"
9883: fi
9884: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9885: fi
1.16 millert 9886: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 9887: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9888: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 9889: cat >>confdefs.h <<_ACEOF
1.9 millert 9890: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 9891: _ACEOF
1.1 millert 9892:
9893: fi
9894: done
9895:
9896: fi
1.9 millert 9897: if test X"$with_interfaces" != X"no"; then
1.1 millert 9898:
1.9 millert 9899: for ac_func in getifaddrs
1.1 millert 9900: do
1.9 millert 9901: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 9902: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 9903: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9904: if eval "test \"\${$as_ac_var+set}\" = set"; then
9905: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9906: else
1.9 millert 9907: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9908: #line $LINENO "configure"
9909: /* confdefs.h. */
9910: _ACEOF
9911: cat confdefs.h >>conftest.$ac_ext
9912: cat >>conftest.$ac_ext <<_ACEOF
9913: /* end confdefs.h. */
1.1 millert 9914: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 9915: which can conflict with char $ac_func (); below.
9916: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9917: <limits.h> exists even on freestanding compilers. */
9918: #ifdef __STDC__
9919: # include <limits.h>
9920: #else
9921: # include <assert.h>
9922: #endif
1.1 millert 9923: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 9924: #ifdef __cplusplus
9925: extern "C"
1.16 millert 9926: {
1.9 millert 9927: #endif
1.1 millert 9928: /* We use char because int might match the return type of a gcc2
1.9 millert 9929: builtin and then its argument prototype would still apply. */
9930: char $ac_func ();
1.1 millert 9931: /* The GNU C library defines this for functions which it implements
9932: to always fail with ENOSYS. Some functions are actually named
9933: something starting with __ and the normal name is an alias. */
9934: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9935: choke me
9936: #else
1.16 millert 9937: char (*f) () = $ac_func;
9938: #endif
9939: #ifdef __cplusplus
9940: }
1.1 millert 9941: #endif
9942:
1.16 millert 9943: int
9944: main ()
9945: {
9946: return f != $ac_func;
1.9 millert 9947: ;
9948: return 0;
9949: }
9950: _ACEOF
9951: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 9952: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.13 millert 9953: (eval $ac_link) 2>&5
9954: ac_status=$?
1.16 millert 9955: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.13 millert 9956: (exit $ac_status); } &&
9957: { ac_try='test -s conftest$ac_exeext'
1.16 millert 9958: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.13 millert 9959: (eval $ac_try) 2>&5
9960: ac_status=$?
1.16 millert 9961: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.13 millert 9962: (exit $ac_status); }; }; then
9963: eval "$as_ac_var=yes"
9964: else
9965: echo "$as_me: failed program was:" >&5
1.16 millert 9966: sed 's/^/| /' conftest.$ac_ext >&5
9967:
1.13 millert 9968: eval "$as_ac_var=no"
9969: fi
9970: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9971: fi
1.16 millert 9972: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.13 millert 9973: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9974: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 9975: cat >>confdefs.h <<_ACEOF
1.13 millert 9976: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 9977: _ACEOF
1.13 millert 9978:
9979: for ac_func in freeifaddrs
9980: do
9981: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 9982: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.13 millert 9983: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9984: if eval "test \"\${$as_ac_var+set}\" = set"; then
9985: echo $ECHO_N "(cached) $ECHO_C" >&6
9986: else
9987: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 9988: #line $LINENO "configure"
9989: /* confdefs.h. */
9990: _ACEOF
9991: cat confdefs.h >>conftest.$ac_ext
9992: cat >>conftest.$ac_ext <<_ACEOF
9993: /* end confdefs.h. */
9994: /* System header to define __stub macros and hopefully few prototypes,
9995: which can conflict with char $ac_func (); below.
9996: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9997: <limits.h> exists even on freestanding compilers. */
9998: #ifdef __STDC__
9999: # include <limits.h>
10000: #else
10001: # include <assert.h>
10002: #endif
1.13 millert 10003: /* Override any gcc2 internal prototype to avoid an error. */
10004: #ifdef __cplusplus
10005: extern "C"
1.16 millert 10006: {
1.13 millert 10007: #endif
10008: /* We use char because int might match the return type of a gcc2
10009: builtin and then its argument prototype would still apply. */
10010: char $ac_func ();
10011: /* The GNU C library defines this for functions which it implements
10012: to always fail with ENOSYS. Some functions are actually named
10013: something starting with __ and the normal name is an alias. */
10014: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10015: choke me
10016: #else
1.16 millert 10017: char (*f) () = $ac_func;
10018: #endif
10019: #ifdef __cplusplus
10020: }
1.13 millert 10021: #endif
10022:
1.16 millert 10023: int
10024: main ()
10025: {
10026: return f != $ac_func;
1.13 millert 10027: ;
10028: return 0;
10029: }
10030: _ACEOF
10031: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 10032: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10033: (eval $ac_link) 2>&5
10034: ac_status=$?
1.16 millert 10035: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10036: (exit $ac_status); } &&
10037: { ac_try='test -s conftest$ac_exeext'
1.16 millert 10038: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10039: (eval $ac_try) 2>&5
10040: ac_status=$?
1.16 millert 10041: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10042: (exit $ac_status); }; }; then
10043: eval "$as_ac_var=yes"
10044: else
10045: echo "$as_me: failed program was:" >&5
1.16 millert 10046: sed 's/^/| /' conftest.$ac_ext >&5
10047:
1.9 millert 10048: eval "$as_ac_var=no"
10049: fi
10050: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10051: fi
1.16 millert 10052: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 10053: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10054: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 10055: cat >>confdefs.h <<_ACEOF
1.9 millert 10056: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 10057: _ACEOF
1.1 millert 10058:
10059: fi
10060: done
10061:
10062: fi
1.13 millert 10063: done
10064:
10065: fi
1.9 millert 10066: if test -n "$SECUREWARE"; then
1.1 millert 10067:
1.16 millert 10068:
10069:
1.9 millert 10070: for ac_func in bigcrypt set_auth_parameters initprivs
10071: do
10072: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 10073: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 10074: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10075: if eval "test \"\${$as_ac_var+set}\" = set"; then
10076: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10077: else
1.9 millert 10078: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10079: #line $LINENO "configure"
10080: /* confdefs.h. */
10081: _ACEOF
10082: cat confdefs.h >>conftest.$ac_ext
10083: cat >>conftest.$ac_ext <<_ACEOF
10084: /* end confdefs.h. */
1.1 millert 10085: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 10086: which can conflict with char $ac_func (); below.
10087: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10088: <limits.h> exists even on freestanding compilers. */
10089: #ifdef __STDC__
10090: # include <limits.h>
10091: #else
10092: # include <assert.h>
10093: #endif
1.1 millert 10094: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 10095: #ifdef __cplusplus
10096: extern "C"
1.16 millert 10097: {
1.1 millert 10098: #endif
10099: /* We use char because int might match the return type of a gcc2
1.9 millert 10100: builtin and then its argument prototype would still apply. */
10101: char $ac_func ();
1.1 millert 10102: /* The GNU C library defines this for functions which it implements
10103: to always fail with ENOSYS. Some functions are actually named
10104: something starting with __ and the normal name is an alias. */
10105: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10106: choke me
10107: #else
1.16 millert 10108: char (*f) () = $ac_func;
10109: #endif
10110: #ifdef __cplusplus
10111: }
1.1 millert 10112: #endif
10113:
1.16 millert 10114: int
10115: main ()
10116: {
10117: return f != $ac_func;
1.9 millert 10118: ;
10119: return 0;
10120: }
10121: _ACEOF
10122: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 10123: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10124: (eval $ac_link) 2>&5
10125: ac_status=$?
1.16 millert 10126: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10127: (exit $ac_status); } &&
10128: { ac_try='test -s conftest$ac_exeext'
1.16 millert 10129: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10130: (eval $ac_try) 2>&5
10131: ac_status=$?
1.16 millert 10132: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10133: (exit $ac_status); }; }; then
10134: eval "$as_ac_var=yes"
10135: else
10136: echo "$as_me: failed program was:" >&5
1.16 millert 10137: sed 's/^/| /' conftest.$ac_ext >&5
10138:
1.9 millert 10139: eval "$as_ac_var=no"
10140: fi
10141: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10142: fi
1.16 millert 10143: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 10144: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10145: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 10146: cat >>confdefs.h <<_ACEOF
1.9 millert 10147: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 10148: _ACEOF
1.1 millert 10149:
10150: fi
10151: done
10152:
10153: fi
1.9 millert 10154: if test -z "$BROKEN_GETCWD"; then
1.1 millert 10155:
1.9 millert 10156: for ac_func in getcwd
10157: do
10158: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 10159: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 10160: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10161: if eval "test \"\${$as_ac_var+set}\" = set"; then
10162: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10163: else
1.9 millert 10164: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10165: #line $LINENO "configure"
10166: /* confdefs.h. */
10167: _ACEOF
10168: cat confdefs.h >>conftest.$ac_ext
10169: cat >>conftest.$ac_ext <<_ACEOF
10170: /* end confdefs.h. */
1.1 millert 10171: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 10172: which can conflict with char $ac_func (); below.
10173: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10174: <limits.h> exists even on freestanding compilers. */
10175: #ifdef __STDC__
10176: # include <limits.h>
10177: #else
10178: # include <assert.h>
10179: #endif
1.1 millert 10180: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 10181: #ifdef __cplusplus
10182: extern "C"
1.16 millert 10183: {
1.1 millert 10184: #endif
10185: /* We use char because int might match the return type of a gcc2
1.9 millert 10186: builtin and then its argument prototype would still apply. */
10187: char $ac_func ();
1.1 millert 10188: /* The GNU C library defines this for functions which it implements
10189: to always fail with ENOSYS. Some functions are actually named
10190: something starting with __ and the normal name is an alias. */
10191: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10192: choke me
10193: #else
1.16 millert 10194: char (*f) () = $ac_func;
10195: #endif
10196: #ifdef __cplusplus
10197: }
1.1 millert 10198: #endif
10199:
1.16 millert 10200: int
10201: main ()
10202: {
10203: return f != $ac_func;
1.9 millert 10204: ;
10205: return 0;
10206: }
10207: _ACEOF
10208: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 10209: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10210: (eval $ac_link) 2>&5
10211: ac_status=$?
1.16 millert 10212: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10213: (exit $ac_status); } &&
10214: { ac_try='test -s conftest$ac_exeext'
1.16 millert 10215: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10216: (eval $ac_try) 2>&5
10217: ac_status=$?
1.16 millert 10218: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10219: (exit $ac_status); }; }; then
10220: eval "$as_ac_var=yes"
10221: else
10222: echo "$as_me: failed program was:" >&5
1.16 millert 10223: sed 's/^/| /' conftest.$ac_ext >&5
10224:
1.9 millert 10225: eval "$as_ac_var=no"
10226: fi
10227: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10228: fi
1.16 millert 10229: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 10230: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10231: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 10232: cat >>confdefs.h <<_ACEOF
1.9 millert 10233: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 10234: _ACEOF
1.1 millert 10235:
10236: else
1.9 millert 10237: LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
1.1 millert 10238: fi
10239: done
10240:
1.16 millert 10241:
1.1 millert 10242: fi
10243:
1.16 millert 10244:
1.9 millert 10245: for ac_func in lockf flock
10246: do
10247: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 10248: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 10249: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10250: if eval "test \"\${$as_ac_var+set}\" = set"; then
10251: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10252: else
1.9 millert 10253: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10254: #line $LINENO "configure"
10255: /* confdefs.h. */
10256: _ACEOF
10257: cat confdefs.h >>conftest.$ac_ext
10258: cat >>conftest.$ac_ext <<_ACEOF
10259: /* end confdefs.h. */
1.1 millert 10260: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 10261: which can conflict with char $ac_func (); below.
10262: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10263: <limits.h> exists even on freestanding compilers. */
10264: #ifdef __STDC__
10265: # include <limits.h>
10266: #else
10267: # include <assert.h>
10268: #endif
1.1 millert 10269: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 10270: #ifdef __cplusplus
10271: extern "C"
1.16 millert 10272: {
1.9 millert 10273: #endif
1.1 millert 10274: /* We use char because int might match the return type of a gcc2
1.9 millert 10275: builtin and then its argument prototype would still apply. */
10276: char $ac_func ();
1.1 millert 10277: /* The GNU C library defines this for functions which it implements
10278: to always fail with ENOSYS. Some functions are actually named
10279: something starting with __ and the normal name is an alias. */
1.9 millert 10280: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 10281: choke me
10282: #else
1.16 millert 10283: char (*f) () = $ac_func;
10284: #endif
10285: #ifdef __cplusplus
10286: }
1.1 millert 10287: #endif
10288:
1.16 millert 10289: int
10290: main ()
10291: {
10292: return f != $ac_func;
1.9 millert 10293: ;
10294: return 0;
10295: }
10296: _ACEOF
10297: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 10298: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10299: (eval $ac_link) 2>&5
10300: ac_status=$?
1.16 millert 10301: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10302: (exit $ac_status); } &&
10303: { ac_try='test -s conftest$ac_exeext'
1.16 millert 10304: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10305: (eval $ac_try) 2>&5
10306: ac_status=$?
1.16 millert 10307: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10308: (exit $ac_status); }; }; then
10309: eval "$as_ac_var=yes"
10310: else
10311: echo "$as_me: failed program was:" >&5
1.16 millert 10312: sed 's/^/| /' conftest.$ac_ext >&5
10313:
1.9 millert 10314: eval "$as_ac_var=no"
10315: fi
10316: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10317: fi
1.16 millert 10318: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 10319: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10320: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 10321: cat >>confdefs.h <<_ACEOF
1.9 millert 10322: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 10323: _ACEOF
1.9 millert 10324: break
1.1 millert 10325: fi
1.9 millert 10326: done
1.1 millert 10327:
1.16 millert 10328:
10329:
1.9 millert 10330: for ac_func in waitpid wait3
1.1 millert 10331: do
1.9 millert 10332: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 10333: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 10334: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10335: if eval "test \"\${$as_ac_var+set}\" = set"; then
10336: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10337: else
1.9 millert 10338: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10339: #line $LINENO "configure"
10340: /* confdefs.h. */
10341: _ACEOF
10342: cat confdefs.h >>conftest.$ac_ext
10343: cat >>conftest.$ac_ext <<_ACEOF
10344: /* end confdefs.h. */
1.1 millert 10345: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 10346: which can conflict with char $ac_func (); below.
10347: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10348: <limits.h> exists even on freestanding compilers. */
10349: #ifdef __STDC__
10350: # include <limits.h>
10351: #else
10352: # include <assert.h>
10353: #endif
1.1 millert 10354: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 10355: #ifdef __cplusplus
10356: extern "C"
1.16 millert 10357: {
1.9 millert 10358: #endif
1.1 millert 10359: /* We use char because int might match the return type of a gcc2
1.9 millert 10360: builtin and then its argument prototype would still apply. */
10361: char $ac_func ();
1.1 millert 10362: /* The GNU C library defines this for functions which it implements
10363: to always fail with ENOSYS. Some functions are actually named
10364: something starting with __ and the normal name is an alias. */
10365: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10366: choke me
10367: #else
1.16 millert 10368: char (*f) () = $ac_func;
10369: #endif
10370: #ifdef __cplusplus
10371: }
1.1 millert 10372: #endif
10373:
1.16 millert 10374: int
10375: main ()
10376: {
10377: return f != $ac_func;
1.9 millert 10378: ;
10379: return 0;
10380: }
10381: _ACEOF
10382: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 10383: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10384: (eval $ac_link) 2>&5
10385: ac_status=$?
1.16 millert 10386: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10387: (exit $ac_status); } &&
10388: { ac_try='test -s conftest$ac_exeext'
1.16 millert 10389: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10390: (eval $ac_try) 2>&5
10391: ac_status=$?
1.16 millert 10392: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10393: (exit $ac_status); }; }; then
10394: eval "$as_ac_var=yes"
10395: else
10396: echo "$as_me: failed program was:" >&5
1.16 millert 10397: sed 's/^/| /' conftest.$ac_ext >&5
10398:
1.9 millert 10399: eval "$as_ac_var=no"
10400: fi
10401: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10402: fi
1.16 millert 10403: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 10404: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10405: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 10406: cat >>confdefs.h <<_ACEOF
1.9 millert 10407: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 10408: _ACEOF
1.9 millert 10409: break
1.1 millert 10410: fi
10411: done
10412:
1.16 millert 10413:
10414:
1.9 millert 10415: for ac_func in innetgr _innetgr
10416: do
10417: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 10418: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 10419: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10420: if eval "test \"\${$as_ac_var+set}\" = set"; then
10421: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10422: else
1.9 millert 10423: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10424: #line $LINENO "configure"
10425: /* confdefs.h. */
10426: _ACEOF
10427: cat confdefs.h >>conftest.$ac_ext
10428: cat >>conftest.$ac_ext <<_ACEOF
10429: /* end confdefs.h. */
1.1 millert 10430: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 10431: which can conflict with char $ac_func (); below.
10432: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10433: <limits.h> exists even on freestanding compilers. */
10434: #ifdef __STDC__
10435: # include <limits.h>
10436: #else
10437: # include <assert.h>
10438: #endif
1.1 millert 10439: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 10440: #ifdef __cplusplus
10441: extern "C"
1.16 millert 10442: {
1.9 millert 10443: #endif
1.1 millert 10444: /* We use char because int might match the return type of a gcc2
1.9 millert 10445: builtin and then its argument prototype would still apply. */
10446: char $ac_func ();
1.1 millert 10447: /* The GNU C library defines this for functions which it implements
10448: to always fail with ENOSYS. Some functions are actually named
10449: something starting with __ and the normal name is an alias. */
1.9 millert 10450: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 10451: choke me
10452: #else
1.16 millert 10453: char (*f) () = $ac_func;
10454: #endif
10455: #ifdef __cplusplus
10456: }
1.1 millert 10457: #endif
10458:
1.16 millert 10459: int
10460: main ()
10461: {
10462: return f != $ac_func;
1.9 millert 10463: ;
10464: return 0;
10465: }
10466: _ACEOF
10467: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 10468: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10469: (eval $ac_link) 2>&5
10470: ac_status=$?
1.16 millert 10471: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10472: (exit $ac_status); } &&
10473: { ac_try='test -s conftest$ac_exeext'
1.16 millert 10474: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10475: (eval $ac_try) 2>&5
10476: ac_status=$?
1.16 millert 10477: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10478: (exit $ac_status); }; }; then
10479: eval "$as_ac_var=yes"
10480: else
10481: echo "$as_me: failed program was:" >&5
1.16 millert 10482: sed 's/^/| /' conftest.$ac_ext >&5
10483:
1.9 millert 10484: eval "$as_ac_var=no"
10485: fi
10486: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10487: fi
1.16 millert 10488: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 10489: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10490: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 10491: cat >>confdefs.h <<_ACEOF
1.9 millert 10492: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 10493: _ACEOF
1.1 millert 10494:
1.9 millert 10495: for ac_func in getdomainname
10496: do
10497: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 10498: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 10499: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10500: if eval "test \"\${$as_ac_var+set}\" = set"; then
10501: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10502: else
1.9 millert 10503: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10504: #line $LINENO "configure"
10505: /* confdefs.h. */
10506: _ACEOF
10507: cat confdefs.h >>conftest.$ac_ext
10508: cat >>conftest.$ac_ext <<_ACEOF
10509: /* end confdefs.h. */
10510: /* System header to define __stub macros and hopefully few prototypes,
10511: which can conflict with char $ac_func (); below.
10512: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10513: <limits.h> exists even on freestanding compilers. */
10514: #ifdef __STDC__
10515: # include <limits.h>
10516: #else
10517: # include <assert.h>
10518: #endif
1.1 millert 10519: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 10520: #ifdef __cplusplus
10521: extern "C"
1.16 millert 10522: {
1.9 millert 10523: #endif
1.1 millert 10524: /* We use char because int might match the return type of a gcc2
1.9 millert 10525: builtin and then its argument prototype would still apply. */
10526: char $ac_func ();
1.1 millert 10527: /* The GNU C library defines this for functions which it implements
10528: to always fail with ENOSYS. Some functions are actually named
10529: something starting with __ and the normal name is an alias. */
1.9 millert 10530: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 10531: choke me
10532: #else
1.16 millert 10533: char (*f) () = $ac_func;
10534: #endif
10535: #ifdef __cplusplus
10536: }
1.1 millert 10537: #endif
10538:
1.16 millert 10539: int
10540: main ()
10541: {
10542: return f != $ac_func;
1.9 millert 10543: ;
10544: return 0;
10545: }
10546: _ACEOF
10547: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 10548: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10549: (eval $ac_link) 2>&5
10550: ac_status=$?
1.16 millert 10551: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10552: (exit $ac_status); } &&
10553: { ac_try='test -s conftest$ac_exeext'
1.16 millert 10554: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10555: (eval $ac_try) 2>&5
10556: ac_status=$?
1.16 millert 10557: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10558: (exit $ac_status); }; }; then
10559: eval "$as_ac_var=yes"
10560: else
10561: echo "$as_me: failed program was:" >&5
1.16 millert 10562: sed 's/^/| /' conftest.$ac_ext >&5
10563:
1.9 millert 10564: eval "$as_ac_var=no"
10565: fi
10566: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10567: fi
1.16 millert 10568: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 10569: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10570: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 10571: cat >>confdefs.h <<_ACEOF
1.9 millert 10572: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 10573: _ACEOF
1.9 millert 10574:
1.1 millert 10575: fi
1.9 millert 10576: done
10577: break
1.1 millert 10578: fi
1.9 millert 10579: done
1.1 millert 10580:
1.16 millert 10581:
1.9 millert 10582: for ac_func in lsearch
10583: do
10584: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 10585: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 10586: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10587: if eval "test \"\${$as_ac_var+set}\" = set"; then
10588: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10589: else
1.9 millert 10590: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10591: #line $LINENO "configure"
10592: /* confdefs.h. */
10593: _ACEOF
10594: cat confdefs.h >>conftest.$ac_ext
10595: cat >>conftest.$ac_ext <<_ACEOF
10596: /* end confdefs.h. */
1.1 millert 10597: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 10598: which can conflict with char $ac_func (); below.
10599: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10600: <limits.h> exists even on freestanding compilers. */
10601: #ifdef __STDC__
10602: # include <limits.h>
10603: #else
10604: # include <assert.h>
10605: #endif
1.1 millert 10606: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 10607: #ifdef __cplusplus
10608: extern "C"
1.16 millert 10609: {
1.9 millert 10610: #endif
1.1 millert 10611: /* We use char because int might match the return type of a gcc2
1.9 millert 10612: builtin and then its argument prototype would still apply. */
10613: char $ac_func ();
1.1 millert 10614: /* The GNU C library defines this for functions which it implements
10615: to always fail with ENOSYS. Some functions are actually named
10616: something starting with __ and the normal name is an alias. */
1.9 millert 10617: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 10618: choke me
10619: #else
1.16 millert 10620: char (*f) () = $ac_func;
10621: #endif
10622: #ifdef __cplusplus
10623: }
1.1 millert 10624: #endif
10625:
1.16 millert 10626: int
10627: main ()
10628: {
10629: return f != $ac_func;
1.9 millert 10630: ;
10631: return 0;
10632: }
10633: _ACEOF
10634: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 10635: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10636: (eval $ac_link) 2>&5
10637: ac_status=$?
1.16 millert 10638: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10639: (exit $ac_status); } &&
10640: { ac_try='test -s conftest$ac_exeext'
1.16 millert 10641: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10642: (eval $ac_try) 2>&5
10643: ac_status=$?
1.16 millert 10644: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10645: (exit $ac_status); }; }; then
10646: eval "$as_ac_var=yes"
10647: else
10648: echo "$as_me: failed program was:" >&5
1.16 millert 10649: sed 's/^/| /' conftest.$ac_ext >&5
10650:
1.9 millert 10651: eval "$as_ac_var=no"
10652: fi
10653: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10654: fi
1.16 millert 10655: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 10656: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10657: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 10658: cat >>confdefs.h <<_ACEOF
1.9 millert 10659: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 10660: _ACEOF
1.9 millert 10661:
10662: else
1.16 millert 10663: echo "$as_me:$LINENO: checking for lsearch in -lcompat" >&5
1.9 millert 10664: echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6
10665: if test "${ac_cv_lib_compat_lsearch+set}" = set; then
10666: echo $ECHO_N "(cached) $ECHO_C" >&6
10667: else
10668: ac_check_lib_save_LIBS=$LIBS
10669: LIBS="-lcompat $LIBS"
10670: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10671: #line $LINENO "configure"
10672: /* confdefs.h. */
10673: _ACEOF
10674: cat confdefs.h >>conftest.$ac_ext
10675: cat >>conftest.$ac_ext <<_ACEOF
10676: /* end confdefs.h. */
1.9 millert 10677:
10678: /* Override any gcc2 internal prototype to avoid an error. */
10679: #ifdef __cplusplus
10680: extern "C"
10681: #endif
10682: /* We use char because int might match the return type of a gcc2
10683: builtin and then its argument prototype would still apply. */
10684: char lsearch ();
10685: int
10686: main ()
10687: {
10688: lsearch ();
10689: ;
10690: return 0;
10691: }
10692: _ACEOF
10693: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 10694: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10695: (eval $ac_link) 2>&5
10696: ac_status=$?
1.16 millert 10697: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10698: (exit $ac_status); } &&
10699: { ac_try='test -s conftest$ac_exeext'
1.16 millert 10700: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10701: (eval $ac_try) 2>&5
10702: ac_status=$?
1.16 millert 10703: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10704: (exit $ac_status); }; }; then
10705: ac_cv_lib_compat_lsearch=yes
10706: else
10707: echo "$as_me: failed program was:" >&5
1.16 millert 10708: sed 's/^/| /' conftest.$ac_ext >&5
10709:
1.9 millert 10710: ac_cv_lib_compat_lsearch=no
10711: fi
10712: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10713: LIBS=$ac_check_lib_save_LIBS
10714: fi
1.16 millert 10715: echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lsearch" >&5
1.9 millert 10716: echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6
10717: if test $ac_cv_lib_compat_lsearch = yes; then
1.16 millert 10718: echo "$as_me:$LINENO: checking for search.h" >&5
1.9 millert 10719: echo $ECHO_N "checking for search.h... $ECHO_C" >&6
10720: if test "${ac_cv_header_search_h+set}" = set; then
10721: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10722: else
1.9 millert 10723: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10724: #line $LINENO "configure"
10725: /* confdefs.h. */
10726: _ACEOF
10727: cat confdefs.h >>conftest.$ac_ext
10728: cat >>conftest.$ac_ext <<_ACEOF
10729: /* end confdefs.h. */
1.9 millert 10730: #include <search.h>
10731: _ACEOF
1.16 millert 10732: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 10733: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10734: ac_status=$?
1.16 millert 10735: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 10736: rm -f conftest.er1
10737: cat conftest.err >&5
1.16 millert 10738: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10739: (exit $ac_status); } >/dev/null; then
10740: if test -s conftest.err; then
10741: ac_cpp_err=$ac_c_preproc_warn_flag
10742: else
10743: ac_cpp_err=
10744: fi
10745: else
10746: ac_cpp_err=yes
10747: fi
10748: if test -z "$ac_cpp_err"; then
10749: ac_cv_header_search_h=yes
10750: else
10751: echo "$as_me: failed program was:" >&5
1.16 millert 10752: sed 's/^/| /' conftest.$ac_ext >&5
10753:
1.9 millert 10754: ac_cv_header_search_h=no
1.1 millert 10755: fi
1.9 millert 10756: rm -f conftest.err conftest.$ac_ext
1.1 millert 10757: fi
1.16 millert 10758: echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
1.9 millert 10759: echo "${ECHO_T}$ac_cv_header_search_h" >&6
10760: if test $ac_cv_header_search_h = yes; then
1.16 millert 10761: cat >>confdefs.h <<\_ACEOF
1.9 millert 10762: #define HAVE_LSEARCH 1
1.16 millert 10763: _ACEOF
1.9 millert 10764: LIBS="${LIBS} -lcompat"
10765: else
10766: LIBOBJS="$LIBOBJS lsearch.$ac_objext"
10767: fi
1.1 millert 10768:
1.16 millert 10769:
1.1 millert 10770: else
1.9 millert 10771: LIBOBJS="$LIBOBJS lsearch.$ac_objext"
1.1 millert 10772: fi
10773:
10774: fi
1.9 millert 10775: done
1.1 millert 10776:
1.16 millert 10777:
1.9 millert 10778: for ac_func in utime
10779: do
10780: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 10781: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 10782: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10783: if eval "test \"\${$as_ac_var+set}\" = set"; then
10784: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10785: else
1.9 millert 10786: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10787: #line $LINENO "configure"
10788: /* confdefs.h. */
10789: _ACEOF
10790: cat confdefs.h >>conftest.$ac_ext
10791: cat >>conftest.$ac_ext <<_ACEOF
10792: /* end confdefs.h. */
1.1 millert 10793: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 10794: which can conflict with char $ac_func (); below.
10795: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10796: <limits.h> exists even on freestanding compilers. */
10797: #ifdef __STDC__
10798: # include <limits.h>
10799: #else
10800: # include <assert.h>
10801: #endif
1.1 millert 10802: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 10803: #ifdef __cplusplus
10804: extern "C"
1.16 millert 10805: {
1.9 millert 10806: #endif
1.1 millert 10807: /* We use char because int might match the return type of a gcc2
1.9 millert 10808: builtin and then its argument prototype would still apply. */
10809: char $ac_func ();
1.1 millert 10810: /* The GNU C library defines this for functions which it implements
10811: to always fail with ENOSYS. Some functions are actually named
10812: something starting with __ and the normal name is an alias. */
1.9 millert 10813: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 10814: choke me
10815: #else
1.16 millert 10816: char (*f) () = $ac_func;
10817: #endif
10818: #ifdef __cplusplus
10819: }
1.1 millert 10820: #endif
10821:
1.16 millert 10822: int
10823: main ()
10824: {
10825: return f != $ac_func;
1.9 millert 10826: ;
10827: return 0;
10828: }
10829: _ACEOF
10830: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 10831: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10832: (eval $ac_link) 2>&5
10833: ac_status=$?
1.16 millert 10834: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10835: (exit $ac_status); } &&
10836: { ac_try='test -s conftest$ac_exeext'
1.16 millert 10837: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10838: (eval $ac_try) 2>&5
10839: ac_status=$?
1.16 millert 10840: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10841: (exit $ac_status); }; }; then
10842: eval "$as_ac_var=yes"
10843: else
10844: echo "$as_me: failed program was:" >&5
1.16 millert 10845: sed 's/^/| /' conftest.$ac_ext >&5
10846:
1.9 millert 10847: eval "$as_ac_var=no"
10848: fi
10849: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10850: fi
1.16 millert 10851: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 10852: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10853: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 10854: cat >>confdefs.h <<_ACEOF
1.9 millert 10855: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 10856: _ACEOF
10857: echo "$as_me:$LINENO: checking for POSIX utime" >&5
1.9 millert 10858: echo $ECHO_N "checking for POSIX utime... $ECHO_C" >&6
10859: if test "${sudo_cv_func_utime_posix+set}" = set; then
10860: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10861: else
10862: rm -f conftestdata; > conftestdata
10863: if test "$cross_compiling" = yes; then
10864: sudo_cv_func_utime_posix=no
10865: else
1.9 millert 10866: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10867: #line $LINENO "configure"
10868: /* confdefs.h. */
10869: _ACEOF
10870: cat confdefs.h >>conftest.$ac_ext
10871: cat >>conftest.$ac_ext <<_ACEOF
10872: /* end confdefs.h. */
1.1 millert 10873: #include <sys/types.h>
10874: #include <sys/time.h>
10875: #include <utime.h>
10876: main() {
10877: struct utimbuf ut;
10878: ut.actime = ut.modtime = time(0);
10879: utime("conftestdata", &ut);
10880: exit(0);
10881: }
1.9 millert 10882: _ACEOF
10883: rm -f conftest$ac_exeext
1.16 millert 10884: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10885: (eval $ac_link) 2>&5
10886: ac_status=$?
1.16 millert 10887: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10888: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16 millert 10889: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10890: (eval $ac_try) 2>&5
10891: ac_status=$?
1.16 millert 10892: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10893: (exit $ac_status); }; }; then
1.1 millert 10894: sudo_cv_func_utime_posix=yes
10895: else
1.9 millert 10896: echo "$as_me: program exited with status $ac_status" >&5
10897: echo "$as_me: failed program was:" >&5
1.16 millert 10898: sed 's/^/| /' conftest.$ac_ext >&5
10899:
10900: ( exit $ac_status )
1.9 millert 10901: sudo_cv_func_utime_posix=no
1.1 millert 10902: fi
1.16 millert 10903: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 10904: fi
10905: rm -f core core.* *.core
10906: fi
1.16 millert 10907: echo "$as_me:$LINENO: result: $sudo_cv_func_utime_posix" >&5
1.9 millert 10908: echo "${ECHO_T}$sudo_cv_func_utime_posix" >&6
1.1 millert 10909: if test $sudo_cv_func_utime_posix = yes; then
1.9 millert 10910:
1.16 millert 10911: cat >>confdefs.h <<\_ACEOF
1.1 millert 10912: #define HAVE_UTIME_POSIX 1
1.16 millert 10913: _ACEOF
1.1 millert 10914:
10915: fi
10916:
10917: else
1.9 millert 10918: LIBOBJS="$LIBOBJS utime.$ac_objext"
1.1 millert 10919: fi
1.9 millert 10920: done
1.1 millert 10921:
1.16 millert 10922: echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
1.9 millert 10923: echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6
10924: if test "${sudo_cv_func_fnmatch+set}" = set; then
10925: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10926: else
10927: rm -f conftestdata; > conftestdata
10928: if test "$cross_compiling" = yes; then
10929: sudo_cv_func_fnmatch=no
10930: else
1.9 millert 10931: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10932: #line $LINENO "configure"
10933: /* confdefs.h. */
10934: _ACEOF
10935: cat confdefs.h >>conftest.$ac_ext
10936: cat >>conftest.$ac_ext <<_ACEOF
10937: /* end confdefs.h. */
1.3 millert 10938: #include <fnmatch.h>
1.6 millert 10939: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
1.3 millert 10940:
1.9 millert 10941: _ACEOF
10942: rm -f conftest$ac_exeext
1.16 millert 10943: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 10944: (eval $ac_link) 2>&5
10945: ac_status=$?
1.16 millert 10946: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10947: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16 millert 10948: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 10949: (eval $ac_try) 2>&5
10950: ac_status=$?
1.16 millert 10951: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 10952: (exit $ac_status); }; }; then
1.1 millert 10953: sudo_cv_func_fnmatch=yes
10954: else
1.9 millert 10955: echo "$as_me: program exited with status $ac_status" >&5
10956: echo "$as_me: failed program was:" >&5
1.16 millert 10957: sed 's/^/| /' conftest.$ac_ext >&5
10958:
10959: ( exit $ac_status )
1.9 millert 10960: sudo_cv_func_fnmatch=no
1.1 millert 10961: fi
1.16 millert 10962: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 10963: fi
10964: rm -f core core.* *.core
10965: fi
1.16 millert 10966: echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
1.9 millert 10967: echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6
1.1 millert 10968: if test $sudo_cv_func_fnmatch = yes; then
1.9 millert 10969:
1.16 millert 10970: cat >>confdefs.h <<\_ACEOF
1.1 millert 10971: #define HAVE_FNMATCH 1
1.16 millert 10972: _ACEOF
1.1 millert 10973:
10974: else
1.9 millert 10975: LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
1.1 millert 10976: fi
10977:
1.16 millert 10978: echo "$as_me:$LINENO: checking for isblank" >&5
1.9 millert 10979: echo $ECHO_N "checking for isblank... $ECHO_C" >&6
10980: if test "${sudo_cv_func_isblank+set}" = set; then
10981: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10982: else
1.9 millert 10983: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 10984: #line $LINENO "configure"
10985: /* confdefs.h. */
10986: _ACEOF
10987: cat confdefs.h >>conftest.$ac_ext
10988: cat >>conftest.$ac_ext <<_ACEOF
10989: /* end confdefs.h. */
1.9 millert 10990: #include <ctype.h>
10991: int
10992: main ()
10993: {
10994: (void)isblank(1);
10995: ;
10996: return 0;
10997: }
10998: _ACEOF
10999: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11000: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11001: (eval $ac_link) 2>&5
11002: ac_status=$?
1.16 millert 11003: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11004: (exit $ac_status); } &&
11005: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11006: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11007: (eval $ac_try) 2>&5
11008: ac_status=$?
1.16 millert 11009: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11010: (exit $ac_status); }; }; then
11011: sudo_cv_func_isblank=yes
11012: else
11013: echo "$as_me: failed program was:" >&5
1.16 millert 11014: sed 's/^/| /' conftest.$ac_ext >&5
11015:
1.9 millert 11016: sudo_cv_func_isblank=no
11017: fi
11018: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 millert 11019: fi
1.16 millert 11020: echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
1.9 millert 11021: echo "${ECHO_T}$sudo_cv_func_isblank" >&6
1.1 millert 11022:
1.9 millert 11023: if test "$sudo_cv_func_isblank" = "yes"; then
1.1 millert 11024:
1.16 millert 11025: cat >>confdefs.h <<\_ACEOF
1.9 millert 11026: #define HAVE_ISBLANK 1
1.16 millert 11027: _ACEOF
1.1 millert 11028:
1.9 millert 11029: fi
1.1 millert 11030:
1.16 millert 11031:
11032:
11033:
11034:
11035:
11036: for ac_func in strerror strcasecmp sigaction strlcpy strlcat
1.9 millert 11037: do
11038: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 11039: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 11040: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11041: if eval "test \"\${$as_ac_var+set}\" = set"; then
11042: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11043: else
1.9 millert 11044: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11045: #line $LINENO "configure"
11046: /* confdefs.h. */
11047: _ACEOF
11048: cat confdefs.h >>conftest.$ac_ext
11049: cat >>conftest.$ac_ext <<_ACEOF
11050: /* end confdefs.h. */
1.1 millert 11051: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 11052: which can conflict with char $ac_func (); below.
11053: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11054: <limits.h> exists even on freestanding compilers. */
11055: #ifdef __STDC__
11056: # include <limits.h>
11057: #else
11058: # include <assert.h>
11059: #endif
1.1 millert 11060: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11061: #ifdef __cplusplus
11062: extern "C"
1.16 millert 11063: {
1.1 millert 11064: #endif
11065: /* We use char because int might match the return type of a gcc2
1.9 millert 11066: builtin and then its argument prototype would still apply. */
11067: char $ac_func ();
1.1 millert 11068: /* The GNU C library defines this for functions which it implements
11069: to always fail with ENOSYS. Some functions are actually named
11070: something starting with __ and the normal name is an alias. */
1.9 millert 11071: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 11072: choke me
11073: #else
1.16 millert 11074: char (*f) () = $ac_func;
11075: #endif
11076: #ifdef __cplusplus
11077: }
1.1 millert 11078: #endif
11079:
1.16 millert 11080: int
11081: main ()
11082: {
11083: return f != $ac_func;
1.9 millert 11084: ;
11085: return 0;
11086: }
11087: _ACEOF
11088: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11089: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11090: (eval $ac_link) 2>&5
11091: ac_status=$?
1.16 millert 11092: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11093: (exit $ac_status); } &&
11094: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11095: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11096: (eval $ac_try) 2>&5
11097: ac_status=$?
1.16 millert 11098: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11099: (exit $ac_status); }; }; then
11100: eval "$as_ac_var=yes"
11101: else
11102: echo "$as_me: failed program was:" >&5
1.16 millert 11103: sed 's/^/| /' conftest.$ac_ext >&5
11104:
1.9 millert 11105: eval "$as_ac_var=no"
11106: fi
11107: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11108: fi
1.16 millert 11109: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 11110: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11111: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 11112: cat >>confdefs.h <<_ACEOF
1.9 millert 11113: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 11114: _ACEOF
1.1 millert 11115:
11116: else
1.9 millert 11117: LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
1.1 millert 11118: fi
1.9 millert 11119: done
1.1 millert 11120:
1.16 millert 11121:
11122:
11123:
11124:
11125:
1.9 millert 11126: for ac_func in snprintf vsnprintf asprintf vasprintf
11127: do
11128: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 11129: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 11130: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11131: if eval "test \"\${$as_ac_var+set}\" = set"; then
11132: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11133: else
1.9 millert 11134: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11135: #line $LINENO "configure"
11136: /* confdefs.h. */
11137: _ACEOF
11138: cat confdefs.h >>conftest.$ac_ext
11139: cat >>conftest.$ac_ext <<_ACEOF
11140: /* end confdefs.h. */
1.1 millert 11141: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 11142: which can conflict with char $ac_func (); below.
11143: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11144: <limits.h> exists even on freestanding compilers. */
11145: #ifdef __STDC__
11146: # include <limits.h>
11147: #else
11148: # include <assert.h>
11149: #endif
1.1 millert 11150: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11151: #ifdef __cplusplus
11152: extern "C"
1.16 millert 11153: {
1.9 millert 11154: #endif
1.1 millert 11155: /* We use char because int might match the return type of a gcc2
1.9 millert 11156: builtin and then its argument prototype would still apply. */
11157: char $ac_func ();
1.1 millert 11158: /* The GNU C library defines this for functions which it implements
11159: to always fail with ENOSYS. Some functions are actually named
11160: something starting with __ and the normal name is an alias. */
1.9 millert 11161: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 11162: choke me
11163: #else
1.16 millert 11164: char (*f) () = $ac_func;
11165: #endif
11166: #ifdef __cplusplus
11167: }
1.1 millert 11168: #endif
11169:
1.16 millert 11170: int
11171: main ()
11172: {
11173: return f != $ac_func;
1.9 millert 11174: ;
11175: return 0;
11176: }
11177: _ACEOF
11178: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11179: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11180: (eval $ac_link) 2>&5
11181: ac_status=$?
1.16 millert 11182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11183: (exit $ac_status); } &&
11184: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11185: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11186: (eval $ac_try) 2>&5
11187: ac_status=$?
1.16 millert 11188: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11189: (exit $ac_status); }; }; then
11190: eval "$as_ac_var=yes"
11191: else
11192: echo "$as_me: failed program was:" >&5
1.16 millert 11193: sed 's/^/| /' conftest.$ac_ext >&5
11194:
1.9 millert 11195: eval "$as_ac_var=no"
11196: fi
11197: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11198: fi
1.16 millert 11199: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 11200: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11201: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 11202: cat >>confdefs.h <<_ACEOF
1.9 millert 11203: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 11204: _ACEOF
1.1 millert 11205:
11206: else
1.9 millert 11207: NEED_SNPRINTF=1
1.1 millert 11208: fi
1.9 millert 11209: done
1.1 millert 11210:
11211: if test -n "$NEED_SNPRINTF"; then
1.9 millert 11212: LIBOBJS="$LIBOBJS snprintf.$ac_objext"
1.1 millert 11213: fi
11214: if test -z "$LIB_CRYPT"; then
1.16 millert 11215: echo "$as_me:$LINENO: checking for crypt" >&5
1.9 millert 11216: echo $ECHO_N "checking for crypt... $ECHO_C" >&6
11217: if test "${ac_cv_func_crypt+set}" = set; then
11218: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11219: else
1.9 millert 11220: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11221: #line $LINENO "configure"
11222: /* confdefs.h. */
11223: _ACEOF
11224: cat confdefs.h >>conftest.$ac_ext
11225: cat >>conftest.$ac_ext <<_ACEOF
11226: /* end confdefs.h. */
1.1 millert 11227: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 11228: which can conflict with char crypt (); below.
11229: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11230: <limits.h> exists even on freestanding compilers. */
11231: #ifdef __STDC__
11232: # include <limits.h>
11233: #else
11234: # include <assert.h>
11235: #endif
1.1 millert 11236: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11237: #ifdef __cplusplus
11238: extern "C"
1.16 millert 11239: {
1.9 millert 11240: #endif
1.1 millert 11241: /* We use char because int might match the return type of a gcc2
1.9 millert 11242: builtin and then its argument prototype would still apply. */
11243: char crypt ();
1.1 millert 11244: /* The GNU C library defines this for functions which it implements
11245: to always fail with ENOSYS. Some functions are actually named
11246: something starting with __ and the normal name is an alias. */
11247: #if defined (__stub_crypt) || defined (__stub___crypt)
11248: choke me
11249: #else
1.16 millert 11250: char (*f) () = crypt;
11251: #endif
11252: #ifdef __cplusplus
11253: }
1.1 millert 11254: #endif
11255:
1.16 millert 11256: int
11257: main ()
11258: {
11259: return f != crypt;
1.9 millert 11260: ;
11261: return 0;
11262: }
11263: _ACEOF
11264: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11265: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11266: (eval $ac_link) 2>&5
11267: ac_status=$?
1.16 millert 11268: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11269: (exit $ac_status); } &&
11270: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11271: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11272: (eval $ac_try) 2>&5
11273: ac_status=$?
1.16 millert 11274: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11275: (exit $ac_status); }; }; then
11276: ac_cv_func_crypt=yes
11277: else
11278: echo "$as_me: failed program was:" >&5
1.16 millert 11279: sed 's/^/| /' conftest.$ac_ext >&5
11280:
1.9 millert 11281: ac_cv_func_crypt=no
11282: fi
11283: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11284: fi
1.16 millert 11285: echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
1.9 millert 11286: echo "${ECHO_T}$ac_cv_func_crypt" >&6
11287: if test $ac_cv_func_crypt = yes; then
1.1 millert 11288: :
11289: else
1.16 millert 11290: echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
1.9 millert 11291: echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
11292: if test "${ac_cv_lib_crypt_crypt+set}" = set; then
11293: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11294: else
1.9 millert 11295: ac_check_lib_save_LIBS=$LIBS
1.1 millert 11296: LIBS="-lcrypt $LIBS"
1.9 millert 11297: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11298: #line $LINENO "configure"
11299: /* confdefs.h. */
11300: _ACEOF
11301: cat confdefs.h >>conftest.$ac_ext
11302: cat >>conftest.$ac_ext <<_ACEOF
11303: /* end confdefs.h. */
1.9 millert 11304:
1.1 millert 11305: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11306: #ifdef __cplusplus
11307: extern "C"
11308: #endif
1.1 millert 11309: /* We use char because int might match the return type of a gcc2
1.9 millert 11310: builtin and then its argument prototype would still apply. */
11311: char crypt ();
11312: int
11313: main ()
11314: {
11315: crypt ();
11316: ;
11317: return 0;
11318: }
11319: _ACEOF
11320: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11321: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11322: (eval $ac_link) 2>&5
11323: ac_status=$?
1.16 millert 11324: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11325: (exit $ac_status); } &&
11326: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11327: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11328: (eval $ac_try) 2>&5
11329: ac_status=$?
1.16 millert 11330: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11331: (exit $ac_status); }; }; then
11332: ac_cv_lib_crypt_crypt=yes
11333: else
11334: echo "$as_me: failed program was:" >&5
1.16 millert 11335: sed 's/^/| /' conftest.$ac_ext >&5
11336:
1.9 millert 11337: ac_cv_lib_crypt_crypt=no
11338: fi
11339: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11340: LIBS=$ac_check_lib_save_LIBS
11341: fi
1.16 millert 11342: echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
1.9 millert 11343: echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
11344: if test $ac_cv_lib_crypt_crypt = yes; then
1.1 millert 11345: SUDO_LIBS="${SUDO_LIBS} -lcrypt"; LIBS="${LIBS} -lcrypt"
11346: else
1.16 millert 11347: echo "$as_me:$LINENO: checking for crypt in -lcrypt_d" >&5
1.9 millert 11348: echo $ECHO_N "checking for crypt in -lcrypt_d... $ECHO_C" >&6
11349: if test "${ac_cv_lib_crypt_d_crypt+set}" = set; then
11350: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11351: else
1.9 millert 11352: ac_check_lib_save_LIBS=$LIBS
1.1 millert 11353: LIBS="-lcrypt_d $LIBS"
1.9 millert 11354: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11355: #line $LINENO "configure"
11356: /* confdefs.h. */
11357: _ACEOF
11358: cat confdefs.h >>conftest.$ac_ext
11359: cat >>conftest.$ac_ext <<_ACEOF
11360: /* end confdefs.h. */
1.9 millert 11361:
1.1 millert 11362: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11363: #ifdef __cplusplus
11364: extern "C"
11365: #endif
1.1 millert 11366: /* We use char because int might match the return type of a gcc2
1.9 millert 11367: builtin and then its argument prototype would still apply. */
11368: char crypt ();
11369: int
11370: main ()
11371: {
11372: crypt ();
11373: ;
11374: return 0;
11375: }
11376: _ACEOF
11377: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11378: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11379: (eval $ac_link) 2>&5
11380: ac_status=$?
1.16 millert 11381: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11382: (exit $ac_status); } &&
11383: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11384: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11385: (eval $ac_try) 2>&5
11386: ac_status=$?
1.16 millert 11387: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11388: (exit $ac_status); }; }; then
11389: ac_cv_lib_crypt_d_crypt=yes
11390: else
11391: echo "$as_me: failed program was:" >&5
1.16 millert 11392: sed 's/^/| /' conftest.$ac_ext >&5
11393:
1.9 millert 11394: ac_cv_lib_crypt_d_crypt=no
11395: fi
11396: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11397: LIBS=$ac_check_lib_save_LIBS
11398: fi
1.16 millert 11399: echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_d_crypt" >&5
1.9 millert 11400: echo "${ECHO_T}$ac_cv_lib_crypt_d_crypt" >&6
11401: if test $ac_cv_lib_crypt_d_crypt = yes; then
1.1 millert 11402: SUDO_LIBS="${SUDO_LIBS} -lcrypt_d"; LIBS="${LIBS} -lcrypt_d"
11403: else
1.16 millert 11404: echo "$as_me:$LINENO: checking for crypt in -lufc" >&5
1.9 millert 11405: echo $ECHO_N "checking for crypt in -lufc... $ECHO_C" >&6
11406: if test "${ac_cv_lib_ufc_crypt+set}" = set; then
11407: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11408: else
1.9 millert 11409: ac_check_lib_save_LIBS=$LIBS
1.1 millert 11410: LIBS="-lufc $LIBS"
1.9 millert 11411: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11412: #line $LINENO "configure"
11413: /* confdefs.h. */
11414: _ACEOF
11415: cat confdefs.h >>conftest.$ac_ext
11416: cat >>conftest.$ac_ext <<_ACEOF
11417: /* end confdefs.h. */
1.9 millert 11418:
1.1 millert 11419: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11420: #ifdef __cplusplus
11421: extern "C"
11422: #endif
1.1 millert 11423: /* We use char because int might match the return type of a gcc2
1.9 millert 11424: builtin and then its argument prototype would still apply. */
11425: char crypt ();
11426: int
11427: main ()
11428: {
11429: crypt ();
11430: ;
11431: return 0;
11432: }
11433: _ACEOF
11434: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11435: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11436: (eval $ac_link) 2>&5
11437: ac_status=$?
1.16 millert 11438: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11439: (exit $ac_status); } &&
11440: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11441: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11442: (eval $ac_try) 2>&5
11443: ac_status=$?
1.16 millert 11444: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11445: (exit $ac_status); }; }; then
11446: ac_cv_lib_ufc_crypt=yes
11447: else
11448: echo "$as_me: failed program was:" >&5
1.16 millert 11449: sed 's/^/| /' conftest.$ac_ext >&5
11450:
1.9 millert 11451: ac_cv_lib_ufc_crypt=no
11452: fi
11453: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11454: LIBS=$ac_check_lib_save_LIBS
11455: fi
1.16 millert 11456: echo "$as_me:$LINENO: result: $ac_cv_lib_ufc_crypt" >&5
1.9 millert 11457: echo "${ECHO_T}$ac_cv_lib_ufc_crypt" >&6
11458: if test $ac_cv_lib_ufc_crypt = yes; then
1.1 millert 11459: SUDO_LIBS="${SUDO_LIBS} -lufc"; LIBS="${LIBS} -lufc"
11460: fi
11461:
11462: fi
11463:
11464: fi
11465:
11466: fi
11467:
11468: fi
1.16 millert 11469: echo "$as_me:$LINENO: checking for socket" >&5
1.9 millert 11470: echo $ECHO_N "checking for socket... $ECHO_C" >&6
11471: if test "${ac_cv_func_socket+set}" = set; then
11472: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11473: else
1.9 millert 11474: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11475: #line $LINENO "configure"
11476: /* confdefs.h. */
11477: _ACEOF
11478: cat confdefs.h >>conftest.$ac_ext
11479: cat >>conftest.$ac_ext <<_ACEOF
11480: /* end confdefs.h. */
1.1 millert 11481: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 11482: which can conflict with char socket (); below.
11483: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11484: <limits.h> exists even on freestanding compilers. */
11485: #ifdef __STDC__
11486: # include <limits.h>
11487: #else
11488: # include <assert.h>
11489: #endif
1.1 millert 11490: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11491: #ifdef __cplusplus
11492: extern "C"
1.16 millert 11493: {
1.9 millert 11494: #endif
1.1 millert 11495: /* We use char because int might match the return type of a gcc2
1.9 millert 11496: builtin and then its argument prototype would still apply. */
11497: char socket ();
1.1 millert 11498: /* The GNU C library defines this for functions which it implements
11499: to always fail with ENOSYS. Some functions are actually named
11500: something starting with __ and the normal name is an alias. */
11501: #if defined (__stub_socket) || defined (__stub___socket)
11502: choke me
11503: #else
1.16 millert 11504: char (*f) () = socket;
11505: #endif
11506: #ifdef __cplusplus
11507: }
1.1 millert 11508: #endif
11509:
1.16 millert 11510: int
11511: main ()
11512: {
11513: return f != socket;
1.9 millert 11514: ;
11515: return 0;
11516: }
11517: _ACEOF
11518: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11519: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11520: (eval $ac_link) 2>&5
11521: ac_status=$?
1.16 millert 11522: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11523: (exit $ac_status); } &&
11524: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11525: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11526: (eval $ac_try) 2>&5
11527: ac_status=$?
1.16 millert 11528: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11529: (exit $ac_status); }; }; then
11530: ac_cv_func_socket=yes
11531: else
11532: echo "$as_me: failed program was:" >&5
1.16 millert 11533: sed 's/^/| /' conftest.$ac_ext >&5
11534:
1.9 millert 11535: ac_cv_func_socket=no
11536: fi
11537: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11538: fi
1.16 millert 11539: echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
1.9 millert 11540: echo "${ECHO_T}$ac_cv_func_socket" >&6
11541: if test $ac_cv_func_socket = yes; then
1.1 millert 11542: :
11543: else
1.16 millert 11544: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
1.9 millert 11545: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11546: if test "${ac_cv_lib_socket_socket+set}" = set; then
11547: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11548: else
1.9 millert 11549: ac_check_lib_save_LIBS=$LIBS
1.1 millert 11550: LIBS="-lsocket $LIBS"
1.9 millert 11551: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11552: #line $LINENO "configure"
11553: /* confdefs.h. */
11554: _ACEOF
11555: cat confdefs.h >>conftest.$ac_ext
11556: cat >>conftest.$ac_ext <<_ACEOF
11557: /* end confdefs.h. */
1.9 millert 11558:
1.1 millert 11559: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11560: #ifdef __cplusplus
11561: extern "C"
11562: #endif
1.1 millert 11563: /* We use char because int might match the return type of a gcc2
1.9 millert 11564: builtin and then its argument prototype would still apply. */
11565: char socket ();
11566: int
11567: main ()
11568: {
11569: socket ();
11570: ;
11571: return 0;
11572: }
11573: _ACEOF
11574: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11575: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11576: (eval $ac_link) 2>&5
11577: ac_status=$?
1.16 millert 11578: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11579: (exit $ac_status); } &&
11580: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11581: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11582: (eval $ac_try) 2>&5
11583: ac_status=$?
1.16 millert 11584: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11585: (exit $ac_status); }; }; then
11586: ac_cv_lib_socket_socket=yes
11587: else
11588: echo "$as_me: failed program was:" >&5
1.16 millert 11589: sed 's/^/| /' conftest.$ac_ext >&5
11590:
1.9 millert 11591: ac_cv_lib_socket_socket=no
11592: fi
11593: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11594: LIBS=$ac_check_lib_save_LIBS
11595: fi
1.16 millert 11596: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
1.9 millert 11597: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
11598: if test $ac_cv_lib_socket_socket = yes; then
1.1 millert 11599: NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
11600: else
1.16 millert 11601: echo "$as_me:$LINENO: checking for socket in -linet" >&5
1.9 millert 11602: echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
11603: if test "${ac_cv_lib_inet_socket+set}" = set; then
11604: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11605: else
1.9 millert 11606: ac_check_lib_save_LIBS=$LIBS
1.1 millert 11607: LIBS="-linet $LIBS"
1.9 millert 11608: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11609: #line $LINENO "configure"
11610: /* confdefs.h. */
11611: _ACEOF
11612: cat confdefs.h >>conftest.$ac_ext
11613: cat >>conftest.$ac_ext <<_ACEOF
11614: /* end confdefs.h. */
1.9 millert 11615:
1.1 millert 11616: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11617: #ifdef __cplusplus
11618: extern "C"
11619: #endif
1.1 millert 11620: /* We use char because int might match the return type of a gcc2
1.9 millert 11621: builtin and then its argument prototype would still apply. */
11622: char socket ();
11623: int
11624: main ()
11625: {
11626: socket ();
11627: ;
11628: return 0;
11629: }
11630: _ACEOF
11631: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11632: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11633: (eval $ac_link) 2>&5
11634: ac_status=$?
1.16 millert 11635: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11636: (exit $ac_status); } &&
11637: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11638: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11639: (eval $ac_try) 2>&5
11640: ac_status=$?
1.16 millert 11641: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11642: (exit $ac_status); }; }; then
11643: ac_cv_lib_inet_socket=yes
11644: else
11645: echo "$as_me: failed program was:" >&5
1.16 millert 11646: sed 's/^/| /' conftest.$ac_ext >&5
11647:
1.9 millert 11648: ac_cv_lib_inet_socket=no
11649: fi
11650: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11651: LIBS=$ac_check_lib_save_LIBS
11652: fi
1.16 millert 11653: echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
1.9 millert 11654: echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
11655: if test $ac_cv_lib_inet_socket = yes; then
1.1 millert 11656: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
11657: else
1.16 millert 11658: { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
1.9 millert 11659: echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
1.16 millert 11660: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
1.9 millert 11661: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
11662: if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
11663: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11664: else
1.9 millert 11665: ac_check_lib_save_LIBS=$LIBS
1.1 millert 11666: LIBS="-lsocket -lnsl $LIBS"
1.9 millert 11667: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11668: #line $LINENO "configure"
11669: /* confdefs.h. */
11670: _ACEOF
11671: cat confdefs.h >>conftest.$ac_ext
11672: cat >>conftest.$ac_ext <<_ACEOF
11673: /* end confdefs.h. */
1.9 millert 11674:
1.1 millert 11675: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11676: #ifdef __cplusplus
11677: extern "C"
11678: #endif
1.1 millert 11679: /* We use char because int might match the return type of a gcc2
1.9 millert 11680: builtin and then its argument prototype would still apply. */
11681: char socket ();
11682: int
11683: main ()
11684: {
11685: socket ();
11686: ;
11687: return 0;
11688: }
11689: _ACEOF
11690: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11691: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11692: (eval $ac_link) 2>&5
11693: ac_status=$?
1.16 millert 11694: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11695: (exit $ac_status); } &&
11696: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11697: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11698: (eval $ac_try) 2>&5
11699: ac_status=$?
1.16 millert 11700: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11701: (exit $ac_status); }; }; then
11702: ac_cv_lib_socket_socket_lnsl=yes
11703: else
11704: echo "$as_me: failed program was:" >&5
1.16 millert 11705: sed 's/^/| /' conftest.$ac_ext >&5
11706:
1.9 millert 11707: ac_cv_lib_socket_socket_lnsl=no
11708: fi
11709: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11710: LIBS=$ac_check_lib_save_LIBS
11711: fi
1.16 millert 11712: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
1.9 millert 11713: echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6
11714: if test $ac_cv_lib_socket_socket_lnsl = yes; then
1.1 millert 11715: NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
11716: fi
11717:
11718: fi
11719:
11720: fi
11721:
11722: fi
11723:
1.16 millert 11724: echo "$as_me:$LINENO: checking for inet_addr" >&5
1.9 millert 11725: echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6
11726: if test "${ac_cv_func_inet_addr+set}" = set; then
11727: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11728: else
1.9 millert 11729: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11730: #line $LINENO "configure"
11731: /* confdefs.h. */
11732: _ACEOF
11733: cat confdefs.h >>conftest.$ac_ext
11734: cat >>conftest.$ac_ext <<_ACEOF
11735: /* end confdefs.h. */
1.1 millert 11736: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 11737: which can conflict with char inet_addr (); below.
11738: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11739: <limits.h> exists even on freestanding compilers. */
11740: #ifdef __STDC__
11741: # include <limits.h>
11742: #else
11743: # include <assert.h>
11744: #endif
1.1 millert 11745: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11746: #ifdef __cplusplus
11747: extern "C"
1.16 millert 11748: {
1.9 millert 11749: #endif
1.1 millert 11750: /* We use char because int might match the return type of a gcc2
1.9 millert 11751: builtin and then its argument prototype would still apply. */
11752: char inet_addr ();
1.1 millert 11753: /* The GNU C library defines this for functions which it implements
11754: to always fail with ENOSYS. Some functions are actually named
11755: something starting with __ and the normal name is an alias. */
11756: #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
11757: choke me
11758: #else
1.16 millert 11759: char (*f) () = inet_addr;
11760: #endif
11761: #ifdef __cplusplus
11762: }
1.1 millert 11763: #endif
11764:
1.16 millert 11765: int
11766: main ()
11767: {
11768: return f != inet_addr;
1.9 millert 11769: ;
11770: return 0;
11771: }
11772: _ACEOF
11773: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11774: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11775: (eval $ac_link) 2>&5
11776: ac_status=$?
1.16 millert 11777: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11778: (exit $ac_status); } &&
11779: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11780: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11781: (eval $ac_try) 2>&5
11782: ac_status=$?
1.16 millert 11783: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11784: (exit $ac_status); }; }; then
11785: ac_cv_func_inet_addr=yes
11786: else
11787: echo "$as_me: failed program was:" >&5
1.16 millert 11788: sed 's/^/| /' conftest.$ac_ext >&5
11789:
1.9 millert 11790: ac_cv_func_inet_addr=no
11791: fi
11792: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11793: fi
1.16 millert 11794: echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
1.9 millert 11795: echo "${ECHO_T}$ac_cv_func_inet_addr" >&6
11796: if test $ac_cv_func_inet_addr = yes; then
1.1 millert 11797: :
11798: else
1.16 millert 11799: echo "$as_me:$LINENO: checking for __inet_addr" >&5
1.9 millert 11800: echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6
11801: if test "${ac_cv_func___inet_addr+set}" = set; then
11802: echo $ECHO_N "(cached) $ECHO_C" >&6
1.6 millert 11803: else
1.9 millert 11804: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11805: #line $LINENO "configure"
11806: /* confdefs.h. */
11807: _ACEOF
11808: cat confdefs.h >>conftest.$ac_ext
11809: cat >>conftest.$ac_ext <<_ACEOF
11810: /* end confdefs.h. */
1.6 millert 11811: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 11812: which can conflict with char __inet_addr (); below.
11813: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11814: <limits.h> exists even on freestanding compilers. */
11815: #ifdef __STDC__
11816: # include <limits.h>
11817: #else
11818: # include <assert.h>
11819: #endif
1.6 millert 11820: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11821: #ifdef __cplusplus
11822: extern "C"
1.16 millert 11823: {
1.9 millert 11824: #endif
1.6 millert 11825: /* We use char because int might match the return type of a gcc2
1.9 millert 11826: builtin and then its argument prototype would still apply. */
11827: char __inet_addr ();
1.6 millert 11828: /* The GNU C library defines this for functions which it implements
11829: to always fail with ENOSYS. Some functions are actually named
11830: something starting with __ and the normal name is an alias. */
11831: #if defined (__stub___inet_addr) || defined (__stub_____inet_addr)
11832: choke me
11833: #else
1.16 millert 11834: char (*f) () = __inet_addr;
11835: #endif
11836: #ifdef __cplusplus
11837: }
1.6 millert 11838: #endif
11839:
1.16 millert 11840: int
11841: main ()
11842: {
11843: return f != __inet_addr;
1.9 millert 11844: ;
11845: return 0;
11846: }
11847: _ACEOF
11848: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11849: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11850: (eval $ac_link) 2>&5
11851: ac_status=$?
1.16 millert 11852: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11853: (exit $ac_status); } &&
11854: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11855: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11856: (eval $ac_try) 2>&5
11857: ac_status=$?
1.16 millert 11858: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11859: (exit $ac_status); }; }; then
11860: ac_cv_func___inet_addr=yes
11861: else
11862: echo "$as_me: failed program was:" >&5
1.16 millert 11863: sed 's/^/| /' conftest.$ac_ext >&5
11864:
1.9 millert 11865: ac_cv_func___inet_addr=no
11866: fi
11867: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11868: fi
1.16 millert 11869: echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
1.9 millert 11870: echo "${ECHO_T}$ac_cv_func___inet_addr" >&6
11871: if test $ac_cv_func___inet_addr = yes; then
1.6 millert 11872: :
11873: else
1.16 millert 11874: echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
1.9 millert 11875: echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
11876: if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
11877: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11878: else
1.9 millert 11879: ac_check_lib_save_LIBS=$LIBS
1.1 millert 11880: LIBS="-lnsl $LIBS"
1.9 millert 11881: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11882: #line $LINENO "configure"
11883: /* confdefs.h. */
11884: _ACEOF
11885: cat confdefs.h >>conftest.$ac_ext
11886: cat >>conftest.$ac_ext <<_ACEOF
11887: /* end confdefs.h. */
1.9 millert 11888:
1.1 millert 11889: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11890: #ifdef __cplusplus
11891: extern "C"
11892: #endif
1.1 millert 11893: /* We use char because int might match the return type of a gcc2
1.9 millert 11894: builtin and then its argument prototype would still apply. */
11895: char inet_addr ();
11896: int
11897: main ()
11898: {
11899: inet_addr ();
11900: ;
11901: return 0;
11902: }
11903: _ACEOF
11904: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11905: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11906: (eval $ac_link) 2>&5
11907: ac_status=$?
1.16 millert 11908: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11909: (exit $ac_status); } &&
11910: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11911: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11912: (eval $ac_try) 2>&5
11913: ac_status=$?
1.16 millert 11914: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11915: (exit $ac_status); }; }; then
11916: ac_cv_lib_nsl_inet_addr=yes
11917: else
11918: echo "$as_me: failed program was:" >&5
1.16 millert 11919: sed 's/^/| /' conftest.$ac_ext >&5
11920:
1.9 millert 11921: ac_cv_lib_nsl_inet_addr=no
11922: fi
11923: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11924: LIBS=$ac_check_lib_save_LIBS
11925: fi
1.16 millert 11926: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
1.9 millert 11927: echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
11928: if test $ac_cv_lib_nsl_inet_addr = yes; then
1.1 millert 11929: NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
11930: else
1.16 millert 11931: echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
1.9 millert 11932: echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6
11933: if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
11934: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11935: else
1.9 millert 11936: ac_check_lib_save_LIBS=$LIBS
1.1 millert 11937: LIBS="-linet $LIBS"
1.9 millert 11938: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11939: #line $LINENO "configure"
11940: /* confdefs.h. */
11941: _ACEOF
11942: cat confdefs.h >>conftest.$ac_ext
11943: cat >>conftest.$ac_ext <<_ACEOF
11944: /* end confdefs.h. */
1.9 millert 11945:
1.1 millert 11946: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 11947: #ifdef __cplusplus
11948: extern "C"
11949: #endif
1.1 millert 11950: /* We use char because int might match the return type of a gcc2
1.9 millert 11951: builtin and then its argument prototype would still apply. */
11952: char inet_addr ();
11953: int
11954: main ()
11955: {
11956: inet_addr ();
11957: ;
11958: return 0;
11959: }
11960: _ACEOF
11961: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 11962: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 11963: (eval $ac_link) 2>&5
11964: ac_status=$?
1.16 millert 11965: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11966: (exit $ac_status); } &&
11967: { ac_try='test -s conftest$ac_exeext'
1.16 millert 11968: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 11969: (eval $ac_try) 2>&5
11970: ac_status=$?
1.16 millert 11971: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 11972: (exit $ac_status); }; }; then
11973: ac_cv_lib_inet_inet_addr=yes
11974: else
11975: echo "$as_me: failed program was:" >&5
1.16 millert 11976: sed 's/^/| /' conftest.$ac_ext >&5
11977:
1.9 millert 11978: ac_cv_lib_inet_inet_addr=no
11979: fi
11980: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11981: LIBS=$ac_check_lib_save_LIBS
11982: fi
1.16 millert 11983: echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
1.9 millert 11984: echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6
11985: if test $ac_cv_lib_inet_inet_addr = yes; then
1.1 millert 11986: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
11987: else
1.16 millert 11988: { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
1.9 millert 11989: echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
1.16 millert 11990: echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
1.9 millert 11991: echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
11992: if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
11993: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 11994: else
1.9 millert 11995: ac_check_lib_save_LIBS=$LIBS
1.1 millert 11996: LIBS="-lsocket -lnsl $LIBS"
1.9 millert 11997: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 11998: #line $LINENO "configure"
11999: /* confdefs.h. */
12000: _ACEOF
12001: cat confdefs.h >>conftest.$ac_ext
12002: cat >>conftest.$ac_ext <<_ACEOF
12003: /* end confdefs.h. */
1.9 millert 12004:
1.1 millert 12005: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 12006: #ifdef __cplusplus
12007: extern "C"
12008: #endif
1.1 millert 12009: /* We use char because int might match the return type of a gcc2
1.9 millert 12010: builtin and then its argument prototype would still apply. */
12011: char inet_addr ();
12012: int
12013: main ()
12014: {
12015: inet_addr ();
12016: ;
12017: return 0;
12018: }
12019: _ACEOF
12020: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 12021: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 12022: (eval $ac_link) 2>&5
12023: ac_status=$?
1.16 millert 12024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12025: (exit $ac_status); } &&
12026: { ac_try='test -s conftest$ac_exeext'
1.16 millert 12027: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12028: (eval $ac_try) 2>&5
12029: ac_status=$?
1.16 millert 12030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12031: (exit $ac_status); }; }; then
12032: ac_cv_lib_socket_inet_addr_lnsl=yes
12033: else
12034: echo "$as_me: failed program was:" >&5
1.16 millert 12035: sed 's/^/| /' conftest.$ac_ext >&5
12036:
1.9 millert 12037: ac_cv_lib_socket_inet_addr_lnsl=no
12038: fi
12039: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12040: LIBS=$ac_check_lib_save_LIBS
12041: fi
1.16 millert 12042: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
1.9 millert 12043: echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6
12044: if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
1.1 millert 12045: NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
12046: fi
12047:
12048: fi
12049:
12050: fi
12051:
12052: fi
12053:
1.6 millert 12054: fi
12055:
1.16 millert 12056: echo "$as_me:$LINENO: checking for syslog" >&5
1.9 millert 12057: echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12058: if test "${ac_cv_func_syslog+set}" = set; then
12059: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12060: else
1.9 millert 12061: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12062: #line $LINENO "configure"
12063: /* confdefs.h. */
12064: _ACEOF
12065: cat confdefs.h >>conftest.$ac_ext
12066: cat >>conftest.$ac_ext <<_ACEOF
12067: /* end confdefs.h. */
1.1 millert 12068: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 12069: which can conflict with char syslog (); below.
12070: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12071: <limits.h> exists even on freestanding compilers. */
12072: #ifdef __STDC__
12073: # include <limits.h>
12074: #else
12075: # include <assert.h>
12076: #endif
1.1 millert 12077: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 12078: #ifdef __cplusplus
12079: extern "C"
1.16 millert 12080: {
1.9 millert 12081: #endif
1.1 millert 12082: /* We use char because int might match the return type of a gcc2
1.9 millert 12083: builtin and then its argument prototype would still apply. */
12084: char syslog ();
1.1 millert 12085: /* The GNU C library defines this for functions which it implements
12086: to always fail with ENOSYS. Some functions are actually named
12087: something starting with __ and the normal name is an alias. */
12088: #if defined (__stub_syslog) || defined (__stub___syslog)
12089: choke me
12090: #else
1.16 millert 12091: char (*f) () = syslog;
12092: #endif
12093: #ifdef __cplusplus
12094: }
1.1 millert 12095: #endif
12096:
1.16 millert 12097: int
12098: main ()
12099: {
12100: return f != syslog;
1.9 millert 12101: ;
12102: return 0;
12103: }
12104: _ACEOF
12105: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 12106: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 12107: (eval $ac_link) 2>&5
12108: ac_status=$?
1.16 millert 12109: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12110: (exit $ac_status); } &&
12111: { ac_try='test -s conftest$ac_exeext'
1.16 millert 12112: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12113: (eval $ac_try) 2>&5
12114: ac_status=$?
1.16 millert 12115: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12116: (exit $ac_status); }; }; then
12117: ac_cv_func_syslog=yes
12118: else
12119: echo "$as_me: failed program was:" >&5
1.16 millert 12120: sed 's/^/| /' conftest.$ac_ext >&5
12121:
1.9 millert 12122: ac_cv_func_syslog=no
12123: fi
12124: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12125: fi
1.16 millert 12126: echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
1.9 millert 12127: echo "${ECHO_T}$ac_cv_func_syslog" >&6
12128: if test $ac_cv_func_syslog = yes; then
1.1 millert 12129: :
12130: else
1.16 millert 12131: echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
1.9 millert 12132: echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6
12133: if test "${ac_cv_lib_socket_syslog+set}" = set; then
12134: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12135: else
1.9 millert 12136: ac_check_lib_save_LIBS=$LIBS
1.1 millert 12137: LIBS="-lsocket $LIBS"
1.9 millert 12138: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12139: #line $LINENO "configure"
12140: /* confdefs.h. */
12141: _ACEOF
12142: cat confdefs.h >>conftest.$ac_ext
12143: cat >>conftest.$ac_ext <<_ACEOF
12144: /* end confdefs.h. */
1.9 millert 12145:
1.1 millert 12146: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 12147: #ifdef __cplusplus
12148: extern "C"
12149: #endif
1.1 millert 12150: /* We use char because int might match the return type of a gcc2
1.9 millert 12151: builtin and then its argument prototype would still apply. */
12152: char syslog ();
12153: int
12154: main ()
12155: {
12156: syslog ();
12157: ;
12158: return 0;
12159: }
12160: _ACEOF
12161: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 12162: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 12163: (eval $ac_link) 2>&5
12164: ac_status=$?
1.16 millert 12165: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12166: (exit $ac_status); } &&
12167: { ac_try='test -s conftest$ac_exeext'
1.16 millert 12168: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12169: (eval $ac_try) 2>&5
12170: ac_status=$?
1.16 millert 12171: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12172: (exit $ac_status); }; }; then
12173: ac_cv_lib_socket_syslog=yes
12174: else
12175: echo "$as_me: failed program was:" >&5
1.16 millert 12176: sed 's/^/| /' conftest.$ac_ext >&5
12177:
1.9 millert 12178: ac_cv_lib_socket_syslog=no
12179: fi
12180: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12181: LIBS=$ac_check_lib_save_LIBS
12182: fi
1.16 millert 12183: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
1.9 millert 12184: echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6
12185: if test $ac_cv_lib_socket_syslog = yes; then
1.1 millert 12186: NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
12187: else
1.16 millert 12188: echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
1.9 millert 12189: echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6
12190: if test "${ac_cv_lib_nsl_syslog+set}" = set; then
12191: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12192: else
1.9 millert 12193: ac_check_lib_save_LIBS=$LIBS
1.1 millert 12194: LIBS="-lnsl $LIBS"
1.9 millert 12195: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12196: #line $LINENO "configure"
12197: /* confdefs.h. */
12198: _ACEOF
12199: cat confdefs.h >>conftest.$ac_ext
12200: cat >>conftest.$ac_ext <<_ACEOF
12201: /* end confdefs.h. */
1.1 millert 12202:
1.9 millert 12203: /* Override any gcc2 internal prototype to avoid an error. */
12204: #ifdef __cplusplus
12205: extern "C"
12206: #endif
12207: /* We use char because int might match the return type of a gcc2
12208: builtin and then its argument prototype would still apply. */
12209: char syslog ();
12210: int
12211: main ()
12212: {
12213: syslog ();
12214: ;
12215: return 0;
12216: }
12217: _ACEOF
12218: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 12219: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 12220: (eval $ac_link) 2>&5
12221: ac_status=$?
1.16 millert 12222: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12223: (exit $ac_status); } &&
12224: { ac_try='test -s conftest$ac_exeext'
1.16 millert 12225: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12226: (eval $ac_try) 2>&5
12227: ac_status=$?
1.16 millert 12228: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12229: (exit $ac_status); }; }; then
12230: ac_cv_lib_nsl_syslog=yes
12231: else
12232: echo "$as_me: failed program was:" >&5
1.16 millert 12233: sed 's/^/| /' conftest.$ac_ext >&5
12234:
1.9 millert 12235: ac_cv_lib_nsl_syslog=no
12236: fi
12237: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12238: LIBS=$ac_check_lib_save_LIBS
12239: fi
1.16 millert 12240: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
1.9 millert 12241: echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6
12242: if test $ac_cv_lib_nsl_syslog = yes; then
1.1 millert 12243: NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
12244: else
1.16 millert 12245: echo "$as_me:$LINENO: checking for syslog in -linet" >&5
1.9 millert 12246: echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6
12247: if test "${ac_cv_lib_inet_syslog+set}" = set; then
12248: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12249: else
1.9 millert 12250: ac_check_lib_save_LIBS=$LIBS
1.1 millert 12251: LIBS="-linet $LIBS"
1.9 millert 12252: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12253: #line $LINENO "configure"
12254: /* confdefs.h. */
12255: _ACEOF
12256: cat confdefs.h >>conftest.$ac_ext
12257: cat >>conftest.$ac_ext <<_ACEOF
12258: /* end confdefs.h. */
1.9 millert 12259:
1.1 millert 12260: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 12261: #ifdef __cplusplus
12262: extern "C"
12263: #endif
1.1 millert 12264: /* We use char because int might match the return type of a gcc2
1.9 millert 12265: builtin and then its argument prototype would still apply. */
12266: char syslog ();
12267: int
12268: main ()
12269: {
12270: syslog ();
12271: ;
12272: return 0;
12273: }
12274: _ACEOF
12275: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 12276: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 12277: (eval $ac_link) 2>&5
12278: ac_status=$?
1.16 millert 12279: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12280: (exit $ac_status); } &&
12281: { ac_try='test -s conftest$ac_exeext'
1.16 millert 12282: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12283: (eval $ac_try) 2>&5
12284: ac_status=$?
1.16 millert 12285: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12286: (exit $ac_status); }; }; then
12287: ac_cv_lib_inet_syslog=yes
12288: else
12289: echo "$as_me: failed program was:" >&5
1.16 millert 12290: sed 's/^/| /' conftest.$ac_ext >&5
12291:
1.9 millert 12292: ac_cv_lib_inet_syslog=no
12293: fi
12294: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12295: LIBS=$ac_check_lib_save_LIBS
12296: fi
1.16 millert 12297: echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
1.9 millert 12298: echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6
12299: if test $ac_cv_lib_inet_syslog = yes; then
1.1 millert 12300: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
12301: fi
12302:
12303: fi
12304:
12305: fi
12306:
12307: fi
12308:
12309: if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
12310: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12311: # for constant arguments. Useless!
1.16 millert 12312: echo "$as_me:$LINENO: checking for working alloca.h" >&5
1.9 millert 12313: echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12314: if test "${ac_cv_working_alloca_h+set}" = set; then
12315: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12316: else
1.9 millert 12317: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12318: #line $LINENO "configure"
12319: /* confdefs.h. */
12320: _ACEOF
12321: cat confdefs.h >>conftest.$ac_ext
12322: cat >>conftest.$ac_ext <<_ACEOF
12323: /* end confdefs.h. */
1.1 millert 12324: #include <alloca.h>
1.9 millert 12325: int
12326: main ()
12327: {
12328: char *p = (char *) alloca (2 * sizeof (int));
12329: ;
12330: return 0;
12331: }
12332: _ACEOF
12333: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 12334: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 12335: (eval $ac_link) 2>&5
12336: ac_status=$?
1.16 millert 12337: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12338: (exit $ac_status); } &&
12339: { ac_try='test -s conftest$ac_exeext'
1.16 millert 12340: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12341: (eval $ac_try) 2>&5
12342: ac_status=$?
1.16 millert 12343: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12344: (exit $ac_status); }; }; then
12345: ac_cv_working_alloca_h=yes
12346: else
12347: echo "$as_me: failed program was:" >&5
1.16 millert 12348: sed 's/^/| /' conftest.$ac_ext >&5
12349:
1.9 millert 12350: ac_cv_working_alloca_h=no
12351: fi
12352: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12353: fi
1.16 millert 12354: echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
1.9 millert 12355: echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12356: if test $ac_cv_working_alloca_h = yes; then
1.1 millert 12357:
1.16 millert 12358: cat >>confdefs.h <<\_ACEOF
1.1 millert 12359: #define HAVE_ALLOCA_H 1
1.16 millert 12360: _ACEOF
1.1 millert 12361:
12362: fi
12363:
1.16 millert 12364: echo "$as_me:$LINENO: checking for alloca" >&5
1.9 millert 12365: echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12366: if test "${ac_cv_func_alloca_works+set}" = set; then
12367: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12368: else
1.9 millert 12369: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12370: #line $LINENO "configure"
12371: /* confdefs.h. */
12372: _ACEOF
12373: cat confdefs.h >>conftest.$ac_ext
12374: cat >>conftest.$ac_ext <<_ACEOF
12375: /* end confdefs.h. */
1.1 millert 12376: #ifdef __GNUC__
12377: # define alloca __builtin_alloca
12378: #else
1.9 millert 12379: # ifdef _MSC_VER
12380: # include <malloc.h>
12381: # define alloca _alloca
1.1 millert 12382: # else
1.9 millert 12383: # if HAVE_ALLOCA_H
12384: # include <alloca.h>
12385: # else
12386: # ifdef _AIX
1.1 millert 12387: #pragma alloca
1.9 millert 12388: # else
12389: # ifndef alloca /* predefined by HP cc +Olibcalls */
1.1 millert 12390: char *alloca ();
1.9 millert 12391: # endif
1.1 millert 12392: # endif
12393: # endif
12394: # endif
12395: #endif
12396:
1.9 millert 12397: int
12398: main ()
12399: {
12400: char *p = (char *) alloca (1);
12401: ;
12402: return 0;
12403: }
12404: _ACEOF
12405: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 12406: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 12407: (eval $ac_link) 2>&5
12408: ac_status=$?
1.16 millert 12409: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12410: (exit $ac_status); } &&
12411: { ac_try='test -s conftest$ac_exeext'
1.16 millert 12412: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12413: (eval $ac_try) 2>&5
12414: ac_status=$?
1.16 millert 12415: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12416: (exit $ac_status); }; }; then
1.1 millert 12417: ac_cv_func_alloca_works=yes
12418: else
1.9 millert 12419: echo "$as_me: failed program was:" >&5
1.16 millert 12420: sed 's/^/| /' conftest.$ac_ext >&5
12421:
1.9 millert 12422: ac_cv_func_alloca_works=no
1.1 millert 12423: fi
1.9 millert 12424: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 millert 12425: fi
1.16 millert 12426: echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
1.9 millert 12427: echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
1.1 millert 12428:
12429: if test $ac_cv_func_alloca_works = yes; then
1.9 millert 12430:
1.16 millert 12431: cat >>confdefs.h <<\_ACEOF
1.1 millert 12432: #define HAVE_ALLOCA 1
1.16 millert 12433: _ACEOF
1.1 millert 12434:
1.9 millert 12435: else
12436: # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12437: # that cause trouble. Some versions do not even contain alloca or
12438: # contain a buggy version. If you still want to use their alloca,
12439: # use ar to extract alloca.o from them instead of compiling alloca.c.
12440:
12441: ALLOCA=alloca.$ac_objext
1.1 millert 12442:
1.16 millert 12443: cat >>confdefs.h <<\_ACEOF
1.1 millert 12444: #define C_ALLOCA 1
1.16 millert 12445: _ACEOF
12446:
1.1 millert 12447:
1.16 millert 12448: echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
1.9 millert 12449: echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12450: if test "${ac_cv_os_cray+set}" = set; then
12451: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12452: else
1.9 millert 12453: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12454: #line $LINENO "configure"
12455: /* confdefs.h. */
12456: _ACEOF
12457: cat confdefs.h >>conftest.$ac_ext
12458: cat >>conftest.$ac_ext <<_ACEOF
12459: /* end confdefs.h. */
1.1 millert 12460: #if defined(CRAY) && ! defined(CRAY2)
12461: webecray
12462: #else
12463: wenotbecray
12464: #endif
12465:
1.9 millert 12466: _ACEOF
1.1 millert 12467: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 12468: $EGREP "webecray" >/dev/null 2>&1; then
1.1 millert 12469: ac_cv_os_cray=yes
12470: else
12471: ac_cv_os_cray=no
12472: fi
12473: rm -f conftest*
12474:
12475: fi
1.16 millert 12476: echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
1.9 millert 12477: echo "${ECHO_T}$ac_cv_os_cray" >&6
1.1 millert 12478: if test $ac_cv_os_cray = yes; then
1.9 millert 12479: for ac_func in _getb67 GETB67 getb67; do
12480: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 12481: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 12482: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12483: if eval "test \"\${$as_ac_var+set}\" = set"; then
12484: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12485: else
1.9 millert 12486: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12487: #line $LINENO "configure"
12488: /* confdefs.h. */
12489: _ACEOF
12490: cat confdefs.h >>conftest.$ac_ext
12491: cat >>conftest.$ac_ext <<_ACEOF
12492: /* end confdefs.h. */
1.1 millert 12493: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 12494: which can conflict with char $ac_func (); below.
12495: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12496: <limits.h> exists even on freestanding compilers. */
12497: #ifdef __STDC__
12498: # include <limits.h>
12499: #else
12500: # include <assert.h>
12501: #endif
1.1 millert 12502: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 12503: #ifdef __cplusplus
12504: extern "C"
1.16 millert 12505: {
1.9 millert 12506: #endif
1.1 millert 12507: /* We use char because int might match the return type of a gcc2
1.9 millert 12508: builtin and then its argument prototype would still apply. */
12509: char $ac_func ();
1.1 millert 12510: /* The GNU C library defines this for functions which it implements
12511: to always fail with ENOSYS. Some functions are actually named
12512: something starting with __ and the normal name is an alias. */
12513: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12514: choke me
12515: #else
1.16 millert 12516: char (*f) () = $ac_func;
12517: #endif
12518: #ifdef __cplusplus
12519: }
1.1 millert 12520: #endif
12521:
1.16 millert 12522: int
12523: main ()
12524: {
12525: return f != $ac_func;
1.9 millert 12526: ;
12527: return 0;
12528: }
12529: _ACEOF
12530: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 12531: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 12532: (eval $ac_link) 2>&5
12533: ac_status=$?
1.16 millert 12534: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12535: (exit $ac_status); } &&
12536: { ac_try='test -s conftest$ac_exeext'
1.16 millert 12537: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12538: (eval $ac_try) 2>&5
12539: ac_status=$?
1.16 millert 12540: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12541: (exit $ac_status); }; }; then
12542: eval "$as_ac_var=yes"
12543: else
12544: echo "$as_me: failed program was:" >&5
1.16 millert 12545: sed 's/^/| /' conftest.$ac_ext >&5
12546:
1.9 millert 12547: eval "$as_ac_var=no"
12548: fi
12549: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12550: fi
1.16 millert 12551: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 12552: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12553: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 millert 12554:
1.16 millert 12555: cat >>confdefs.h <<_ACEOF
1.1 millert 12556: #define CRAY_STACKSEG_END $ac_func
1.16 millert 12557: _ACEOF
1.1 millert 12558:
1.9 millert 12559: break
1.1 millert 12560: fi
12561:
1.9 millert 12562: done
1.1 millert 12563: fi
12564:
1.16 millert 12565: echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
1.9 millert 12566: echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12567: if test "${ac_cv_c_stack_direction+set}" = set; then
12568: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12569: else
12570: if test "$cross_compiling" = yes; then
12571: ac_cv_c_stack_direction=0
12572: else
1.9 millert 12573: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12574: #line $LINENO "configure"
12575: /* confdefs.h. */
12576: _ACEOF
12577: cat confdefs.h >>conftest.$ac_ext
12578: cat >>conftest.$ac_ext <<_ACEOF
12579: /* end confdefs.h. */
1.9 millert 12580: int
1.1 millert 12581: find_stack_direction ()
12582: {
12583: static char *addr = 0;
12584: auto char dummy;
12585: if (addr == 0)
12586: {
12587: addr = &dummy;
12588: return find_stack_direction ();
12589: }
12590: else
12591: return (&dummy > addr) ? 1 : -1;
12592: }
1.9 millert 12593:
12594: int
1.1 millert 12595: main ()
12596: {
1.9 millert 12597: exit (find_stack_direction () < 0);
1.1 millert 12598: }
1.9 millert 12599: _ACEOF
12600: rm -f conftest$ac_exeext
1.16 millert 12601: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 12602: (eval $ac_link) 2>&5
12603: ac_status=$?
1.16 millert 12604: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12605: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16 millert 12606: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12607: (eval $ac_try) 2>&5
12608: ac_status=$?
1.16 millert 12609: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12610: (exit $ac_status); }; }; then
1.1 millert 12611: ac_cv_c_stack_direction=1
12612: else
1.9 millert 12613: echo "$as_me: program exited with status $ac_status" >&5
12614: echo "$as_me: failed program was:" >&5
1.16 millert 12615: sed 's/^/| /' conftest.$ac_ext >&5
12616:
12617: ( exit $ac_status )
1.9 millert 12618: ac_cv_c_stack_direction=-1
1.1 millert 12619: fi
1.16 millert 12620: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 12621: fi
12622: fi
1.16 millert 12623: echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
1.9 millert 12624: echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
1.1 millert 12625:
1.16 millert 12626: cat >>confdefs.h <<_ACEOF
1.1 millert 12627: #define STACK_DIRECTION $ac_cv_c_stack_direction
1.16 millert 12628: _ACEOF
12629:
1.1 millert 12630:
12631: fi
12632:
12633: fi
12634:
1.18 ! millert 12635: for ac_func in getprogname
! 12636: do
! 12637: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 12638: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 12639: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 12640: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 12641: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12642: else
! 12643: cat >conftest.$ac_ext <<_ACEOF
! 12644: #line $LINENO "configure"
! 12645: /* confdefs.h. */
! 12646: _ACEOF
! 12647: cat confdefs.h >>conftest.$ac_ext
! 12648: cat >>conftest.$ac_ext <<_ACEOF
! 12649: /* end confdefs.h. */
! 12650: /* System header to define __stub macros and hopefully few prototypes,
! 12651: which can conflict with char $ac_func (); below.
! 12652: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 12653: <limits.h> exists even on freestanding compilers. */
! 12654: #ifdef __STDC__
! 12655: # include <limits.h>
! 12656: #else
! 12657: # include <assert.h>
! 12658: #endif
! 12659: /* Override any gcc2 internal prototype to avoid an error. */
! 12660: #ifdef __cplusplus
! 12661: extern "C"
! 12662: {
! 12663: #endif
! 12664: /* We use char because int might match the return type of a gcc2
! 12665: builtin and then its argument prototype would still apply. */
! 12666: char $ac_func ();
! 12667: /* The GNU C library defines this for functions which it implements
! 12668: to always fail with ENOSYS. Some functions are actually named
! 12669: something starting with __ and the normal name is an alias. */
! 12670: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 12671: choke me
! 12672: #else
! 12673: char (*f) () = $ac_func;
! 12674: #endif
! 12675: #ifdef __cplusplus
! 12676: }
! 12677: #endif
! 12678:
! 12679: int
! 12680: main ()
! 12681: {
! 12682: return f != $ac_func;
! 12683: ;
! 12684: return 0;
! 12685: }
! 12686: _ACEOF
! 12687: rm -f conftest.$ac_objext conftest$ac_exeext
! 12688: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 12689: (eval $ac_link) 2>&5
! 12690: ac_status=$?
! 12691: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12692: (exit $ac_status); } &&
! 12693: { ac_try='test -s conftest$ac_exeext'
! 12694: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12695: (eval $ac_try) 2>&5
! 12696: ac_status=$?
! 12697: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12698: (exit $ac_status); }; }; then
! 12699: eval "$as_ac_var=yes"
! 12700: else
! 12701: echo "$as_me: failed program was:" >&5
! 12702: sed 's/^/| /' conftest.$ac_ext >&5
! 12703:
! 12704: eval "$as_ac_var=no"
! 12705: fi
! 12706: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 12707: fi
! 12708: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 12709: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 12710: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 12711: cat >>confdefs.h <<_ACEOF
! 12712: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 12713: _ACEOF
! 12714:
! 12715: else
! 12716:
! 12717: echo "$as_me:$LINENO: checking for __progname" >&5
! 12718: echo $ECHO_N "checking for __progname... $ECHO_C" >&6
! 12719: if test "${sudo_cv___progname+set}" = set; then
! 12720: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12721: else
! 12722:
! 12723: cat >conftest.$ac_ext <<_ACEOF
! 12724: #line $LINENO "configure"
! 12725: /* confdefs.h. */
! 12726: _ACEOF
! 12727: cat confdefs.h >>conftest.$ac_ext
! 12728: cat >>conftest.$ac_ext <<_ACEOF
! 12729: /* end confdefs.h. */
! 12730:
! 12731: int
! 12732: main ()
! 12733: {
! 12734: extern char *__progname; (void)puts(__progname);
! 12735: ;
! 12736: return 0;
! 12737: }
! 12738: _ACEOF
! 12739: rm -f conftest.$ac_objext conftest$ac_exeext
! 12740: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 12741: (eval $ac_link) 2>&5
! 12742: ac_status=$?
! 12743: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12744: (exit $ac_status); } &&
! 12745: { ac_try='test -s conftest$ac_exeext'
! 12746: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12747: (eval $ac_try) 2>&5
! 12748: ac_status=$?
! 12749: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12750: (exit $ac_status); }; }; then
! 12751: sudo_cv___progname=yes
! 12752: else
! 12753: echo "$as_me: failed program was:" >&5
! 12754: sed 's/^/| /' conftest.$ac_ext >&5
! 12755:
! 12756: sudo_cv___progname=no
! 12757: fi
! 12758: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 12759: fi
! 12760:
! 12761: if test "$sudo_cv___progname" = "yes"; then
! 12762:
! 12763: cat >>confdefs.h <<\_ACEOF
! 12764: #define HAVE___PROGNAME 1
! 12765: _ACEOF
! 12766:
! 12767: else
! 12768: LIBOBJS="$LIBOBJS getprogname.$ac_objext"
! 12769: fi
! 12770: echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
! 12771: echo "${ECHO_T}$sudo_cv___progname" >&6
! 12772:
! 12773: fi
! 12774: done
! 12775:
1.17 millert 12776: if test -n "$with_kerb4"; then
1.9 millert 12777:
1.16 millert 12778: cat >>confdefs.h <<\_ACEOF
1.17 millert 12779: #define HAVE_KERB4 1
12780: _ACEOF
12781:
12782: O_LDFLAGS="$LDFLAGS"
12783: if test "$with_kerb4" = "yes"; then
12784: found=no
12785: O_CPPFLAGS="$CPPFLAGS"
12786: for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
12787: CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
12788: cat >conftest.$ac_ext <<_ACEOF
12789: #include <krb.h>
1.16 millert 12790: _ACEOF
1.17 millert 12791: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12792: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12793: ac_status=$?
12794: grep -v '^ *+' conftest.er1 >conftest.err
12795: rm -f conftest.er1
12796: cat conftest.err >&5
12797: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798: (exit $ac_status); } >/dev/null; then
12799: if test -s conftest.err; then
12800: ac_cpp_err=$ac_c_preproc_warn_flag
12801: else
12802: ac_cpp_err=
12803: fi
12804: else
12805: ac_cpp_err=yes
12806: fi
12807: if test -z "$ac_cpp_err"; then
12808: found=yes; break
12809: else
12810: echo "$as_me: failed program was:" >&5
12811: sed 's/^/| /' conftest.$ac_ext >&5
12812:
12813:
12814: fi
12815: rm -f conftest.err conftest.$ac_ext
12816: done
12817: test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
12818: else
1.1 millert 12819:
1.17 millert 12820: if test X"$with_rpath" = X"yes"; then
12821: LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
1.1 millert 12822: else
1.17 millert 12823: LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
12824: fi
12825: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
12826: blibpath_add="${blibpath_add}:${with_kerb4}/lib"
1.1 millert 12827: fi
12828:
1.17 millert 12829:
12830: if test X"$with_rpath" = X"yes"; then
12831: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
1.1 millert 12832: else
1.17 millert 12833: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
12834: fi
12835: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
12836: blibpath_add="${blibpath_add}:${with_kerb4}/lib"
1.1 millert 12837: fi
12838:
1.17 millert 12839: CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
12840: if test "${ac_cv_header_krb_h+set}" = set; then
12841: echo "$as_me:$LINENO: checking for krb.h" >&5
12842: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
12843: if test "${ac_cv_header_krb_h+set}" = set; then
12844: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12845: fi
1.17 millert 12846: echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
12847: echo "${ECHO_T}$ac_cv_header_krb_h" >&6
1.5 millert 12848: else
1.17 millert 12849: # Is the header compilable?
12850: echo "$as_me:$LINENO: checking krb.h usability" >&5
12851: echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
1.9 millert 12852: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12853: #line $LINENO "configure"
12854: /* confdefs.h. */
12855: _ACEOF
12856: cat confdefs.h >>conftest.$ac_ext
12857: cat >>conftest.$ac_ext <<_ACEOF
12858: /* end confdefs.h. */
1.17 millert 12859: $ac_includes_default
12860: #include <krb.h>
1.9 millert 12861: _ACEOF
1.17 millert 12862: rm -f conftest.$ac_objext
12863: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12864: (eval $ac_compile) 2>&5
1.9 millert 12865: ac_status=$?
1.16 millert 12866: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12867: (exit $ac_status); } &&
1.17 millert 12868: { ac_try='test -s conftest.$ac_objext'
1.16 millert 12869: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12870: (eval $ac_try) 2>&5
12871: ac_status=$?
1.16 millert 12872: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12873: (exit $ac_status); }; }; then
1.17 millert 12874: ac_header_compiler=yes
1.9 millert 12875: else
12876: echo "$as_me: failed program was:" >&5
1.16 millert 12877: sed 's/^/| /' conftest.$ac_ext >&5
12878:
1.17 millert 12879: ac_header_compiler=no
1.9 millert 12880: fi
1.17 millert 12881: rm -f conftest.$ac_objext conftest.$ac_ext
12882: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12883: echo "${ECHO_T}$ac_header_compiler" >&6
12884:
12885: # Is the header present?
12886: echo "$as_me:$LINENO: checking krb.h presence" >&5
12887: echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
12888: cat >conftest.$ac_ext <<_ACEOF
12889: #line $LINENO "configure"
12890: /* confdefs.h. */
12891: _ACEOF
12892: cat confdefs.h >>conftest.$ac_ext
12893: cat >>conftest.$ac_ext <<_ACEOF
12894: /* end confdefs.h. */
12895: #include <krb.h>
12896: _ACEOF
12897: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12898: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12899: ac_status=$?
12900: grep -v '^ *+' conftest.er1 >conftest.err
12901: rm -f conftest.er1
12902: cat conftest.err >&5
12903: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904: (exit $ac_status); } >/dev/null; then
12905: if test -s conftest.err; then
12906: ac_cpp_err=$ac_c_preproc_warn_flag
12907: else
12908: ac_cpp_err=
12909: fi
12910: else
12911: ac_cpp_err=yes
1.9 millert 12912: fi
1.17 millert 12913: if test -z "$ac_cpp_err"; then
12914: ac_header_preproc=yes
1.5 millert 12915: else
1.17 millert 12916: echo "$as_me: failed program was:" >&5
12917: sed 's/^/| /' conftest.$ac_ext >&5
12918:
12919: ac_header_preproc=no
1.5 millert 12920: fi
1.17 millert 12921: rm -f conftest.err conftest.$ac_ext
12922: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12923: echo "${ECHO_T}$ac_header_preproc" >&6
1.5 millert 12924:
1.17 millert 12925: # So? What about this header?
12926: case $ac_header_compiler:$ac_header_preproc in
12927: yes:no )
12928: { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
12929: echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12930: { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
12931: echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
12932: (
12933: cat <<\_ASBOX
12934: ## ------------------------------------ ##
12935: ## Report this to bug-autoconf@gnu.org. ##
12936: ## ------------------------------------ ##
12937: _ASBOX
12938: ) |
12939: sed "s/^/$as_me: WARNING: /" >&2
12940: ;;
12941: no:yes )
12942: { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
12943: echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
12944: { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
12945: echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
12946: { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
12947: echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
12948: (
12949: cat <<\_ASBOX
12950: ## ------------------------------------ ##
12951: ## Report this to bug-autoconf@gnu.org. ##
12952: ## ------------------------------------ ##
12953: _ASBOX
12954: ) |
12955: sed "s/^/$as_me: WARNING: /" >&2
12956: ;;
12957: esac
12958: echo "$as_me:$LINENO: checking for krb.h" >&5
12959: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
12960: if test "${ac_cv_header_krb_h+set}" = set; then
12961: echo $ECHO_N "(cached) $ECHO_C" >&6
12962: else
12963: ac_cv_header_krb_h=$ac_header_preproc
1.5 millert 12964: fi
1.17 millert 12965: echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
12966: echo "${ECHO_T}$ac_cv_header_krb_h" >&6
1.5 millert 12967:
1.17 millert 12968: fi
12969: if test $ac_cv_header_krb_h = yes; then
12970: found=yes
12971: else
12972: found=no
12973: fi
1.9 millert 12974:
1.1 millert 12975:
1.17 millert 12976: fi
12977: if test X"$found" = X"no"; then
12978: { 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
12979: 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 12980: fi
12981:
1.17 millert 12982: echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
12983: echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
12984: if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
1.9 millert 12985: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12986: else
1.9 millert 12987: ac_check_lib_save_LIBS=$LIBS
1.1 millert 12988: LIBS="-ldes $LIBS"
1.9 millert 12989: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12990: #line $LINENO "configure"
12991: /* confdefs.h. */
12992: _ACEOF
12993: cat confdefs.h >>conftest.$ac_ext
12994: cat >>conftest.$ac_ext <<_ACEOF
12995: /* end confdefs.h. */
12996:
1.17 millert 12997: /* Override any gcc2 internal prototype to avoid an error. */
12998: #ifdef __cplusplus
12999: extern "C"
13000: #endif
13001: /* We use char because int might match the return type of a gcc2
13002: builtin and then its argument prototype would still apply. */
13003: char des_cbc_encrypt ();
1.9 millert 13004: int
13005: main ()
13006: {
1.17 millert 13007: des_cbc_encrypt ();
1.9 millert 13008: ;
13009: return 0;
13010: }
13011: _ACEOF
13012: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 13013: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 13014: (eval $ac_link) 2>&5
13015: ac_status=$?
1.16 millert 13016: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 13017: (exit $ac_status); } &&
13018: { ac_try='test -s conftest$ac_exeext'
1.16 millert 13019: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 13020: (eval $ac_try) 2>&5
13021: ac_status=$?
1.16 millert 13022: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 13023: (exit $ac_status); }; }; then
1.17 millert 13024: ac_cv_lib_des_des_cbc_encrypt=yes
1.9 millert 13025: else
13026: echo "$as_me: failed program was:" >&5
1.16 millert 13027: sed 's/^/| /' conftest.$ac_ext >&5
13028:
1.17 millert 13029: ac_cv_lib_des_des_cbc_encrypt=no
1.9 millert 13030: fi
13031: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13032: LIBS=$ac_check_lib_save_LIBS
13033: fi
1.17 millert 13034: echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13035: echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
13036: if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
13037: K4LIBS="-ldes"
1.1 millert 13038: else
13039:
1.17 millert 13040: echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
13041: echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
13042: if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
13043: echo $ECHO_N "(cached) $ECHO_C" >&6
13044: else
13045: ac_check_lib_save_LIBS=$LIBS
13046: LIBS="-ldes425 $LIBS"
13047: cat >conftest.$ac_ext <<_ACEOF
13048: #line $LINENO "configure"
13049: /* confdefs.h. */
13050: _ACEOF
13051: cat confdefs.h >>conftest.$ac_ext
13052: cat >>conftest.$ac_ext <<_ACEOF
13053: /* end confdefs.h. */
13054:
13055: /* Override any gcc2 internal prototype to avoid an error. */
13056: #ifdef __cplusplus
13057: extern "C"
13058: #endif
13059: /* We use char because int might match the return type of a gcc2
13060: builtin and then its argument prototype would still apply. */
13061: char des_cbc_encrypt ();
13062: int
13063: main ()
13064: {
13065: des_cbc_encrypt ();
13066: ;
13067: return 0;
13068: }
13069: _ACEOF
13070: rm -f conftest.$ac_objext conftest$ac_exeext
13071: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13072: (eval $ac_link) 2>&5
13073: ac_status=$?
13074: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075: (exit $ac_status); } &&
13076: { ac_try='test -s conftest$ac_exeext'
13077: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13078: (eval $ac_try) 2>&5
13079: ac_status=$?
13080: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081: (exit $ac_status); }; }; then
13082: ac_cv_lib_des425_des_cbc_encrypt=yes
13083: else
13084: echo "$as_me: failed program was:" >&5
13085: sed 's/^/| /' conftest.$ac_ext >&5
13086:
13087: ac_cv_lib_des425_des_cbc_encrypt=no
13088: fi
13089: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13090: LIBS=$ac_check_lib_save_LIBS
13091: fi
13092: echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13093: echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
13094: if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
13095: K4LIBS="-ldes425"
13096: else
13097: K4LIBS=""
13098: fi
13099:
13100:
13101: fi
13102:
13103: echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
13104: echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6
13105: cat >conftest.$ac_ext <<_ACEOF
13106: #line $LINENO "configure"
13107: /* confdefs.h. */
13108: _ACEOF
13109: cat confdefs.h >>conftest.$ac_ext
13110: cat >>conftest.$ac_ext <<_ACEOF
13111: /* end confdefs.h. */
13112: #include <krb.h>
13113: int
13114: main ()
13115: {
13116: const char *tmp = krb4_version;
13117: ;
13118: return 0;
13119: }
13120: _ACEOF
13121: rm -f conftest.$ac_objext
13122: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13123: (eval $ac_compile) 2>&5
13124: ac_status=$?
13125: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126: (exit $ac_status); } &&
13127: { ac_try='test -s conftest.$ac_objext'
13128: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129: (eval $ac_try) 2>&5
13130: ac_status=$?
13131: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132: (exit $ac_status); }; }; then
13133:
13134: echo "$as_me:$LINENO: result: yes" >&5
13135: echo "${ECHO_T}yes" >&6
13136: K4LIBS="${K4LIBS} -lcom_err"
13137: echo "$as_me:$LINENO: checking for main in -lroken" >&5
13138: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6
13139: if test "${ac_cv_lib_roken_main+set}" = set; then
13140: echo $ECHO_N "(cached) $ECHO_C" >&6
13141: else
13142: ac_check_lib_save_LIBS=$LIBS
13143: LIBS="-lroken $LIBS"
13144: cat >conftest.$ac_ext <<_ACEOF
13145: #line $LINENO "configure"
13146: /* confdefs.h. */
13147: _ACEOF
13148: cat confdefs.h >>conftest.$ac_ext
13149: cat >>conftest.$ac_ext <<_ACEOF
13150: /* end confdefs.h. */
13151:
13152:
13153: int
13154: main ()
13155: {
13156: main ();
13157: ;
13158: return 0;
13159: }
13160: _ACEOF
13161: rm -f conftest.$ac_objext conftest$ac_exeext
13162: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13163: (eval $ac_link) 2>&5
13164: ac_status=$?
13165: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166: (exit $ac_status); } &&
13167: { ac_try='test -s conftest$ac_exeext'
13168: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169: (eval $ac_try) 2>&5
13170: ac_status=$?
13171: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172: (exit $ac_status); }; }; then
13173: ac_cv_lib_roken_main=yes
13174: else
13175: echo "$as_me: failed program was:" >&5
13176: sed 's/^/| /' conftest.$ac_ext >&5
13177:
13178: ac_cv_lib_roken_main=no
13179: fi
13180: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13181: LIBS=$ac_check_lib_save_LIBS
13182: fi
13183: echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
13184: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6
13185: if test $ac_cv_lib_roken_main = yes; then
13186: K4LIBS="${K4LIBS} -lroken"
13187: fi
13188:
13189:
13190: else
13191: echo "$as_me: failed program was:" >&5
13192: sed 's/^/| /' conftest.$ac_ext >&5
13193:
13194:
13195: echo "$as_me:$LINENO: result: no" >&5
13196: echo "${ECHO_T}no" >&6
13197:
13198:
13199: fi
13200: rm -f conftest.$ac_objext conftest.$ac_ext
13201: as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
13202: echo "$as_me:$LINENO: checking for main in -lkrb" >&5
13203: echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
13204: if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13205: echo $ECHO_N "(cached) $ECHO_C" >&6
13206: else
13207: ac_check_lib_save_LIBS=$LIBS
13208: LIBS="-lkrb $K4LIBS $LIBS"
13209: cat >conftest.$ac_ext <<_ACEOF
13210: #line $LINENO "configure"
13211: /* confdefs.h. */
13212: _ACEOF
13213: cat confdefs.h >>conftest.$ac_ext
13214: cat >>conftest.$ac_ext <<_ACEOF
13215: /* end confdefs.h. */
13216:
13217:
13218: int
13219: main ()
13220: {
13221: main ();
13222: ;
13223: return 0;
13224: }
13225: _ACEOF
13226: rm -f conftest.$ac_objext conftest$ac_exeext
13227: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13228: (eval $ac_link) 2>&5
13229: ac_status=$?
13230: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231: (exit $ac_status); } &&
13232: { ac_try='test -s conftest$ac_exeext'
13233: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234: (eval $ac_try) 2>&5
13235: ac_status=$?
13236: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237: (exit $ac_status); }; }; then
13238: eval "$as_ac_Lib=yes"
13239: else
13240: echo "$as_me: failed program was:" >&5
13241: sed 's/^/| /' conftest.$ac_ext >&5
13242:
13243: eval "$as_ac_Lib=no"
13244: fi
13245: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13246: LIBS=$ac_check_lib_save_LIBS
13247: fi
13248: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13249: echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13250: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13251: K4LIBS="-lkrb $K4LIBS"
13252: else
13253:
13254: as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
13255: echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
13256: echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
13257: if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13258: echo $ECHO_N "(cached) $ECHO_C" >&6
13259: else
13260: ac_check_lib_save_LIBS=$LIBS
13261: LIBS="-lkrb4 $K4LIBS $LIBS"
13262: cat >conftest.$ac_ext <<_ACEOF
13263: #line $LINENO "configure"
13264: /* confdefs.h. */
13265: _ACEOF
13266: cat confdefs.h >>conftest.$ac_ext
13267: cat >>conftest.$ac_ext <<_ACEOF
13268: /* end confdefs.h. */
13269:
13270:
13271: int
13272: main ()
13273: {
13274: main ();
13275: ;
13276: return 0;
13277: }
13278: _ACEOF
13279: rm -f conftest.$ac_objext conftest$ac_exeext
13280: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13281: (eval $ac_link) 2>&5
13282: ac_status=$?
13283: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284: (exit $ac_status); } &&
13285: { ac_try='test -s conftest$ac_exeext'
13286: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13287: (eval $ac_try) 2>&5
13288: ac_status=$?
13289: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290: (exit $ac_status); }; }; then
13291: eval "$as_ac_Lib=yes"
13292: else
13293: echo "$as_me: failed program was:" >&5
13294: sed 's/^/| /' conftest.$ac_ext >&5
13295:
13296: eval "$as_ac_Lib=no"
13297: fi
13298: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13299: LIBS=$ac_check_lib_save_LIBS
13300: fi
13301: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13302: echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13303: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13304: K4LIBS="-lkrb4 $K4LIBS"
13305: else
13306: K4LIBS="-lkrb $K4LIBS"
13307: { 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
13308: 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;}
13309:
13310: fi
13311:
13312:
13313: fi
13314:
13315: LDFLAGS="$O_LDFLAGS"
13316: SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
13317: AUTH_OBJS="${AUTH_OBJS} kerb4.o"
13318: fi
13319:
1.18 ! millert 13320: if test "$with_kerb5" = "yes"; then
! 13321: # Extract the first word of "krb5-config", so it can be a program name with args.
! 13322: set dummy krb5-config; ac_word=$2
! 13323: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 13324: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 13325: if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
! 13326: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13327: else
! 13328: if test -n "$KRB5CONFIG"; then
! 13329: ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
! 13330: else
! 13331: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 13332: for as_dir in $PATH
! 13333: do
! 13334: IFS=$as_save_IFS
! 13335: test -z "$as_dir" && as_dir=.
! 13336: for ac_exec_ext in '' $ac_executable_extensions; do
! 13337: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 13338: ac_cv_prog_KRB5CONFIG="yes"
! 13339: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 13340: break 2
! 13341: fi
! 13342: done
! 13343: done
! 13344:
! 13345: test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
! 13346: fi
! 13347: fi
! 13348: KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
! 13349: if test -n "$KRB5CONFIG"; then
! 13350: echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
! 13351: echo "${ECHO_T}$KRB5CONFIG" >&6
! 13352: else
! 13353: echo "$as_me:$LINENO: result: no" >&5
! 13354: echo "${ECHO_T}no" >&6
! 13355: fi
! 13356:
! 13357: if test -n "$KRB5CONFIG"; then
! 13358:
! 13359: cat >>confdefs.h <<\_ACEOF
! 13360: #define HAVE_KERB5 1
! 13361: _ACEOF
! 13362:
! 13363: AUTH_OBJS="${AUTH_OBJS} kerb5.o"
! 13364: CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
! 13365: SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
! 13366: fi
! 13367: fi
! 13368: if test -n "$with_kerb5" -a -z "$KRB5CONFIG"; then
1.17 millert 13369:
13370: cat >>confdefs.h <<\_ACEOF
13371: #define HAVE_KERB5 1
13372: _ACEOF
13373:
13374: if test "$with_kerb5" = "yes"; then
13375: found=no
13376: O_CPPFLAGS="$CPPFLAGS"
13377: for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
13378: CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
13379: cat >conftest.$ac_ext <<_ACEOF
13380: #include <krb5.h>
13381: _ACEOF
13382: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13383: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13384: ac_status=$?
13385: grep -v '^ *+' conftest.er1 >conftest.err
13386: rm -f conftest.er1
13387: cat conftest.err >&5
13388: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389: (exit $ac_status); } >/dev/null; then
13390: if test -s conftest.err; then
13391: ac_cpp_err=$ac_c_preproc_warn_flag
13392: else
13393: ac_cpp_err=
13394: fi
13395: else
13396: ac_cpp_err=yes
13397: fi
13398: if test -z "$ac_cpp_err"; then
13399: found=yes; break
13400: else
13401: echo "$as_me: failed program was:" >&5
13402: sed 's/^/| /' conftest.$ac_ext >&5
13403:
13404:
13405: fi
13406: rm -f conftest.err conftest.$ac_ext
13407: done
13408: if test X"$found" = X"no"; then
13409: CPPFLAGS="$O_CPPFLAGS"
13410: { 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
13411: 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;}
13412: fi
13413: else
13414:
13415: if test X"$with_rpath" = X"yes"; then
13416: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
13417: else
13418: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
13419: fi
13420: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
13421: blibpath_add="${blibpath_add}:${with_kerb5}/lib"
13422: fi
13423:
13424: CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
13425: fi
13426:
13427: echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
13428: echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
13429: cat >conftest.$ac_ext <<_ACEOF
13430: #line $LINENO "configure"
13431: /* confdefs.h. */
13432: _ACEOF
13433: cat confdefs.h >>conftest.$ac_ext
13434: cat >>conftest.$ac_ext <<_ACEOF
13435: /* end confdefs.h. */
13436: #include <krb5.h>
13437: int
13438: main ()
13439: {
13440: const char *tmp = heimdal_version;
13441: ;
13442: return 0;
13443: }
13444: _ACEOF
13445: rm -f conftest.$ac_objext
13446: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13447: (eval $ac_compile) 2>&5
13448: ac_status=$?
13449: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450: (exit $ac_status); } &&
13451: { ac_try='test -s conftest.$ac_objext'
13452: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453: (eval $ac_try) 2>&5
13454: ac_status=$?
13455: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456: (exit $ac_status); }; }; then
13457:
13458: echo "$as_me:$LINENO: result: yes" >&5
13459: echo "${ECHO_T}yes" >&6
13460: SUDO_LIBS="${SUDO_LIBS} -lkrb5 -ldes -lcom_err -lasn1"
13461: echo "$as_me:$LINENO: checking for main in -lroken" >&5
13462: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6
13463: if test "${ac_cv_lib_roken_main+set}" = set; then
13464: echo $ECHO_N "(cached) $ECHO_C" >&6
13465: else
13466: ac_check_lib_save_LIBS=$LIBS
13467: LIBS="-lroken $LIBS"
13468: cat >conftest.$ac_ext <<_ACEOF
13469: #line $LINENO "configure"
13470: /* confdefs.h. */
13471: _ACEOF
13472: cat confdefs.h >>conftest.$ac_ext
13473: cat >>conftest.$ac_ext <<_ACEOF
13474: /* end confdefs.h. */
13475:
13476:
13477: int
13478: main ()
13479: {
13480: main ();
13481: ;
13482: return 0;
13483: }
13484: _ACEOF
13485: rm -f conftest.$ac_objext conftest$ac_exeext
13486: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13487: (eval $ac_link) 2>&5
13488: ac_status=$?
13489: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490: (exit $ac_status); } &&
13491: { ac_try='test -s conftest$ac_exeext'
13492: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493: (eval $ac_try) 2>&5
13494: ac_status=$?
13495: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496: (exit $ac_status); }; }; then
13497: ac_cv_lib_roken_main=yes
13498: else
13499: echo "$as_me: failed program was:" >&5
13500: sed 's/^/| /' conftest.$ac_ext >&5
13501:
13502: ac_cv_lib_roken_main=no
13503: fi
13504: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13505: LIBS=$ac_check_lib_save_LIBS
13506: fi
13507: echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
13508: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6
13509: if test $ac_cv_lib_roken_main = yes; then
13510: SUDO_LIBS="${SUDO_LIBS} -lroken"
13511: fi
13512:
13513:
13514: else
13515: echo "$as_me: failed program was:" >&5
13516: sed 's/^/| /' conftest.$ac_ext >&5
13517:
13518:
13519: echo "$as_me:$LINENO: result: no" >&5
13520: echo "${ECHO_T}no" >&6
13521: SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
13522:
13523:
13524: fi
13525: rm -f conftest.$ac_objext conftest.$ac_ext
13526: AUTH_OBJS="${AUTH_OBJS} kerb5.o"
13527: fi
13528:
13529: if test "$with_pam" = "yes"; then
13530: echo "$as_me:$LINENO: checking for main in -ldl" >&5
13531: echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13532: if test "${ac_cv_lib_dl_main+set}" = set; then
13533: echo $ECHO_N "(cached) $ECHO_C" >&6
13534: else
13535: ac_check_lib_save_LIBS=$LIBS
13536: LIBS="-ldl $LIBS"
13537: cat >conftest.$ac_ext <<_ACEOF
13538: #line $LINENO "configure"
13539: /* confdefs.h. */
13540: _ACEOF
13541: cat confdefs.h >>conftest.$ac_ext
13542: cat >>conftest.$ac_ext <<_ACEOF
13543: /* end confdefs.h. */
13544:
13545:
13546: int
13547: main ()
13548: {
13549: main ();
13550: ;
13551: return 0;
13552: }
13553: _ACEOF
13554: rm -f conftest.$ac_objext conftest$ac_exeext
13555: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13556: (eval $ac_link) 2>&5
13557: ac_status=$?
13558: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559: (exit $ac_status); } &&
13560: { ac_try='test -s conftest$ac_exeext'
13561: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562: (eval $ac_try) 2>&5
13563: ac_status=$?
13564: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565: (exit $ac_status); }; }; then
13566: ac_cv_lib_dl_main=yes
13567: else
13568: echo "$as_me: failed program was:" >&5
13569: sed 's/^/| /' conftest.$ac_ext >&5
13570:
13571: ac_cv_lib_dl_main=no
13572: fi
13573: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13574: LIBS=$ac_check_lib_save_LIBS
13575: fi
13576: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13577: echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13578: if test $ac_cv_lib_dl_main = yes; then
13579: SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
13580: else
13581: SUDO_LIBS="${SUDO_LIBS} -lpam"
13582: fi
13583: ac_cv_lib_dl=ac_cv_lib_dl_main
13584:
13585: fi
13586:
13587: if test "$with_AFS" = "yes"; then
13588:
13589: # looks like the "standard" place for AFS libs is /usr/afsws/lib
13590: AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
13591: for i in $AFSLIBDIRS; do
13592: if test -d ${i}; then
13593:
13594: if test X"$with_rpath" = X"yes"; then
13595: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
13596: else
13597: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
13598: fi
13599: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
13600: blibpath_add="${blibpath_add}:$i"
13601: fi
13602:
13603: FOUND_AFSLIBDIR=true
13604: fi
13605: done
13606: if test -z "$FOUND_AFSLIBDIR"; then
13607: { 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
13608: 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;}
13609: fi
13610:
13611: # Order is important here. Note that we build AFS_LIBS from right to left
13612: # since AFS_LIBS may be initialized with BSD compat libs that must go last
13613: AFS_LIBS="-laudit ${AFS_LIBS}"
13614: for i in $AFSLIBDIRS; do
13615: if test -f ${i}/util.a; then
13616: AFS_LIBS="${i}/util.a ${AFS_LIBS}"
13617: FOUND_UTIL_A=true
13618: break;
13619: fi
13620: done
13621: if test -z "$FOUND_UTIL_A"; then
13622: AFS_LIBS="-lutil ${AFS_LIBS}"
13623: fi
13624: AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
13625:
13626: # AFS includes may live in /usr/include on some machines...
13627: for i in /usr/afsws/include; do
13628: if test -d ${i}; then
13629: CPPFLAGS="${CPPFLAGS} -I${i}"
13630: FOUND_AFSINCDIR=true
13631: fi
13632: done
13633:
13634: if test -z "$FOUND_AFSLIBDIR"; then
13635: { 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
13636: 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;}
13637: fi
13638: fi
13639:
13640: if test "$with_DCE" = "yes"; then
13641: DCE_OBJS="${DCE_OBJS} dce_pwent.o"
13642: SUDO_LIBS="${SUDO_LIBS} -ldce"
13643: fi
13644:
13645: if test -n "$with_skey"; then
13646: O_LDFLAGS="$LDFLAGS"
13647: if test "$with_skey" != "yes"; then
13648: CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
13649:
13650: if test X"$with_rpath" = X"yes"; then
13651: LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
13652: else
13653: LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
13654: fi
13655: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
13656: blibpath_add="${blibpath_add}:${with_skey}/lib"
13657: fi
13658:
13659:
13660: if test X"$with_rpath" = X"yes"; then
13661: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
13662: else
13663: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
13664: fi
13665: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
13666: blibpath_add="${blibpath_add}:${with_skey}/lib"
13667: fi
13668:
13669: cat >conftest.$ac_ext <<_ACEOF
13670: #include <skey.h>
13671: _ACEOF
13672: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13673: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13674: ac_status=$?
13675: grep -v '^ *+' conftest.er1 >conftest.err
13676: rm -f conftest.er1
13677: cat conftest.err >&5
13678: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679: (exit $ac_status); } >/dev/null; then
13680: if test -s conftest.err; then
13681: ac_cpp_err=$ac_c_preproc_warn_flag
13682: else
13683: ac_cpp_err=
13684: fi
13685: else
13686: ac_cpp_err=yes
13687: fi
13688: if test -z "$ac_cpp_err"; then
13689: found=yes
13690: else
13691: echo "$as_me: failed program was:" >&5
13692: sed 's/^/| /' conftest.$ac_ext >&5
13693:
13694: found=no
13695: fi
13696: rm -f conftest.err conftest.$ac_ext
13697: else
13698: found=no
13699: O_CPPFLAGS="$CPPFLAGS"
13700: for dir in "" "/usr/local" "/usr/contrib"; do
13701: test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
13702: cat >conftest.$ac_ext <<_ACEOF
13703: #include <skey.h>
13704: _ACEOF
13705: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13706: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13707: ac_status=$?
13708: grep -v '^ *+' conftest.er1 >conftest.err
13709: rm -f conftest.er1
13710: cat conftest.err >&5
13711: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712: (exit $ac_status); } >/dev/null; then
13713: if test -s conftest.err; then
13714: ac_cpp_err=$ac_c_preproc_warn_flag
13715: else
13716: ac_cpp_err=
13717: fi
13718: else
13719: ac_cpp_err=yes
13720: fi
13721: if test -z "$ac_cpp_err"; then
13722: found=yes; break
13723: else
13724: echo "$as_me: failed program was:" >&5
13725: sed 's/^/| /' conftest.$ac_ext >&5
13726:
13727:
13728: fi
13729: rm -f conftest.err conftest.$ac_ext
13730: done
13731: if test "$found" = "no" -o -z "$dir"; then
13732: CPPFLAGS="$O_CPPFLAGS"
13733: else
13734:
13735: if test X"$with_rpath" = X"yes"; then
13736: LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
13737: else
13738: LDFLAGS="${LDFLAGS} -L${dir}/lib"
13739: fi
13740: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
13741: blibpath_add="${blibpath_add}:${dir}/lib"
13742: fi
1.1 millert 13743:
13744:
1.17 millert 13745: if test X"$with_rpath" = X"yes"; then
13746: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
13747: else
13748: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
13749: fi
13750: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
13751: blibpath_add="${blibpath_add}:${dir}/lib"
1.1 millert 13752: fi
13753:
13754: fi
13755: fi
1.17 millert 13756: if test "$found" = "no"; then
13757: { 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
13758: 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;}
13759: fi
13760: echo "$as_me:$LINENO: checking for main in -lskey" >&5
13761: echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6
13762: if test "${ac_cv_lib_skey_main+set}" = set; then
13763: echo $ECHO_N "(cached) $ECHO_C" >&6
13764: else
13765: ac_check_lib_save_LIBS=$LIBS
13766: LIBS="-lskey $LIBS"
13767: cat >conftest.$ac_ext <<_ACEOF
13768: #line $LINENO "configure"
13769: /* confdefs.h. */
13770: _ACEOF
13771: cat confdefs.h >>conftest.$ac_ext
13772: cat >>conftest.$ac_ext <<_ACEOF
13773: /* end confdefs.h. */
13774:
1.1 millert 13775:
1.17 millert 13776: int
13777: main ()
13778: {
13779: main ();
13780: ;
13781: return 0;
13782: }
13783: _ACEOF
13784: rm -f conftest.$ac_objext conftest$ac_exeext
13785: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13786: (eval $ac_link) 2>&5
13787: ac_status=$?
13788: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789: (exit $ac_status); } &&
13790: { ac_try='test -s conftest$ac_exeext'
13791: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792: (eval $ac_try) 2>&5
13793: ac_status=$?
13794: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795: (exit $ac_status); }; }; then
13796: ac_cv_lib_skey_main=yes
13797: else
13798: echo "$as_me: failed program was:" >&5
13799: sed 's/^/| /' conftest.$ac_ext >&5
1.1 millert 13800:
1.17 millert 13801: ac_cv_lib_skey_main=no
13802: fi
13803: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13804: LIBS=$ac_check_lib_save_LIBS
1.1 millert 13805: fi
1.17 millert 13806: echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
13807: echo "${ECHO_T}$ac_cv_lib_skey_main" >&6
13808: if test $ac_cv_lib_skey_main = yes; then
13809: found=yes
13810: else
13811: { 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
13812: 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 13813: fi
13814:
1.16 millert 13815: echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
1.9 millert 13816: echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6
13817: if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
13818: echo $ECHO_N "(cached) $ECHO_C" >&6
13819: else
13820: ac_check_lib_save_LIBS=$LIBS
1.16 millert 13821: LIBS="-lskey $LIBS"
13822: cat >conftest.$ac_ext <<_ACEOF
13823: #line $LINENO "configure"
13824: /* confdefs.h. */
13825: _ACEOF
13826: cat confdefs.h >>conftest.$ac_ext
13827: cat >>conftest.$ac_ext <<_ACEOF
13828: /* end confdefs.h. */
13829:
13830: /* Override any gcc2 internal prototype to avoid an error. */
13831: #ifdef __cplusplus
13832: extern "C"
13833: #endif
13834: /* We use char because int might match the return type of a gcc2
13835: builtin and then its argument prototype would still apply. */
13836: char skeyaccess ();
13837: int
13838: main ()
13839: {
13840: skeyaccess ();
13841: ;
13842: return 0;
13843: }
13844: _ACEOF
13845: rm -f conftest.$ac_objext conftest$ac_exeext
13846: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13847: (eval $ac_link) 2>&5
13848: ac_status=$?
13849: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850: (exit $ac_status); } &&
13851: { ac_try='test -s conftest$ac_exeext'
13852: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853: (eval $ac_try) 2>&5
13854: ac_status=$?
13855: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856: (exit $ac_status); }; }; then
13857: ac_cv_lib_skey_skeyaccess=yes
13858: else
13859: echo "$as_me: failed program was:" >&5
13860: sed 's/^/| /' conftest.$ac_ext >&5
13861:
13862: ac_cv_lib_skey_skeyaccess=no
13863: fi
13864: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13865: LIBS=$ac_check_lib_save_LIBS
13866: fi
13867: echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
13868: echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6
13869: if test $ac_cv_lib_skey_skeyaccess = yes; then
13870:
13871: cat >>confdefs.h <<\_ACEOF
13872: #define HAVE_SKEYACCESS 1
13873: _ACEOF
13874:
13875: fi
13876:
1.17 millert 13877: LDFLAGS="$O_LDFLAGS"
13878: SUDO_LIBS="${SUDO_LIBS} -lskey"
13879: fi
13880:
13881: if test -n "$with_opie"; then
13882: O_LDFLAGS="$LDFLAGS"
13883: if test "$with_opie" != "yes"; then
13884: CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
13885:
13886: if test X"$with_rpath" = X"yes"; then
13887: LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
13888: else
13889: LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
13890: fi
13891: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
13892: blibpath_add="${blibpath_add}:${with_opie}/lib"
13893: fi
13894:
13895:
13896: if test X"$with_rpath" = X"yes"; then
13897: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
13898: else
13899: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
13900: fi
13901: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
13902: blibpath_add="${blibpath_add}:${with_opie}/lib"
13903: fi
13904:
13905: cat >conftest.$ac_ext <<_ACEOF
13906: #include <opie.h>
13907: _ACEOF
13908: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13909: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13910: ac_status=$?
13911: grep -v '^ *+' conftest.er1 >conftest.err
13912: rm -f conftest.er1
13913: cat conftest.err >&5
13914: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915: (exit $ac_status); } >/dev/null; then
13916: if test -s conftest.err; then
13917: ac_cpp_err=$ac_c_preproc_warn_flag
13918: else
13919: ac_cpp_err=
13920: fi
13921: else
13922: ac_cpp_err=yes
13923: fi
13924: if test -z "$ac_cpp_err"; then
13925: found=yes
13926: else
13927: echo "$as_me: failed program was:" >&5
13928: sed 's/^/| /' conftest.$ac_ext >&5
13929:
13930: found=no
13931: fi
13932: rm -f conftest.err conftest.$ac_ext
13933: else
13934: found=no
13935: O_CPPFLAGS="$CPPFLAGS"
13936: for dir in "" "/usr/local" "/usr/contrib"; do
13937: test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
13938: cat >conftest.$ac_ext <<_ACEOF
13939: #include <opie.h>
13940: _ACEOF
13941: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13942: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13943: ac_status=$?
13944: grep -v '^ *+' conftest.er1 >conftest.err
13945: rm -f conftest.er1
13946: cat conftest.err >&5
13947: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948: (exit $ac_status); } >/dev/null; then
13949: if test -s conftest.err; then
13950: ac_cpp_err=$ac_c_preproc_warn_flag
13951: else
13952: ac_cpp_err=
13953: fi
13954: else
13955: ac_cpp_err=yes
13956: fi
13957: if test -z "$ac_cpp_err"; then
13958: found=yes; break
13959: else
13960: echo "$as_me: failed program was:" >&5
13961: sed 's/^/| /' conftest.$ac_ext >&5
13962:
13963:
1.16 millert 13964: fi
1.17 millert 13965: rm -f conftest.err conftest.$ac_ext
13966: done
13967: if test "$found" = "no" -o -z "$dir"; then
13968: CPPFLAGS="$O_CPPFLAGS"
13969: else
13970:
13971: if test X"$with_rpath" = X"yes"; then
13972: LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
13973: else
13974: LDFLAGS="${LDFLAGS} -L${dir}/lib"
13975: fi
13976: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
13977: blibpath_add="${blibpath_add}:${dir}/lib"
13978: fi
1.16 millert 13979:
1.17 millert 13980:
13981: if test X"$with_rpath" = X"yes"; then
13982: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
1.16 millert 13983: else
1.17 millert 13984: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
13985: fi
13986: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
13987: blibpath_add="${blibpath_add}:${dir}/lib"
13988: fi
13989:
13990: fi
13991: fi
13992: if test "$found" = "no"; then
13993: { 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
13994: 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 13995: fi
1.17 millert 13996: echo "$as_me:$LINENO: checking for main in -lopie" >&5
13997: echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6
13998: if test "${ac_cv_lib_opie_main+set}" = set; then
13999: echo $ECHO_N "(cached) $ECHO_C" >&6
14000: else
14001: ac_check_lib_save_LIBS=$LIBS
14002: LIBS="-lopie $LIBS"
14003: cat >conftest.$ac_ext <<_ACEOF
14004: #line $LINENO "configure"
14005: /* confdefs.h. */
14006: _ACEOF
14007: cat confdefs.h >>conftest.$ac_ext
14008: cat >>conftest.$ac_ext <<_ACEOF
14009: /* end confdefs.h. */
14010:
14011:
14012: int
14013: main ()
14014: {
14015: main ();
14016: ;
14017: return 0;
14018: }
14019: _ACEOF
14020: rm -f conftest.$ac_objext conftest$ac_exeext
14021: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14022: (eval $ac_link) 2>&5
14023: ac_status=$?
14024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025: (exit $ac_status); } &&
14026: { ac_try='test -s conftest$ac_exeext'
14027: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14028: (eval $ac_try) 2>&5
14029: ac_status=$?
14030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031: (exit $ac_status); }; }; then
14032: ac_cv_lib_opie_main=yes
14033: else
14034: echo "$as_me: failed program was:" >&5
14035: sed 's/^/| /' conftest.$ac_ext >&5
14036:
14037: ac_cv_lib_opie_main=no
14038: fi
14039: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14040: LIBS=$ac_check_lib_save_LIBS
14041: fi
14042: echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
14043: echo "${ECHO_T}$ac_cv_lib_opie_main" >&6
14044: if test $ac_cv_lib_opie_main = yes; then
14045: found=yes
14046: else
14047: { 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
14048: 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;}
14049: fi
14050:
14051: LDFLAGS="$O_LDFLAGS"
14052: SUDO_LIBS="${SUDO_LIBS} -lopie"
1.16 millert 14053: fi
14054:
14055: if test -n "$with_SecurID" -a "$with_SecurID" != "no"; then
14056: if test "$with_SecurID" != "yes"; then
14057: :
14058: elif test -d /usr/ace/examples; then
14059: with_SecurID=/usr/ace/examples
14060: else
14061: with_SecurID=/usr/ace
14062: fi
14063: CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
14064: _LDFLAGS="${LDFLAGS}"
1.17 millert 14065:
14066: if test X"$with_rpath" = X"yes"; then
14067: LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
14068: else
14069: LDFLAGS="${LDFLAGS} -L${with_SecurID}"
14070: fi
14071: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
14072: blibpath_add="${blibpath_add}:${with_SecurID}"
14073: fi
14074:
1.16 millert 14075: #
14076: # Determine whether to use the new or old SecurID API
14077: #
14078: echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
14079: echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6
1.17 millert 14080: if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
1.16 millert 14081: echo $ECHO_N "(cached) $ECHO_C" >&6
14082: else
14083: ac_check_lib_save_LIBS=$LIBS
1.17 millert 14084: LIBS="-laceclnt
14085: -lpthread
14086:
14087: $LIBS"
1.9 millert 14088: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14089: #line $LINENO "configure"
14090: /* confdefs.h. */
14091: _ACEOF
14092: cat confdefs.h >>conftest.$ac_ext
14093: cat >>conftest.$ac_ext <<_ACEOF
14094: /* end confdefs.h. */
1.9 millert 14095:
14096: /* Override any gcc2 internal prototype to avoid an error. */
14097: #ifdef __cplusplus
14098: extern "C"
14099: #endif
14100: /* We use char because int might match the return type of a gcc2
14101: builtin and then its argument prototype would still apply. */
1.16 millert 14102: char SD_Init ();
1.9 millert 14103: int
14104: main ()
14105: {
1.16 millert 14106: SD_Init ();
1.9 millert 14107: ;
14108: return 0;
14109: }
14110: _ACEOF
14111: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 14112: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 14113: (eval $ac_link) 2>&5
14114: ac_status=$?
1.16 millert 14115: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14116: (exit $ac_status); } &&
14117: { ac_try='test -s conftest$ac_exeext'
1.16 millert 14118: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 14119: (eval $ac_try) 2>&5
14120: ac_status=$?
1.16 millert 14121: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14122: (exit $ac_status); }; }; then
1.17 millert 14123: ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
1.9 millert 14124: else
14125: echo "$as_me: failed program was:" >&5
1.16 millert 14126: sed 's/^/| /' conftest.$ac_ext >&5
14127:
1.17 millert 14128: ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
1.9 millert 14129: fi
14130: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14131: LIBS=$ac_check_lib_save_LIBS
14132: fi
1.17 millert 14133: echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
14134: echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6
14135: if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
14136:
14137: AUTH_OBJS="securid5.o"
14138: SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
14139:
14140:
14141:
14142: if test X"$with_rpath" = X"yes"; then
14143: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
14144: else
14145: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
14146: fi
14147: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
14148: blibpath_add="${blibpath_add}:${with_SecurID}"
14149: fi
14150:
14151:
1.16 millert 14152: else
1.17 millert 14153:
14154: AUTH_OBJS="securid.o"
14155: SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
14156:
1.1 millert 14157: fi
14158:
1.16 millert 14159: LDFLAGS="${_LDFLAGS}"
1.1 millert 14160: fi
14161:
1.17 millert 14162: if test -n "$with_fwtk"; then
14163: if test "$with_fwtk" != "yes"; then
14164:
14165: if test X"$with_rpath" = X"yes"; then
14166: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
14167: else
14168: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
14169: fi
14170: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
14171: blibpath_add="${blibpath_add}:${with_fwtk}"
14172: fi
14173:
14174: CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
14175: with_fwtk=yes
14176: fi
1.1 millert 14177: SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
14178: fi
14179:
14180: if test "$with_authenticate" = "yes"; then
14181: SUDO_LIBS="${SUDO_LIBS} -ls"
14182: fi
14183:
1.17 millert 14184: if test -n "$blibpath"; then
14185: if test -n "$blibpath_add"; then
14186: SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
14187: elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
14188: SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
14189: fi
14190: fi
14191:
1.16 millert 14192: echo "$as_me:$LINENO: checking for log file location" >&5
1.9 millert 14193: echo $ECHO_N "checking for log file location... $ECHO_C" >&6
1.1 millert 14194: if test -n "$with_logpath"; then
1.16 millert 14195: echo "$as_me:$LINENO: result: $with_logpath" >&5
1.9 millert 14196: echo "${ECHO_T}$with_logpath" >&6
14197: cat >>confdefs.h <<EOF
1.1 millert 14198: #define _PATH_SUDO_LOGFILE "$with_logpath"
14199: EOF
14200:
14201: elif test -d "/var/log"; then
1.16 millert 14202: echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
1.9 millert 14203: echo "${ECHO_T}/var/log/sudo.log" >&6
14204: cat >>confdefs.h <<\EOF
1.1 millert 14205: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
14206: EOF
14207:
14208: elif test -d "/var/adm"; then
1.16 millert 14209: echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
1.9 millert 14210: echo "${ECHO_T}/var/adm/sudo.log" >&6
14211: cat >>confdefs.h <<\EOF
1.1 millert 14212: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
14213: EOF
14214:
14215: elif test -d "/usr/adm"; then
1.16 millert 14216: echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
1.9 millert 14217: echo "${ECHO_T}/usr/adm/sudo.log" >&6
14218: cat >>confdefs.h <<\EOF
1.1 millert 14219: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
14220: EOF
14221:
14222: else
1.16 millert 14223: echo "$as_me:$LINENO: result: unknown" >&5
1.9 millert 14224: echo "${ECHO_T}unknown" >&6
1.1 millert 14225: fi
14226:
1.16 millert 14227: echo "$as_me:$LINENO: checking for timestamp file location" >&5
1.9 millert 14228: echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6
1.1 millert 14229: if test -n "$with_timedir"; then
1.16 millert 14230: echo "$as_me:$LINENO: result: $with_timedir" >&5
1.9 millert 14231: echo "${ECHO_T}$with_timedir" >&6
14232: cat >>confdefs.h <<EOF
1.1 millert 14233: #define _PATH_SUDO_TIMEDIR "$with_timedir"
14234: EOF
14235:
1.9 millert 14236: timedir="$with_timedir"
1.1 millert 14237: elif test -d "/var/run"; then
1.16 millert 14238: echo "$as_me:$LINENO: result: /var/run/sudo" >&5
1.9 millert 14239: echo "${ECHO_T}/var/run/sudo" >&6
14240: cat >>confdefs.h <<\EOF
1.1 millert 14241: #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
14242: EOF
14243:
1.9 millert 14244: timedir="/var/run/sudo"
1.6 millert 14245: else
1.16 millert 14246: echo "$as_me:$LINENO: result: /tmp/.odus" >&5
1.9 millert 14247: echo "${ECHO_T}/tmp/.odus" >&6
14248: cat >>confdefs.h <<\EOF
1.1 millert 14249: #define _PATH_SUDO_TIMEDIR "/tmp/.odus"
14250: EOF
14251:
1.9 millert 14252: timedir="/tmp/.odus"
1.1 millert 14253: fi
14254:
1.16 millert 14255:
1.1 millert 14256: if test "$with_passwd" = "no"; then
1.16 millert 14257: cat >>confdefs.h <<\_ACEOF
1.9 millert 14258: #define WITHOUT_PASSWD 1. Define to avoid using the passwd/shadow file for authentication.
1.16 millert 14259: _ACEOF
1.1 millert 14260:
14261: if test -z "$AUTH_OBJS"; then
1.16 millert 14262: { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
1.9 millert 14263: echo "$as_me: error: no authentication methods defined." >&2;}
14264: { (exit 1); exit 1; }; }
1.1 millert 14265: fi
14266: else
14267: if test -n "$SECUREWARE"; then
14268: AUTH_OBJS="${AUTH_OBJS} passwd.o secureware.o"
14269: else
14270: AUTH_OBJS="${AUTH_OBJS} passwd.o"
14271: fi
14272: fi
14273:
14274: if test -n "$LIBS"; then
14275: L="$LIBS"
14276: LIBS=
14277: for l in ${L}; do
14278: dupe=0
14279: for sl in ${SUDO_LIBS} ${NET_LIBS}; do
14280: test $l = $sl && dupe=1
14281: done
14282: test $dupe = 0 && LIBS="${LIBS} $l"
14283: done
14284: fi
14285:
14286: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
14287:
1.16 millert 14288: ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
1.9 millert 14289: cat >confcache <<\_ACEOF
1.1 millert 14290: # This file is a shell script that caches the results of configure
14291: # tests run on this system so they can be shared between configure
1.9 millert 14292: # scripts and configure runs, see configure's option --config-cache.
14293: # It is not useful on other systems. If it contains results you don't
14294: # want to keep, you may remove or edit it.
1.1 millert 14295: #
1.9 millert 14296: # config.status only pays attention to the cache file if you give it
14297: # the --recheck option to rerun configure.
1.1 millert 14298: #
1.16 millert 14299: # `ac_cv_env_foo' variables (set or unset) will be overridden when
1.9 millert 14300: # loading this file, other *unset* `ac_cv_foo' will be assigned the
14301: # following values.
14302:
14303: _ACEOF
14304:
1.1 millert 14305: # The following way of writing the cache mishandles newlines in values,
14306: # but we know of no workaround that is simple, portable, and efficient.
14307: # So, don't put newlines in cache variables' values.
14308: # Ultrix sh set writes to stderr and can't be redirected directly,
14309: # and sets the high bit in the cache file unless we assign to the vars.
1.9 millert 14310: {
14311: (set) 2>&1 |
14312: case `(ac_space=' '; set | grep ac_space) 2>&1` in
14313: *ac_space=\ *)
14314: # `set' does not quote correctly, so add quotes (double-quote
14315: # substitution turns \\\\ into \\, and sed turns \\ into \).
14316: sed -n \
14317: "s/'/'\\\\''/g;
14318: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14319: ;;
14320: *)
14321: # `set' quotes correctly as required by POSIX, so do not add quotes.
14322: sed -n \
14323: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14324: ;;
14325: esac;
14326: } |
14327: sed '
14328: t clear
14329: : clear
14330: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14331: t end
14332: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14333: : end' >>confcache
1.16 millert 14334: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1 millert 14335: if test -w $cache_file; then
1.9 millert 14336: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14337: cat confcache >$cache_file
1.1 millert 14338: else
14339: echo "not updating unwritable cache $cache_file"
14340: fi
14341: fi
14342: rm -f confcache
14343:
14344: test "x$prefix" = xNONE && prefix=$ac_default_prefix
14345: # Let make expand exec_prefix.
14346: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14347:
1.9 millert 14348: # VPATH may cause trouble with some makes, so we remove $(srcdir),
14349: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14350: # trailing colons and then remove the whole line if VPATH becomes empty
14351: # (actually we leave an empty line to preserve line numbers).
1.1 millert 14352: if test "x$srcdir" = x.; then
1.9 millert 14353: ac_vpsub='/^[ ]*VPATH[ ]*=/{
14354: s/:*\$(srcdir):*/:/;
14355: s/:*\${srcdir}:*/:/;
14356: s/:*@srcdir@:*/:/;
14357: s/^\([^=]*=[ ]*\):*/\1/;
14358: s/:*$//;
14359: s/^[^=]*=[ ]*$//;
14360: }'
1.1 millert 14361: fi
14362:
14363: DEFS=-DHAVE_CONFIG_H
14364:
1.16 millert 14365: ac_libobjs=
14366: ac_ltlibobjs=
14367: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14368: # 1. Remove the extension, and $U if already installed.
14369: ac_i=`echo "$ac_i" |
14370: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14371: # 2. Add them.
14372: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14373: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14374: done
14375: LIBOBJS=$ac_libobjs
14376:
14377: LTLIBOBJS=$ac_ltlibobjs
14378:
14379:
14380:
1.1 millert 14381: : ${CONFIG_STATUS=./config.status}
1.9 millert 14382: ac_clean_files_save=$ac_clean_files
14383: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.16 millert 14384: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
1.9 millert 14385: echo "$as_me: creating $CONFIG_STATUS" >&6;}
14386: cat >$CONFIG_STATUS <<_ACEOF
14387: #! $SHELL
1.16 millert 14388: # Generated by $as_me.
1.1 millert 14389: # Run this file to recreate the current configuration.
14390: # Compiler output produced by configure, useful for debugging
1.9 millert 14391: # configure, is in config.log if it exists.
14392:
14393: debug=false
1.16 millert 14394: ac_cs_recheck=false
14395: ac_cs_silent=false
1.9 millert 14396: SHELL=\${CONFIG_SHELL-$SHELL}
14397: _ACEOF
14398:
14399: cat >>$CONFIG_STATUS <<\_ACEOF
1.16 millert 14400: ## --------------------- ##
14401: ## M4sh Initialization. ##
14402: ## --------------------- ##
14403:
1.9 millert 14404: # Be Bourne compatible
14405: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14406: emulate sh
14407: NULLCMD=:
1.16 millert 14408: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14409: # is contrary to our usage. Disable this feature.
14410: alias -g '${1+"$@"}'='"$@"'
1.9 millert 14411: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14412: set -o posix
14413: fi
14414:
1.16 millert 14415: # Support unset when possible.
14416: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
14417: as_unset=unset
14418: else
14419: as_unset=false
14420: fi
14421:
14422:
14423: # Work around bugs in pre-3.0 UWIN ksh.
14424: $as_unset ENV MAIL MAILPATH
14425: PS1='$ '
14426: PS2='> '
14427: PS4='+ '
14428:
14429: # NLS nuisances.
14430: for as_var in \
14431: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14432: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14433: LC_TELEPHONE LC_TIME
14434: do
14435: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
14436: eval $as_var=C; export $as_var
14437: else
14438: $as_unset $as_var
14439: fi
14440: done
14441:
14442: # Required to use basename.
14443: if expr a : '\(a\)' >/dev/null 2>&1; then
14444: as_expr=expr
14445: else
14446: as_expr=false
14447: fi
14448:
14449: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14450: as_basename=basename
14451: else
14452: as_basename=false
14453: fi
14454:
14455:
1.9 millert 14456: # Name of the executable.
1.16 millert 14457: as_me=`$as_basename "$0" ||
14458: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14459: X"$0" : 'X\(//\)$' \| \
14460: X"$0" : 'X\(/\)$' \| \
14461: . : '\(.\)' 2>/dev/null ||
14462: echo X/"$0" |
14463: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14464: /^X\/\(\/\/\)$/{ s//\1/; q; }
14465: /^X\/\(\/\).*/{ s//\1/; q; }
14466: s/.*/./; q'`
14467:
14468:
14469: # PATH needs CR, and LINENO needs CR and PATH.
14470: # Avoid depending upon Character Ranges.
14471: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14472: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14473: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14474: as_cr_digits='0123456789'
14475: as_cr_alnum=$as_cr_Letters$as_cr_digits
14476:
14477: # The user is always right.
14478: if test "${PATH_SEPARATOR+set}" != set; then
14479: echo "#! /bin/sh" >conf$$.sh
14480: echo "exit 0" >>conf$$.sh
14481: chmod +x conf$$.sh
14482: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14483: PATH_SEPARATOR=';'
14484: else
14485: PATH_SEPARATOR=:
14486: fi
14487: rm -f conf$$.sh
14488: fi
14489:
14490:
14491: as_lineno_1=$LINENO
14492: as_lineno_2=$LINENO
14493: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14494: test "x$as_lineno_1" != "x$as_lineno_2" &&
14495: test "x$as_lineno_3" = "x$as_lineno_2" || {
14496: # Find who we are. Look in the path if we contain no path at all
14497: # relative or not.
14498: case $0 in
14499: *[\\/]* ) as_myself=$0 ;;
14500: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14501: for as_dir in $PATH
14502: do
14503: IFS=$as_save_IFS
14504: test -z "$as_dir" && as_dir=.
14505: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14506: done
14507:
14508: ;;
14509: esac
14510: # We did not find ourselves, most probably we were run as `sh COMMAND'
14511: # in which case we are not to be found in the path.
14512: if test "x$as_myself" = x; then
14513: as_myself=$0
14514: fi
14515: if test ! -f "$as_myself"; then
14516: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14517: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14518: { (exit 1); exit 1; }; }
14519: fi
14520: case $CONFIG_SHELL in
14521: '')
14522: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14523: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14524: do
14525: IFS=$as_save_IFS
14526: test -z "$as_dir" && as_dir=.
14527: for as_base in sh bash ksh sh5; do
14528: case $as_dir in
14529: /*)
14530: if ("$as_dir/$as_base" -c '
14531: as_lineno_1=$LINENO
14532: as_lineno_2=$LINENO
14533: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14534: test "x$as_lineno_1" != "x$as_lineno_2" &&
14535: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14536: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14537: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14538: CONFIG_SHELL=$as_dir/$as_base
14539: export CONFIG_SHELL
14540: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14541: fi;;
14542: esac
14543: done
14544: done
14545: ;;
14546: esac
14547:
14548: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14549: # uniformly replaced by the line number. The first 'sed' inserts a
14550: # line-number line before each line; the second 'sed' does the real
14551: # work. The second script uses 'N' to pair each line-number line
14552: # with the numbered line, and appends trailing '-' during
14553: # substitution so that $LINENO is not a special case at line end.
14554: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14555: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14556: sed '=' <$as_myself |
14557: sed '
14558: N
14559: s,$,-,
14560: : loop
14561: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14562: t loop
14563: s,-$,,
14564: s,^['$as_cr_digits']*\n,,
14565: ' >$as_me.lineno &&
14566: chmod +x $as_me.lineno ||
14567: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14568: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14569: { (exit 1); exit 1; }; }
14570:
14571: # Don't try to exec as it changes $[0], causing all sort of problems
14572: # (the dirname of $[0] is not the place where we might find the
14573: # original and so on. Autoconf is especially sensible to this).
14574: . ./$as_me.lineno
14575: # Exit status is that of the last command.
14576: exit
14577: }
14578:
14579:
14580: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14581: *c*,-n*) ECHO_N= ECHO_C='
14582: ' ECHO_T=' ' ;;
14583: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14584: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14585: esac
1.9 millert 14586:
14587: if expr a : '\(a\)' >/dev/null 2>&1; then
14588: as_expr=expr
14589: else
14590: as_expr=false
14591: fi
14592:
14593: rm -f conf$$ conf$$.exe conf$$.file
14594: echo >conf$$.file
14595: if ln -s conf$$.file conf$$ 2>/dev/null; then
14596: # We could just check for DJGPP; but this test a) works b) is more generic
14597: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14598: if test -f conf$$.exe; then
14599: # Don't use ln at all; we don't have any links
14600: as_ln_s='cp -p'
14601: else
14602: as_ln_s='ln -s'
14603: fi
14604: elif ln conf$$.file conf$$ 2>/dev/null; then
14605: as_ln_s=ln
14606: else
14607: as_ln_s='cp -p'
14608: fi
14609: rm -f conf$$ conf$$.exe conf$$.file
14610:
1.16 millert 14611: if mkdir -p . 2>/dev/null; then
14612: as_mkdir_p=:
14613: else
14614: as_mkdir_p=false
14615: fi
14616:
1.9 millert 14617: as_executable_p="test -f"
14618:
1.16 millert 14619: # Sed expression to map a string onto a valid CPP name.
14620: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14621:
14622: # Sed expression to map a string onto a valid variable name.
14623: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
1.9 millert 14624:
14625:
14626: # IFS
14627: # We need space, tab and new line, in precisely that order.
14628: as_nl='
14629: '
14630: IFS=" $as_nl"
14631:
14632: # CDPATH.
1.16 millert 14633: $as_unset CDPATH
1.9 millert 14634:
14635: exec 6>&1
14636:
1.16 millert 14637: # Open the log real soon, to keep \$[0] and so on meaningful, and to
14638: # report actual input values of CONFIG_FILES etc. instead of their
14639: # values after options handling. Logging --version etc. is OK.
14640: exec 5>>config.log
14641: {
14642: echo
14643: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14644: ## Running $as_me. ##
14645: _ASBOX
14646: } >&5
14647: cat >&5 <<_CSEOF
14648:
1.18 ! millert 14649: This file was extended by sudo $as_me 1.6.7p2, which was
1.16 millert 14650: generated by GNU Autoconf 2.57. Invocation command line was
14651:
14652: CONFIG_FILES = $CONFIG_FILES
14653: CONFIG_HEADERS = $CONFIG_HEADERS
14654: CONFIG_LINKS = $CONFIG_LINKS
14655: CONFIG_COMMANDS = $CONFIG_COMMANDS
14656: $ $0 $@
14657:
14658: _CSEOF
14659: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14660: echo >&5
1.9 millert 14661: _ACEOF
14662:
14663: # Files that config.status was made for.
14664: if test -n "$ac_config_files"; then
14665: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14666: fi
14667:
14668: if test -n "$ac_config_headers"; then
14669: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14670: fi
14671:
14672: if test -n "$ac_config_links"; then
14673: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14674: fi
14675:
14676: if test -n "$ac_config_commands"; then
14677: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14678: fi
14679:
1.16 millert 14680: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 14681:
14682: ac_cs_usage="\
14683: \`$as_me' instantiates files from templates according to the
14684: current configuration.
14685:
14686: Usage: $0 [OPTIONS] [FILE]...
14687:
14688: -h, --help print this help, then exit
14689: -V, --version print version number, then exit
1.16 millert 14690: -q, --quiet do not print progress messages
1.9 millert 14691: -d, --debug don't remove temporary files
14692: --recheck update $as_me by reconfiguring in the same conditions
14693: --file=FILE[:TEMPLATE]
14694: instantiate the configuration file FILE
14695: --header=FILE[:TEMPLATE]
14696: instantiate the configuration header FILE
14697:
14698: Configuration files:
14699: $config_files
14700:
14701: Configuration headers:
14702: $config_headers
14703:
14704: Report bugs to <bug-autoconf@gnu.org>."
1.16 millert 14705: _ACEOF
1.9 millert 14706:
1.16 millert 14707: cat >>$CONFIG_STATUS <<_ACEOF
1.9 millert 14708: ac_cs_version="\\
1.18 ! millert 14709: sudo config.status 1.6.7p2
1.16 millert 14710: configured by $0, generated by GNU Autoconf 2.57,
1.9 millert 14711: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14712:
14713: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14714: Free Software Foundation, Inc.
14715: This config.status script is free software; the Free Software Foundation
14716: gives unlimited permission to copy, distribute and modify it."
14717: srcdir=$srcdir
1.16 millert 14718: _ACEOF
1.9 millert 14719:
1.16 millert 14720: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 14721: # If no file are specified by the user, then we need to provide default
14722: # value. By we need to know if files were specified by the user.
14723: ac_need_defaults=:
14724: while test $# != 0
1.1 millert 14725: do
1.9 millert 14726: case $1 in
14727: --*=*)
14728: ac_option=`expr "x$1" : 'x\([^=]*\)='`
14729: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1.16 millert 14730: ac_shift=:
14731: ;;
14732: -*)
14733: ac_option=$1
14734: ac_optarg=$2
14735: ac_shift=shift
1.9 millert 14736: ;;
14737: *) # This is not an option, so the user has probably given explicit
14738: # arguments.
1.16 millert 14739: ac_option=$1
1.9 millert 14740: ac_need_defaults=false;;
14741: esac
14742:
1.16 millert 14743: case $ac_option in
1.9 millert 14744: # Handling of the options.
1.16 millert 14745: _ACEOF
14746: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 millert 14747: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.16 millert 14748: ac_cs_recheck=: ;;
1.9 millert 14749: --version | --vers* | -V )
14750: echo "$ac_cs_version"; exit 0 ;;
14751: --he | --h)
14752: # Conflict between --help and --header
1.16 millert 14753: { { echo "$as_me:$LINENO: error: ambiguous option: $1
1.9 millert 14754: Try \`$0 --help' for more information." >&5
14755: echo "$as_me: error: ambiguous option: $1
14756: Try \`$0 --help' for more information." >&2;}
14757: { (exit 1); exit 1; }; };;
14758: --help | --hel | -h )
14759: echo "$ac_cs_usage"; exit 0 ;;
14760: --debug | --d* | -d )
14761: debug=: ;;
14762: --file | --fil | --fi | --f )
1.16 millert 14763: $ac_shift
14764: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
1.9 millert 14765: ac_need_defaults=false;;
14766: --header | --heade | --head | --hea )
1.16 millert 14767: $ac_shift
14768: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
1.9 millert 14769: ac_need_defaults=false;;
1.16 millert 14770: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14771: | -silent | --silent | --silen | --sile | --sil | --si | --s)
14772: ac_cs_silent=: ;;
1.9 millert 14773:
14774: # This is an error.
1.16 millert 14775: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
1.9 millert 14776: Try \`$0 --help' for more information." >&5
14777: echo "$as_me: error: unrecognized option: $1
14778: Try \`$0 --help' for more information." >&2;}
14779: { (exit 1); exit 1; }; } ;;
14780:
14781: *) ac_config_targets="$ac_config_targets $1" ;;
14782:
14783: esac
14784: shift
14785: done
14786:
1.16 millert 14787: ac_configure_extra_args=
1.9 millert 14788:
1.16 millert 14789: if $ac_cs_silent; then
14790: exec 6>/dev/null
14791: ac_configure_extra_args="$ac_configure_extra_args --silent"
14792: fi
1.9 millert 14793:
1.16 millert 14794: _ACEOF
14795: cat >>$CONFIG_STATUS <<_ACEOF
14796: if \$ac_cs_recheck; then
14797: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14798: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14799: fi
1.9 millert 14800:
14801: _ACEOF
14802:
1.16 millert 14803:
14804:
14805:
14806:
14807: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 14808: for ac_config_target in $ac_config_targets
14809: do
14810: case "$ac_config_target" in
14811: # Handling of arguments.
14812: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14813: "sudo.man" ) CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
14814: "visudo.man" ) CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
14815: "sudoers.man" ) CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
14816: "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14817: "pathnames.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
1.16 millert 14818: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
1.9 millert 14819: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14820: { (exit 1); exit 1; }; };;
1.1 millert 14821: esac
14822: done
14823:
1.9 millert 14824: # If the user did not use the arguments to specify the items to instantiate,
14825: # then the envvar interface is used. Set only those that are not.
14826: # We use the long form for the default assignment because of an extremely
14827: # bizarre bug on SunOS 4.1.3.
14828: if $ac_need_defaults; then
14829: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14830: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14831: fi
14832:
1.16 millert 14833: # Have a temporary directory for convenience. Make it in the build tree
14834: # simply because there is no reason to put it here, and in addition,
14835: # creating and moving files from /tmp can sometimes cause problems.
1.9 millert 14836: # Create a temporary directory, and hook for its removal unless debugging.
14837: $debug ||
14838: {
14839: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14840: trap '{ (exit 1); exit 1; }' 1 2 13 15
14841: }
14842:
14843: # Create a (secure) tmp directory for tmp files.
1.16 millert 14844:
1.9 millert 14845: {
1.16 millert 14846: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1.9 millert 14847: test -n "$tmp" && test -d "$tmp"
14848: } ||
14849: {
1.16 millert 14850: tmp=./confstat$$-$RANDOM
1.9 millert 14851: (umask 077 && mkdir $tmp)
14852: } ||
14853: {
1.16 millert 14854: echo "$me: cannot create a temporary directory in ." >&2
1.9 millert 14855: { (exit 1); exit 1; }
14856: }
1.1 millert 14857:
1.16 millert 14858: _ACEOF
1.1 millert 14859:
1.16 millert 14860: cat >>$CONFIG_STATUS <<_ACEOF
1.9 millert 14861:
14862: #
14863: # CONFIG_FILES section.
14864: #
1.1 millert 14865:
1.9 millert 14866: # No need to generate the scripts if there are no CONFIG_FILES.
14867: # This happens for instance when ./config.status config.h
14868: if test -n "\$CONFIG_FILES"; then
14869: # Protect against being on the right side of a sed subst in config.status.
14870: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14871: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14872: s,@SHELL@,$SHELL,;t t
1.16 millert 14873: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14874: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14875: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14876: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14877: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14878: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
1.9 millert 14879: s,@exec_prefix@,$exec_prefix,;t t
14880: s,@prefix@,$prefix,;t t
14881: s,@program_transform_name@,$program_transform_name,;t t
14882: s,@bindir@,$bindir,;t t
14883: s,@sbindir@,$sbindir,;t t
14884: s,@libexecdir@,$libexecdir,;t t
14885: s,@datadir@,$datadir,;t t
14886: s,@sysconfdir@,$sysconfdir,;t t
14887: s,@sharedstatedir@,$sharedstatedir,;t t
14888: s,@localstatedir@,$localstatedir,;t t
14889: s,@libdir@,$libdir,;t t
14890: s,@includedir@,$includedir,;t t
14891: s,@oldincludedir@,$oldincludedir,;t t
14892: s,@infodir@,$infodir,;t t
14893: s,@mandir@,$mandir,;t t
14894: s,@build_alias@,$build_alias,;t t
14895: s,@host_alias@,$host_alias,;t t
14896: s,@target_alias@,$target_alias,;t t
1.16 millert 14897: s,@DEFS@,$DEFS,;t t
1.9 millert 14898: s,@ECHO_C@,$ECHO_C,;t t
14899: s,@ECHO_N@,$ECHO_N,;t t
14900: s,@ECHO_T@,$ECHO_T,;t t
14901: s,@LIBS@,$LIBS,;t t
14902: s,@CFLAGS@,$CFLAGS,;t t
14903: s,@PROGS@,$PROGS,;t t
14904: s,@CPPFLAGS@,$CPPFLAGS,;t t
14905: s,@LDFLAGS@,$LDFLAGS,;t t
14906: s,@SUDO_LDFLAGS@,$SUDO_LDFLAGS,;t t
14907: s,@SUDO_LIBS@,$SUDO_LIBS,;t t
14908: s,@NET_LIBS@,$NET_LIBS,;t t
14909: s,@AFS_LIBS@,$AFS_LIBS,;t t
14910: s,@OSDEFS@,$OSDEFS,;t t
14911: s,@AUTH_OBJS@,$AUTH_OBJS,;t t
14912: s,@MANTYPE@,$MANTYPE,;t t
14913: s,@MAN_POSTINSTALL@,$MAN_POSTINSTALL,;t t
14914: s,@SUDOERS_MODE@,$SUDOERS_MODE,;t t
14915: s,@SUDOERS_UID@,$SUDOERS_UID,;t t
14916: s,@SUDOERS_GID@,$SUDOERS_GID,;t t
14917: s,@DEV@,$DEV,;t t
14918: s,@mansectsu@,$mansectsu,;t t
14919: s,@mansectform@,$mansectform,;t t
14920: s,@mansrcdir@,$mansrcdir,;t t
14921: s,@timedir@,$timedir,;t t
14922: s,@timeout@,$timeout,;t t
14923: s,@password_timeout@,$password_timeout,;t t
14924: s,@sudo_umask@,$sudo_umask,;t t
14925: s,@passprompt@,$passprompt,;t t
14926: s,@long_otp_prompt@,$long_otp_prompt,;t t
14927: s,@lecture@,$lecture,;t t
14928: s,@logfac@,$logfac,;t t
14929: s,@goodpri@,$goodpri,;t t
14930: s,@badpri@,$badpri,;t t
14931: s,@loglen@,$loglen,;t t
14932: s,@ignore_dot@,$ignore_dot,;t t
14933: s,@mail_no_user@,$mail_no_user,;t t
14934: s,@mail_no_host@,$mail_no_host,;t t
14935: s,@mail_no_perms@,$mail_no_perms,;t t
14936: s,@mailto@,$mailto,;t t
14937: s,@mailsub@,$mailsub,;t t
14938: s,@badpass_message@,$badpass_message,;t t
14939: s,@fqdn@,$fqdn,;t t
14940: s,@runas_default@,$runas_default,;t t
14941: s,@env_editor@,$env_editor,;t t
14942: s,@passwd_tries@,$passwd_tries,;t t
14943: s,@tty_tickets@,$tty_tickets,;t t
14944: s,@insults@,$insults,;t t
14945: s,@EGREPPROG@,$EGREPPROG,;t t
14946: s,@CC@,$CC,;t t
14947: s,@ac_ct_CC@,$ac_ct_CC,;t t
14948: s,@EXEEXT@,$EXEEXT,;t t
14949: s,@OBJEXT@,$OBJEXT,;t t
14950: s,@CPP@,$CPP,;t t
14951: s,@UNAMEPROG@,$UNAMEPROG,;t t
14952: s,@TRPROG@,$TRPROG,;t t
14953: s,@SEDPROG@,$SEDPROG,;t t
14954: s,@NROFFPROG@,$NROFFPROG,;t t
14955: s,@build@,$build,;t t
14956: s,@build_cpu@,$build_cpu,;t t
14957: s,@build_vendor@,$build_vendor,;t t
14958: s,@build_os@,$build_os,;t t
14959: s,@host@,$host,;t t
14960: s,@host_cpu@,$host_cpu,;t t
14961: s,@host_vendor@,$host_vendor,;t t
14962: s,@host_os@,$host_os,;t t
1.16 millert 14963: s,@EGREP@,$EGREP,;t t
1.9 millert 14964: s,@YACC@,$YACC,;t t
1.16 millert 14965: s,@LIBOBJS@,$LIBOBJS,;t t
1.9 millert 14966: s,@ALLOCA@,$ALLOCA,;t t
1.18 ! millert 14967: s,@KRB5CONFIG@,$KRB5CONFIG,;t t
1.16 millert 14968: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.1 millert 14969: CEOF
1.9 millert 14970:
1.16 millert 14971: _ACEOF
1.1 millert 14972:
1.16 millert 14973: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 14974: # Split the substitutions into bite-sized pieces for seds with
14975: # small command number limits, like on Digital OSF/1 and HP-UX.
14976: ac_max_sed_lines=48
14977: ac_sed_frag=1 # Number of current file.
14978: ac_beg=1 # First line for current file.
14979: ac_end=$ac_max_sed_lines # Line after last line for current file.
14980: ac_more_lines=:
14981: ac_sed_cmds=
14982: while $ac_more_lines; do
14983: if test $ac_beg -gt 1; then
14984: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14985: else
14986: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14987: fi
14988: if test ! -s $tmp/subs.frag; then
14989: ac_more_lines=false
1.1 millert 14990: else
1.9 millert 14991: # The purpose of the label and of the branching condition is to
14992: # speed up the sed processing (if there are no `@' at all, there
14993: # is no need to browse any of the substitutions).
14994: # These are the two extra sed commands mentioned above.
14995: (echo ':t
14996: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14997: if test -z "$ac_sed_cmds"; then
14998: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14999: else
15000: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15001: fi
15002: ac_sed_frag=`expr $ac_sed_frag + 1`
15003: ac_beg=$ac_end
15004: ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1 millert 15005: fi
1.9 millert 15006: done
15007: if test -z "$ac_sed_cmds"; then
15008: ac_sed_cmds=cat
1.1 millert 15009: fi
1.9 millert 15010: fi # test -n "$CONFIG_FILES"
1.1 millert 15011:
1.16 millert 15012: _ACEOF
15013: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 15014: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1.1 millert 15015: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.9 millert 15016: case $ac_file in
15017: - | *:- | *:-:* ) # input from stdin
15018: cat >$tmp/stdin
15019: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15020: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15021: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15022: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15023: * ) ac_file_in=$ac_file.in ;;
1.1 millert 15024: esac
15025:
1.9 millert 15026: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
1.16 millert 15027: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15028: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.9 millert 15029: X"$ac_file" : 'X\(//\)[^/]' \| \
15030: X"$ac_file" : 'X\(//\)$' \| \
15031: X"$ac_file" : 'X\(/\)' \| \
15032: . : '\(.\)' 2>/dev/null ||
15033: echo X"$ac_file" |
15034: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15035: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15036: /^X\(\/\/\)$/{ s//\1/; q; }
15037: /^X\(\/\).*/{ s//\1/; q; }
15038: s/.*/./; q'`
1.16 millert 15039: { if $as_mkdir_p; then
15040: mkdir -p "$ac_dir"
15041: else
15042: as_dir="$ac_dir"
15043: as_dirs=
15044: while test ! -d "$as_dir"; do
15045: as_dirs="$as_dir $as_dirs"
15046: as_dir=`(dirname "$as_dir") 2>/dev/null ||
15047: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15048: X"$as_dir" : 'X\(//\)[^/]' \| \
15049: X"$as_dir" : 'X\(//\)$' \| \
15050: X"$as_dir" : 'X\(/\)' \| \
15051: . : '\(.\)' 2>/dev/null ||
15052: echo X"$as_dir" |
15053: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15054: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15055: /^X\(\/\/\)$/{ s//\1/; q; }
15056: /^X\(\/\).*/{ s//\1/; q; }
15057: s/.*/./; q'`
15058: done
15059: test ! -n "$as_dirs" || mkdir $as_dirs
15060: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15061: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15062: { (exit 1); exit 1; }; }; }
15063:
15064: ac_builddir=.
15065:
15066: if test "$ac_dir" != .; then
15067: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15068: # A "../" for each directory in $ac_dir_suffix.
15069: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15070: else
15071: ac_dir_suffix= ac_top_builddir=
15072: fi
15073:
15074: case $srcdir in
15075: .) # No --srcdir option. We are building in place.
15076: ac_srcdir=.
15077: if test -z "$ac_top_builddir"; then
15078: ac_top_srcdir=.
15079: else
15080: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15081: fi ;;
15082: [\\/]* | ?:[\\/]* ) # Absolute path.
15083: ac_srcdir=$srcdir$ac_dir_suffix;
15084: ac_top_srcdir=$srcdir ;;
15085: *) # Relative path.
15086: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15087: ac_top_srcdir=$ac_top_builddir$srcdir ;;
15088: esac
15089: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15090: # absolute.
15091: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15092: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
15093: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15094: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1.1 millert 15095:
15096:
15097:
1.9 millert 15098: if test x"$ac_file" != x-; then
1.16 millert 15099: { echo "$as_me:$LINENO: creating $ac_file" >&5
1.9 millert 15100: echo "$as_me: creating $ac_file" >&6;}
15101: rm -f "$ac_file"
15102: fi
15103: # Let's still pretend it is `configure' which instantiates (i.e., don't
15104: # use $as_me), people would be surprised to read:
1.16 millert 15105: # /* config.h. Generated by config.status. */
15106: if test x"$ac_file" = x-; then
15107: configure_input=
15108: else
15109: configure_input="$ac_file. "
15110: fi
15111: configure_input=$configure_input"Generated from `echo $ac_file_in |
15112: sed 's,.*/,,'` by configure."
1.9 millert 15113:
15114: # First look for the input files in the build tree, otherwise in the
15115: # src tree.
15116: ac_file_inputs=`IFS=:
15117: for f in $ac_file_in; do
15118: case $f in
15119: -) echo $tmp/stdin ;;
15120: [\\/$]*)
15121: # Absolute (can't be DOS-style, as IFS=:)
1.16 millert 15122: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.9 millert 15123: echo "$as_me: error: cannot find input file: $f" >&2;}
15124: { (exit 1); exit 1; }; }
15125: echo $f;;
15126: *) # Relative
15127: if test -f "$f"; then
15128: # Build tree
15129: echo $f
15130: elif test -f "$srcdir/$f"; then
15131: # Source tree
15132: echo $srcdir/$f
15133: else
15134: # /dev/null tree
1.16 millert 15135: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.9 millert 15136: echo "$as_me: error: cannot find input file: $f" >&2;}
15137: { (exit 1); exit 1; }; }
15138: fi;;
15139: esac
15140: done` || { (exit 1); exit 1; }
1.16 millert 15141: _ACEOF
15142: cat >>$CONFIG_STATUS <<_ACEOF
1.9 millert 15143: sed "$ac_vpsub
15144: $extrasub
1.16 millert 15145: _ACEOF
15146: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 15147: :t
15148: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15149: s,@configure_input@,$configure_input,;t t
15150: s,@srcdir@,$ac_srcdir,;t t
1.16 millert 15151: s,@abs_srcdir@,$ac_abs_srcdir,;t t
1.9 millert 15152: s,@top_srcdir@,$ac_top_srcdir,;t t
1.16 millert 15153: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15154: s,@builddir@,$ac_builddir,;t t
15155: s,@abs_builddir@,$ac_abs_builddir,;t t
15156: s,@top_builddir@,$ac_top_builddir,;t t
15157: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
1.9 millert 15158: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15159: rm -f $tmp/stdin
15160: if test x"$ac_file" != x-; then
15161: mv $tmp/out $ac_file
15162: else
15163: cat $tmp/out
15164: rm -f $tmp/out
15165: fi
1.1 millert 15166:
1.9 millert 15167: done
1.16 millert 15168: _ACEOF
15169: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 millert 15170:
1.9 millert 15171: #
15172: # CONFIG_HEADER section.
15173: #
1.1 millert 15174:
15175: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15176: # NAME is the cpp macro being defined and VALUE is the value it is being given.
15177: #
15178: # ac_d sets the value in "#define NAME VALUE" lines.
1.9 millert 15179: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15180: ac_dB='[ ].*$,\1#\2'
15181: ac_dC=' '
15182: ac_dD=',;t'
15183: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15184: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15185: ac_uB='$,\1#\2define\3'
1.1 millert 15186: ac_uC=' '
1.9 millert 15187: ac_uD=',;t'
1.1 millert 15188:
1.9 millert 15189: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 millert 15190: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.9 millert 15191: case $ac_file in
15192: - | *:- | *:-:* ) # input from stdin
15193: cat >$tmp/stdin
15194: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15195: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15196: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15197: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15198: * ) ac_file_in=$ac_file.in ;;
1.1 millert 15199: esac
15200:
1.16 millert 15201: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
1.9 millert 15202: echo "$as_me: creating $ac_file" >&6;}
1.1 millert 15203:
1.9 millert 15204: # First look for the input files in the build tree, otherwise in the
15205: # src tree.
15206: ac_file_inputs=`IFS=:
15207: for f in $ac_file_in; do
15208: case $f in
15209: -) echo $tmp/stdin ;;
15210: [\\/$]*)
15211: # Absolute (can't be DOS-style, as IFS=:)
1.16 millert 15212: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.9 millert 15213: echo "$as_me: error: cannot find input file: $f" >&2;}
15214: { (exit 1); exit 1; }; }
15215: echo $f;;
15216: *) # Relative
15217: if test -f "$f"; then
15218: # Build tree
15219: echo $f
15220: elif test -f "$srcdir/$f"; then
15221: # Source tree
15222: echo $srcdir/$f
15223: else
15224: # /dev/null tree
1.16 millert 15225: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.9 millert 15226: echo "$as_me: error: cannot find input file: $f" >&2;}
15227: { (exit 1); exit 1; }; }
15228: fi;;
15229: esac
15230: done` || { (exit 1); exit 1; }
15231: # Remove the trailing spaces.
15232: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
1.1 millert 15233:
1.16 millert 15234: _ACEOF
1.1 millert 15235:
1.9 millert 15236: # Transform confdefs.h into two sed scripts, `conftest.defines' and
15237: # `conftest.undefs', that substitutes the proper values into
15238: # config.h.in to produce config.h. The first handles `#define'
15239: # templates, and the second `#undef' templates.
15240: # And first: Protect against being on the right side of a sed subst in
15241: # config.status. Protect against being in an unquoted here document
15242: # in config.status.
15243: rm -f conftest.defines conftest.undefs
15244: # Using a here document instead of a string reduces the quoting nightmare.
15245: # Putting comments in sed scripts is not portable.
15246: #
15247: # `end' is used to avoid that the second main sed command (meant for
15248: # 0-ary CPP macros) applies to n-ary macro definitions.
15249: # See the Autoconf documentation for `clear'.
1.16 millert 15250: cat >confdef2sed.sed <<\_ACEOF
1.9 millert 15251: s/[\\&,]/\\&/g
15252: s,[\\$`],\\&,g
15253: t clear
15254: : clear
1.16 millert 15255: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
1.9 millert 15256: t end
15257: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15258: : end
1.16 millert 15259: _ACEOF
1.9 millert 15260: # If some macros were called several times there might be several times
15261: # the same #defines, which is useless. Nevertheless, we may not want to
15262: # sort them, since we want the *last* AC-DEFINE to be honored.
15263: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15264: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15265: rm -f confdef2sed.sed
1.1 millert 15266:
15267: # This sed command replaces #undef with comments. This is necessary, for
15268: # example, in the case of _POSIX_SOURCE, which is predefined and required
15269: # on some systems where configure will not decide to define it.
1.16 millert 15270: cat >>conftest.undefs <<\_ACEOF
1.9 millert 15271: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.16 millert 15272: _ACEOF
1.1 millert 15273:
1.9 millert 15274: # Break up conftest.defines because some shells have a limit on the size
15275: # of here documents, and old seds have small limits too (100 cmds).
15276: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
1.16 millert 15277: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
1.9 millert 15278: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15279: echo ' :' >>$CONFIG_STATUS
15280: rm -f conftest.tail
15281: while grep . conftest.defines >/dev/null
15282: do
15283: # Write a limited-size here document to $tmp/defines.sed.
15284: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15285: # Speed up: don't consider the non `#define' lines.
15286: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15287: # Work around the forget-to-reset-the-flag bug.
15288: echo 't clr' >>$CONFIG_STATUS
15289: echo ': clr' >>$CONFIG_STATUS
15290: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15291: echo 'CEOF
15292: sed -f $tmp/defines.sed $tmp/in >$tmp/out
15293: rm -f $tmp/in
15294: mv $tmp/out $tmp/in
15295: ' >>$CONFIG_STATUS
15296: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15297: rm -f conftest.defines
15298: mv conftest.tail conftest.defines
15299: done
15300: rm -f conftest.defines
1.16 millert 15301: echo ' fi # grep' >>$CONFIG_STATUS
1.9 millert 15302: echo >>$CONFIG_STATUS
15303:
15304: # Break up conftest.undefs because some shells have a limit on the size
15305: # of here documents, and old seds have small limits too (100 cmds).
15306: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 millert 15307: rm -f conftest.tail
1.9 millert 15308: while grep . conftest.undefs >/dev/null
1.1 millert 15309: do
1.9 millert 15310: # Write a limited-size here document to $tmp/undefs.sed.
15311: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15312: # Speed up: don't consider the non `#undef'
15313: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15314: # Work around the forget-to-reset-the-flag bug.
15315: echo 't clr' >>$CONFIG_STATUS
15316: echo ': clr' >>$CONFIG_STATUS
15317: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 millert 15318: echo 'CEOF
1.9 millert 15319: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15320: rm -f $tmp/in
15321: mv $tmp/out $tmp/in
15322: ' >>$CONFIG_STATUS
15323: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15324: rm -f conftest.undefs
15325: mv conftest.tail conftest.undefs
15326: done
15327: rm -f conftest.undefs
15328:
1.16 millert 15329: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 15330: # Let's still pretend it is `configure' which instantiates (i.e., don't
15331: # use $as_me), people would be surprised to read:
1.16 millert 15332: # /* config.h. Generated by config.status. */
1.9 millert 15333: if test x"$ac_file" = x-; then
1.16 millert 15334: echo "/* Generated by configure. */" >$tmp/config.h
1.1 millert 15335: else
1.16 millert 15336: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
1.9 millert 15337: fi
15338: cat $tmp/in >>$tmp/config.h
15339: rm -f $tmp/in
15340: if test x"$ac_file" != x-; then
1.16 millert 15341: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15342: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
1.9 millert 15343: echo "$as_me: $ac_file is unchanged" >&6;}
15344: else
1.16 millert 15345: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15346: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.9 millert 15347: X"$ac_file" : 'X\(//\)[^/]' \| \
15348: X"$ac_file" : 'X\(//\)$' \| \
15349: X"$ac_file" : 'X\(/\)' \| \
15350: . : '\(.\)' 2>/dev/null ||
15351: echo X"$ac_file" |
15352: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15353: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15354: /^X\(\/\/\)$/{ s//\1/; q; }
15355: /^X\(\/\).*/{ s//\1/; q; }
15356: s/.*/./; q'`
1.16 millert 15357: { if $as_mkdir_p; then
15358: mkdir -p "$ac_dir"
15359: else
15360: as_dir="$ac_dir"
15361: as_dirs=
15362: while test ! -d "$as_dir"; do
15363: as_dirs="$as_dir $as_dirs"
15364: as_dir=`(dirname "$as_dir") 2>/dev/null ||
15365: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15366: X"$as_dir" : 'X\(//\)[^/]' \| \
15367: X"$as_dir" : 'X\(//\)$' \| \
15368: X"$as_dir" : 'X\(/\)' \| \
15369: . : '\(.\)' 2>/dev/null ||
15370: echo X"$as_dir" |
15371: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15372: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15373: /^X\(\/\/\)$/{ s//\1/; q; }
15374: /^X\(\/\).*/{ s//\1/; q; }
15375: s/.*/./; q'`
15376: done
15377: test ! -n "$as_dirs" || mkdir $as_dirs
15378: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15379: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15380: { (exit 1); exit 1; }; }; }
1.9 millert 15381:
15382: rm -f $ac_file
15383: mv $tmp/config.h $ac_file
1.1 millert 15384: fi
1.9 millert 15385: else
15386: cat $tmp/config.h
15387: rm -f $tmp/config.h
1.1 millert 15388: fi
1.9 millert 15389: done
1.16 millert 15390: _ACEOF
1.1 millert 15391:
1.16 millert 15392: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 millert 15393:
1.9 millert 15394: { (exit 0); exit 0; }
1.16 millert 15395: _ACEOF
1.1 millert 15396: chmod +x $CONFIG_STATUS
1.9 millert 15397: ac_clean_files=$ac_clean_files_save
1.1 millert 15398:
1.16 millert 15399:
1.9 millert 15400: # configure is writing to config.log, and then calls config.status.
15401: # config.status does its own redirection, appending to config.log.
15402: # Unfortunately, on DOS this fails, as config.log is still kept open
15403: # by configure, so config.status won't be able to write to it; its
15404: # output is simply discarded. So we exec the FD to /dev/null,
15405: # effectively closing config.log, so it can be properly (re)opened and
15406: # appended to by config.status. When coming back to configure, we
15407: # need to make the FD available again.
15408: if test "$no_create" != yes; then
15409: ac_cs_success=:
1.16 millert 15410: ac_config_status_args=
15411: test "$silent" = yes &&
15412: ac_config_status_args="$ac_config_status_args --quiet"
1.9 millert 15413: exec 5>/dev/null
1.16 millert 15414: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.9 millert 15415: exec 5>>config.log
15416: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15417: # would make configure fail if this is the last instruction.
15418: $ac_cs_success || { (exit 1); exit 1; }
15419: fi
1.1 millert 15420:
1.16 millert 15421:
1.1 millert 15422: if test "$with_pam" = "yes"; then
15423: case $host in
15424: *-*-linux*)
1.17 millert 15425: { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
15426: echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
1.1 millert 15427: ;;
15428: esac
15429: fi
1.16 millert 15430:
15431:
15432:
15433:
15434:
15435:
15436:
15437:
15438:
15439:
15440:
15441:
15442:
15443:
1.9 millert 15444: