Annotation of src/usr.bin/sudo/configure, Revision 1.11
1.1 millert 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.9 millert 3: # Generated by Autoconf 2.52 for sudo 1.6.4.
1.1 millert 4: #
1.9 millert 5: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
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.
9:
1.9 millert 10: # Avoid depending upon Character Ranges.
11: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14: as_cr_digits='0123456789'
15: as_cr_alnum=$as_cr_Letters$as_cr_digits
16:
17: # Sed expression to map a string onto a valid variable name.
18: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19:
20: # Sed expression to map a string onto a valid CPP name.
21: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22:
23: # Be Bourne compatible
24: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25: emulate sh
26: NULLCMD=:
27: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28: set -o posix
29: fi
30:
31: # Name of the executable.
32: as_me=`echo "$0" |sed 's,.*[\\/],,'`
33:
34: if expr a : '\(a\)' >/dev/null 2>&1; then
35: as_expr=expr
36: else
37: as_expr=false
38: fi
39:
40: rm -f conf$$ conf$$.exe conf$$.file
41: echo >conf$$.file
42: if ln -s conf$$.file conf$$ 2>/dev/null; then
43: # We could just check for DJGPP; but this test a) works b) is more generic
44: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45: if test -f conf$$.exe; then
46: # Don't use ln at all; we don't have any links
47: as_ln_s='cp -p'
48: else
49: as_ln_s='ln -s'
50: fi
51: elif ln conf$$.file conf$$ 2>/dev/null; then
52: as_ln_s=ln
53: else
54: as_ln_s='cp -p'
55: fi
56: rm -f conf$$ conf$$.exe conf$$.file
57:
58: as_executable_p="test -f"
59:
60: # Support unset when possible.
61: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62: as_unset=unset
63: else
64: as_unset=false
65: fi
66:
67: # NLS nuisances.
68: $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69: $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70: $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71: $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72: $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73: $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74: $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75: $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76:
77: # IFS
78: # We need space, tab and new line, in precisely that order.
79: as_nl='
80: '
81: IFS=" $as_nl"
82:
83: # CDPATH.
84: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85:
86: # Name of the host.
87: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88: # so uname gets run too.
89: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90:
91: exec 6>&1
92:
93: #
94: # Initializations.
95: #
1.1 millert 96: ac_default_prefix=/usr/local
1.9 millert 97: cross_compiling=no
98: subdirs=
99: MFLAGS= MAKEFLAGS=
100: SHELL=${CONFIG_SHELL-/bin/sh}
101:
102: # Maximum number of lines to put in a shell here document.
103: # This variable seems obsolete. It should probably be removed, and
104: # only ac_max_sed_lines should be used.
105: : ${ac_max_here_lines=38}
106:
107: # Factoring default headers for most tests.
108: ac_includes_default="\
109: #include <stdio.h>
110: #if HAVE_SYS_TYPES_H
111: # include <sys/types.h>
112: #endif
113: #if HAVE_SYS_STAT_H
114: # include <sys/stat.h>
115: #endif
116: #if STDC_HEADERS
117: # include <stdlib.h>
118: # include <stddef.h>
119: #else
120: # if HAVE_STDLIB_H
121: # include <stdlib.h>
122: # endif
123: #endif
124: #if HAVE_STRING_H
125: # if !STDC_HEADERS && HAVE_MEMORY_H
126: # include <memory.h>
127: # endif
128: # include <string.h>
129: #endif
130: #if HAVE_STRINGS_H
131: # include <strings.h>
132: #endif
133: #if HAVE_INTTYPES_H
134: # include <inttypes.h>
135: #else
136: # if HAVE_STDINT_H
137: # include <stdint.h>
138: # endif
139: #endif
140: #if HAVE_UNISTD_H
141: # include <unistd.h>
142: #endif"
1.1 millert 143:
144: # Initialize some variables set by options.
1.9 millert 145: ac_init_help=
146: ac_init_version=false
1.1 millert 147: # The variables have the same names as the options, with
148: # dashes changed to underlines.
1.9 millert 149: cache_file=/dev/null
1.1 millert 150: exec_prefix=NONE
151: no_create=
152: no_recursion=
153: prefix=NONE
154: program_prefix=NONE
155: program_suffix=NONE
156: program_transform_name=s,x,x,
157: silent=
158: site=
159: srcdir=
160: verbose=
161: x_includes=NONE
162: x_libraries=NONE
1.9 millert 163:
164: # Installation directory options.
165: # These are left unexpanded so users can "make install exec_prefix=/foo"
166: # and all the variables that are supposed to be based on exec_prefix
167: # by default will actually change.
168: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1 millert 169: bindir='${exec_prefix}/bin'
170: sbindir='${exec_prefix}/sbin'
171: libexecdir='${exec_prefix}/libexec'
172: datadir='${prefix}/share'
173: sysconfdir='${prefix}/etc'
174: sharedstatedir='${prefix}/com'
175: localstatedir='${prefix}/var'
176: libdir='${exec_prefix}/lib'
177: includedir='${prefix}/include'
178: oldincludedir='/usr/include'
179: infodir='${prefix}/info'
180: mandir='${prefix}/man'
181:
1.9 millert 182: # Identity of this package.
183: PACKAGE_NAME='sudo'
184: PACKAGE_TARNAME='sudo'
185: PACKAGE_VERSION='1.6.4'
186: PACKAGE_STRING='sudo 1.6.4'
187: PACKAGE_BUGREPORT=''
1.1 millert 188:
189: ac_prev=
190: for ac_option
191: do
192: # If the previous option needs an argument, assign it.
193: if test -n "$ac_prev"; then
194: eval "$ac_prev=\$ac_option"
195: ac_prev=
196: continue
197: fi
198:
1.9 millert 199: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 millert 200:
201: # Accept the important Cygnus configure options, so we can diagnose typos.
202:
1.9 millert 203: case $ac_option in
1.1 millert 204:
205: -bindir | --bindir | --bindi | --bind | --bin | --bi)
206: ac_prev=bindir ;;
207: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.9 millert 208: bindir=$ac_optarg ;;
1.1 millert 209:
210: -build | --build | --buil | --bui | --bu)
1.9 millert 211: ac_prev=build_alias ;;
1.1 millert 212: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.9 millert 213: build_alias=$ac_optarg ;;
1.1 millert 214:
215: -cache-file | --cache-file | --cache-fil | --cache-fi \
216: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
217: ac_prev=cache_file ;;
218: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
219: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.9 millert 220: cache_file=$ac_optarg ;;
221:
222: --config-cache | -C)
223: cache_file=config.cache ;;
1.1 millert 224:
225: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
226: ac_prev=datadir ;;
227: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
228: | --da=*)
1.9 millert 229: datadir=$ac_optarg ;;
1.1 millert 230:
231: -disable-* | --disable-*)
1.9 millert 232: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 millert 233: # Reject names that are not valid shell variable names.
1.9 millert 234: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
235: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
236: { (exit 1); exit 1; }; }
237: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
238: eval "enable_$ac_feature=no" ;;
1.1 millert 239:
240: -enable-* | --enable-*)
1.9 millert 241: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 millert 242: # Reject names that are not valid shell variable names.
1.9 millert 243: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
244: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
245: { (exit 1); exit 1; }; }
246: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
247: case $ac_option in
248: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 millert 249: *) ac_optarg=yes ;;
250: esac
1.9 millert 251: eval enable_$ac_feature='$ac_optarg' ;;
1.1 millert 252:
253: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
254: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
255: | --exec | --exe | --ex)
256: ac_prev=exec_prefix ;;
257: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
258: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
259: | --exec=* | --exe=* | --ex=*)
1.9 millert 260: exec_prefix=$ac_optarg ;;
1.1 millert 261:
262: -gas | --gas | --ga | --g)
263: # Obsolete; use --with-gas.
264: with_gas=yes ;;
265:
1.9 millert 266: -help | --help | --hel | --he | -h)
267: ac_init_help=long ;;
268: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
269: ac_init_help=recursive ;;
270: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
271: ac_init_help=short ;;
1.1 millert 272:
273: -host | --host | --hos | --ho)
1.9 millert 274: ac_prev=host_alias ;;
1.1 millert 275: -host=* | --host=* | --hos=* | --ho=*)
1.9 millert 276: host_alias=$ac_optarg ;;
1.1 millert 277:
278: -includedir | --includedir | --includedi | --included | --include \
279: | --includ | --inclu | --incl | --inc)
280: ac_prev=includedir ;;
281: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
282: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.9 millert 283: includedir=$ac_optarg ;;
1.1 millert 284:
285: -infodir | --infodir | --infodi | --infod | --info | --inf)
286: ac_prev=infodir ;;
287: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.9 millert 288: infodir=$ac_optarg ;;
1.1 millert 289:
290: -libdir | --libdir | --libdi | --libd)
291: ac_prev=libdir ;;
292: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.9 millert 293: libdir=$ac_optarg ;;
1.1 millert 294:
295: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
296: | --libexe | --libex | --libe)
297: ac_prev=libexecdir ;;
298: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
299: | --libexe=* | --libex=* | --libe=*)
1.9 millert 300: libexecdir=$ac_optarg ;;
1.1 millert 301:
302: -localstatedir | --localstatedir | --localstatedi | --localstated \
303: | --localstate | --localstat | --localsta | --localst \
304: | --locals | --local | --loca | --loc | --lo)
305: ac_prev=localstatedir ;;
306: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
307: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
308: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.9 millert 309: localstatedir=$ac_optarg ;;
1.1 millert 310:
311: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
312: ac_prev=mandir ;;
313: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.9 millert 314: mandir=$ac_optarg ;;
1.1 millert 315:
316: -nfp | --nfp | --nf)
317: # Obsolete; use --without-fp.
318: with_fp=no ;;
319:
320: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
321: | --no-cr | --no-c)
322: no_create=yes ;;
323:
324: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
325: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
326: no_recursion=yes ;;
327:
328: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
329: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
330: | --oldin | --oldi | --old | --ol | --o)
331: ac_prev=oldincludedir ;;
332: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
333: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
334: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.9 millert 335: oldincludedir=$ac_optarg ;;
1.1 millert 336:
337: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
338: ac_prev=prefix ;;
339: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.9 millert 340: prefix=$ac_optarg ;;
1.1 millert 341:
342: -program-prefix | --program-prefix | --program-prefi | --program-pref \
343: | --program-pre | --program-pr | --program-p)
344: ac_prev=program_prefix ;;
345: -program-prefix=* | --program-prefix=* | --program-prefi=* \
346: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.9 millert 347: program_prefix=$ac_optarg ;;
1.1 millert 348:
349: -program-suffix | --program-suffix | --program-suffi | --program-suff \
350: | --program-suf | --program-su | --program-s)
351: ac_prev=program_suffix ;;
352: -program-suffix=* | --program-suffix=* | --program-suffi=* \
353: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.9 millert 354: program_suffix=$ac_optarg ;;
1.1 millert 355:
356: -program-transform-name | --program-transform-name \
357: | --program-transform-nam | --program-transform-na \
358: | --program-transform-n | --program-transform- \
359: | --program-transform | --program-transfor \
360: | --program-transfo | --program-transf \
361: | --program-trans | --program-tran \
362: | --progr-tra | --program-tr | --program-t)
363: ac_prev=program_transform_name ;;
364: -program-transform-name=* | --program-transform-name=* \
365: | --program-transform-nam=* | --program-transform-na=* \
366: | --program-transform-n=* | --program-transform-=* \
367: | --program-transform=* | --program-transfor=* \
368: | --program-transfo=* | --program-transf=* \
369: | --program-trans=* | --program-tran=* \
370: | --progr-tra=* | --program-tr=* | --program-t=*)
1.9 millert 371: program_transform_name=$ac_optarg ;;
1.1 millert 372:
373: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
374: | -silent | --silent | --silen | --sile | --sil)
375: silent=yes ;;
376:
377: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
378: ac_prev=sbindir ;;
379: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
380: | --sbi=* | --sb=*)
1.9 millert 381: sbindir=$ac_optarg ;;
1.1 millert 382:
383: -sharedstatedir | --sharedstatedir | --sharedstatedi \
384: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
385: | --sharedst | --shareds | --shared | --share | --shar \
386: | --sha | --sh)
387: ac_prev=sharedstatedir ;;
388: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
389: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
390: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
391: | --sha=* | --sh=*)
1.9 millert 392: sharedstatedir=$ac_optarg ;;
1.1 millert 393:
394: -site | --site | --sit)
395: ac_prev=site ;;
396: -site=* | --site=* | --sit=*)
1.9 millert 397: site=$ac_optarg ;;
1.1 millert 398:
399: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
400: ac_prev=srcdir ;;
401: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.9 millert 402: srcdir=$ac_optarg ;;
1.1 millert 403:
404: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
405: | --syscon | --sysco | --sysc | --sys | --sy)
406: ac_prev=sysconfdir ;;
407: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
408: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.9 millert 409: sysconfdir=$ac_optarg ;;
1.1 millert 410:
411: -target | --target | --targe | --targ | --tar | --ta | --t)
1.9 millert 412: ac_prev=target_alias ;;
1.1 millert 413: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.9 millert 414: target_alias=$ac_optarg ;;
1.1 millert 415:
416: -v | -verbose | --verbose | --verbos | --verbo | --verb)
417: verbose=yes ;;
418:
1.9 millert 419: -version | --version | --versio | --versi | --vers | -V)
420: ac_init_version=: ;;
1.1 millert 421:
422: -with-* | --with-*)
1.9 millert 423: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 millert 424: # Reject names that are not valid shell variable names.
1.9 millert 425: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
426: { echo "$as_me: error: invalid package name: $ac_package" >&2
427: { (exit 1); exit 1; }; }
1.1 millert 428: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.9 millert 429: case $ac_option in
430: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 millert 431: *) ac_optarg=yes ;;
432: esac
1.9 millert 433: eval with_$ac_package='$ac_optarg' ;;
1.1 millert 434:
435: -without-* | --without-*)
1.9 millert 436: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 millert 437: # Reject names that are not valid shell variable names.
1.9 millert 438: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
439: { echo "$as_me: error: invalid package name: $ac_package" >&2
440: { (exit 1); exit 1; }; }
441: ac_package=`echo $ac_package | sed 's/-/_/g'`
442: eval "with_$ac_package=no" ;;
1.1 millert 443:
444: --x)
445: # Obsolete; use --with-x.
446: with_x=yes ;;
447:
448: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
449: | --x-incl | --x-inc | --x-in | --x-i)
450: ac_prev=x_includes ;;
451: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
452: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.9 millert 453: x_includes=$ac_optarg ;;
1.1 millert 454:
455: -x-libraries | --x-libraries | --x-librarie | --x-librari \
456: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
457: ac_prev=x_libraries ;;
458: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
459: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.9 millert 460: x_libraries=$ac_optarg ;;
1.1 millert 461:
1.9 millert 462: -*) { echo "$as_me: error: unrecognized option: $ac_option
463: Try \`$0 --help' for more information." >&2
464: { (exit 1); exit 1; }; }
1.1 millert 465: ;;
466:
1.9 millert 467: *=*)
468: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
469: # Reject names that are not valid shell variable names.
470: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
471: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
472: { (exit 1); exit 1; }; }
473: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
474: eval "$ac_envvar='$ac_optarg'"
475: export $ac_envvar ;;
476:
1.1 millert 477: *)
1.9 millert 478: # FIXME: should be removed in autoconf 3.0.
479: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
480: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
481: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
482: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 millert 483: ;;
484:
485: esac
486: done
487:
488: if test -n "$ac_prev"; then
1.9 millert 489: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
490: { echo "$as_me: error: missing argument to $ac_option" >&2
491: { (exit 1); exit 1; }; }
1.1 millert 492: fi
493:
1.9 millert 494: # Be sure to have absolute paths.
495: for ac_var in exec_prefix prefix
496: do
497: eval ac_val=$`echo $ac_var`
498: case $ac_val in
499: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
500: *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
501: { (exit 1); exit 1; }; };;
502: esac
503: done
1.1 millert 504:
1.9 millert 505: # Be sure to have absolute paths.
506: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
507: localstatedir libdir includedir oldincludedir infodir mandir
1.1 millert 508: do
1.9 millert 509: eval ac_val=$`echo $ac_var`
510: case $ac_val in
511: [\\/$]* | ?:[\\/]* ) ;;
512: *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
513: { (exit 1); exit 1; }; };;
1.1 millert 514: esac
515: done
516:
1.9 millert 517: # There might be people who depend on the old broken behavior: `$host'
518: # used to hold the argument of --host etc.
519: build=$build_alias
520: host=$host_alias
521: target=$target_alias
522:
523: # FIXME: should be removed in autoconf 3.0.
524: if test "x$host_alias" != x; then
525: if test "x$build_alias" = x; then
526: cross_compiling=maybe
527: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
528: If a cross compiler is detected then cross compile mode will be used." >&2
529: elif test "x$build_alias" != "x$host_alias"; then
530: cross_compiling=yes
531: fi
532: fi
1.1 millert 533:
1.9 millert 534: ac_tool_prefix=
535: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 millert 536:
1.9 millert 537: test "$silent" = yes && exec 6>/dev/null
1.1 millert 538:
539: # Find the source files, if location was not specified.
540: if test -z "$srcdir"; then
541: ac_srcdir_defaulted=yes
542: # Try the directory containing this script, then its parent.
543: ac_prog=$0
1.9 millert 544: ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
1.1 millert 545: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
546: srcdir=$ac_confdir
547: if test ! -r $srcdir/$ac_unique_file; then
548: srcdir=..
549: fi
550: else
551: ac_srcdir_defaulted=no
552: fi
553: if test ! -r $srcdir/$ac_unique_file; then
554: if test "$ac_srcdir_defaulted" = yes; then
1.9 millert 555: { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
556: { (exit 1); exit 1; }; }
1.1 millert 557: else
1.9 millert 558: { echo "$as_me: error: cannot find sources in $srcdir" >&2
559: { (exit 1); exit 1; }; }
1.1 millert 560: fi
561: fi
1.9 millert 562: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
563: ac_env_build_alias_set=${build_alias+set}
564: ac_env_build_alias_value=$build_alias
565: ac_cv_env_build_alias_set=${build_alias+set}
566: ac_cv_env_build_alias_value=$build_alias
567: ac_env_host_alias_set=${host_alias+set}
568: ac_env_host_alias_value=$host_alias
569: ac_cv_env_host_alias_set=${host_alias+set}
570: ac_cv_env_host_alias_value=$host_alias
571: ac_env_target_alias_set=${target_alias+set}
572: ac_env_target_alias_value=$target_alias
573: ac_cv_env_target_alias_set=${target_alias+set}
574: ac_cv_env_target_alias_value=$target_alias
575: ac_env_CC_set=${CC+set}
576: ac_env_CC_value=$CC
577: ac_cv_env_CC_set=${CC+set}
578: ac_cv_env_CC_value=$CC
579: ac_env_CFLAGS_set=${CFLAGS+set}
580: ac_env_CFLAGS_value=$CFLAGS
581: ac_cv_env_CFLAGS_set=${CFLAGS+set}
582: ac_cv_env_CFLAGS_value=$CFLAGS
583: ac_env_LDFLAGS_set=${LDFLAGS+set}
584: ac_env_LDFLAGS_value=$LDFLAGS
585: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
586: ac_cv_env_LDFLAGS_value=$LDFLAGS
587: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
588: ac_env_CPPFLAGS_value=$CPPFLAGS
589: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
590: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
591: ac_env_CPP_set=${CPP+set}
592: ac_env_CPP_value=$CPP
593: ac_cv_env_CPP_set=${CPP+set}
594: ac_cv_env_CPP_value=$CPP
595:
596: #
597: # Report the --help message.
598: #
599: if test "$ac_init_help" = "long"; then
600: # Omit some internal or obsolete options to make the list less imposing.
601: # This message is too long to be a string in the A/UX 3.1 sh.
602: cat <<EOF
603: \`configure' configures sudo 1.6.4 to adapt to many kinds of systems.
604:
605: Usage: $0 [OPTION]... [VAR=VALUE]...
606:
607: To assign environment variables (e.g., CC, CFLAGS...), specify them as
608: VAR=VALUE. See below for descriptions of some of the useful variables.
609:
610: Defaults for the options are specified in brackets.
611:
612: Configuration:
613: -h, --help display this help and exit
614: --help=short display options specific to this package
615: --help=recursive display the short help of all the included packages
616: -V, --version display version information and exit
617: -q, --quiet, --silent do not print \`checking...' messages
618: --cache-file=FILE cache test results in FILE [disabled]
619: -C, --config-cache alias for \`--cache-file=config.cache'
620: -n, --no-create do not create output files
621: --srcdir=DIR find the sources in DIR [configure dir or \`..']
622:
623: EOF
624:
625: cat <<EOF
626: Installation directories:
627: --prefix=PREFIX install architecture-independent files in PREFIX
628: [$ac_default_prefix]
629: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
630: [PREFIX]
631:
632: By default, \`make install' will install all the files in
633: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
634: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
635: for instance \`--prefix=\$HOME'.
636:
637: For better control, use the options below.
638:
639: Fine tuning of the installation directories:
640: --bindir=DIR user executables [EPREFIX/bin]
641: --sbindir=DIR system admin executables [EPREFIX/sbin]
642: --libexecdir=DIR program executables [EPREFIX/libexec]
643: --datadir=DIR read-only architecture-independent data [PREFIX/share]
644: --sysconfdir=DIR read-only single-machine data [/etc]
645: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
646: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
647: --libdir=DIR object code libraries [EPREFIX/lib]
648: --includedir=DIR C header files [PREFIX/include]
649: --oldincludedir=DIR C header files for non-gcc [/usr/include]
650: --infodir=DIR info documentation [PREFIX/info]
651: --mandir=DIR man documentation [PREFIX/man]
652: EOF
653:
654: cat <<\EOF
655:
656: System types:
657: --build=BUILD configure for building on BUILD [guessed]
658: --host=HOST build programs to run on HOST [BUILD]
659: EOF
660: fi
661:
662: if test -n "$ac_init_help"; then
663: case $ac_init_help in
664: short | recursive ) echo "Configuration of sudo 1.6.4:";;
665: esac
666: cat <<\EOF
667:
668: Optional Features:
669: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
670: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
671: --disable-authentication
672: Do not require authentication by default
1.11 ! millert 673: --saved-ids Don't try to use POSIX saved ids
1.9 millert 674: --disable-shadow Never use shadow passwords
675: --disable-root-sudo don't allow root to run sudo
676: --enable-log-host Log the hostname in the log file
677: --enable-noargs-shell If sudo is given no arguments run a shell
678: --enable-shell-sets-home
679: set $HOME to target user in shell mode
680: --disable-path-info Print 'command not allowed' not 'command not found'
681: --disable-sia Never use SIA on Digital UNIX
682:
683: Optional Packages:
684: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
685: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
686: --with-otp-only deprecated
687: --with-alertmail deprecated
688: --with-CC C compiler to use
689: --with-incpath additional places to look for include files
690: --with-libpath additional places to look for libraries
691: --with-libraries additional libraries to link with
692: --with-devel add developement options
1.11 ! millert 693: --with-efence link with -lefence for malloc() debugging
1.9 millert 694: --with-csops add CSOps standard options
695: --without-passwd don't use passwd/shadow file for authentication
696: --with-skey enable S/Key support
697: --with-opie enable OPIE support
698: --with-long-otp-prompt use a two line OTP (skey/opie) prompt
699: --with-SecurID enable SecurID support
700: --with-fwtk enable FWTK AuthSRV support
701: --with-kerb4 enable kerberos v4 support
702: --with-kerb5 enable kerberos v5 support
703: --with-authenticate enable AIX general authentication support
704: --with-pam enable PAM support
705: --with-AFS enable AFS support
706: --with-DCE enable DCE support
707: --with-logincap enable BSD login class support
708: --with-bsdauth enable BSD authentication support
709: --without-lecture don't print lecture for first-time sudoer
710: --with-logging log via syslog, file, or both
711: --with-logfac syslog facility to log with (default is "local2")
712: --with-goodpri syslog priority for commands (def is "notice")
713: --with-badpri syslog priority for failures (def is "alert")
714: --with-logpath path to the sudo log file
715: --with-loglen maximum length of a log file line (default is 80)
716: --with-ignore-dot ignore '.' in the PATH
717: --without-mail-if-no-user do not send mail if user not in sudoers
718: --with-mail-if-no-host send mail if user in sudoers but not for this host
719: --with-mail-if-noperms send mail if user not allowed to run command
720: --with-mailto who should get sudo mail (default is "root")
721: --with-mailsubject subject of sudo mail
722: --with-passprompt default password prompt
723: --with-badpass-message message the user sees when the password is wrong
724: --with-fqdn expect fully qualified hosts in sudoers
725: --with-timedir path to the sudo timestamp dir
726: --with-sendmail=path set path to sendmail
727: --without-sendmail do not send mail at all
728: --with-sudoers-mode mode of sudoers file (defaults to 0440)
729: --with-sudoers-uid uid that owns sudoers file (defaults to 0)
730: --with-sudoers-gid gid that owns sudoers file (defaults to 0)
731: --with-umask umask with which the prog should run (default is 022)
732: --without-umask Preserves the umask of the user invoking sudo.
733: --with-runas-default User to run commands as (default is "root")
734: --with-exempt=group no passwd needed for users in this group
735: --with-editor=path Default editor for visudo (defaults to vi)
736: --with-env-editor Use the environment variable EDITOR for visudo
737: --with-passwd-tries number of tries to enter password (default is 3)
738: --with-timeout minutes before sudo asks for passwd again (def is 5 minutes)
739: --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
740: --with-execv use execv() instead of execvp()
741: --with-tty-tickets use a different ticket file for each tty
742: --with-insults insult the user for entering an incorrect password
743: --with-all-insults include all the sudo insult sets
744: --with-classic-insults include the insults from the "classic" sudo
745: --with-csops-insults include CSOps insults
746: --with-hal-insults include 2001-like insults
747: --with-goons-insults include the insults from the "Goon Show"
748: --with-secure-path override the user's path with a builtin one
749: --without-interfaces don't try to read the ip addr of ether interfaces
750:
751: Some influential environment variables:
752: CC C compiler command
753: CFLAGS C compiler flags
754: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
755: nonstandard directory <lib dir>
756: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
757: headers in a nonstandard directory <include dir>
758: CPP C preprocessor
759:
760: Use these variables to override the choices made by `configure' or to help
761: it to find libraries and programs with nonstandard names/locations.
762:
763: EOF
764: fi
765:
766: if test "$ac_init_help" = "recursive"; then
767: # If there are subdirs, report their specific --help.
768: ac_popdir=`pwd`
769: for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
770: cd $ac_subdir
771: # A "../" for each directory in /$ac_subdir.
772: ac_dots=`echo $ac_subdir |
773: sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
774:
775: case $srcdir in
776: .) # No --srcdir option. We are building in place.
777: ac_sub_srcdir=$srcdir ;;
778: [\\/]* | ?:[\\/]* ) # Absolute path.
779: ac_sub_srcdir=$srcdir/$ac_subdir ;;
780: *) # Relative path.
781: ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
782: esac
783:
784: # Check for guested configure; otherwise get Cygnus style configure.
785: if test -f $ac_sub_srcdir/configure.gnu; then
786: echo
787: $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
788: elif test -f $ac_sub_srcdir/configure; then
789: echo
790: $SHELL $ac_sub_srcdir/configure --help=recursive
791: elif test -f $ac_sub_srcdir/configure.ac ||
792: test -f $ac_sub_srcdir/configure.in; then
793: echo
794: $ac_configure --help
795: else
796: echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
797: fi
798: cd $ac_popdir
799: done
800: fi
801:
802: test -n "$ac_init_help" && exit 0
803: if $ac_init_version; then
804: cat <<\EOF
805: sudo configure 1.6.4
806: generated by GNU Autoconf 2.52
807:
808: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
809: Free Software Foundation, Inc.
810: This configure script is free software; the Free Software Foundation
811: gives unlimited permission to copy, distribute and modify it.
812: EOF
813: exit 0
814: fi
815: exec 5>config.log
816: cat >&5 <<EOF
817: This file contains any messages produced by compilers while
818: running configure, to aid debugging if configure makes a mistake.
819:
820: It was created by sudo $as_me 1.6.4, which was
821: generated by GNU Autoconf 2.52. Invocation command line was
822:
823: $ $0 $@
824:
825: EOF
826: {
827: cat <<_ASUNAME
828: ## ---------- ##
829: ## Platform. ##
830: ## ---------- ##
831:
832: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
833: uname -m = `(uname -m) 2>/dev/null || echo unknown`
834: uname -r = `(uname -r) 2>/dev/null || echo unknown`
835: uname -s = `(uname -s) 2>/dev/null || echo unknown`
836: uname -v = `(uname -v) 2>/dev/null || echo unknown`
837:
838: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
839: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
840:
841: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
842: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
843: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
844: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
845: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
846: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
847: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
848:
849: PATH = $PATH
850:
851: _ASUNAME
852: } >&5
853:
854: cat >&5 <<EOF
855: ## ------------ ##
856: ## Core tests. ##
857: ## ------------ ##
858:
859: EOF
860:
861: # Keep a trace of the command line.
862: # Strip out --no-create and --no-recursion so they do not pile up.
863: # Also quote any args containing shell meta-characters.
864: ac_configure_args=
865: ac_sep=
866: for ac_arg
867: do
868: case $ac_arg in
869: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
870: | --no-cr | --no-c) ;;
871: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
872: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
873: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
874: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
875: ac_configure_args="$ac_configure_args$ac_sep\"$ac_arg\""
876: ac_sep=" " ;;
877: *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
878: ac_sep=" " ;;
879: esac
880: # Get rid of the leading space.
881: done
882:
883: # When interrupted or exit'd, cleanup temporary files, and complete
884: # config.log. We remove comments because anyway the quotes in there
885: # would cause problems or look ugly.
886: trap 'exit_status=$?
887: # Save into config.log some information that might help in debugging.
888: echo >&5
889: echo "## ----------------- ##" >&5
890: echo "## Cache variables. ##" >&5
891: echo "## ----------------- ##" >&5
892: echo >&5
893: # The following way of writing the cache mishandles newlines in values,
894: {
895: (set) 2>&1 |
896: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
897: *ac_space=\ *)
898: sed -n \
899: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
900: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
901: ;;
902: *)
903: sed -n \
904: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
905: ;;
906: esac;
907: } >&5
908: sed "/^$/d" confdefs.h >conftest.log
909: if test -s conftest.log; then
910: echo >&5
911: echo "## ------------ ##" >&5
912: echo "## confdefs.h. ##" >&5
913: echo "## ------------ ##" >&5
914: echo >&5
915: cat conftest.log >&5
916: fi
917: (echo; echo) >&5
918: test "$ac_signal" != 0 &&
919: echo "$as_me: caught signal $ac_signal" >&5
920: echo "$as_me: exit $exit_status" >&5
921: rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
922: exit $exit_status
923: ' 0
924: for ac_signal in 1 2 13 15; do
925: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
926: done
927: ac_signal=0
1.1 millert 928:
1.9 millert 929: # confdefs.h avoids OS command line length limits that DEFS can exceed.
930: rm -rf conftest* confdefs.h
931: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
932: echo >confdefs.h
933:
934: # Let the site file select an alternate cache file if it wants to.
1.1 millert 935: # Prefer explicitly selected file to automatically selected ones.
936: if test -z "$CONFIG_SITE"; then
937: if test "x$prefix" != xNONE; then
938: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
939: else
940: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
941: fi
942: fi
943: for ac_site_file in $CONFIG_SITE; do
944: if test -r "$ac_site_file"; then
1.11 ! millert 945: { echo "$as_me:945: loading site script $ac_site_file" >&5
1.9 millert 946: echo "$as_me: loading site script $ac_site_file" >&6;}
947: cat "$ac_site_file" >&5
1.1 millert 948: . "$ac_site_file"
949: fi
950: done
951:
952: if test -r "$cache_file"; then
1.9 millert 953: # Some versions of bash will fail to source /dev/null (special
954: # files actually), so we avoid doing that.
955: if test -f "$cache_file"; then
1.11 ! millert 956: { echo "$as_me:956: loading cache $cache_file" >&5
1.9 millert 957: echo "$as_me: loading cache $cache_file" >&6;}
958: case $cache_file in
959: [\\/]* | ?:[\\/]* ) . $cache_file;;
960: *) . ./$cache_file;;
961: esac
962: fi
1.1 millert 963: else
1.11 ! millert 964: { echo "$as_me:964: creating cache $cache_file" >&5
1.9 millert 965: echo "$as_me: creating cache $cache_file" >&6;}
966: >$cache_file
967: fi
968:
969: # Check that the precious variables saved in the cache have kept the same
970: # value.
971: ac_cache_corrupted=false
972: for ac_var in `(set) 2>&1 |
973: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
974: eval ac_old_set=\$ac_cv_env_${ac_var}_set
975: eval ac_new_set=\$ac_env_${ac_var}_set
976: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
977: eval ac_new_val="\$ac_env_${ac_var}_value"
978: case $ac_old_set,$ac_new_set in
979: set,)
1.11 ! millert 980: { echo "$as_me:980: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1.9 millert 981: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
982: ac_cache_corrupted=: ;;
983: ,set)
1.11 ! millert 984: { echo "$as_me:984: error: \`$ac_var' was not set in the previous run" >&5
1.9 millert 985: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
986: ac_cache_corrupted=: ;;
987: ,);;
988: *)
989: if test "x$ac_old_val" != "x$ac_new_val"; then
1.11 ! millert 990: { echo "$as_me:990: error: \`$ac_var' has changed since the previous run:" >&5
1.9 millert 991: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.11 ! millert 992: { echo "$as_me:992: former value: $ac_old_val" >&5
1.9 millert 993: echo "$as_me: former value: $ac_old_val" >&2;}
1.11 ! millert 994: { echo "$as_me:994: current value: $ac_new_val" >&5
1.9 millert 995: echo "$as_me: current value: $ac_new_val" >&2;}
996: ac_cache_corrupted=:
997: fi;;
998: esac
999: # Pass precious variables to config.status. It doesn't matter if
1000: # we pass some twice (in addition to the command line arguments).
1001: if test "$ac_new_set" = set; then
1002: case $ac_new_val in
1003: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1004: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1005: ac_configure_args="$ac_configure_args '$ac_arg'"
1006: ;;
1007: *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1008: ;;
1009: esac
1010: fi
1011: done
1012: if $ac_cache_corrupted; then
1.11 ! millert 1013: { echo "$as_me:1013: error: changes in the environment can compromise the build" >&5
1.9 millert 1014: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.11 ! millert 1015: { { echo "$as_me:1015: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1.9 millert 1016: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1017: { (exit 1); exit 1; }; }
1.1 millert 1018: fi
1019:
1020: ac_ext=c
1021: ac_cpp='$CPP $CPPFLAGS'
1.9 millert 1022: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1023: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1024: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1025:
1026: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1027: *c*,-n*) ECHO_N= ECHO_C='
1028: ' ECHO_T=' ' ;;
1029: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1030: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1031: esac
1032: echo "#! $SHELL" >conftest.sh
1033: echo "exit 0" >>conftest.sh
1034: chmod +x conftest.sh
1.11 ! millert 1035: if { (echo "$as_me:1035: PATH=\".;.\"; conftest.sh") >&5
1.9 millert 1036: (PATH=".;."; conftest.sh) 2>&5
1037: ac_status=$?
1.11 ! millert 1038: echo "$as_me:1038: \$? = $ac_status" >&5
1.9 millert 1039: (exit $ac_status); }; then
1040: ac_path_separator=';'
1041: else
1042: ac_path_separator=:
1043: fi
1044: PATH_SEPARATOR="$ac_path_separator"
1045: rm -f conftest.sh
1046:
1047: ac_config_headers="$ac_config_headers config.h pathnames.h"
1048:
1049: echo "Configuring Sudo version 1.6.4"
1050:
1051: timeout=5
1052: password_timeout=5
1053: sudo_umask=0022
1054: passprompt="Password:"
1055: long_otp_prompt=off
1056: lecture=on
1057: logfac=local2
1058: goodpri=notice
1059: badpri=alert
1060: loglen=80
1061: ignore_dot=off
1062: mail_no_user=on
1063: mail_no_host=off
1064: mail_no_perms=off
1065: mailto=root
1066: mailsub='*** SECURITY information for %h ***'
1067: badpass_message='Sorry, try again.'
1068: fqdn=off
1069: runas_default=root
1070: env_editor=off
1071: passwd_tries=3
1072: tty_tickets=off
1073: insults=off
1.1 millert 1074: PROGS="sudo visudo"
1.6 millert 1075: test -n "$MANTYPE" || MANTYPE="man"
1076: test -n "$mansrcdir" || mansrcdir="."
1077: test -n "$SUDOERS_MODE" || SUDOERS_MODE=0440
1078: test -n "$SUDOERS_UID" || SUDOERS_UID=0
1079: test -n "$SUDOERS_GID" || SUDOERS_GID=0
1.1 millert 1080: DEV="#"
1081:
1082: CHECKSHADOW=true
1083: CHECKSIA=true
1084:
1085: test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
1086: test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
1087: test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
1088: test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
1089:
1090: # Check whether --with-otp-only or --without-otp-only was given.
1091: if test "${with_otp_only+set}" = set; then
1092: withval="$with_otp_only"
1093: case $with_otp_only in
1094: yes) with_passwd=no
1.9 millert 1095:
1096: cat >>confdefs.h <<\EOF
1.1 millert 1097: #define WITHOUT_PASSWD 1
1098: EOF
1099:
1.11 ! millert 1100: { echo "$as_me:1100: WARNING: --with-otp-only option deprecated, treating as --without-passwd" >&5
1.9 millert 1101: echo "$as_me: WARNING: --with-otp-only option deprecated, treating as --without-passwd" >&2;}
1.1 millert 1102: ;;
1103: esac
1.9 millert 1104: fi;
1.1 millert 1105:
1106: # Check whether --with-alertmail or --without-alertmail was given.
1107: if test "${with_alertmail+set}" = set; then
1108: withval="$with_alertmail"
1109: case $with_alertmail in
1110: *) with_mailto="$with_alertmail"
1.11 ! millert 1111: { echo "$as_me:1111: WARNING: --with-alertmail option deprecated, treating as --mailto" >&5
1.9 millert 1112: echo "$as_me: WARNING: --with-alertmail option deprecated, treating as --mailto" >&2;}
1.1 millert 1113: ;;
1114: esac
1.9 millert 1115: fi;
1.1 millert 1116:
1117: # Check whether --with-CC or --without-CC was given.
1118: if test "${with_CC+set}" = set; then
1119: withval="$with_CC"
1120: case $with_CC in
1.11 ! millert 1121: yes) { { echo "$as_me:1121: error: \"must give --with-CC an argument.\"" >&5
1.9 millert 1122: echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
1123: { (exit 1); exit 1; }; }
1124: ;;
1.11 ! millert 1125: no) { { echo "$as_me:1125: error: \"illegal argument: --without-CC.\"" >&5
1.9 millert 1126: echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
1127: { (exit 1); exit 1; }; }
1.1 millert 1128: ;;
1129: *) CC=$with_CC
1130: ;;
1131: esac
1.9 millert 1132: fi;
1.1 millert 1133:
1134: # Check whether --with-incpath or --without-incpath was given.
1135: if test "${with_incpath+set}" = set; then
1136: withval="$with_incpath"
1.9 millert 1137: case $with_incpath in
1.11 ! millert 1138: yes) { { echo "$as_me:1138: error: \"must give --with-incpath an argument.\"" >&5
1.9 millert 1139: echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
1140: { (exit 1); exit 1; }; }
1141: ;;
1.11 ! millert 1142: no) { { echo "$as_me:1142: error: \"--without-incpath not supported.\"" >&5
1.9 millert 1143: echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
1144: { (exit 1); exit 1; }; }
1.1 millert 1145: ;;
1146: *) echo "Adding ${with_incpath} to CPPFLAGS"
1147: for i in ${with_incpath}; do
1148: CPPFLAGS="${CPPFLAGS} -I${i}"
1149: done
1150: ;;
1151: esac
1.9 millert 1152: fi;
1.1 millert 1153:
1154: # Check whether --with-libpath or --without-libpath was given.
1155: if test "${with_libpath+set}" = set; then
1156: withval="$with_libpath"
1.9 millert 1157: case $with_libpath in
1.11 ! millert 1158: yes) { { echo "$as_me:1158: error: \"must give --with-libpath an argument.\"" >&5
1.9 millert 1159: echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
1160: { (exit 1); exit 1; }; }
1161: ;;
1.11 ! millert 1162: no) { { echo "$as_me:1162: error: \"--without-libpath not supported.\"" >&5
1.9 millert 1163: echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
1164: { (exit 1); exit 1; }; }
1.1 millert 1165: ;;
1166: *) echo "Adding ${with_libpath} to LDFLAGS"
1167: for i in ${with_libpath}; do
1168: LDFLAGS="${LDFLAGS} -L${i}"
1169: done
1170: ;;
1171: esac
1.9 millert 1172: fi;
1.1 millert 1173:
1174: # Check whether --with-libraries or --without-libraries was given.
1175: if test "${with_libraries+set}" = set; then
1176: withval="$with_libraries"
1.9 millert 1177: case $with_libraries in
1.11 ! millert 1178: yes) { { echo "$as_me:1178: error: \"must give --with-libraries an argument.\"" >&5
1.9 millert 1179: echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
1180: { (exit 1); exit 1; }; }
1181: ;;
1.11 ! millert 1182: no) { { echo "$as_me:1182: error: \"--without-libraries not supported.\"" >&5
1.9 millert 1183: echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
1184: { (exit 1); exit 1; }; }
1.1 millert 1185: ;;
1186: *) echo "Adding ${with_libraries} to LIBS"
1187: for i in ${with_libraries}; do
1188: case $i in
1189: -l*) ;;
1190: *.a) ;;
1191: *.o) ;;
1192: *) i="-l${i}";;
1193: esac
1194: LIBS="${LIBS} ${i}"
1195: done
1196: ;;
1197: esac
1.9 millert 1198: fi;
1.1 millert 1199:
1200: # Check whether --with-devel or --without-devel was given.
1201: if test "${with_devel+set}" = set; then
1202: withval="$with_devel"
1.9 millert 1203: case $with_devel in
1.1 millert 1204: yes) echo 'Setting up for developement: -Wall, flex, yacc'
1205: PROGS="${PROGS} testsudoers"
1206: OSDEFS="${OSDEFS} -DSUDO_DEVEL"
1207: DEV=""
1208: ;;
1209: no) ;;
1.6 millert 1210: *) echo "Ignoring unknown argument to --with-devel: $with_devel"
1.1 millert 1211: ;;
1212: esac
1.9 millert 1213: fi;
1.1 millert 1214:
1.11 ! millert 1215: # Check whether --with-efence or --without-efence was given.
! 1216: if test "${with_efence+set}" = set; then
! 1217: withval="$with_efence"
! 1218: case $with_efence in
! 1219: yes) echo 'Sudo will link with -lefence (Electric Fence)'
! 1220: LIBS="${LIBS} -lefence"
! 1221: if test -f /usr/local/lib/libefence.a; then
! 1222: LDFLAGS="${LDFLAGS} -L/usr/local/lib"
! 1223: fi
! 1224: ;;
! 1225: no) ;;
! 1226: *) echo "Ignoring unknown argument to --with-efence: $with_efence"
! 1227: ;;
! 1228: esac
! 1229: fi;
! 1230:
1.1 millert 1231: # Check whether --with-csops or --without-csops was given.
1232: if test "${with_csops+set}" = set; then
1233: withval="$with_csops"
1.9 millert 1234: case $with_csops in
1.1 millert 1235: yes) echo 'Adding CSOps standard options'
1236: CHECKSIA=false
1237: with_ignore_dot=yes
1.9 millert 1238: insults=on
1.1 millert 1239: with_classic_insults=yes
1240: with_csops_insults=yes
1241: with_env_editor=yes
1242: ;;
1243: no) ;;
1244: *) echo "Ignoring unknown argument to --with-csops: $with_csops"
1245: ;;
1246: esac
1.9 millert 1247: fi;
1.1 millert 1248:
1249: # Check whether --with-passwd or --without-passwd was given.
1250: if test "${with_passwd+set}" = set; then
1251: withval="$with_passwd"
1252: case $with_passwd in
1253: yes) ;;
1.9 millert 1254: no) cat >>confdefs.h <<\EOF
1.1 millert 1255: #define WITHOUT_PASSWD 1
1256: EOF
1257:
1.11 ! millert 1258: echo "$as_me:1258: checking whether to use shadow/passwd file authentication" >&5
1.9 millert 1259: echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6
1.11 ! millert 1260: echo "$as_me:1260: result: no" >&5
1.9 millert 1261: echo "${ECHO_T}no" >&6
1.1 millert 1262: ;;
1.11 ! millert 1263: *) { { echo "$as_me:1263: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
1.9 millert 1264: echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
1265: { (exit 1); exit 1; }; }
1.1 millert 1266: ;;
1267: esac
1.9 millert 1268: fi;
1.1 millert 1269:
1270: # Check whether --with-skey or --without-skey was given.
1271: if test "${with_skey+set}" = set; then
1272: withval="$with_skey"
1273: case $with_skey in
1274: yes) if test -n "$with_opie"; then
1.11 ! millert 1275: { { echo "$as_me:1275: error: \"cannot use both S/Key and OPIE\"" >&5
1.9 millert 1276: echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
1277: { (exit 1); exit 1; }; }
1.1 millert 1278: fi
1.9 millert 1279:
1280: cat >>confdefs.h <<\EOF
1.1 millert 1281: #define HAVE_SKEY 1
1282: EOF
1283:
1.11 ! millert 1284: echo "$as_me:1284: checking whether to try S/Key authentication" >&5
1.9 millert 1285: echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6
1.11 ! millert 1286: echo "$as_me:1286: result: yes" >&5
1.9 millert 1287: echo "${ECHO_T}yes" >&6
1.1 millert 1288: AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
1289: ;;
1290: no) ;;
1291: *) echo "Ignoring unknown argument to --with-skey: $with_skey"
1292: ;;
1293: esac
1.9 millert 1294: fi;
1.1 millert 1295:
1296: # Check whether --with-opie or --without-opie was given.
1297: if test "${with_opie+set}" = set; then
1298: withval="$with_opie"
1299: case $with_opie in
1300: yes) if test -n "$with_skey"; then
1.11 ! millert 1301: { { echo "$as_me:1301: error: \"cannot use both S/Key and OPIE\"" >&5
1.9 millert 1302: echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
1303: { (exit 1); exit 1; }; }
1.1 millert 1304: fi
1.9 millert 1305:
1306: cat >>confdefs.h <<\EOF
1.1 millert 1307: #define HAVE_OPIE 1
1308: EOF
1309:
1.11 ! millert 1310: echo "$as_me:1310: checking whether to try NRL OPIE authentication" >&5
1.9 millert 1311: echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6
1.11 ! millert 1312: echo "$as_me:1312: result: yes" >&5
1.9 millert 1313: echo "${ECHO_T}yes" >&6
1.1 millert 1314: AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
1315: ;;
1316: no) ;;
1317: *) echo "Ignoring unknown argument to --with-opie: $with_opie"
1318: ;;
1319: esac
1.9 millert 1320: fi;
1.1 millert 1321:
1322: # Check whether --with-long-otp-prompt or --without-long-otp-prompt was given.
1323: if test "${with_long_otp_prompt+set}" = set; then
1324: withval="$with_long_otp_prompt"
1325: case $with_long_otp_prompt in
1.9 millert 1326: yes)
1327: cat >>confdefs.h <<\EOF
1.1 millert 1328: #define LONG_OTP_PROMPT 1
1329: EOF
1330:
1.11 ! millert 1331: echo "$as_me:1331: checking whether to use a two line prompt for OTP authentication" >&5
1.9 millert 1332: echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6
1.11 ! millert 1333: echo "$as_me:1333: result: yes" >&5
1.9 millert 1334: echo "${ECHO_T}yes" >&6
1335: long_otp_prompt=on
1.1 millert 1336: ;;
1.9 millert 1337: no) long_otp_prompt=off
1338: ;;
1.11 ! millert 1339: *) { { echo "$as_me:1339: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
1.9 millert 1340: echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
1341: { (exit 1); exit 1; }; }
1.1 millert 1342: ;;
1343: esac
1.9 millert 1344: fi;
1.1 millert 1345:
1346: # Check whether --with-SecurID or --without-SecurID was given.
1347: if test "${with_SecurID+set}" = set; then
1348: withval="$with_SecurID"
1349: case $with_SecurID in
1350: no) ;;
1.9 millert 1351: *)
1352: cat >>confdefs.h <<\EOF
1.1 millert 1353: #define HAVE_SECURID 1
1354: EOF
1355:
1.11 ! millert 1356: echo "$as_me:1356: checking whether to use SecurID for authentication" >&5
1.9 millert 1357: echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6
1.11 ! millert 1358: echo "$as_me:1358: result: yes" >&5
1.9 millert 1359: echo "${ECHO_T}yes" >&6
1.1 millert 1360: with_passwd=no
1361: AUTH_OBJS="securid.o"
1362: ;;
1363: esac
1.9 millert 1364: fi;
1.1 millert 1365:
1366: # Check whether --with-fwtk or --without-fwtk was given.
1367: if test "${with_fwtk+set}" = set; then
1368: withval="$with_fwtk"
1369: case $with_fwtk in
1370: no) ;;
1.9 millert 1371: *)
1372: cat >>confdefs.h <<\EOF
1.1 millert 1373: #define HAVE_FWTK 1
1374: EOF
1375:
1.11 ! millert 1376: echo "$as_me:1376: checking whether to use FWTK AuthSRV for authentication" >&5
1.9 millert 1377: echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6
1.11 ! millert 1378: echo "$as_me:1378: result: yes" >&5
1.9 millert 1379: echo "${ECHO_T}yes" >&6
1.1 millert 1380: with_passwd=no
1381: AUTH_OBJS="fwtk.o"
1.9 millert 1382: if test "$with_fwtk" != "yes"; then
1383: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
1384: CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
1385: with_fwtk=yes
1386: fi
1.1 millert 1387: ;;
1388: esac
1.9 millert 1389: fi;
1.1 millert 1390:
1391: # Check whether --with-kerb4 or --without-kerb4 was given.
1392: if test "${with_kerb4+set}" = set; then
1393: withval="$with_kerb4"
1394: case $with_kerb4 in
1.11 ! millert 1395: yes) echo "$as_me:1395: checking whether to try Kerberos 4 authentication" >&5
1.9 millert 1396: echo $ECHO_N "checking whether to try Kerberos 4 authentication... $ECHO_C" >&6
1.11 ! millert 1397: echo "$as_me:1397: result: yes" >&5
1.9 millert 1398: echo "${ECHO_T}yes" >&6
1.1 millert 1399: ;;
1400: no) ;;
1.11 ! millert 1401: *) { { echo "$as_me:1401: error: \"--with-kerb4 does not take an argument.\"" >&5
1.9 millert 1402: echo "$as_me: error: \"--with-kerb4 does not take an argument.\"" >&2;}
1403: { (exit 1); exit 1; }; }
1.1 millert 1404: ;;
1405: esac
1.9 millert 1406: fi;
1.1 millert 1407:
1408: # Check whether --with-kerb5 or --without-kerb5 was given.
1409: if test "${with_kerb5+set}" = set; then
1410: withval="$with_kerb5"
1411: case $with_kerb5 in
1.11 ! millert 1412: yes) echo "$as_me:1412: checking whether to try Kerberos 5 authentication" >&5
1.9 millert 1413: echo $ECHO_N "checking whether to try Kerberos 5 authentication... $ECHO_C" >&6
1.11 ! millert 1414: echo "$as_me:1414: result: yes" >&5
1.9 millert 1415: echo "${ECHO_T}yes" >&6
1.1 millert 1416: ;;
1417: no) ;;
1.11 ! millert 1418: *) { { echo "$as_me:1418: error: \"--with-kerb5 does not take an argument.\"" >&5
1.9 millert 1419: echo "$as_me: error: \"--with-kerb5 does not take an argument.\"" >&2;}
1420: { (exit 1); exit 1; }; }
1.1 millert 1421: ;;
1422: esac
1.9 millert 1423: fi;
1.1 millert 1424:
1425: # Check whether --with-authenticate or --without-authenticate was given.
1426: if test "${with_authenticate+set}" = set; then
1427: withval="$with_authenticate"
1428: case $with_authenticate in
1.9 millert 1429: yes)
1430: cat >>confdefs.h <<\EOF
1.1 millert 1431: #define HAVE_AUTHENTICATE 1
1432: EOF
1433:
1.11 ! millert 1434: echo "$as_me:1434: checking whether to use AIX general authentication" >&5
1.9 millert 1435: echo $ECHO_N "checking whether to use AIX general authentication... $ECHO_C" >&6
1.11 ! millert 1436: echo "$as_me:1436: result: yes" >&5
1.9 millert 1437: echo "${ECHO_T}yes" >&6
1.1 millert 1438: with_passwd=no
1439: AUTH_OBJS="aix_auth.o"
1440: ;;
1441: no) ;;
1.11 ! millert 1442: *) { { echo "$as_me:1442: error: \"--with-authenticate does not take an argument.\"" >&5
1.9 millert 1443: echo "$as_me: error: \"--with-authenticate does not take an argument.\"" >&2;}
1444: { (exit 1); exit 1; }; }
1.1 millert 1445: ;;
1446: esac
1.9 millert 1447: fi;
1.1 millert 1448:
1449: # Check whether --with-pam or --without-pam was given.
1450: if test "${with_pam+set}" = set; then
1451: withval="$with_pam"
1452: case $with_pam in
1.9 millert 1453: yes)
1454: cat >>confdefs.h <<\EOF
1.1 millert 1455: #define HAVE_PAM 1
1456: EOF
1457:
1.11 ! millert 1458: echo "$as_me:1458: checking whether to use PAM authentication" >&5
1.9 millert 1459: echo $ECHO_N "checking whether to use PAM authentication... $ECHO_C" >&6
1.11 ! millert 1460: echo "$as_me:1460: result: yes" >&5
1.9 millert 1461: echo "${ECHO_T}yes" >&6
1.1 millert 1462: with_passwd=no
1463: AUTH_OBJS="pam.o"
1464: ;;
1465: no) ;;
1.11 ! millert 1466: *) { { echo "$as_me:1466: error: \"--with-pam does not take an argument.\"" >&5
1.9 millert 1467: echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
1468: { (exit 1); exit 1; }; }
1.1 millert 1469: ;;
1470: esac
1.9 millert 1471: fi;
1.1 millert 1472:
1473: # Check whether --with-AFS or --without-AFS was given.
1474: if test "${with_AFS+set}" = set; then
1475: withval="$with_AFS"
1476: case $with_AFS in
1.9 millert 1477: yes)
1478: cat >>confdefs.h <<\EOF
1.1 millert 1479: #define HAVE_AFS 1
1480: EOF
1481:
1.11 ! millert 1482: echo "$as_me:1482: checking whether to try AFS (kerberos) authentication" >&5
1.9 millert 1483: echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6
1.11 ! millert 1484: echo "$as_me:1484: result: yes" >&5
1.9 millert 1485: echo "${ECHO_T}yes" >&6
1.1 millert 1486: AUTH_OBJS="${AUTH_OBJS} afs.o"
1487: ;;
1488: no) ;;
1.11 ! millert 1489: *) { { echo "$as_me:1489: error: \"--with-AFS does not take an argument.\"" >&5
1.9 millert 1490: echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
1491: { (exit 1); exit 1; }; }
1.1 millert 1492: ;;
1493: esac
1.9 millert 1494: fi;
1.1 millert 1495:
1496: # Check whether --with-DCE or --without-DCE was given.
1497: if test "${with_DCE+set}" = set; then
1498: withval="$with_DCE"
1499: case $with_DCE in
1.9 millert 1500: yes)
1501: cat >>confdefs.h <<\EOF
1.1 millert 1502: #define HAVE_DCE 1
1503: EOF
1504:
1.11 ! millert 1505: echo "$as_me:1505: checking whether to try DCE (kerberos) authentication" >&5
1.9 millert 1506: echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6
1.11 ! millert 1507: echo "$as_me:1507: result: yes" >&5
1.9 millert 1508: echo "${ECHO_T}yes" >&6
1.1 millert 1509: AUTH_OBJS="${AUTH_OBJS} dce.o"
1510: ;;
1511: no) ;;
1.11 ! millert 1512: *) { { echo "$as_me:1512: error: \"--with-DCE does not take an argument.\"" >&5
1.9 millert 1513: echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
1514: { (exit 1); exit 1; }; }
1.1 millert 1515: ;;
1516: esac
1.9 millert 1517: fi;
1.1 millert 1518:
1.6 millert 1519: # Check whether --with-logincap or --without-logincap was given.
1520: if test "${with_logincap+set}" = set; then
1521: withval="$with_logincap"
1522: case $with_logincap in
1.7 millert 1523: yes|no) ;;
1.11 ! millert 1524: *) { { echo "$as_me:1524: error: \"--with-logincap does not take an argument.\"" >&5
1.9 millert 1525: echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
1526: { (exit 1); exit 1; }; }
1.7 millert 1527: ;;
1528: esac
1.9 millert 1529: fi;
1.6 millert 1530:
1.7 millert 1531: # Check whether --with-bsdauth or --without-bsdauth was given.
1532: if test "${with_bsdauth+set}" = set; then
1533: withval="$with_bsdauth"
1534: case $with_bsdauth in
1535: yes) with_logincap=yes
1.6 millert 1536: ;;
1537: no) ;;
1.11 ! millert 1538: *) { { echo "$as_me:1538: error: \"--with-bsdauth does not take an argument.\"" >&5
1.9 millert 1539: echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
1540: { (exit 1); exit 1; }; }
1.6 millert 1541: ;;
1542: esac
1.9 millert 1543: fi;
1.6 millert 1544:
1.11 ! millert 1545: echo "$as_me:1545: checking whether to lecture users the first time they run sudo" >&5
1.9 millert 1546: echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6
1.6 millert 1547:
1.1 millert 1548: # Check whether --with-lecture or --without-lecture was given.
1549: if test "${with_lecture+set}" = set; then
1550: withval="$with_lecture"
1.9 millert 1551: case $with_lecture in
1552: yes|short) lecture=on
1.1 millert 1553: ;;
1.9 millert 1554: no|none) lecture=off
1.1 millert 1555: ;;
1.11 ! millert 1556: *) { { echo "$as_me:1556: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
1.9 millert 1557: echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
1558: { (exit 1); exit 1; }; }
1.1 millert 1559: ;;
1560: esac
1.9 millert 1561: fi;
1562: if test "$lecture" = "on"; then
1.11 ! millert 1563: echo "$as_me:1563: result: yes" >&5
1.9 millert 1564: echo "${ECHO_T}yes" >&6
1.1 millert 1565: else
1.9 millert 1566:
1567: cat >>confdefs.h <<\EOF
1568: #define NO_LECTURE 1
1569: EOF
1570:
1.11 ! millert 1571: echo "$as_me:1571: result: no" >&5
1.9 millert 1572: echo "${ECHO_T}no" >&6
1.1 millert 1573: fi
1574:
1.11 ! millert 1575: echo "$as_me:1575: checking whether sudo should log via syslog or to a file by default" >&5
1.9 millert 1576: echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6
1.1 millert 1577:
1578: # Check whether --with-logging or --without-logging was given.
1579: if test "${with_logging+set}" = set; then
1580: withval="$with_logging"
1.9 millert 1581: case $with_logging in
1.11 ! millert 1582: yes) { { echo "$as_me:1582: error: \"must give --with-logging an argument.\"" >&5
1.9 millert 1583: echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
1584: { (exit 1); exit 1; }; }
1585: ;;
1.11 ! millert 1586: no) { { echo "$as_me:1586: error: \"--without-logging not supported.\"" >&5
1.9 millert 1587: echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
1588: { (exit 1); exit 1; }; }
1.1 millert 1589: ;;
1.9 millert 1590: syslog)
1591: cat >>confdefs.h <<\EOF
1.1 millert 1592: #define LOGGING SLOG_SYSLOG
1593: EOF
1594:
1.11 ! millert 1595: echo "$as_me:1595: result: syslog" >&5
1.9 millert 1596: echo "${ECHO_T}syslog" >&6
1.1 millert 1597: ;;
1.9 millert 1598: file) cat >>confdefs.h <<\EOF
1.1 millert 1599: #define LOGGING SLOG_FILE
1600: EOF
1601:
1.11 ! millert 1602: echo "$as_me:1602: result: file" >&5
1.9 millert 1603: echo "${ECHO_T}file" >&6
1.1 millert 1604: ;;
1.9 millert 1605: both) cat >>confdefs.h <<\EOF
1.1 millert 1606: #define LOGGING SLOG_BOTH
1607: EOF
1608:
1.11 ! millert 1609: echo "$as_me:1609: result: both" >&5
1.9 millert 1610: echo "${ECHO_T}both" >&6
1.1 millert 1611: ;;
1.11 ! millert 1612: *) { { echo "$as_me:1612: error: \"unknown argument to --with-logging: $with_logging\"" >&5
1.9 millert 1613: echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
1614: { (exit 1); exit 1; }; }
1.1 millert 1615: ;;
1616: esac
1617: else
1.9 millert 1618: cat >>confdefs.h <<\EOF
1.1 millert 1619: #define LOGGING SLOG_SYSLOG
1620: EOF
1.11 ! millert 1621: echo "$as_me:1621: result: syslog" >&5
1.9 millert 1622: echo "${ECHO_T}syslog" >&6
1623: fi;
1.1 millert 1624:
1.11 ! millert 1625: echo "$as_me:1625: checking which syslog facility sudo should log with" >&5
1.9 millert 1626: echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6
1.1 millert 1627:
1628: # Check whether --with-logfac or --without-logfac was given.
1629: if test "${with_logfac+set}" = set; then
1630: withval="$with_logfac"
1.9 millert 1631: case $with_logfac in
1.11 ! millert 1632: yes) { { echo "$as_me:1632: error: \"must give --with-logfac an argument.\"" >&5
1.9 millert 1633: echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
1634: { (exit 1); exit 1; }; }
1635: ;;
1.11 ! millert 1636: no) { { echo "$as_me:1636: error: \"--without-logfac not supported.\"" >&5
1.9 millert 1637: echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
1638: { (exit 1); exit 1; }; }
1.1 millert 1639: ;;
1.9 millert 1640: authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
1.1 millert 1641: ;;
1.11 ! millert 1642: *) { { echo "$as_me:1642: error: \"$with_logfac is not a supported syslog facility.\"" >&5
1.9 millert 1643: echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
1644: { (exit 1); exit 1; }; }
1.1 millert 1645: ;;
1646: esac
1.9 millert 1647: fi;
1648:
1649: cat >>confdefs.h <<EOF
1650: #define LOGFAC "$logfac"
1.1 millert 1651: EOF
1652:
1.11 ! millert 1653: echo "$as_me:1653: result: $logfac" >&5
1.9 millert 1654: echo "${ECHO_T}$logfac" >&6
1655:
1.11 ! millert 1656: echo "$as_me:1656: checking at which syslog priority to log commands" >&5
1.9 millert 1657: echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6
1.1 millert 1658:
1659: # Check whether --with-goodpri or --without-goodpri was given.
1660: if test "${with_goodpri+set}" = set; then
1661: withval="$with_goodpri"
1.9 millert 1662: case $with_goodpri in
1.11 ! millert 1663: yes) { { echo "$as_me:1663: error: \"must give --with-goodpri an argument.\"" >&5
1.9 millert 1664: echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
1665: { (exit 1); exit 1; }; }
1.1 millert 1666: ;;
1.11 ! millert 1667: no) { { echo "$as_me:1667: error: \"--without-goodpri not supported.\"" >&5
1.9 millert 1668: echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
1669: { (exit 1); exit 1; }; }
1.1 millert 1670: ;;
1.9 millert 1671: alert|crit|debug|emerg|err|info|notice|warning)
1672: goodpri=$with_goodpri
1.1 millert 1673: ;;
1.11 ! millert 1674: *) { { echo "$as_me:1674: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
1.9 millert 1675: echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
1676: { (exit 1); exit 1; }; }
1.1 millert 1677: ;;
1678: esac
1.9 millert 1679: fi;
1680:
1681: cat >>confdefs.h <<EOF
1682: #define PRI_SUCCESS "$goodpri"
1.1 millert 1683: EOF
1684:
1.11 ! millert 1685: echo "$as_me:1685: result: $goodpri" >&5
1.9 millert 1686: echo "${ECHO_T}$goodpri" >&6
1687:
1.11 ! millert 1688: echo "$as_me:1688: checking at which syslog priority to log failures" >&5
1.9 millert 1689: echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6
1.1 millert 1690:
1691: # Check whether --with-badpri or --without-badpri was given.
1692: if test "${with_badpri+set}" = set; then
1693: withval="$with_badpri"
1.9 millert 1694: case $with_badpri in
1.11 ! millert 1695: yes) { { echo "$as_me:1695: error: \"must give --with-badpri an argument.\"" >&5
1.9 millert 1696: echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
1697: { (exit 1); exit 1; }; }
1.1 millert 1698: ;;
1.11 ! millert 1699: no) { { echo "$as_me:1699: error: \"--without-badpri not supported.\"" >&5
1.9 millert 1700: echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
1701: { (exit 1); exit 1; }; }
1.1 millert 1702: ;;
1.9 millert 1703: alert|crit|debug|emerg|err|info|notice|warning)
1704: badpri=$with_badpri
1.1 millert 1705: ;;
1.11 ! millert 1706: *) { { echo "$as_me:1706: error: $with_badpri is not a supported syslog priority." >&5
1.9 millert 1707: echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
1708: { (exit 1); exit 1; }; }
1.1 millert 1709: ;;
1710: esac
1.9 millert 1711: fi;
1712:
1713: cat >>confdefs.h <<EOF
1714: #define PRI_FAILURE "$badpri"
1.1 millert 1715: EOF
1716:
1.11 ! millert 1717: echo "$as_me:1717: result: badpri" >&5
1.9 millert 1718: echo "${ECHO_T}badpri" >&6
1.1 millert 1719:
1720: # Check whether --with-logpath or --without-logpath was given.
1721: if test "${with_logpath+set}" = set; then
1722: withval="$with_logpath"
1.9 millert 1723: case $with_logpath in
1.11 ! millert 1724: yes) { { echo "$as_me:1724: error: \"must give --with-logpath an argument.\"" >&5
1.9 millert 1725: echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
1726: { (exit 1); exit 1; }; }
1.1 millert 1727: ;;
1.11 ! millert 1728: no) { { echo "$as_me:1728: error: \"--without-logpath not supported.\"" >&5
1.9 millert 1729: echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
1730: { (exit 1); exit 1; }; }
1.1 millert 1731: ;;
1732: esac
1.9 millert 1733: fi;
1.1 millert 1734:
1.11 ! millert 1735: echo "$as_me:1735: checking how long a line in the log file should be" >&5
1.9 millert 1736: echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6
1.1 millert 1737:
1738: # Check whether --with-loglen or --without-loglen was given.
1739: if test "${with_loglen+set}" = set; then
1740: withval="$with_loglen"
1.9 millert 1741: case $with_loglen in
1.11 ! millert 1742: yes) { { echo "$as_me:1742: error: \"must give --with-loglen an argument.\"" >&5
1.9 millert 1743: echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
1744: { (exit 1); exit 1; }; }
1.1 millert 1745: ;;
1.11 ! millert 1746: no) { { echo "$as_me:1746: error: \"--without-loglen not supported.\"" >&5
1.9 millert 1747: echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
1748: { (exit 1); exit 1; }; }
1.1 millert 1749: ;;
1.9 millert 1750: [0-9]*) loglen=$with_loglen
1.1 millert 1751: ;;
1.11 ! millert 1752: *) { { echo "$as_me:1752: error: \"you must enter a number, not $with_loglen\"" >&5
1.9 millert 1753: echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
1754: { (exit 1); exit 1; }; }
1.1 millert 1755: ;;
1756: esac
1.9 millert 1757: fi;
1758:
1759: cat >>confdefs.h <<EOF
1760: #define MAXLOGFILELEN $loglen
1.1 millert 1761: EOF
1762:
1.11 ! millert 1763: echo "$as_me:1763: result: $loglen" >&5
1.9 millert 1764: echo "${ECHO_T}$loglen" >&6
1765:
1.11 ! millert 1766: echo "$as_me:1766: checking whether sudo should ignore '.' or '' in \$PATH" >&5
1.9 millert 1767: echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6
1.1 millert 1768:
1769: # Check whether --with-ignore-dot or --without-ignore-dot was given.
1770: if test "${with_ignore_dot+set}" = set; then
1771: withval="$with_ignore_dot"
1.9 millert 1772: case $with_ignore_dot in
1773: yes) ignore_dot=on
1.1 millert 1774: ;;
1.9 millert 1775: no) ignore_dot=off
1.1 millert 1776: ;;
1.11 ! millert 1777: *) { { echo "$as_me:1777: error: \"--with-ignore-dot does not take an argument.\"" >&5
1.9 millert 1778: echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
1779: { (exit 1); exit 1; }; }
1.1 millert 1780: ;;
1781: esac
1.9 millert 1782: fi;
1783: if test "$ignore_dot" = "on"; then
1784:
1785: cat >>confdefs.h <<\EOF
1786: #define IGNORE_DOT_PATH 1
1787: EOF
1788:
1.11 ! millert 1789: echo "$as_me:1789: result: yes" >&5
1.9 millert 1790: echo "${ECHO_T}yes" >&6
1.1 millert 1791: else
1.11 ! millert 1792: echo "$as_me:1792: result: no" >&5
1.9 millert 1793: echo "${ECHO_T}no" >&6
1.1 millert 1794: fi
1795:
1.11 ! millert 1796: echo "$as_me:1796: checking whether to send mail when a user is not in sudoers" >&5
1.9 millert 1797: echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6
1.1 millert 1798:
1.9 millert 1799: # Check whether --with-mail-if-no-user or --without-mail-if-no-user was given.
1800: if test "${with_mail_if_no_user+set}" = set; then
1801: withval="$with_mail_if_no_user"
1802: case $with_mail_if_no_user in
1803: yes) mail_no_user=on
1804: ;;
1805: no) mail_no_user=off
1.1 millert 1806: ;;
1.11 ! millert 1807: *) { { echo "$as_me:1807: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
1.9 millert 1808: echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
1809: { (exit 1); exit 1; }; }
1.1 millert 1810: ;;
1.9 millert 1811: esac
1812: fi;
1813: if test "$mail_no_user" = "on"; then
1814:
1815: cat >>confdefs.h <<\EOF
1816: #define SEND_MAIL_WHEN_NO_USER 1
1.1 millert 1817: EOF
1818:
1.11 ! millert 1819: echo "$as_me:1819: result: yes" >&5
1.9 millert 1820: echo "${ECHO_T}yes" >&6
1.1 millert 1821: else
1.11 ! millert 1822: echo "$as_me:1822: result: no" >&5
1.9 millert 1823: echo "${ECHO_T}no" >&6
1.1 millert 1824: fi
1825:
1.11 ! millert 1826: echo "$as_me:1826: checking whether to send mail when user listed but not for this host" >&5
1.9 millert 1827: echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6
1.1 millert 1828:
1.9 millert 1829: # Check whether --with-mail-if-no-host or --without-mail-if-no-host was given.
1830: if test "${with_mail_if_no_host+set}" = set; then
1831: withval="$with_mail_if_no_host"
1832: case $with_mail_if_no_host in
1833: yes) mail_no_host=on
1.1 millert 1834: ;;
1.9 millert 1835: no) mail_no_host=off
1.1 millert 1836: ;;
1.11 ! millert 1837: *) { { echo "$as_me:1837: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
1.9 millert 1838: echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
1839: { (exit 1); exit 1; }; }
1.1 millert 1840: ;;
1841: esac
1.9 millert 1842: fi;
1843: if test "$mail_no_host" = "on"; then
1844:
1845: cat >>confdefs.h <<\EOF
1846: #define SEND_MAIL_WHEN_NO_HOST 1
1.1 millert 1847: EOF
1848:
1.11 ! millert 1849: echo "$as_me:1849: result: yes" >&5
1.9 millert 1850: echo "${ECHO_T}yes" >&6
1851: else
1.11 ! millert 1852: echo "$as_me:1852: result: no" >&5
1.9 millert 1853: echo "${ECHO_T}no" >&6
1.1 millert 1854: fi
1855:
1.11 ! millert 1856: echo "$as_me:1856: checking whether to send mail when a user tries a disallowed command" >&5
1.9 millert 1857: echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6
1.1 millert 1858:
1.9 millert 1859: # Check whether --with-mail-if-noperms or --without-mail-if-noperms was given.
1860: if test "${with_mail_if_noperms+set}" = set; then
1861: withval="$with_mail_if_noperms"
1862: case $with_mail_if_noperms in
1863: yes) mail_noperms=on
1.1 millert 1864: ;;
1.9 millert 1865: no) mail_noperms=off
1.1 millert 1866: ;;
1.11 ! millert 1867: *) { { echo "$as_me:1867: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
1.9 millert 1868: echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
1869: { (exit 1); exit 1; }; }
1.1 millert 1870: ;;
1871: esac
1.9 millert 1872: fi;
1873: if test "$mail_noperms" = "on"; then
1874:
1875: cat >>confdefs.h <<\EOF
1876: #define SEND_MAIL_WHEN_NOT_OK 1
1877: EOF
1878:
1.11 ! millert 1879: echo "$as_me:1879: result: yes" >&5
1.9 millert 1880: echo "${ECHO_T}yes" >&6
1.1 millert 1881: else
1.11 ! millert 1882: echo "$as_me:1882: result: no" >&5
1.9 millert 1883: echo "${ECHO_T}no" >&6
1.1 millert 1884: fi
1885:
1.11 ! millert 1886: echo "$as_me:1886: checking who should get the mail that sudo sends" >&5
1.9 millert 1887: echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6
1.1 millert 1888:
1.9 millert 1889: # Check whether --with-mailto or --without-mailto was given.
1890: if test "${with_mailto+set}" = set; then
1891: withval="$with_mailto"
1892: case $with_mailto in
1.11 ! millert 1893: yes) { { echo "$as_me:1893: error: \"must give --with-mailto an argument.\"" >&5
1.9 millert 1894: echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
1895: { (exit 1); exit 1; }; }
1.1 millert 1896: ;;
1.11 ! millert 1897: no) { { echo "$as_me:1897: error: \"--without-mailto not supported.\"" >&5
1.9 millert 1898: echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
1899: { (exit 1); exit 1; }; }
1.1 millert 1900: ;;
1.9 millert 1901: *) mailto=$with_mailto
1.1 millert 1902: ;;
1903: esac
1.9 millert 1904: fi;
1.1 millert 1905:
1.9 millert 1906: cat >>confdefs.h <<EOF
1907: #define MAILTO "$mailto"
1908: EOF
1.1 millert 1909:
1.11 ! millert 1910: echo "$as_me:1910: result: $mailto" >&5
1.9 millert 1911: echo "${ECHO_T}$mailto" >&6
1.1 millert 1912:
1.9 millert 1913: # Check whether --with-mailsubject or --without-mailsubject was given.
1914: if test "${with_mailsubject+set}" = set; then
1915: withval="$with_mailsubject"
1916: case $with_mailsubject in
1.11 ! millert 1917: yes) { { echo "$as_me:1917: error: \"must give --with-mailsubject an argument.\"" >&5
1.9 millert 1918: echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
1919: { (exit 1); exit 1; }; }
1.1 millert 1920: ;;
1.9 millert 1921: no) echo "Sorry, --without-mailsubject not supported."
1.1 millert 1922: ;;
1.9 millert 1923: *) mailsub="$with_mailsubject"
1.11 ! millert 1924: echo "$as_me:1924: checking sudo mail subject" >&5
1.9 millert 1925: echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6
1.11 ! millert 1926: echo "$as_me:1926: result: Using alert mail subject: $mailsub" >&5
1.9 millert 1927: echo "${ECHO_T}Using alert mail subject: $mailsub" >&6
1.1 millert 1928: ;;
1929: esac
1.9 millert 1930: fi;
1931:
1932: cat >>confdefs.h <<EOF
1933: #define MAILSUBJECT "$mailsub"
1934: EOF
1.1 millert 1935:
1.11 ! millert 1936: echo "$as_me:1936: checking for bad password prompt" >&5
1.9 millert 1937: echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6
1.1 millert 1938:
1939: # Check whether --with-passprompt or --without-passprompt was given.
1940: if test "${with_passprompt+set}" = set; then
1941: withval="$with_passprompt"
1.9 millert 1942: case $with_passprompt in
1.11 ! millert 1943: yes) { { echo "$as_me:1943: error: \"must give --with-passprompt an argument.\"" >&5
1.9 millert 1944: echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
1945: { (exit 1); exit 1; }; }
1.1 millert 1946: ;;
1947: no) echo "Sorry, --without-passprompt not supported."
1948: ;;
1.9 millert 1949: *) passprompt="$with_passprompt"
1950: esac
1951: fi;
1.11 ! millert 1952: echo "$as_me:1952: result: $passprompt" >&5
1.9 millert 1953: echo "${ECHO_T}$passprompt" >&6
1.1 millert 1954:
1.9 millert 1955: cat >>confdefs.h <<EOF
1956: #define PASSPROMPT "$passprompt"
1.1 millert 1957: EOF
1958:
1.11 ! millert 1959: echo "$as_me:1959: checking for bad password message" >&5
1.9 millert 1960: echo $ECHO_N "checking for bad password message... $ECHO_C" >&6
1.1 millert 1961:
1962: # Check whether --with-badpass-message or --without-badpass-message was given.
1963: if test "${with_badpass_message+set}" = set; then
1964: withval="$with_badpass_message"
1.9 millert 1965: case $with_badpass_message in
1.11 ! millert 1966: yes) { { echo "$as_me:1966: error: \"Must give --with-badpass-message an argument.\"" >&5
1.9 millert 1967: echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
1968: { (exit 1); exit 1; }; }
1.1 millert 1969: ;;
1970: no) echo "Sorry, --without-badpass-message not supported."
1971: ;;
1.9 millert 1972: *) badpass_message="$with_badpass_message"
1.1 millert 1973: ;;
1974: esac
1.9 millert 1975: fi;
1976:
1977: cat >>confdefs.h <<EOF
1978: #define INCORRECT_PASSWORD "$badpass_message"
1.1 millert 1979: EOF
1980:
1.11 ! millert 1981: echo "$as_me:1981: result: $badpass_message" >&5
1.9 millert 1982: echo "${ECHO_T}$badpass_message" >&6
1983:
1.11 ! millert 1984: echo "$as_me:1984: checking whether to expect fully qualified hosts in sudoers" >&5
1.9 millert 1985: echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6
1.1 millert 1986:
1987: # Check whether --with-fqdn or --without-fqdn was given.
1988: if test "${with_fqdn+set}" = set; then
1989: withval="$with_fqdn"
1.9 millert 1990: case $with_fqdn in
1991: yes) fqdn=on
1.1 millert 1992: ;;
1.9 millert 1993: no) fqdn=off
1.1 millert 1994: ;;
1.11 ! millert 1995: *) { { echo "$as_me:1995: error: \"--with-fqdn does not take an argument.\"" >&5
1.9 millert 1996: echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
1997: { (exit 1); exit 1; }; }
1.1 millert 1998: ;;
1999: esac
1.9 millert 2000: fi;
2001: if test "$fqdn" = "on"; then
2002:
2003: cat >>confdefs.h <<\EOF
2004: #define FQDN 1
2005: EOF
2006:
1.11 ! millert 2007: echo "$as_me:2007: result: yes" >&5
1.9 millert 2008: echo "${ECHO_T}yes" >&6
1.1 millert 2009: else
1.11 ! millert 2010: echo "$as_me:2010: result: no" >&5
1.9 millert 2011: echo "${ECHO_T}no" >&6
1.1 millert 2012: fi
2013:
2014: # Check whether --with-timedir or --without-timedir was given.
2015: if test "${with_timedir+set}" = set; then
2016: withval="$with_timedir"
1.9 millert 2017: case $with_timedir in
1.11 ! millert 2018: yes) { { echo "$as_me:2018: error: \"must give --with-timedir an argument.\"" >&5
1.9 millert 2019: echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
2020: { (exit 1); exit 1; }; }
1.1 millert 2021: ;;
1.11 ! millert 2022: no) { { echo "$as_me:2022: error: \"--without-timedir not supported.\"" >&5
1.9 millert 2023: echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
2024: { (exit 1); exit 1; }; }
1.1 millert 2025: ;;
2026: esac
1.9 millert 2027: fi;
1.1 millert 2028:
2029: # Check whether --with-sendmail or --without-sendmail was given.
2030: if test "${with_sendmail+set}" = set; then
2031: withval="$with_sendmail"
1.9 millert 2032: case $with_sendmail in
1.1 millert 2033: yes) with_sendmail=""
2034: ;;
2035: no) ;;
1.9 millert 2036: *) cat >>confdefs.h <<EOF
2037: #define _PATH_SUDO_SENDMAIL "$with_sendmail"
1.1 millert 2038: EOF
2039:
2040: ;;
2041: esac
1.9 millert 2042: fi;
1.1 millert 2043:
2044: # Check whether --with-sudoers-mode or --without-sudoers-mode was given.
2045: if test "${with_sudoers_mode+set}" = set; then
2046: withval="$with_sudoers_mode"
1.9 millert 2047: case $with_sudoers_mode in
1.11 ! millert 2048: yes) { { echo "$as_me:2048: error: \"must give --with-sudoers-mode an argument.\"" >&5
1.9 millert 2049: echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
2050: { (exit 1); exit 1; }; }
2051: ;;
1.11 ! millert 2052: no) { { echo "$as_me:2052: error: \"--without-sudoers-mode not supported.\"" >&5
1.9 millert 2053: echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
2054: { (exit 1); exit 1; }; }
1.1 millert 2055: ;;
2056: [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
2057: ;;
2058: 0*) SUDOERS_MODE=$with_sudoers_mode
2059: ;;
1.11 ! millert 2060: *) { { echo "$as_me:2060: error: \"you must use a numeric uid, not a name.\"" >&5
1.9 millert 2061: echo "$as_me: error: \"you must use a numeric uid, not a name.\"" >&2;}
2062: { (exit 1); exit 1; }; }
1.1 millert 2063: ;;
2064: esac
1.9 millert 2065: fi;
1.1 millert 2066:
2067: # Check whether --with-sudoers-uid or --without-sudoers-uid was given.
2068: if test "${with_sudoers_uid+set}" = set; then
2069: withval="$with_sudoers_uid"
1.9 millert 2070: case $with_sudoers_uid in
1.11 ! millert 2071: yes) { { echo "$as_me:2071: error: \"must give --with-sudoers-uid an argument.\"" >&5
1.9 millert 2072: echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
2073: { (exit 1); exit 1; }; }
2074: ;;
1.11 ! millert 2075: no) { { echo "$as_me:2075: error: \"--without-sudoers-uid not supported.\"" >&5
1.9 millert 2076: echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
2077: { (exit 1); exit 1; }; }
1.1 millert 2078: ;;
2079: [0-9]*) SUDOERS_UID=$with_sudoers_uid
2080: ;;
1.11 ! millert 2081: *) { { echo "$as_me:2081: error: \"you must use a numeric uid, not a name.\"" >&5
1.9 millert 2082: echo "$as_me: error: \"you must use a numeric uid, not a name.\"" >&2;}
2083: { (exit 1); exit 1; }; }
1.1 millert 2084: ;;
2085: esac
1.9 millert 2086: fi;
1.1 millert 2087:
2088: # Check whether --with-sudoers-gid or --without-sudoers-gid was given.
2089: if test "${with_sudoers_gid+set}" = set; then
2090: withval="$with_sudoers_gid"
1.9 millert 2091: case $with_sudoers_gid in
1.11 ! millert 2092: yes) { { echo "$as_me:2092: error: \"must give --with-sudoers-gid an argument.\"" >&5
1.9 millert 2093: echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
2094: { (exit 1); exit 1; }; }
2095: ;;
1.11 ! millert 2096: no) { { echo "$as_me:2096: error: \"--without-sudoers-gid not supported.\"" >&5
1.9 millert 2097: echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
2098: { (exit 1); exit 1; }; }
1.1 millert 2099: ;;
2100: [0-9]*) SUDOERS_GID=$with_sudoers_gid
2101: ;;
1.11 ! millert 2102: *) { { echo "$as_me:2102: error: \"you must use a numeric gid, not a name.\"" >&5
1.9 millert 2103: echo "$as_me: error: \"you must use a numeric gid, not a name.\"" >&2;}
2104: { (exit 1); exit 1; }; }
1.1 millert 2105: ;;
2106: esac
1.9 millert 2107: fi;
1.1 millert 2108:
1.11 ! millert 2109: echo "$as_me:2109: checking for umask programs should be run with" >&5
1.9 millert 2110: echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6
1.1 millert 2111:
2112: # Check whether --with-umask or --without-umask was given.
2113: if test "${with_umask+set}" = set; then
2114: withval="$with_umask"
1.9 millert 2115: case $with_umask in
1.11 ! millert 2116: yes) { { echo "$as_me:2116: error: \"must give --with-umask an argument.\"" >&5
1.9 millert 2117: echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
2118: { (exit 1); exit 1; }; }
1.1 millert 2119: ;;
1.9 millert 2120: no) sudo_umask=0777
1.1 millert 2121: ;;
1.9 millert 2122: [0-9]*) sudo_umask=$with_umask
1.1 millert 2123: ;;
1.11 ! millert 2124: *) { { echo "$as_me:2124: error: \"you must enter a numeric mask.\"" >&5
1.9 millert 2125: echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
2126: { (exit 1); exit 1; }; }
1.1 millert 2127: ;;
2128: esac
1.9 millert 2129: fi;
2130:
2131: cat >>confdefs.h <<EOF
2132: #define SUDO_UMASK $sudo_umask
2133: EOF
2134:
2135: if test "$sudo_umask" = "0777"; then
1.11 ! millert 2136: echo "$as_me:2136: result: user" >&5
1.9 millert 2137: echo "${ECHO_T}user" >&6
1.1 millert 2138: else
1.11 ! millert 2139: echo "$as_me:2139: result: $sudo_umask" >&5
1.9 millert 2140: echo "${ECHO_T}$sudo_umask" >&6
1.1 millert 2141: fi
2142:
1.11 ! millert 2143: echo "$as_me:2143: checking for default user to run commands as" >&5
1.9 millert 2144: echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6
1.1 millert 2145:
2146: # Check whether --with-runas-default or --without-runas-default was given.
2147: if test "${with_runas_default+set}" = set; then
2148: withval="$with_runas_default"
1.9 millert 2149: case $with_runas_default in
1.11 ! millert 2150: yes) { { echo "$as_me:2150: error: \"must give --with-runas-default an argument.\"" >&5
1.9 millert 2151: echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
2152: { (exit 1); exit 1; }; }
1.1 millert 2153: ;;
1.11 ! millert 2154: no) { { echo "$as_me:2154: error: \"--without-runas-default not supported.\"" >&5
1.9 millert 2155: echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
2156: { (exit 1); exit 1; }; }
1.1 millert 2157: ;;
1.9 millert 2158: *) runas_default="$with_runas_default"
1.1 millert 2159: ;;
2160: esac
1.9 millert 2161: fi;
2162:
2163: cat >>confdefs.h <<EOF
2164: #define RUNAS_DEFAULT "$runas_default"
1.1 millert 2165: EOF
2166:
1.11 ! millert 2167: echo "$as_me:2167: result: $runas_default" >&5
1.9 millert 2168: echo "${ECHO_T}$runas_default" >&6
1.1 millert 2169:
2170: # Check whether --with-exempt or --without-exempt was given.
2171: if test "${with_exempt+set}" = set; then
2172: withval="$with_exempt"
1.9 millert 2173: case $with_exempt in
1.11 ! millert 2174: yes) { { echo "$as_me:2174: error: \"must give --with-exempt an argument.\"" >&5
1.9 millert 2175: echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
2176: { (exit 1); exit 1; }; }
2177: ;;
1.11 ! millert 2178: no) { { echo "$as_me:2178: error: \"--without-exempt not supported.\"" >&5
1.9 millert 2179: echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
2180: { (exit 1); exit 1; }; }
1.1 millert 2181: ;;
1.9 millert 2182: *)
2183: cat >>confdefs.h <<EOF
1.1 millert 2184: #define EXEMPTGROUP "$with_exempt"
2185: EOF
2186:
1.11 ! millert 2187: echo "$as_me:2187: checking for group to be exempt from password" >&5
1.9 millert 2188: echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6
1.11 ! millert 2189: echo "$as_me:2189: result: $with_exempt" >&5
1.9 millert 2190: echo "${ECHO_T}$with_exempt" >&6
1.1 millert 2191: ;;
2192: esac
1.9 millert 2193: fi;
1.1 millert 2194:
1.11 ! millert 2195: echo "$as_me:2195: checking for editor that visudo should use" >&5
1.9 millert 2196: echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6
1.1 millert 2197:
2198: # Check whether --with-editor or --without-editor was given.
2199: if test "${with_editor+set}" = set; then
2200: withval="$with_editor"
1.9 millert 2201: case $with_editor in
1.11 ! millert 2202: yes) { { echo "$as_me:2202: error: \"must give --with-editor an argument.\"" >&5
1.9 millert 2203: echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
2204: { (exit 1); exit 1; }; }
2205: ;;
1.11 ! millert 2206: no) { { echo "$as_me:2206: error: \"--without-editor not supported.\"" >&5
1.9 millert 2207: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
2208: { (exit 1); exit 1; }; }
1.1 millert 2209: ;;
1.9 millert 2210: *)
2211: cat >>confdefs.h <<EOF
1.1 millert 2212: #define EDITOR "$with_editor"
2213: EOF
2214:
1.11 ! millert 2215: echo "$as_me:2215: result: $with_editor" >&5
1.9 millert 2216: echo "${ECHO_T}$with_editor" >&6
1.1 millert 2217: ;;
2218: esac
2219: else
1.9 millert 2220: cat >>confdefs.h <<\EOF
1.1 millert 2221: #define EDITOR _PATH_VI
2222: EOF
1.11 ! millert 2223: echo "$as_me:2223: result: vi" >&5
1.9 millert 2224: echo "${ECHO_T}vi" >&6
2225: fi;
1.1 millert 2226:
1.11 ! millert 2227: echo "$as_me:2227: checking whether to obey EDITOR and VISUAL environment variables" >&5
1.9 millert 2228: echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6
1.1 millert 2229:
2230: # Check whether --with-env-editor or --without-env-editor was given.
2231: if test "${with_env_editor+set}" = set; then
2232: withval="$with_env_editor"
1.9 millert 2233: case $with_env_editor in
2234: yes) env_editor=on
1.1 millert 2235: ;;
1.9 millert 2236: no) env_editor=off
1.1 millert 2237: ;;
1.11 ! millert 2238: *) { { echo "$as_me:2238: error: \"--with-env-editor does not take an argument.\"" >&5
1.9 millert 2239: echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
2240: { (exit 1); exit 1; }; }
1.1 millert 2241: ;;
2242: esac
1.9 millert 2243: fi;
2244: if test "$env_editor" = "on"; then
2245:
2246: cat >>confdefs.h <<\EOF
2247: #define ENV_EDITOR 1
2248: EOF
2249:
1.11 ! millert 2250: echo "$as_me:2250: result: yes" >&5
1.9 millert 2251: echo "${ECHO_T}yes" >&6
1.1 millert 2252: else
1.11 ! millert 2253: echo "$as_me:2253: result: no" >&5
1.9 millert 2254: echo "${ECHO_T}no" >&6
1.1 millert 2255: fi
2256:
1.11 ! millert 2257: echo "$as_me:2257: checking number of tries a user gets to enter their password" >&5
1.9 millert 2258: echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6
1.1 millert 2259:
2260: # Check whether --with-passwd-tries or --without-passwd-tries was given.
2261: if test "${with_passwd_tries+set}" = set; then
2262: withval="$with_passwd_tries"
1.9 millert 2263: case $with_passwd_tries in
2264: yes) ;;
1.11 ! millert 2265: no) { { echo "$as_me:2265: error: \"--without-editor not supported.\"" >&5
1.9 millert 2266: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
2267: { (exit 1); exit 1; }; }
1.1 millert 2268: ;;
1.9 millert 2269: [1-9]*) passwd_tries=$with_passwd_tries
1.1 millert 2270: ;;
1.11 ! millert 2271: *) { { echo "$as_me:2271: error: \"you must enter the numer of tries, > 0\"" >&5
1.9 millert 2272: echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
2273: { (exit 1); exit 1; }; }
1.1 millert 2274: ;;
2275: esac
1.9 millert 2276: fi;
2277:
2278: cat >>confdefs.h <<EOF
2279: #define TRIES_FOR_PASSWORD $passwd_tries
1.1 millert 2280: EOF
2281:
1.11 ! millert 2282: echo "$as_me:2282: result: $passwd_tries" >&5
1.9 millert 2283: echo "${ECHO_T}$passwd_tries" >&6
2284:
1.11 ! millert 2285: echo "$as_me:2285: checking time in minutes after which sudo will ask for a password again" >&5
1.9 millert 2286: echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6
1.1 millert 2287:
2288: # Check whether --with-timeout or --without-timeout was given.
2289: if test "${with_timeout+set}" = set; then
2290: withval="$with_timeout"
1.9 millert 2291: echo $with_timeout; case $with_timeout in
2292: yes) ;;
2293: no) timeout=0
1.1 millert 2294: ;;
1.9 millert 2295: [0-9]*) timeout=$with_timeout
1.1 millert 2296: ;;
1.11 ! millert 2297: *) { { echo "$as_me:2297: error: \"you must enter the numer of minutes.\"" >&5
1.9 millert 2298: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
2299: { (exit 1); exit 1; }; }
1.1 millert 2300: ;;
2301: esac
1.9 millert 2302: fi;
2303:
2304: cat >>confdefs.h <<EOF
2305: #define TIMEOUT $timeout
1.1 millert 2306: EOF
2307:
1.11 ! millert 2308: echo "$as_me:2308: result: $timeout" >&5
1.9 millert 2309: echo "${ECHO_T}$timeout" >&6
2310:
1.11 ! millert 2311: echo "$as_me:2311: checking time in minutes after the password prompt will time out" >&5
1.9 millert 2312: echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6
1.1 millert 2313:
2314: # Check whether --with-password-timeout or --without-password-timeout was given.
2315: if test "${with_password_timeout+set}" = set; then
2316: withval="$with_password_timeout"
1.9 millert 2317: case $with_password_timeout in
2318: yes) ;;
2319: no) password_timeout=0
1.1 millert 2320: ;;
1.9 millert 2321: [0-9]*) password_timeout=$with_password_timeout
1.1 millert 2322: ;;
1.11 ! millert 2323: *) { { echo "$as_me:2323: error: \"you must enter the numer of minutes.\"" >&5
1.9 millert 2324: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
2325: { (exit 1); exit 1; }; }
1.1 millert 2326: ;;
2327: esac
1.9 millert 2328: fi;
2329:
2330: cat >>confdefs.h <<EOF
2331: #define PASSWORD_TIMEOUT $password_timeout
1.1 millert 2332: EOF
2333:
1.11 ! millert 2334: echo "$as_me:2334: result: $password_timeout" >&5
1.9 millert 2335: echo "${ECHO_T}$password_timeout" >&6
1.1 millert 2336:
2337: # Check whether --with-execv or --without-execv was given.
2338: if test "${with_execv+set}" = set; then
2339: withval="$with_execv"
1.9 millert 2340: case $with_execv in
1.11 ! millert 2341: yes) echo "$as_me:2341: checking whether to use execvp or execv" >&5
1.9 millert 2342: echo $ECHO_N "checking whether to use execvp or execv... $ECHO_C" >&6
1.11 ! millert 2343: echo "$as_me:2343: result: execv" >&5
1.9 millert 2344: echo "${ECHO_T}execv" >&6
2345:
2346: cat >>confdefs.h <<\EOF
1.1 millert 2347: #define USE_EXECV 1
2348: EOF
2349:
2350: ;;
1.9 millert 2351: no) ;;
1.11 ! millert 2352: *) { { echo "$as_me:2352: error: \"--with-execv does not take an argument.\"" >&5
1.9 millert 2353: echo "$as_me: error: \"--with-execv does not take an argument.\"" >&2;}
2354: { (exit 1); exit 1; }; }
1.1 millert 2355: ;;
2356: esac
1.9 millert 2357: fi;
1.1 millert 2358:
1.11 ! millert 2359: echo "$as_me:2359: checking whether to use per-tty ticket files" >&5
1.9 millert 2360: echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6
1.1 millert 2361:
2362: # Check whether --with-tty-tickets or --without-tty-tickets was given.
2363: if test "${with_tty_tickets+set}" = set; then
2364: withval="$with_tty_tickets"
1.9 millert 2365: case $with_tty_tickets in
2366: yes) tty_tickets=on
1.1 millert 2367: ;;
1.9 millert 2368: no) tty_tickets=off
1.1 millert 2369: ;;
1.11 ! millert 2370: *) { { echo "$as_me:2370: error: \"--with-tty-tickets does not take an argument.\"" >&5
1.9 millert 2371: echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
2372: { (exit 1); exit 1; }; }
1.1 millert 2373: ;;
2374: esac
1.9 millert 2375: fi;
2376: if test "$tty_tickets" = "on"; then
2377:
2378: cat >>confdefs.h <<\EOF
2379: #define USE_TTY_TICKETS 1
2380: EOF
2381:
1.11 ! millert 2382: echo "$as_me:2382: result: yes" >&5
1.9 millert 2383: echo "${ECHO_T}yes" >&6
1.1 millert 2384: else
1.11 ! millert 2385: echo "$as_me:2385: result: no" >&5
1.9 millert 2386: echo "${ECHO_T}no" >&6
1.1 millert 2387: fi
2388:
1.11 ! millert 2389: echo "$as_me:2389: checking whether to include insults" >&5
1.9 millert 2390: echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6
1.1 millert 2391:
2392: # Check whether --with-insults or --without-insults was given.
2393: if test "${with_insults+set}" = set; then
2394: withval="$with_insults"
1.9 millert 2395: case $with_insults in
2396: yes) insults=on
1.1 millert 2397: with_classic_insults=yes
2398: with_csops_insults=yes
2399: ;;
1.9 millert 2400: no) insults=off
1.1 millert 2401: ;;
1.11 ! millert 2402: *) { { echo "$as_me:2402: error: \"--with-insults does not take an argument.\"" >&5
1.9 millert 2403: echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
2404: { (exit 1); exit 1; }; }
1.1 millert 2405: ;;
2406: esac
1.9 millert 2407: fi;
2408: if test "$insults" = "on"; then
2409:
2410: cat >>confdefs.h <<\EOF
2411: #define USE_INSULTS 1
2412: EOF
2413:
1.11 ! millert 2414: echo "$as_me:2414: result: yes" >&5
1.9 millert 2415: echo "${ECHO_T}yes" >&6
1.1 millert 2416: else
1.11 ! millert 2417: echo "$as_me:2417: result: no" >&5
1.9 millert 2418: echo "${ECHO_T}no" >&6
1.1 millert 2419: fi
2420:
2421: # Check whether --with-all-insults or --without-all-insults was given.
2422: if test "${with_all_insults+set}" = set; then
2423: withval="$with_all_insults"
1.9 millert 2424: case $with_all_insults in
1.1 millert 2425: yes) with_classic_insults=yes
2426: with_csops_insults=yes
2427: with_hal_insults=yes
2428: with_goons_insults=yes
2429: ;;
2430: no) ;;
1.11 ! millert 2431: *) { { echo "$as_me:2431: error: \"--with-all-insults does not take an argument.\"" >&5
1.9 millert 2432: echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
2433: { (exit 1); exit 1; }; }
1.1 millert 2434: ;;
2435: esac
1.9 millert 2436: fi;
1.1 millert 2437:
2438: # Check whether --with-classic-insults or --without-classic-insults was given.
2439: if test "${with_classic_insults+set}" = set; then
2440: withval="$with_classic_insults"
1.9 millert 2441: case $with_classic_insults in
2442: yes)
2443: cat >>confdefs.h <<\EOF
1.1 millert 2444: #define CLASSIC_INSULTS 1
2445: EOF
2446:
2447: ;;
2448: no) ;;
1.11 ! millert 2449: *) { { echo "$as_me:2449: error: \"--with-classic-insults does not take an argument.\"" >&5
1.9 millert 2450: echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
2451: { (exit 1); exit 1; }; }
1.1 millert 2452: ;;
2453: esac
1.9 millert 2454: fi;
1.1 millert 2455:
2456: # Check whether --with-csops-insults or --without-csops-insults was given.
2457: if test "${with_csops_insults+set}" = set; then
2458: withval="$with_csops_insults"
1.9 millert 2459: case $with_csops_insults in
2460: yes)
2461: cat >>confdefs.h <<\EOF
1.1 millert 2462: #define CSOPS_INSULTS 1
2463: EOF
2464:
2465: ;;
2466: no) ;;
1.11 ! millert 2467: *) { { echo "$as_me:2467: error: \"--with-csops-insults does not take an argument.\"" >&5
1.9 millert 2468: echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
2469: { (exit 1); exit 1; }; }
1.1 millert 2470: ;;
2471: esac
1.9 millert 2472: fi;
1.1 millert 2473:
2474: # Check whether --with-hal-insults or --without-hal-insults was given.
2475: if test "${with_hal_insults+set}" = set; then
2476: withval="$with_hal_insults"
1.9 millert 2477: case $with_hal_insults in
2478: yes)
2479: cat >>confdefs.h <<\EOF
1.1 millert 2480: #define HAL_INSULTS 1
2481: EOF
2482:
2483: ;;
2484: no) ;;
1.11 ! millert 2485: *) { { echo "$as_me:2485: error: \"--with-hal-insults does not take an argument.\"" >&5
1.9 millert 2486: echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
2487: { (exit 1); exit 1; }; }
1.1 millert 2488: ;;
2489: esac
1.9 millert 2490: fi;
1.1 millert 2491:
2492: # Check whether --with-goons-insults or --without-goons-insults was given.
2493: if test "${with_goons_insults+set}" = set; then
2494: withval="$with_goons_insults"
1.9 millert 2495: case $with_goons_insults in
2496: yes)
2497: cat >>confdefs.h <<\EOF
1.1 millert 2498: #define GOONS_INSULTS 1
2499: EOF
2500:
2501: ;;
2502: no) ;;
1.11 ! millert 2503: *) { { echo "$as_me:2503: error: \"--with-goons-insults does not take an argument.\"" >&5
1.9 millert 2504: echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
2505: { (exit 1); exit 1; }; }
1.1 millert 2506: ;;
2507: esac
1.9 millert 2508: fi;
1.1 millert 2509:
1.9 millert 2510: if test "$insults" = "on"; then
1.11 ! millert 2511: echo "$as_me:2511: checking which insult sets to include" >&5
1.9 millert 2512: echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6
1.1 millert 2513: i=""
2514: test "$with_goons_insults" = "yes" && i="goons ${i}"
2515: test "$with_hal_insults" = "yes" && i="hal ${i}"
2516: test "$with_csops_insults" = "yes" && i="csops ${i}"
2517: test "$with_classic_insults" = "yes" && i="classic ${i}"
1.11 ! millert 2518: echo "$as_me:2518: result: $i" >&5
1.9 millert 2519: echo "${ECHO_T}$i" >&6
1.1 millert 2520: fi
2521:
1.11 ! millert 2522: echo "$as_me:2522: checking whether to override the user's path" >&5
1.9 millert 2523: echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6
2524:
1.1 millert 2525: # Check whether --with-secure-path or --without-secure-path was given.
2526: if test "${with_secure_path+set}" = set; then
2527: withval="$with_secure_path"
1.9 millert 2528: case $with_secure_path in
2529: yes)
2530: cat >>confdefs.h <<EOF
1.1 millert 2531: #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
2532: EOF
2533:
1.11 ! millert 2534: echo "$as_me:2534: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
1.9 millert 2535: echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6
1.1 millert 2536: ;;
1.11 ! millert 2537: no) echo "$as_me:2537: result: no" >&5
1.9 millert 2538: echo "${ECHO_T}no" >&6
1.1 millert 2539: ;;
1.9 millert 2540: *) cat >>confdefs.h <<EOF
1.1 millert 2541: #define SECURE_PATH "$with_secure_path"
2542: EOF
2543:
1.11 ! millert 2544: echo "$as_me:2544: result: $with_secure_path" >&5
1.9 millert 2545: echo "${ECHO_T}$with_secure_path" >&6
1.1 millert 2546: ;;
2547: esac
2548: else
1.11 ! millert 2549: echo "$as_me:2549: result: no" >&5
1.9 millert 2550: echo "${ECHO_T}no" >&6
2551: fi;
1.1 millert 2552:
1.11 ! millert 2553: echo "$as_me:2553: checking whether to get ip addresses from the network interfaces" >&5
1.9 millert 2554: echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6
1.1 millert 2555:
2556: # Check whether --with-interfaces or --without-interfaces was given.
2557: if test "${with_interfaces+set}" = set; then
2558: withval="$with_interfaces"
1.9 millert 2559: case $with_interfaces in
1.11 ! millert 2560: yes) echo "$as_me:2560: result: yes" >&5
1.9 millert 2561: echo "${ECHO_T}yes" >&6
1.1 millert 2562: ;;
1.9 millert 2563: no)
2564: cat >>confdefs.h <<\EOF
1.1 millert 2565: #define STUB_LOAD_INTERFACES 1
2566: EOF
2567:
1.11 ! millert 2568: echo "$as_me:2568: result: no" >&5
1.9 millert 2569: echo "${ECHO_T}no" >&6
1.1 millert 2570: ;;
1.11 ! millert 2571: *) { { echo "$as_me:2571: error: \"--with-interfaces does not take an argument.\"" >&5
1.9 millert 2572: echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
2573: { (exit 1); exit 1; }; }
1.1 millert 2574: ;;
2575: esac
2576: else
1.11 ! millert 2577: echo "$as_me:2577: result: yes" >&5
1.9 millert 2578: echo "${ECHO_T}yes" >&6
2579: fi;
1.1 millert 2580:
1.11 ! millert 2581: echo "$as_me:2581: checking whether to do user authentication by default" >&5
1.9 millert 2582: echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6
1.1 millert 2583: # Check whether --enable-authentication or --disable-authentication was given.
2584: if test "${enable_authentication+set}" = set; then
2585: enableval="$enable_authentication"
2586: case "$enableval" in
1.11 ! millert 2587: yes) echo "$as_me:2587: result: yes" >&5
1.9 millert 2588: echo "${ECHO_T}yes" >&6
1.1 millert 2589: ;;
1.11 ! millert 2590: no) echo "$as_me:2590: result: no" >&5
1.9 millert 2591: echo "${ECHO_T}no" >&6
2592:
2593: cat >>confdefs.h <<\EOF
1.1 millert 2594: #define NO_AUTHENTICATION 1
2595: EOF
2596:
2597: ;;
1.11 ! millert 2598: *) echo "$as_me:2598: result: no" >&5
1.9 millert 2599: echo "${ECHO_T}no" >&6
1.1 millert 2600: echo "Ignoring unknown argument to --enable-authentication: $enableval"
2601: ;;
2602: esac
2603:
2604: else
1.11 ! millert 2605: echo "$as_me:2605: result: yes" >&5
1.9 millert 2606: echo "${ECHO_T}yes" >&6
2607: fi;
1.1 millert 2608:
1.11 ! millert 2609: echo "$as_me:2609: checking whether to disable use of POSIX saved ids" >&5
! 2610: echo $ECHO_N "checking whether to disable use of POSIX saved ids... $ECHO_C" >&6
! 2611: # Check whether --enable-saved-ids or --disable-saved-ids was given.
! 2612: if test "${enable_saved_ids+set}" = set; then
! 2613: enableval="$enable_saved_ids"
! 2614: case "$enableval" in
! 2615: yes) echo "$as_me:2615: result: no" >&5
! 2616: echo "${ECHO_T}no" >&6
! 2617: ;;
! 2618: no) echo "$as_me:2618: result: yes" >&5
! 2619: echo "${ECHO_T}yes" >&6
! 2620:
! 2621: cat >>confdefs.h <<\EOF
! 2622: #define NO_SAVED_IDS 1
! 2623: EOF
! 2624:
! 2625: ;;
! 2626: *) echo "$as_me:2626: result: no" >&5
! 2627: echo "${ECHO_T}no" >&6
! 2628: echo "Ignoring unknown argument to --enable-saved-ids: $enableval"
! 2629: ;;
! 2630: esac
! 2631:
! 2632: else
! 2633: echo "$as_me:2633: result: no" >&5
! 2634: echo "${ECHO_T}no" >&6
! 2635: fi;
! 2636:
! 2637: echo "$as_me:2637: checking whether to disable shadow password support" >&5
1.9 millert 2638: echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6
1.1 millert 2639: # Check whether --enable-shadow or --disable-shadow was given.
2640: if test "${enable_shadow+set}" = set; then
2641: enableval="$enable_shadow"
2642: case "$enableval" in
1.11 ! millert 2643: yes) echo "$as_me:2643: result: no" >&5
1.9 millert 2644: echo "${ECHO_T}no" >&6
1.1 millert 2645: ;;
1.11 ! millert 2646: no) echo "$as_me:2646: result: yes" >&5
1.9 millert 2647: echo "${ECHO_T}yes" >&6
1.1 millert 2648: CHECKSHADOW="false"
2649: ;;
1.11 ! millert 2650: *) echo "$as_me:2650: result: no" >&5
1.9 millert 2651: echo "${ECHO_T}no" >&6
1.1 millert 2652: echo "Ignoring unknown argument to --enable-shadow: $enableval"
2653: ;;
2654: esac
2655:
2656: else
1.11 ! millert 2657: echo "$as_me:2657: result: no" >&5
1.9 millert 2658: echo "${ECHO_T}no" >&6
2659: fi;
1.1 millert 2660:
1.11 ! millert 2661: echo "$as_me:2661: checking whether root should be allowed to use sudo" >&5
1.9 millert 2662: echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6
1.1 millert 2663: # Check whether --enable-root-sudo or --disable-root-sudo was given.
2664: if test "${enable_root_sudo+set}" = set; then
2665: enableval="$enable_root_sudo"
1.9 millert 2666: case "$enableval" in
1.11 ! millert 2667: yes) echo "$as_me:2667: result: yes" >&5
1.9 millert 2668: echo "${ECHO_T}yes" >&6
1.1 millert 2669: ;;
1.9 millert 2670: no)
2671: cat >>confdefs.h <<\EOF
1.1 millert 2672: #define NO_ROOT_SUDO 1
2673: EOF
2674:
1.11 ! millert 2675: echo "$as_me:2675: result: no" >&5
1.9 millert 2676: echo "${ECHO_T}no" >&6
1.1 millert 2677: ;;
1.11 ! millert 2678: *) { { echo "$as_me:2678: error: \"--enable-root-sudo does not take an argument.\"" >&5
1.9 millert 2679: echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
2680: { (exit 1); exit 1; }; }
1.1 millert 2681: ;;
2682: esac
2683:
2684: else
1.11 ! millert 2685: echo "$as_me:2685: result: yes" >&5
1.9 millert 2686: echo "${ECHO_T}yes" >&6
2687: fi;
1.1 millert 2688:
1.11 ! millert 2689: echo "$as_me:2689: checking whether to log the hostname in the log file" >&5
1.9 millert 2690: echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6
1.1 millert 2691: # Check whether --enable-log-host or --disable-log-host was given.
2692: if test "${enable_log_host+set}" = set; then
2693: enableval="$enable_log_host"
2694: case "$enableval" in
1.11 ! millert 2695: yes) echo "$as_me:2695: result: yes" >&5
1.9 millert 2696: echo "${ECHO_T}yes" >&6
2697:
2698: cat >>confdefs.h <<\EOF
1.1 millert 2699: #define HOST_IN_LOG 1
2700: EOF
2701:
2702: ;;
1.11 ! millert 2703: no) echo "$as_me:2703: result: no" >&5
1.9 millert 2704: echo "${ECHO_T}no" >&6
1.1 millert 2705: ;;
1.11 ! millert 2706: *) echo "$as_me:2706: result: no" >&5
1.9 millert 2707: echo "${ECHO_T}no" >&6
1.1 millert 2708: echo "Ignoring unknown argument to --enable-log-host: $enableval"
2709: ;;
2710: esac
2711:
2712: else
1.11 ! millert 2713: echo "$as_me:2713: result: no" >&5
1.9 millert 2714: echo "${ECHO_T}no" >&6
2715: fi;
1.1 millert 2716:
1.11 ! millert 2717: echo "$as_me:2717: checking whether to invoke a shell if sudo is given no arguments" >&5
1.9 millert 2718: echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6
1.1 millert 2719: # Check whether --enable-noargs-shell or --disable-noargs-shell was given.
2720: if test "${enable_noargs_shell+set}" = set; then
2721: enableval="$enable_noargs_shell"
2722: case "$enableval" in
1.11 ! millert 2723: yes) echo "$as_me:2723: result: yes" >&5
1.9 millert 2724: echo "${ECHO_T}yes" >&6
2725:
2726: cat >>confdefs.h <<\EOF
1.1 millert 2727: #define SHELL_IF_NO_ARGS 1
2728: EOF
2729:
2730: ;;
1.11 ! millert 2731: no) echo "$as_me:2731: result: no" >&5
1.9 millert 2732: echo "${ECHO_T}no" >&6
1.1 millert 2733: ;;
1.11 ! millert 2734: *) echo "$as_me:2734: result: no" >&5
1.9 millert 2735: echo "${ECHO_T}no" >&6
1.1 millert 2736: echo "Ignoring unknown argument to --enable-noargs-shell: $enableval"
2737: ;;
2738: esac
2739:
2740: else
1.11 ! millert 2741: echo "$as_me:2741: result: no" >&5
1.9 millert 2742: echo "${ECHO_T}no" >&6
2743: fi;
1.1 millert 2744:
1.11 ! millert 2745: echo "$as_me:2745: checking whether to set \$HOME to target user in shell mode" >&5
1.9 millert 2746: echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6
1.1 millert 2747: # Check whether --enable-shell-sets-home or --disable-shell-sets-home was given.
2748: if test "${enable_shell_sets_home+set}" = set; then
2749: enableval="$enable_shell_sets_home"
2750: case "$enableval" in
1.11 ! millert 2751: yes) echo "$as_me:2751: result: yes" >&5
1.9 millert 2752: echo "${ECHO_T}yes" >&6
2753:
2754: cat >>confdefs.h <<\EOF
1.1 millert 2755: #define SHELL_SETS_HOME 1
2756: EOF
2757:
2758: ;;
1.11 ! millert 2759: no) echo "$as_me:2759: result: no" >&5
1.9 millert 2760: echo "${ECHO_T}no" >&6
1.1 millert 2761: ;;
1.11 ! millert 2762: *) echo "$as_me:2762: result: no" >&5
1.9 millert 2763: echo "${ECHO_T}no" >&6
1.1 millert 2764: echo "Ignoring unknown argument to --enable-shell-sets-home: $enableval"
2765: ;;
2766: esac
2767:
2768: else
1.11 ! millert 2769: echo "$as_me:2769: result: no" >&5
1.9 millert 2770: echo "${ECHO_T}no" >&6
2771: fi;
1.1 millert 2772:
1.11 ! millert 2773: echo "$as_me:2773: checking whether to disable 'command not found' messages" >&5
1.9 millert 2774: echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6
1.1 millert 2775: # Check whether --enable-path_info or --disable-path_info was given.
2776: if test "${enable_path_info+set}" = set; then
2777: enableval="$enable_path_info"
2778: case "$enableval" in
1.11 ! millert 2779: yes) echo "$as_me:2779: result: no" >&5
1.9 millert 2780: echo "${ECHO_T}no" >&6
1.1 millert 2781: ;;
1.11 ! millert 2782: no) echo "$as_me:2782: result: yes" >&5
1.9 millert 2783: echo "${ECHO_T}yes" >&6
2784:
2785: cat >>confdefs.h <<\EOF
1.1 millert 2786: #define DONT_LEAK_PATH_INFO 1
2787: EOF
2788:
2789: ;;
1.11 ! millert 2790: *) echo "$as_me:2790: result: no" >&5
1.9 millert 2791: echo "${ECHO_T}no" >&6
1.1 millert 2792: echo "Ignoring unknown argument to --enable-path-info: $enableval"
2793: ;;
2794: esac
2795:
2796: else
1.11 ! millert 2797: echo "$as_me:2797: result: no" >&5
1.9 millert 2798: echo "${ECHO_T}no" >&6
2799: fi;
1.1 millert 2800:
2801: # Extract the first word of "egrep", so it can be a program name with args.
2802: set dummy egrep; ac_word=$2
1.11 ! millert 2803: echo "$as_me:2803: checking for $ac_word" >&5
1.9 millert 2804: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2805: if test "${ac_cv_prog_EGREPPROG+set}" = set; then
2806: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 2807: else
2808: if test -n "$EGREPPROG"; then
2809: ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
2810: else
1.9 millert 2811: ac_save_IFS=$IFS; IFS=$ac_path_separator
2812: ac_dummy="$PATH"
2813: for ac_dir in $ac_dummy; do
2814: IFS=$ac_save_IFS
2815: test -z "$ac_dir" && ac_dir=.
2816: $as_executable_p "$ac_dir/$ac_word" || continue
2817: ac_cv_prog_EGREPPROG="egrep"
1.11 ! millert 2818: echo "$as_me:2818: found $ac_dir/$ac_word" >&5
1.9 millert 2819: break
2820: done
2821:
1.1 millert 2822: fi
2823: fi
1.9 millert 2824: EGREPPROG=$ac_cv_prog_EGREPPROG
1.1 millert 2825: if test -n "$EGREPPROG"; then
1.11 ! millert 2826: echo "$as_me:2826: result: $EGREPPROG" >&5
1.9 millert 2827: echo "${ECHO_T}$EGREPPROG" >&6
1.1 millert 2828: else
1.11 ! millert 2829: echo "$as_me:2829: result: no" >&5
1.9 millert 2830: echo "${ECHO_T}no" >&6
1.1 millert 2831: fi
2832:
2833: if test -z "$EGREPPROG"; then
2834: echo "Sorry, configure requires egrep to run."
2835: exit
2836: fi
2837:
1.9 millert 2838: if test "$with_devel" != "yes"; then
2839: ac_cv_prog_cc_g=no
2840: fi
2841:
2842: ac_ext=c
2843: ac_cpp='$CPP $CPPFLAGS'
2844: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2845: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2846: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2847: if test -n "$ac_tool_prefix"; then
2848: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2849: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.11 ! millert 2850: echo "$as_me:2850: checking for $ac_word" >&5
1.9 millert 2851: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2852: if test "${ac_cv_prog_CC+set}" = set; then
2853: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 2854: else
2855: if test -n "$CC"; then
2856: ac_cv_prog_CC="$CC" # Let the user override the test.
2857: else
1.9 millert 2858: ac_save_IFS=$IFS; IFS=$ac_path_separator
2859: ac_dummy="$PATH"
2860: for ac_dir in $ac_dummy; do
2861: IFS=$ac_save_IFS
2862: test -z "$ac_dir" && ac_dir=.
2863: $as_executable_p "$ac_dir/$ac_word" || continue
2864: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.11 ! millert 2865: echo "$as_me:2865: found $ac_dir/$ac_word" >&5
1.9 millert 2866: break
2867: done
2868:
1.1 millert 2869: fi
2870: fi
1.9 millert 2871: CC=$ac_cv_prog_CC
1.1 millert 2872: if test -n "$CC"; then
1.11 ! millert 2873: echo "$as_me:2873: result: $CC" >&5
1.9 millert 2874: echo "${ECHO_T}$CC" >&6
1.1 millert 2875: else
1.11 ! millert 2876: echo "$as_me:2876: result: no" >&5
1.9 millert 2877: echo "${ECHO_T}no" >&6
2878: fi
2879:
2880: fi
2881: if test -z "$ac_cv_prog_CC"; then
2882: ac_ct_CC=$CC
2883: # Extract the first word of "gcc", so it can be a program name with args.
2884: set dummy gcc; ac_word=$2
1.11 ! millert 2885: echo "$as_me:2885: checking for $ac_word" >&5
1.9 millert 2886: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2887: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2888: echo $ECHO_N "(cached) $ECHO_C" >&6
2889: else
2890: if test -n "$ac_ct_CC"; then
2891: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2892: else
2893: ac_save_IFS=$IFS; IFS=$ac_path_separator
2894: ac_dummy="$PATH"
2895: for ac_dir in $ac_dummy; do
2896: IFS=$ac_save_IFS
2897: test -z "$ac_dir" && ac_dir=.
2898: $as_executable_p "$ac_dir/$ac_word" || continue
2899: ac_cv_prog_ac_ct_CC="gcc"
1.11 ! millert 2900: echo "$as_me:2900: found $ac_dir/$ac_word" >&5
1.9 millert 2901: break
2902: done
2903:
2904: fi
2905: fi
2906: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2907: if test -n "$ac_ct_CC"; then
1.11 ! millert 2908: echo "$as_me:2908: result: $ac_ct_CC" >&5
1.9 millert 2909: echo "${ECHO_T}$ac_ct_CC" >&6
2910: else
1.11 ! millert 2911: echo "$as_me:2911: result: no" >&5
1.9 millert 2912: echo "${ECHO_T}no" >&6
2913: fi
2914:
2915: CC=$ac_ct_CC
2916: else
2917: CC="$ac_cv_prog_CC"
1.1 millert 2918: fi
2919:
2920: if test -z "$CC"; then
1.9 millert 2921: if test -n "$ac_tool_prefix"; then
2922: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2923: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.11 ! millert 2924: echo "$as_me:2924: checking for $ac_word" >&5
1.9 millert 2925: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2926: if test "${ac_cv_prog_CC+set}" = set; then
2927: echo $ECHO_N "(cached) $ECHO_C" >&6
2928: else
2929: if test -n "$CC"; then
2930: ac_cv_prog_CC="$CC" # Let the user override the test.
2931: else
2932: ac_save_IFS=$IFS; IFS=$ac_path_separator
2933: ac_dummy="$PATH"
2934: for ac_dir in $ac_dummy; do
2935: IFS=$ac_save_IFS
2936: test -z "$ac_dir" && ac_dir=.
2937: $as_executable_p "$ac_dir/$ac_word" || continue
2938: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.11 ! millert 2939: echo "$as_me:2939: found $ac_dir/$ac_word" >&5
1.9 millert 2940: break
2941: done
2942:
2943: fi
2944: fi
2945: CC=$ac_cv_prog_CC
2946: if test -n "$CC"; then
1.11 ! millert 2947: echo "$as_me:2947: result: $CC" >&5
1.9 millert 2948: echo "${ECHO_T}$CC" >&6
2949: else
1.11 ! millert 2950: echo "$as_me:2950: result: no" >&5
1.9 millert 2951: echo "${ECHO_T}no" >&6
2952: fi
2953:
2954: fi
2955: if test -z "$ac_cv_prog_CC"; then
2956: ac_ct_CC=$CC
1.1 millert 2957: # Extract the first word of "cc", so it can be a program name with args.
2958: set dummy cc; ac_word=$2
1.11 ! millert 2959: echo "$as_me:2959: checking for $ac_word" >&5
1.9 millert 2960: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2961: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2962: echo $ECHO_N "(cached) $ECHO_C" >&6
2963: else
2964: if test -n "$ac_ct_CC"; then
2965: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2966: else
2967: ac_save_IFS=$IFS; IFS=$ac_path_separator
2968: ac_dummy="$PATH"
2969: for ac_dir in $ac_dummy; do
2970: IFS=$ac_save_IFS
2971: test -z "$ac_dir" && ac_dir=.
2972: $as_executable_p "$ac_dir/$ac_word" || continue
2973: ac_cv_prog_ac_ct_CC="cc"
1.11 ! millert 2974: echo "$as_me:2974: found $ac_dir/$ac_word" >&5
1.9 millert 2975: break
2976: done
2977:
2978: fi
2979: fi
2980: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2981: if test -n "$ac_ct_CC"; then
1.11 ! millert 2982: echo "$as_me:2982: result: $ac_ct_CC" >&5
1.9 millert 2983: echo "${ECHO_T}$ac_ct_CC" >&6
2984: else
1.11 ! millert 2985: echo "$as_me:2985: result: no" >&5
1.9 millert 2986: echo "${ECHO_T}no" >&6
2987: fi
2988:
2989: CC=$ac_ct_CC
2990: else
2991: CC="$ac_cv_prog_CC"
2992: fi
2993:
2994: fi
2995: if test -z "$CC"; then
2996: # Extract the first word of "cc", so it can be a program name with args.
2997: set dummy cc; ac_word=$2
1.11 ! millert 2998: echo "$as_me:2998: checking for $ac_word" >&5
1.9 millert 2999: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3000: if test "${ac_cv_prog_CC+set}" = set; then
3001: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3002: else
3003: if test -n "$CC"; then
3004: ac_cv_prog_CC="$CC" # Let the user override the test.
3005: else
3006: ac_prog_rejected=no
1.9 millert 3007: ac_save_IFS=$IFS; IFS=$ac_path_separator
3008: ac_dummy="$PATH"
3009: for ac_dir in $ac_dummy; do
3010: IFS=$ac_save_IFS
3011: test -z "$ac_dir" && ac_dir=.
3012: $as_executable_p "$ac_dir/$ac_word" || continue
3013: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3014: ac_prog_rejected=yes
3015: continue
3016: fi
3017: ac_cv_prog_CC="cc"
1.11 ! millert 3018: echo "$as_me:3018: found $ac_dir/$ac_word" >&5
1.9 millert 3019: break
3020: done
3021:
1.1 millert 3022: if test $ac_prog_rejected = yes; then
3023: # We found a bogon in the path, so make sure we never use it.
3024: set dummy $ac_cv_prog_CC
3025: shift
1.9 millert 3026: if test $# != 0; then
1.1 millert 3027: # We chose a different compiler from the bogus one.
3028: # However, it has the same basename, so the bogon will be chosen
3029: # first if we set CC to just the basename; use the full file name.
3030: shift
1.9 millert 3031: set dummy "$ac_dir/$ac_word" ${1+"$@"}
1.1 millert 3032: shift
3033: ac_cv_prog_CC="$@"
3034: fi
3035: fi
3036: fi
3037: fi
1.9 millert 3038: CC=$ac_cv_prog_CC
1.1 millert 3039: if test -n "$CC"; then
1.11 ! millert 3040: echo "$as_me:3040: result: $CC" >&5
1.9 millert 3041: echo "${ECHO_T}$CC" >&6
3042: else
1.11 ! millert 3043: echo "$as_me:3043: result: no" >&5
1.9 millert 3044: echo "${ECHO_T}no" >&6
3045: fi
3046:
3047: fi
3048: if test -z "$CC"; then
3049: if test -n "$ac_tool_prefix"; then
3050: for ac_prog in cl
3051: do
3052: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3053: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.11 ! millert 3054: echo "$as_me:3054: checking for $ac_word" >&5
1.9 millert 3055: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3056: if test "${ac_cv_prog_CC+set}" = set; then
3057: echo $ECHO_N "(cached) $ECHO_C" >&6
3058: else
3059: if test -n "$CC"; then
3060: ac_cv_prog_CC="$CC" # Let the user override the test.
3061: else
3062: ac_save_IFS=$IFS; IFS=$ac_path_separator
3063: ac_dummy="$PATH"
3064: for ac_dir in $ac_dummy; do
3065: IFS=$ac_save_IFS
3066: test -z "$ac_dir" && ac_dir=.
3067: $as_executable_p "$ac_dir/$ac_word" || continue
3068: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.11 ! millert 3069: echo "$as_me:3069: found $ac_dir/$ac_word" >&5
1.9 millert 3070: break
3071: done
3072:
3073: fi
3074: fi
3075: CC=$ac_cv_prog_CC
3076: if test -n "$CC"; then
1.11 ! millert 3077: echo "$as_me:3077: result: $CC" >&5
1.9 millert 3078: echo "${ECHO_T}$CC" >&6
3079: else
1.11 ! millert 3080: echo "$as_me:3080: result: no" >&5
1.9 millert 3081: echo "${ECHO_T}no" >&6
3082: fi
3083:
3084: test -n "$CC" && break
3085: done
3086: fi
3087: if test -z "$CC"; then
3088: ac_ct_CC=$CC
3089: for ac_prog in cl
3090: do
3091: # Extract the first word of "$ac_prog", so it can be a program name with args.
3092: set dummy $ac_prog; ac_word=$2
1.11 ! millert 3093: echo "$as_me:3093: checking for $ac_word" >&5
1.9 millert 3094: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3095: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3096: echo $ECHO_N "(cached) $ECHO_C" >&6
3097: else
3098: if test -n "$ac_ct_CC"; then
3099: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3100: else
3101: ac_save_IFS=$IFS; IFS=$ac_path_separator
3102: ac_dummy="$PATH"
3103: for ac_dir in $ac_dummy; do
3104: IFS=$ac_save_IFS
3105: test -z "$ac_dir" && ac_dir=.
3106: $as_executable_p "$ac_dir/$ac_word" || continue
3107: ac_cv_prog_ac_ct_CC="$ac_prog"
1.11 ! millert 3108: echo "$as_me:3108: found $ac_dir/$ac_word" >&5
1.9 millert 3109: break
3110: done
3111:
3112: fi
3113: fi
3114: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3115: if test -n "$ac_ct_CC"; then
1.11 ! millert 3116: echo "$as_me:3116: result: $ac_ct_CC" >&5
1.9 millert 3117: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 millert 3118: else
1.11 ! millert 3119: echo "$as_me:3119: result: no" >&5
1.9 millert 3120: echo "${ECHO_T}no" >&6
3121: fi
3122:
3123: test -n "$ac_ct_CC" && break
3124: done
3125:
3126: CC=$ac_ct_CC
1.1 millert 3127: fi
3128:
3129: fi
3130:
1.11 ! millert 3131: test -z "$CC" && { { echo "$as_me:3131: error: no acceptable cc found in \$PATH" >&5
1.9 millert 3132: echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3133: { (exit 1); exit 1; }; }
3134:
3135: # Provide some information about the compiler.
1.11 ! millert 3136: echo "$as_me:3136:" \
1.9 millert 3137: "checking for C compiler version" >&5
3138: ac_compiler=`set X $ac_compile; echo $2`
1.11 ! millert 3139: { (eval echo "$as_me:3139: \"$ac_compiler --version </dev/null >&5\"") >&5
1.9 millert 3140: (eval $ac_compiler --version </dev/null >&5) 2>&5
3141: ac_status=$?
1.11 ! millert 3142: echo "$as_me:3142: \$? = $ac_status" >&5
1.9 millert 3143: (exit $ac_status); }
1.11 ! millert 3144: { (eval echo "$as_me:3144: \"$ac_compiler -v </dev/null >&5\"") >&5
1.9 millert 3145: (eval $ac_compiler -v </dev/null >&5) 2>&5
3146: ac_status=$?
1.11 ! millert 3147: echo "$as_me:3147: \$? = $ac_status" >&5
1.9 millert 3148: (exit $ac_status); }
1.11 ! millert 3149: { (eval echo "$as_me:3149: \"$ac_compiler -V </dev/null >&5\"") >&5
1.9 millert 3150: (eval $ac_compiler -V </dev/null >&5) 2>&5
3151: ac_status=$?
1.11 ! millert 3152: echo "$as_me:3152: \$? = $ac_status" >&5
1.9 millert 3153: (exit $ac_status); }
3154:
3155: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 3156: #line 3156 "configure"
1.9 millert 3157: #include "confdefs.h"
3158:
3159: int
3160: main ()
3161: {
1.1 millert 3162:
1.9 millert 3163: ;
3164: return 0;
3165: }
3166: _ACEOF
3167: ac_clean_files_save=$ac_clean_files
3168: ac_clean_files="$ac_clean_files a.out a.exe"
3169: # Try to create an executable without -o first, disregard a.out.
3170: # It will help us diagnose broken compilers, and finding out an intuition
3171: # of exeext.
1.11 ! millert 3172: echo "$as_me:3172: checking for C compiler default output" >&5
1.9 millert 3173: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
3174: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.11 ! millert 3175: if { (eval echo "$as_me:3175: \"$ac_link_default\"") >&5
1.9 millert 3176: (eval $ac_link_default) 2>&5
3177: ac_status=$?
1.11 ! millert 3178: echo "$as_me:3178: \$? = $ac_status" >&5
1.9 millert 3179: (exit $ac_status); }; then
3180: # Find the output, starting from the most likely. This scheme is
3181: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3182: # resort.
3183: for ac_file in `ls a.exe conftest.exe 2>/dev/null;
3184: ls a.out conftest 2>/dev/null;
3185: ls a.* conftest.* 2>/dev/null`; do
3186: case $ac_file in
3187: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
3188: a.out ) # We found the default executable, but exeext='' is most
3189: # certainly right.
3190: break;;
3191: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3192: # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
3193: export ac_cv_exeext
3194: break;;
3195: * ) break;;
3196: esac
3197: done
3198: else
3199: echo "$as_me: failed program was:" >&5
3200: cat conftest.$ac_ext >&5
1.11 ! millert 3201: { { echo "$as_me:3201: error: C compiler cannot create executables" >&5
1.9 millert 3202: echo "$as_me: error: C compiler cannot create executables" >&2;}
3203: { (exit 77); exit 77; }; }
3204: fi
3205:
3206: ac_exeext=$ac_cv_exeext
1.11 ! millert 3207: echo "$as_me:3207: result: $ac_file" >&5
1.9 millert 3208: echo "${ECHO_T}$ac_file" >&6
3209:
3210: # Check the compiler produces executables we can run. If not, either
3211: # the compiler is broken, or we cross compile.
1.11 ! millert 3212: echo "$as_me:3212: checking whether the C compiler works" >&5
1.9 millert 3213: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3214: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3215: # If not cross compiling, check that we can run a simple program.
3216: if test "$cross_compiling" != yes; then
3217: if { ac_try='./$ac_file'
1.11 ! millert 3218: { (eval echo "$as_me:3218: \"$ac_try\"") >&5
1.9 millert 3219: (eval $ac_try) 2>&5
3220: ac_status=$?
1.11 ! millert 3221: echo "$as_me:3221: \$? = $ac_status" >&5
1.9 millert 3222: (exit $ac_status); }; }; then
3223: cross_compiling=no
1.1 millert 3224: else
1.9 millert 3225: if test "$cross_compiling" = maybe; then
3226: cross_compiling=yes
3227: else
1.11 ! millert 3228: { { echo "$as_me:3228: error: cannot run C compiled programs.
1.9 millert 3229: If you meant to cross compile, use \`--host'." >&5
3230: echo "$as_me: error: cannot run C compiled programs.
3231: If you meant to cross compile, use \`--host'." >&2;}
3232: { (exit 1); exit 1; }; }
3233: fi
1.1 millert 3234: fi
1.9 millert 3235: fi
1.11 ! millert 3236: echo "$as_me:3236: result: yes" >&5
1.9 millert 3237: echo "${ECHO_T}yes" >&6
3238:
3239: rm -f a.out a.exe conftest$ac_cv_exeext
3240: ac_clean_files=$ac_clean_files_save
3241: # Check the compiler produces executables we can run. If not, either
3242: # the compiler is broken, or we cross compile.
1.11 ! millert 3243: echo "$as_me:3243: checking whether we are cross compiling" >&5
1.9 millert 3244: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1.11 ! millert 3245: echo "$as_me:3245: result: $cross_compiling" >&5
1.9 millert 3246: echo "${ECHO_T}$cross_compiling" >&6
3247:
1.11 ! millert 3248: echo "$as_me:3248: checking for executable suffix" >&5
1.9 millert 3249: echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1.11 ! millert 3250: if { (eval echo "$as_me:3250: \"$ac_link\"") >&5
1.9 millert 3251: (eval $ac_link) 2>&5
3252: ac_status=$?
1.11 ! millert 3253: echo "$as_me:3253: \$? = $ac_status" >&5
1.9 millert 3254: (exit $ac_status); }; then
3255: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3256: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3257: # work properly (i.e., refer to `conftest.exe'), while it won't with
3258: # `rm'.
3259: for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
3260: case $ac_file in
3261: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
3262: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3263: export ac_cv_exeext
3264: break;;
3265: * ) break;;
3266: esac
3267: done
1.1 millert 3268: else
1.11 ! millert 3269: { { echo "$as_me:3269: error: cannot compute EXEEXT: cannot compile and link" >&5
1.9 millert 3270: echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
3271: { (exit 1); exit 1; }; }
1.1 millert 3272: fi
3273:
1.9 millert 3274: rm -f conftest$ac_cv_exeext
1.11 ! millert 3275: echo "$as_me:3275: result: $ac_cv_exeext" >&5
1.9 millert 3276: echo "${ECHO_T}$ac_cv_exeext" >&6
1.1 millert 3277:
1.9 millert 3278: rm -f conftest.$ac_ext
3279: EXEEXT=$ac_cv_exeext
3280: ac_exeext=$EXEEXT
1.11 ! millert 3281: echo "$as_me:3281: checking for object suffix" >&5
1.9 millert 3282: echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
3283: if test "${ac_cv_objext+set}" = set; then
3284: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3285: else
1.9 millert 3286: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 3287: #line 3287 "configure"
1.9 millert 3288: #include "confdefs.h"
3289:
3290: int
3291: main ()
3292: {
3293:
3294: ;
3295: return 0;
3296: }
3297: _ACEOF
3298: rm -f conftest.o conftest.obj
1.11 ! millert 3299: if { (eval echo "$as_me:3299: \"$ac_compile\"") >&5
1.9 millert 3300: (eval $ac_compile) 2>&5
3301: ac_status=$?
1.11 ! millert 3302: echo "$as_me:3302: \$? = $ac_status" >&5
1.9 millert 3303: (exit $ac_status); }; then
3304: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3305: case $ac_file in
3306: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
3307: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3308: break;;
3309: esac
3310: done
1.1 millert 3311: else
1.9 millert 3312: echo "$as_me: failed program was:" >&5
3313: cat conftest.$ac_ext >&5
1.11 ! millert 3314: { { echo "$as_me:3314: error: cannot compute OBJEXT: cannot compile" >&5
1.9 millert 3315: echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
3316: { (exit 1); exit 1; }; }
1.1 millert 3317: fi
1.9 millert 3318:
3319: rm -f conftest.$ac_cv_objext conftest.$ac_ext
1.1 millert 3320: fi
1.11 ! millert 3321: echo "$as_me:3321: result: $ac_cv_objext" >&5
1.9 millert 3322: echo "${ECHO_T}$ac_cv_objext" >&6
3323: OBJEXT=$ac_cv_objext
3324: ac_objext=$OBJEXT
1.11 ! millert 3325: echo "$as_me:3325: checking whether we are using the GNU C compiler" >&5
1.9 millert 3326: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3327: if test "${ac_cv_c_compiler_gnu+set}" = set; then
3328: echo $ECHO_N "(cached) $ECHO_C" >&6
3329: else
3330: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 3331: #line 3331 "configure"
1.9 millert 3332: #include "confdefs.h"
1.1 millert 3333:
1.9 millert 3334: int
3335: main ()
3336: {
3337: #ifndef __GNUC__
3338: choke me
3339: #endif
1.1 millert 3340:
1.9 millert 3341: ;
3342: return 0;
3343: }
3344: _ACEOF
3345: rm -f conftest.$ac_objext
1.11 ! millert 3346: if { (eval echo "$as_me:3346: \"$ac_compile\"") >&5
1.9 millert 3347: (eval $ac_compile) 2>&5
3348: ac_status=$?
1.11 ! millert 3349: echo "$as_me:3349: \$? = $ac_status" >&5
1.9 millert 3350: (exit $ac_status); } &&
3351: { ac_try='test -s conftest.$ac_objext'
1.11 ! millert 3352: { (eval echo "$as_me:3352: \"$ac_try\"") >&5
1.9 millert 3353: (eval $ac_try) 2>&5
3354: ac_status=$?
1.11 ! millert 3355: echo "$as_me:3355: \$? = $ac_status" >&5
1.9 millert 3356: (exit $ac_status); }; }; then
3357: ac_compiler_gnu=yes
3358: else
3359: echo "$as_me: failed program was:" >&5
3360: cat conftest.$ac_ext >&5
3361: ac_compiler_gnu=no
3362: fi
3363: rm -f conftest.$ac_objext conftest.$ac_ext
3364: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3365:
3366: fi
1.11 ! millert 3367: echo "$as_me:3367: result: $ac_cv_c_compiler_gnu" >&5
1.9 millert 3368: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3369: GCC=`test $ac_compiler_gnu = yes && echo yes`
3370: ac_test_CFLAGS=${CFLAGS+set}
3371: ac_save_CFLAGS=$CFLAGS
3372: CFLAGS="-g"
1.11 ! millert 3373: echo "$as_me:3373: checking whether $CC accepts -g" >&5
1.9 millert 3374: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3375: if test "${ac_cv_prog_cc_g+set}" = set; then
3376: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3377: else
1.9 millert 3378: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 3379: #line 3379 "configure"
1.9 millert 3380: #include "confdefs.h"
3381:
3382: int
3383: main ()
3384: {
3385:
3386: ;
3387: return 0;
3388: }
3389: _ACEOF
3390: rm -f conftest.$ac_objext
1.11 ! millert 3391: if { (eval echo "$as_me:3391: \"$ac_compile\"") >&5
1.9 millert 3392: (eval $ac_compile) 2>&5
3393: ac_status=$?
1.11 ! millert 3394: echo "$as_me:3394: \$? = $ac_status" >&5
1.9 millert 3395: (exit $ac_status); } &&
3396: { ac_try='test -s conftest.$ac_objext'
1.11 ! millert 3397: { (eval echo "$as_me:3397: \"$ac_try\"") >&5
1.9 millert 3398: (eval $ac_try) 2>&5
3399: ac_status=$?
1.11 ! millert 3400: echo "$as_me:3400: \$? = $ac_status" >&5
1.9 millert 3401: (exit $ac_status); }; }; then
1.1 millert 3402: ac_cv_prog_cc_g=yes
3403: else
1.9 millert 3404: echo "$as_me: failed program was:" >&5
3405: cat conftest.$ac_ext >&5
3406: ac_cv_prog_cc_g=no
3407: fi
3408: rm -f conftest.$ac_objext conftest.$ac_ext
3409: fi
1.11 ! millert 3410: echo "$as_me:3410: result: $ac_cv_prog_cc_g" >&5
1.9 millert 3411: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3412: if test "$ac_test_CFLAGS" = set; then
3413: CFLAGS=$ac_save_CFLAGS
3414: elif test $ac_cv_prog_cc_g = yes; then
3415: if test "$GCC" = yes; then
3416: CFLAGS="-g -O2"
3417: else
3418: CFLAGS="-g"
3419: fi
3420: else
3421: if test "$GCC" = yes; then
3422: CFLAGS="-O2"
3423: else
3424: CFLAGS=
3425: fi
3426: fi
3427: # Some people use a C++ compiler to compile C. Since we use `exit',
3428: # in C++ we need to declare it. In case someone uses the same compiler
3429: # for both compiling C and C++ we need to have the C++ compiler decide
3430: # the declaration of exit, since it's the most demanding environment.
3431: cat >conftest.$ac_ext <<_ACEOF
3432: #ifndef __cplusplus
3433: choke me
3434: #endif
3435: _ACEOF
3436: rm -f conftest.$ac_objext
1.11 ! millert 3437: if { (eval echo "$as_me:3437: \"$ac_compile\"") >&5
1.9 millert 3438: (eval $ac_compile) 2>&5
3439: ac_status=$?
1.11 ! millert 3440: echo "$as_me:3440: \$? = $ac_status" >&5
1.9 millert 3441: (exit $ac_status); } &&
3442: { ac_try='test -s conftest.$ac_objext'
1.11 ! millert 3443: { (eval echo "$as_me:3443: \"$ac_try\"") >&5
1.9 millert 3444: (eval $ac_try) 2>&5
3445: ac_status=$?
1.11 ! millert 3446: echo "$as_me:3446: \$? = $ac_status" >&5
1.9 millert 3447: (exit $ac_status); }; }; then
3448: for ac_declaration in \
3449: ''\
3450: '#include <stdlib.h>' \
3451: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3452: 'extern "C" void std::exit (int); using std::exit;' \
3453: 'extern "C" void exit (int) throw ();' \
3454: 'extern "C" void exit (int);' \
3455: 'void exit (int);'
3456: do
3457: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 3458: #line 3458 "configure"
1.9 millert 3459: #include "confdefs.h"
3460: #include <stdlib.h>
3461: $ac_declaration
3462: int
3463: main ()
3464: {
3465: exit (42);
3466: ;
3467: return 0;
3468: }
3469: _ACEOF
3470: rm -f conftest.$ac_objext
1.11 ! millert 3471: if { (eval echo "$as_me:3471: \"$ac_compile\"") >&5
1.9 millert 3472: (eval $ac_compile) 2>&5
3473: ac_status=$?
1.11 ! millert 3474: echo "$as_me:3474: \$? = $ac_status" >&5
1.9 millert 3475: (exit $ac_status); } &&
3476: { ac_try='test -s conftest.$ac_objext'
1.11 ! millert 3477: { (eval echo "$as_me:3477: \"$ac_try\"") >&5
1.9 millert 3478: (eval $ac_try) 2>&5
3479: ac_status=$?
1.11 ! millert 3480: echo "$as_me:3480: \$? = $ac_status" >&5
1.9 millert 3481: (exit $ac_status); }; }; then
3482: :
3483: else
3484: echo "$as_me: failed program was:" >&5
3485: cat conftest.$ac_ext >&5
3486: continue
3487: fi
3488: rm -f conftest.$ac_objext conftest.$ac_ext
3489: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 3490: #line 3490 "configure"
1.9 millert 3491: #include "confdefs.h"
3492: $ac_declaration
3493: int
3494: main ()
3495: {
3496: exit (42);
3497: ;
3498: return 0;
3499: }
3500: _ACEOF
3501: rm -f conftest.$ac_objext
1.11 ! millert 3502: if { (eval echo "$as_me:3502: \"$ac_compile\"") >&5
1.9 millert 3503: (eval $ac_compile) 2>&5
3504: ac_status=$?
1.11 ! millert 3505: echo "$as_me:3505: \$? = $ac_status" >&5
1.9 millert 3506: (exit $ac_status); } &&
3507: { ac_try='test -s conftest.$ac_objext'
1.11 ! millert 3508: { (eval echo "$as_me:3508: \"$ac_try\"") >&5
1.9 millert 3509: (eval $ac_try) 2>&5
3510: ac_status=$?
1.11 ! millert 3511: echo "$as_me:3511: \$? = $ac_status" >&5
1.9 millert 3512: (exit $ac_status); }; }; then
3513: break
3514: else
3515: echo "$as_me: failed program was:" >&5
3516: cat conftest.$ac_ext >&5
1.1 millert 3517: fi
1.9 millert 3518: rm -f conftest.$ac_objext conftest.$ac_ext
3519: done
1.1 millert 3520: rm -f conftest*
1.9 millert 3521: if test -n "$ac_declaration"; then
3522: echo '#ifdef __cplusplus' >>confdefs.h
3523: echo $ac_declaration >>confdefs.h
3524: echo '#endif' >>confdefs.h
3525: fi
1.1 millert 3526:
1.9 millert 3527: else
3528: echo "$as_me: failed program was:" >&5
3529: cat conftest.$ac_ext >&5
1.1 millert 3530: fi
1.9 millert 3531: rm -f conftest.$ac_objext conftest.$ac_ext
3532: ac_ext=c
3533: ac_cpp='$CPP $CPPFLAGS'
3534: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 millert 3537:
1.11 ! millert 3538: echo "$as_me:3538: checking for POSIXized ISC" >&5
1.9 millert 3539: echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
3540: if test -d /etc/conf/kconfig.d &&
3541: grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3542: then
1.11 ! millert 3543: echo "$as_me:3543: result: yes" >&5
1.9 millert 3544: echo "${ECHO_T}yes" >&6
3545: ISC=yes # If later tests want to check for ISC.
3546:
3547: cat >>confdefs.h <<\EOF
3548: #define _POSIX_SOURCE 1
3549: EOF
3550:
3551: if test "$GCC" = yes; then
3552: CC="$CC -posix"
1.1 millert 3553: else
1.9 millert 3554: CC="$CC -Xp"
1.1 millert 3555: fi
3556: else
1.11 ! millert 3557: echo "$as_me:3557: result: no" >&5
1.9 millert 3558: echo "${ECHO_T}no" >&6
3559: ISC=
1.1 millert 3560: fi
3561:
3562: ac_cv_prog_cc_cross="no"
3563: cross_compiling="no"
1.9 millert 3564:
1.11 ! millert 3565: echo "$as_me:3565: checking for $CC option to accept ANSI C" >&5
1.9 millert 3566: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3567: if test "${ac_cv_prog_cc_stdc+set}" = set; then
3568: echo $ECHO_N "(cached) $ECHO_C" >&6
3569: else
3570: ac_cv_prog_cc_stdc=no
3571: ac_save_CC=$CC
3572: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 3573: #line 3573 "configure"
1.9 millert 3574: #include "confdefs.h"
3575: #include <stdarg.h>
3576: #include <stdio.h>
3577: #include <sys/types.h>
3578: #include <sys/stat.h>
3579: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3580: struct buf { int x; };
3581: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3582: static char *e (p, i)
3583: char **p;
3584: int i;
3585: {
3586: return p[i];
3587: }
3588: static char *f (char * (*g) (char **, int), char **p, ...)
3589: {
3590: char *s;
3591: va_list v;
3592: va_start (v,p);
3593: s = g (p, va_arg (v,int));
3594: va_end (v);
3595: return s;
3596: }
3597: int test (int i, double x);
3598: struct s1 {int (*f) (int a);};
3599: struct s2 {int (*f) (double a);};
3600: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3601: int argc;
3602: char **argv;
3603: int
3604: main ()
3605: {
3606: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3607: ;
3608: return 0;
3609: }
3610: _ACEOF
3611: # Don't try gcc -ansi; that turns off useful extensions and
3612: # breaks some systems' header files.
3613: # AIX -qlanglvl=ansi
3614: # Ultrix and OSF/1 -std1
3615: # HP-UX 10.20 and later -Ae
3616: # HP-UX older versions -Aa -D_HPUX_SOURCE
3617: # SVR4 -Xc -D__EXTENSIONS__
3618: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3619: do
3620: CC="$ac_save_CC $ac_arg"
3621: rm -f conftest.$ac_objext
1.11 ! millert 3622: if { (eval echo "$as_me:3622: \"$ac_compile\"") >&5
1.9 millert 3623: (eval $ac_compile) 2>&5
3624: ac_status=$?
1.11 ! millert 3625: echo "$as_me:3625: \$? = $ac_status" >&5
1.9 millert 3626: (exit $ac_status); } &&
3627: { ac_try='test -s conftest.$ac_objext'
1.11 ! millert 3628: { (eval echo "$as_me:3628: \"$ac_try\"") >&5
1.9 millert 3629: (eval $ac_try) 2>&5
3630: ac_status=$?
1.11 ! millert 3631: echo "$as_me:3631: \$? = $ac_status" >&5
1.9 millert 3632: (exit $ac_status); }; }; then
3633: ac_cv_prog_cc_stdc=$ac_arg
3634: break
3635: else
3636: echo "$as_me: failed program was:" >&5
3637: cat conftest.$ac_ext >&5
3638: fi
3639: rm -f conftest.$ac_objext
3640: done
3641: rm -f conftest.$ac_ext conftest.$ac_objext
3642: CC=$ac_save_CC
3643:
3644: fi
3645:
3646: case "x$ac_cv_prog_cc_stdc" in
3647: x|xno)
1.11 ! millert 3648: echo "$as_me:3648: result: none needed" >&5
1.9 millert 3649: echo "${ECHO_T}none needed" >&6 ;;
3650: *)
1.11 ! millert 3651: echo "$as_me:3651: result: $ac_cv_prog_cc_stdc" >&5
1.9 millert 3652: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3653: CC="$CC $ac_cv_prog_cc_stdc" ;;
3654: esac
3655:
3656: ac_cv_prog_cc_cross="no"
3657: cross_compiling="no"
3658: ac_ext=c
3659: ac_cpp='$CPP $CPPFLAGS'
3660: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.11 ! millert 3663: echo "$as_me:3663: checking how to run the C preprocessor" >&5
1.9 millert 3664: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1.1 millert 3665: # On Suns, sometimes $CPP names a directory.
3666: if test -n "$CPP" && test -d "$CPP"; then
3667: CPP=
3668: fi
3669: if test -z "$CPP"; then
1.9 millert 3670: if test "${ac_cv_prog_CPP+set}" = set; then
3671: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3672: else
1.9 millert 3673: # Double quotes because CPP needs to be expanded
3674: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3675: do
3676: ac_preproc_ok=false
3677: for ac_c_preproc_warn_flag in '' yes
3678: do
3679: # Use a header file that comes with gcc, so configuring glibc
3680: # with a fresh cross-compiler works.
1.1 millert 3681: # On the NeXT, cc -E runs the code through the compiler's parser,
1.9 millert 3682: # not just through cpp. "Syntax error" is here to catch this case.
3683: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 3684: #line 3684 "configure"
1.1 millert 3685: #include "confdefs.h"
3686: #include <assert.h>
1.9 millert 3687: Syntax error
3688: _ACEOF
1.11 ! millert 3689: if { (eval echo "$as_me:3689: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 3690: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3691: ac_status=$?
3692: egrep -v '^ *\+' conftest.er1 >conftest.err
3693: rm -f conftest.er1
3694: cat conftest.err >&5
1.11 ! millert 3695: echo "$as_me:3695: \$? = $ac_status" >&5
1.9 millert 3696: (exit $ac_status); } >/dev/null; then
3697: if test -s conftest.err; then
3698: ac_cpp_err=$ac_c_preproc_warn_flag
3699: else
3700: ac_cpp_err=
3701: fi
3702: else
3703: ac_cpp_err=yes
3704: fi
3705: if test -z "$ac_cpp_err"; then
1.1 millert 3706: :
3707: else
1.9 millert 3708: echo "$as_me: failed program was:" >&5
1.1 millert 3709: cat conftest.$ac_ext >&5
1.9 millert 3710: # Broken: fails on valid input.
3711: continue
3712: fi
3713: rm -f conftest.err conftest.$ac_ext
3714:
3715: # OK, works on sane cases. Now check whether non-existent headers
3716: # can be detected and how.
3717: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 3718: #line 3718 "configure"
1.9 millert 3719: #include "confdefs.h"
3720: #include <ac_nonexistent.h>
3721: _ACEOF
1.11 ! millert 3722: if { (eval echo "$as_me:3722: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 3723: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3724: ac_status=$?
3725: egrep -v '^ *\+' conftest.er1 >conftest.err
3726: rm -f conftest.er1
3727: cat conftest.err >&5
1.11 ! millert 3728: echo "$as_me:3728: \$? = $ac_status" >&5
1.9 millert 3729: (exit $ac_status); } >/dev/null; then
3730: if test -s conftest.err; then
3731: ac_cpp_err=$ac_c_preproc_warn_flag
3732: else
3733: ac_cpp_err=
3734: fi
3735: else
3736: ac_cpp_err=yes
3737: fi
3738: if test -z "$ac_cpp_err"; then
3739: # Broken: success on invalid input.
3740: continue
3741: else
3742: echo "$as_me: failed program was:" >&5
3743: cat conftest.$ac_ext >&5
3744: # Passes both tests.
3745: ac_preproc_ok=:
3746: break
3747: fi
3748: rm -f conftest.err conftest.$ac_ext
3749:
3750: done
3751: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3752: rm -f conftest.err conftest.$ac_ext
3753: if $ac_preproc_ok; then
3754: break
3755: fi
3756:
3757: done
3758: ac_cv_prog_CPP=$CPP
3759:
3760: fi
3761: CPP=$ac_cv_prog_CPP
3762: else
3763: ac_cv_prog_CPP=$CPP
3764: fi
1.11 ! millert 3765: echo "$as_me:3765: result: $CPP" >&5
1.9 millert 3766: echo "${ECHO_T}$CPP" >&6
3767: ac_preproc_ok=false
3768: for ac_c_preproc_warn_flag in '' yes
3769: do
3770: # Use a header file that comes with gcc, so configuring glibc
3771: # with a fresh cross-compiler works.
3772: # On the NeXT, cc -E runs the code through the compiler's parser,
3773: # not just through cpp. "Syntax error" is here to catch this case.
3774: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 3775: #line 3775 "configure"
1.1 millert 3776: #include "confdefs.h"
3777: #include <assert.h>
1.9 millert 3778: Syntax error
3779: _ACEOF
1.11 ! millert 3780: if { (eval echo "$as_me:3780: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 3781: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3782: ac_status=$?
3783: egrep -v '^ *\+' conftest.er1 >conftest.err
3784: rm -f conftest.er1
3785: cat conftest.err >&5
1.11 ! millert 3786: echo "$as_me:3786: \$? = $ac_status" >&5
1.9 millert 3787: (exit $ac_status); } >/dev/null; then
3788: if test -s conftest.err; then
3789: ac_cpp_err=$ac_c_preproc_warn_flag
3790: else
3791: ac_cpp_err=
3792: fi
3793: else
3794: ac_cpp_err=yes
3795: fi
3796: if test -z "$ac_cpp_err"; then
1.1 millert 3797: :
3798: else
1.9 millert 3799: echo "$as_me: failed program was:" >&5
1.1 millert 3800: cat conftest.$ac_ext >&5
1.9 millert 3801: # Broken: fails on valid input.
3802: continue
1.1 millert 3803: fi
1.9 millert 3804: rm -f conftest.err conftest.$ac_ext
3805:
3806: # OK, works on sane cases. Now check whether non-existent headers
3807: # can be detected and how.
3808: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 3809: #line 3809 "configure"
1.9 millert 3810: #include "confdefs.h"
3811: #include <ac_nonexistent.h>
3812: _ACEOF
1.11 ! millert 3813: if { (eval echo "$as_me:3813: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 3814: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3815: ac_status=$?
3816: egrep -v '^ *\+' conftest.er1 >conftest.err
3817: rm -f conftest.er1
3818: cat conftest.err >&5
1.11 ! millert 3819: echo "$as_me:3819: \$? = $ac_status" >&5
1.9 millert 3820: (exit $ac_status); } >/dev/null; then
3821: if test -s conftest.err; then
3822: ac_cpp_err=$ac_c_preproc_warn_flag
3823: else
3824: ac_cpp_err=
3825: fi
3826: else
3827: ac_cpp_err=yes
1.1 millert 3828: fi
1.9 millert 3829: if test -z "$ac_cpp_err"; then
3830: # Broken: success on invalid input.
3831: continue
1.1 millert 3832: else
1.9 millert 3833: echo "$as_me: failed program was:" >&5
3834: cat conftest.$ac_ext >&5
3835: # Passes both tests.
3836: ac_preproc_ok=:
3837: break
1.1 millert 3838: fi
1.9 millert 3839: rm -f conftest.err conftest.$ac_ext
1.1 millert 3840:
1.9 millert 3841: done
3842: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3843: rm -f conftest.err conftest.$ac_ext
3844: if $ac_preproc_ok; then
3845: :
1.1 millert 3846: else
1.11 ! millert 3847: { { echo "$as_me:3847: error: C preprocessor \"$CPP\" fails sanity check" >&5
1.9 millert 3848: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3849: { (exit 1); exit 1; }; }
1.1 millert 3850: fi
3851:
1.9 millert 3852: ac_ext=c
3853: ac_cpp='$CPP $CPPFLAGS'
3854: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 millert 3857:
3858: if test "$with_devel" = "yes" -a -n "$GCC"; then
3859: CFLAGS="${CFLAGS} -Wall"
3860: fi
3861:
3862: # Extract the first word of "uname", so it can be a program name with args.
3863: set dummy uname; ac_word=$2
1.11 ! millert 3864: echo "$as_me:3864: checking for $ac_word" >&5
1.9 millert 3865: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866: if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
3867: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3868: else
3869: if test -n "$UNAMEPROG"; then
3870: ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
3871: else
1.9 millert 3872: ac_save_IFS=$IFS; IFS=$ac_path_separator
3873: ac_dummy="$PATH"
3874: for ac_dir in $ac_dummy; do
3875: IFS=$ac_save_IFS
3876: test -z "$ac_dir" && ac_dir=.
3877: $as_executable_p "$ac_dir/$ac_word" || continue
3878: ac_cv_prog_UNAMEPROG="uname"
1.11 ! millert 3879: echo "$as_me:3879: found $ac_dir/$ac_word" >&5
1.9 millert 3880: break
3881: done
3882:
1.1 millert 3883: fi
3884: fi
1.9 millert 3885: UNAMEPROG=$ac_cv_prog_UNAMEPROG
1.1 millert 3886: if test -n "$UNAMEPROG"; then
1.11 ! millert 3887: echo "$as_me:3887: result: $UNAMEPROG" >&5
1.9 millert 3888: echo "${ECHO_T}$UNAMEPROG" >&6
1.1 millert 3889: else
1.11 ! millert 3890: echo "$as_me:3890: result: no" >&5
1.9 millert 3891: echo "${ECHO_T}no" >&6
1.1 millert 3892: fi
3893:
3894: # Extract the first word of "tr", so it can be a program name with args.
3895: set dummy tr; ac_word=$2
1.11 ! millert 3896: echo "$as_me:3896: checking for $ac_word" >&5
1.9 millert 3897: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3898: if test "${ac_cv_prog_TRPROG+set}" = set; then
3899: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3900: else
3901: if test -n "$TRPROG"; then
3902: ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
3903: else
1.9 millert 3904: ac_save_IFS=$IFS; IFS=$ac_path_separator
3905: ac_dummy="$PATH"
3906: for ac_dir in $ac_dummy; do
3907: IFS=$ac_save_IFS
3908: test -z "$ac_dir" && ac_dir=.
3909: $as_executable_p "$ac_dir/$ac_word" || continue
3910: ac_cv_prog_TRPROG="tr"
1.11 ! millert 3911: echo "$as_me:3911: found $ac_dir/$ac_word" >&5
1.9 millert 3912: break
3913: done
3914:
1.1 millert 3915: fi
3916: fi
1.9 millert 3917: TRPROG=$ac_cv_prog_TRPROG
1.1 millert 3918: if test -n "$TRPROG"; then
1.11 ! millert 3919: echo "$as_me:3919: result: $TRPROG" >&5
1.9 millert 3920: echo "${ECHO_T}$TRPROG" >&6
1.1 millert 3921: else
1.11 ! millert 3922: echo "$as_me:3922: result: no" >&5
1.9 millert 3923: echo "${ECHO_T}no" >&6
1.1 millert 3924: fi
3925:
3926: # Extract the first word of "sed", so it can be a program name with args.
3927: set dummy sed; ac_word=$2
1.11 ! millert 3928: echo "$as_me:3928: checking for $ac_word" >&5
1.9 millert 3929: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3930: if test "${ac_cv_prog_SEDPROG+set}" = set; then
3931: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3932: else
3933: if test -n "$SEDPROG"; then
3934: ac_cv_prog_SEDPROG="$SEDPROG" # Let the user override the test.
3935: else
1.9 millert 3936: ac_save_IFS=$IFS; IFS=$ac_path_separator
3937: ac_dummy="$PATH"
3938: for ac_dir in $ac_dummy; do
3939: IFS=$ac_save_IFS
3940: test -z "$ac_dir" && ac_dir=.
3941: $as_executable_p "$ac_dir/$ac_word" || continue
3942: ac_cv_prog_SEDPROG="sed"
1.11 ! millert 3943: echo "$as_me:3943: found $ac_dir/$ac_word" >&5
1.9 millert 3944: break
3945: done
3946:
1.1 millert 3947: fi
3948: fi
1.9 millert 3949: SEDPROG=$ac_cv_prog_SEDPROG
1.1 millert 3950: if test -n "$SEDPROG"; then
1.11 ! millert 3951: echo "$as_me:3951: result: $SEDPROG" >&5
1.9 millert 3952: echo "${ECHO_T}$SEDPROG" >&6
1.1 millert 3953: else
1.11 ! millert 3954: echo "$as_me:3954: result: no" >&5
1.9 millert 3955: echo "${ECHO_T}no" >&6
1.1 millert 3956: fi
3957:
3958: # Extract the first word of "nroff", so it can be a program name with args.
3959: set dummy nroff; ac_word=$2
1.11 ! millert 3960: echo "$as_me:3960: checking for $ac_word" >&5
1.9 millert 3961: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3962: if test "${ac_cv_prog_NROFFPROG+set}" = set; then
3963: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3964: else
3965: if test -n "$NROFFPROG"; then
3966: ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
3967: else
1.9 millert 3968: ac_save_IFS=$IFS; IFS=$ac_path_separator
3969: ac_dummy="$PATH"
3970: for ac_dir in $ac_dummy; do
3971: IFS=$ac_save_IFS
3972: test -z "$ac_dir" && ac_dir=.
3973: $as_executable_p "$ac_dir/$ac_word" || continue
3974: ac_cv_prog_NROFFPROG="nroff"
1.11 ! millert 3975: echo "$as_me:3975: found $ac_dir/$ac_word" >&5
1.9 millert 3976: break
3977: done
3978:
1.1 millert 3979: fi
3980: fi
1.9 millert 3981: NROFFPROG=$ac_cv_prog_NROFFPROG
1.1 millert 3982: if test -n "$NROFFPROG"; then
1.11 ! millert 3983: echo "$as_me:3983: result: $NROFFPROG" >&5
1.9 millert 3984: echo "${ECHO_T}$NROFFPROG" >&6
1.1 millert 3985: else
1.11 ! millert 3986: echo "$as_me:3986: result: no" >&5
1.9 millert 3987: echo "${ECHO_T}no" >&6
1.1 millert 3988: fi
3989:
3990: if test -z "$NROFFPROG"; then
3991: MANTYPE="cat"
1.6 millert 3992: mansrcdir='$(srcdir)'
1.1 millert 3993: fi
3994:
3995: ac_aux_dir=
1.9 millert 3996: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1.1 millert 3997: if test -f $ac_dir/install-sh; then
3998: ac_aux_dir=$ac_dir
3999: ac_install_sh="$ac_aux_dir/install-sh -c"
4000: break
4001: elif test -f $ac_dir/install.sh; then
4002: ac_aux_dir=$ac_dir
4003: ac_install_sh="$ac_aux_dir/install.sh -c"
4004: break
1.9 millert 4005: elif test -f $ac_dir/shtool; then
4006: ac_aux_dir=$ac_dir
4007: ac_install_sh="$ac_aux_dir/shtool install -c"
4008: break
1.1 millert 4009: fi
4010: done
4011: if test -z "$ac_aux_dir"; then
1.11 ! millert 4012: { { echo "$as_me:4012: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1.9 millert 4013: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
4014: { (exit 1); exit 1; }; }
4015: fi
4016: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
4017: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
4018: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 millert 4019:
4020: # Make sure we can run config.sub.
1.9 millert 4021: $ac_config_sub sun4 >/dev/null 2>&1 ||
1.11 ! millert 4022: { { echo "$as_me:4022: error: cannot run $ac_config_sub" >&5
1.9 millert 4023: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4024: { (exit 1); exit 1; }; }
4025:
1.11 ! millert 4026: echo "$as_me:4026: checking build system type" >&5
1.9 millert 4027: echo $ECHO_N "checking build system type... $ECHO_C" >&6
4028: if test "${ac_cv_build+set}" = set; then
4029: echo $ECHO_N "(cached) $ECHO_C" >&6
4030: else
4031: ac_cv_build_alias=$build_alias
4032: test -z "$ac_cv_build_alias" &&
4033: ac_cv_build_alias=`$ac_config_guess`
4034: test -z "$ac_cv_build_alias" &&
1.11 ! millert 4035: { { echo "$as_me:4035: error: cannot guess build type; you must specify one" >&5
1.9 millert 4036: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4037: { (exit 1); exit 1; }; }
4038: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1.11 ! millert 4039: { { echo "$as_me:4039: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1.9 millert 4040: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
4041: { (exit 1); exit 1; }; }
4042:
4043: fi
1.11 ! millert 4044: echo "$as_me:4044: result: $ac_cv_build" >&5
1.9 millert 4045: echo "${ECHO_T}$ac_cv_build" >&6
4046: build=$ac_cv_build
4047: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4048: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4049: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4050:
1.11 ! millert 4051: echo "$as_me:4051: checking host system type" >&5
1.9 millert 4052: echo $ECHO_N "checking host system type... $ECHO_C" >&6
4053: if test "${ac_cv_host+set}" = set; then
4054: echo $ECHO_N "(cached) $ECHO_C" >&6
4055: else
4056: ac_cv_host_alias=$host_alias
4057: test -z "$ac_cv_host_alias" &&
4058: ac_cv_host_alias=$ac_cv_build_alias
4059: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1.11 ! millert 4060: { { echo "$as_me:4060: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1.9 millert 4061: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4062: { (exit 1); exit 1; }; }
4063:
4064: fi
1.11 ! millert 4065: echo "$as_me:4065: result: $ac_cv_host" >&5
1.9 millert 4066: echo "${ECHO_T}$ac_cv_host" >&6
4067: host=$ac_cv_host
4068: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4069: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4070: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1 millert 4071:
4072: if test -n "$sudo_cv_prev_host"; then
4073: if test "$sudo_cv_prev_host" != "$host"; then
4074: echo ""
4075: echo "Fatal Error: config.cache exists from another platform!"
4076: echo "Please remove it and re-run configure."
4077: echo ""
4078: exit 1
4079: else
1.11 ! millert 4080: echo "$as_me:4080: checking previous host type" >&5
1.9 millert 4081: echo $ECHO_N "checking previous host type... $ECHO_C" >&6
4082: if test "${sudo_cv_prev_host+set}" = set; then
4083: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4084: else
4085: sudo_cv_prev_host="$host"
4086: fi
4087:
4088: echo $sudo_cv_prev_host
4089: fi
4090: else
4091: # this will produce no output since there is no cached value
1.9 millert 4092: if test "${sudo_cv_prev_host+set}" = set; then
4093: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4094: else
4095: sudo_cv_prev_host="$host"
4096: fi
4097:
4098: fi
4099:
4100: if test -n "$host_os"; then
4101: OS=`echo $host_os | sed 's/[0-9].*//'`
4102: OSREV=`echo $host_os | sed 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/'`
4103: else
4104: OS="unknown"
4105: OSREV=0
4106: fi
4107:
4108: case "$host" in
4109: *-*-sunos4*)
4110: # getcwd(3) opens a pipe to getpwd(1)!?!
4111: BROKEN_GETCWD=1
4112:
4113: # system headers lack prototypes but gcc helps...
4114: if test -n "$GCC"; then
4115: CPPFLAGS="${CPPFLAGS} -D__USE_FIXED_PROTOTYPES__"
4116: fi
4117:
4118: # check for password adjunct functions (shadow passwords)
4119: if test "$CHECKSHADOW" = "true"; then
4120:
1.9 millert 4121: for ac_func in getpwanam issecure
1.1 millert 4122: do
1.9 millert 4123: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.11 ! millert 4124: echo "$as_me:4124: checking for $ac_func" >&5
1.9 millert 4125: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4126: if eval "test \"\${$as_ac_var+set}\" = set"; then
4127: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4128: else
1.9 millert 4129: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 4130: #line 4130 "configure"
1.1 millert 4131: #include "confdefs.h"
4132: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 4133: which can conflict with char $ac_func (); below. */
1.1 millert 4134: #include <assert.h>
4135: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 4136: #ifdef __cplusplus
4137: extern "C"
4138: #endif
1.1 millert 4139: /* We use char because int might match the return type of a gcc2
1.9 millert 4140: builtin and then its argument prototype would still apply. */
4141: char $ac_func ();
4142: char (*f) ();
1.1 millert 4143:
1.9 millert 4144: int
4145: main ()
4146: {
1.1 millert 4147: /* The GNU C library defines this for functions which it implements
4148: to always fail with ENOSYS. Some functions are actually named
4149: something starting with __ and the normal name is an alias. */
4150: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4151: choke me
4152: #else
1.9 millert 4153: f = $ac_func;
1.1 millert 4154: #endif
4155:
1.9 millert 4156: ;
4157: return 0;
4158: }
4159: _ACEOF
4160: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 4161: if { (eval echo "$as_me:4161: \"$ac_link\"") >&5
1.9 millert 4162: (eval $ac_link) 2>&5
4163: ac_status=$?
1.11 ! millert 4164: echo "$as_me:4164: \$? = $ac_status" >&5
1.9 millert 4165: (exit $ac_status); } &&
4166: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 4167: { (eval echo "$as_me:4167: \"$ac_try\"") >&5
1.9 millert 4168: (eval $ac_try) 2>&5
4169: ac_status=$?
1.11 ! millert 4170: echo "$as_me:4170: \$? = $ac_status" >&5
1.9 millert 4171: (exit $ac_status); }; }; then
4172: eval "$as_ac_var=yes"
4173: else
4174: echo "$as_me: failed program was:" >&5
4175: cat conftest.$ac_ext >&5
4176: eval "$as_ac_var=no"
4177: fi
4178: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4179: fi
1.11 ! millert 4180: echo "$as_me:4180: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 4181: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4182: if test `eval echo '${'$as_ac_var'}'` = yes; then
4183: cat >>confdefs.h <<EOF
4184: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 4185: EOF
4186:
4187: else
1.9 millert 4188: break
1.1 millert 4189: fi
4190: done
4191:
4192: CHECKSHADOW="false"
4193: fi
4194: ;;
4195: *-*-solaris2*)
4196: # To get the crypt(3) prototype (so we pass -Wall)
4197: CPPFLAGS="${CPPFLAGS} -D__EXTENSIONS__"
4198: # AFS support needs -lucb
4199: if test "$with_AFS" = "yes"; then
4200: AFS_LIBS="-lc -lucb"
4201: fi
1.9 millert 4202: test -n "$mansectsu" || mansectsu=1m
4203: test -n "$mansectform" || mansectform=4
1.1 millert 4204: ;;
4205: *-*-aix*)
4206: # To get all prototypes (so we pass -Wall)
4207: CPPFLAGS="${CPPFLAGS} -D_XOPEN_EXTENDED_SOURCE"
1.9 millert 4208: cat >>confdefs.h <<\EOF
1.1 millert 4209: #define _ALL_SOURCE 1
4210: EOF
4211:
4212: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
4213: ;;
4214: *-*-hiuxmpp*)
4215: if test "$CHECKSHADOW" = "true"; then
1.11 ! millert 4216: echo "$as_me:4216: checking for getprpwnam in -lsec" >&5
1.9 millert 4217: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
4218: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
4219: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4220: else
1.9 millert 4221: ac_check_lib_save_LIBS=$LIBS
1.1 millert 4222: LIBS="-lsec $LIBS"
1.9 millert 4223: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 4224: #line 4224 "configure"
1.1 millert 4225: #include "confdefs.h"
1.9 millert 4226:
4227: /* Override any gcc2 internal prototype to avoid an error. */
4228: #ifdef __cplusplus
4229: extern "C"
4230: #endif
1.1 millert 4231: /* We use char because int might match the return type of a gcc2
1.9 millert 4232: builtin and then its argument prototype would still apply. */
4233: char getprpwnam ();
4234: int
4235: main ()
4236: {
4237: getprpwnam ();
4238: ;
4239: return 0;
4240: }
4241: _ACEOF
4242: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 4243: if { (eval echo "$as_me:4243: \"$ac_link\"") >&5
1.9 millert 4244: (eval $ac_link) 2>&5
4245: ac_status=$?
1.11 ! millert 4246: echo "$as_me:4246: \$? = $ac_status" >&5
1.9 millert 4247: (exit $ac_status); } &&
4248: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 4249: { (eval echo "$as_me:4249: \"$ac_try\"") >&5
1.9 millert 4250: (eval $ac_try) 2>&5
4251: ac_status=$?
1.11 ! millert 4252: echo "$as_me:4252: \$? = $ac_status" >&5
1.9 millert 4253: (exit $ac_status); }; }; then
4254: ac_cv_lib_sec_getprpwnam=yes
4255: else
4256: echo "$as_me: failed program was:" >&5
4257: cat conftest.$ac_ext >&5
4258: ac_cv_lib_sec_getprpwnam=no
4259: fi
4260: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4261: LIBS=$ac_check_lib_save_LIBS
4262: fi
1.11 ! millert 4263: echo "$as_me:4263: result: $ac_cv_lib_sec_getprpwnam" >&5
1.9 millert 4264: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
4265: if test $ac_cv_lib_sec_getprpwnam = yes; then
4266: cat >>confdefs.h <<\EOF
1.1 millert 4267: #define HAVE_GETPRPWNAM 1
4268: EOF
4269: SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
4270: else
1.11 ! millert 4271: echo "$as_me:4271: checking for getprpwnam in -lsecurity" >&5
1.9 millert 4272: echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
4273: if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
4274: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4275: else
1.9 millert 4276: ac_check_lib_save_LIBS=$LIBS
1.1 millert 4277: LIBS="-lsecurity $LIBS"
1.9 millert 4278: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 4279: #line 4279 "configure"
1.1 millert 4280: #include "confdefs.h"
1.9 millert 4281:
1.1 millert 4282: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 4283: #ifdef __cplusplus
4284: extern "C"
4285: #endif
1.1 millert 4286: /* We use char because int might match the return type of a gcc2
1.9 millert 4287: builtin and then its argument prototype would still apply. */
4288: char getprpwnam ();
4289: int
4290: main ()
4291: {
4292: getprpwnam ();
4293: ;
4294: return 0;
4295: }
4296: _ACEOF
4297: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 4298: if { (eval echo "$as_me:4298: \"$ac_link\"") >&5
1.9 millert 4299: (eval $ac_link) 2>&5
4300: ac_status=$?
1.11 ! millert 4301: echo "$as_me:4301: \$? = $ac_status" >&5
1.9 millert 4302: (exit $ac_status); } &&
4303: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 4304: { (eval echo "$as_me:4304: \"$ac_try\"") >&5
1.9 millert 4305: (eval $ac_try) 2>&5
4306: ac_status=$?
1.11 ! millert 4307: echo "$as_me:4307: \$? = $ac_status" >&5
1.9 millert 4308: (exit $ac_status); }; }; then
4309: ac_cv_lib_security_getprpwnam=yes
4310: else
4311: echo "$as_me: failed program was:" >&5
4312: cat conftest.$ac_ext >&5
4313: ac_cv_lib_security_getprpwnam=no
4314: fi
4315: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4316: LIBS=$ac_check_lib_save_LIBS
4317: fi
1.11 ! millert 4318: echo "$as_me:4318: result: $ac_cv_lib_security_getprpwnam" >&5
1.9 millert 4319: echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
4320: if test $ac_cv_lib_security_getprpwnam = yes; then
4321: cat >>confdefs.h <<\EOF
1.1 millert 4322: #define HAVE_GETPRPWNAM 1
4323: EOF
4324: SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"; SECUREWARE=1
4325: fi
4326:
4327: fi
4328:
4329: CHECKSHADOW="false"
4330: fi
1.9 millert 4331: test -n "$mansectsu" || mansectsu=1m
4332: test -n "$mansectform" || mansectform=4
1.1 millert 4333: ;;
4334: *-*-hpux1[0-9]*)
4335: if test "$CHECKSHADOW" = "true"; then
1.11 ! millert 4336: echo "$as_me:4336: checking for getprpwnam in -lsec" >&5
1.9 millert 4337: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
4338: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
4339: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4340: else
1.9 millert 4341: ac_check_lib_save_LIBS=$LIBS
1.1 millert 4342: LIBS="-lsec $LIBS"
1.9 millert 4343: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 4344: #line 4344 "configure"
1.1 millert 4345: #include "confdefs.h"
1.9 millert 4346:
1.1 millert 4347: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 4348: #ifdef __cplusplus
4349: extern "C"
4350: #endif
1.1 millert 4351: /* We use char because int might match the return type of a gcc2
1.9 millert 4352: builtin and then its argument prototype would still apply. */
4353: char getprpwnam ();
4354: int
4355: main ()
4356: {
4357: getprpwnam ();
4358: ;
4359: return 0;
4360: }
4361: _ACEOF
4362: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 4363: if { (eval echo "$as_me:4363: \"$ac_link\"") >&5
1.9 millert 4364: (eval $ac_link) 2>&5
4365: ac_status=$?
1.11 ! millert 4366: echo "$as_me:4366: \$? = $ac_status" >&5
1.9 millert 4367: (exit $ac_status); } &&
4368: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 4369: { (eval echo "$as_me:4369: \"$ac_try\"") >&5
1.9 millert 4370: (eval $ac_try) 2>&5
4371: ac_status=$?
1.11 ! millert 4372: echo "$as_me:4372: \$? = $ac_status" >&5
1.9 millert 4373: (exit $ac_status); }; }; then
4374: ac_cv_lib_sec_getprpwnam=yes
4375: else
4376: echo "$as_me: failed program was:" >&5
4377: cat conftest.$ac_ext >&5
4378: ac_cv_lib_sec_getprpwnam=no
4379: fi
4380: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4381: LIBS=$ac_check_lib_save_LIBS
4382: fi
1.11 ! millert 4383: echo "$as_me:4383: result: $ac_cv_lib_sec_getprpwnam" >&5
1.9 millert 4384: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
4385: if test $ac_cv_lib_sec_getprpwnam = yes; then
4386: cat >>confdefs.h <<\EOF
1.1 millert 4387: #define HAVE_GETPRPWNAM 1
4388: EOF
1.11 ! millert 4389: echo "$as_me:4389: checking for iscomsec in -lsec" >&5
1.9 millert 4390: echo $ECHO_N "checking for iscomsec in -lsec... $ECHO_C" >&6
4391: if test "${ac_cv_lib_sec_iscomsec+set}" = set; then
4392: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4393: else
1.9 millert 4394: ac_check_lib_save_LIBS=$LIBS
1.1 millert 4395: LIBS="-lsec $LIBS"
1.9 millert 4396: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 4397: #line 4397 "configure"
1.1 millert 4398: #include "confdefs.h"
1.9 millert 4399:
1.1 millert 4400: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 4401: #ifdef __cplusplus
4402: extern "C"
4403: #endif
1.1 millert 4404: /* We use char because int might match the return type of a gcc2
1.9 millert 4405: builtin and then its argument prototype would still apply. */
4406: char iscomsec ();
4407: int
4408: main ()
4409: {
4410: iscomsec ();
4411: ;
4412: return 0;
4413: }
4414: _ACEOF
4415: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 4416: if { (eval echo "$as_me:4416: \"$ac_link\"") >&5
1.9 millert 4417: (eval $ac_link) 2>&5
4418: ac_status=$?
1.11 ! millert 4419: echo "$as_me:4419: \$? = $ac_status" >&5
1.9 millert 4420: (exit $ac_status); } &&
4421: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 4422: { (eval echo "$as_me:4422: \"$ac_try\"") >&5
1.9 millert 4423: (eval $ac_try) 2>&5
4424: ac_status=$?
1.11 ! millert 4425: echo "$as_me:4425: \$? = $ac_status" >&5
1.9 millert 4426: (exit $ac_status); }; }; then
4427: ac_cv_lib_sec_iscomsec=yes
4428: else
4429: echo "$as_me: failed program was:" >&5
4430: cat conftest.$ac_ext >&5
4431: ac_cv_lib_sec_iscomsec=no
4432: fi
4433: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4434: LIBS=$ac_check_lib_save_LIBS
4435: fi
1.11 ! millert 4436: echo "$as_me:4436: result: $ac_cv_lib_sec_iscomsec" >&5
1.9 millert 4437: echo "${ECHO_T}$ac_cv_lib_sec_iscomsec" >&6
4438: if test $ac_cv_lib_sec_iscomsec = yes; then
1.1 millert 4439:
1.9 millert 4440: cat >>confdefs.h <<\EOF
1.1 millert 4441: #define HAVE_ISCOMSEC 1
4442: EOF
4443:
4444: fi
4445: SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
4446: fi
4447:
4448: CHECKSHADOW="false"
4449: fi
4450:
4451: # AFS support needs -lBSD
4452: if test "$with_AFS" = "yes"; then
4453: AFS_LIBS="-lc -lBSD"
4454: fi
1.9 millert 4455: test -n "$mansectsu" || mansectsu=1m
4456: test -n "$mansectform" || mansectform=4
1.1 millert 4457: ;;
4458: *-*-hpux9*)
1.4 millert 4459:
1.9 millert 4460: cat >>confdefs.h <<\EOF
1.1 millert 4461: #define BROKEN_SYSLOG 1
4462: EOF
4463:
1.9 millert 4464: if test "$CHECKSHADOW" = "true"; then
1.1 millert 4465:
1.9 millert 4466: for ac_func in getspwuid
1.1 millert 4467: do
1.9 millert 4468: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.11 ! millert 4469: echo "$as_me:4469: checking for $ac_func" >&5
1.9 millert 4470: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4471: if eval "test \"\${$as_ac_var+set}\" = set"; then
4472: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4473: else
1.9 millert 4474: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 4475: #line 4475 "configure"
1.1 millert 4476: #include "confdefs.h"
4477: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 4478: which can conflict with char $ac_func (); below. */
1.1 millert 4479: #include <assert.h>
4480: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 4481: #ifdef __cplusplus
4482: extern "C"
4483: #endif
1.1 millert 4484: /* We use char because int might match the return type of a gcc2
1.9 millert 4485: builtin and then its argument prototype would still apply. */
4486: char $ac_func ();
4487: char (*f) ();
1.1 millert 4488:
1.9 millert 4489: int
4490: main ()
4491: {
1.1 millert 4492: /* The GNU C library defines this for functions which it implements
4493: to always fail with ENOSYS. Some functions are actually named
4494: something starting with __ and the normal name is an alias. */
4495: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4496: choke me
4497: #else
1.9 millert 4498: f = $ac_func;
1.1 millert 4499: #endif
4500:
1.9 millert 4501: ;
4502: return 0;
4503: }
4504: _ACEOF
4505: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 4506: if { (eval echo "$as_me:4506: \"$ac_link\"") >&5
1.9 millert 4507: (eval $ac_link) 2>&5
4508: ac_status=$?
1.11 ! millert 4509: echo "$as_me:4509: \$? = $ac_status" >&5
1.9 millert 4510: (exit $ac_status); } &&
4511: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 4512: { (eval echo "$as_me:4512: \"$ac_try\"") >&5
1.9 millert 4513: (eval $ac_try) 2>&5
4514: ac_status=$?
1.11 ! millert 4515: echo "$as_me:4515: \$? = $ac_status" >&5
1.9 millert 4516: (exit $ac_status); }; }; then
4517: eval "$as_ac_var=yes"
4518: else
4519: echo "$as_me: failed program was:" >&5
4520: cat conftest.$ac_ext >&5
4521: eval "$as_ac_var=no"
4522: fi
4523: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4524: fi
1.11 ! millert 4525: echo "$as_me:4525: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 4526: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4527: if test `eval echo '${'$as_ac_var'}'` = yes; then
4528: cat >>confdefs.h <<EOF
4529: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 4530: EOF
4531:
4532: fi
4533: done
4534:
4535: CHECKSHADOW="false"
4536: fi
4537:
4538: # DCE support (requires ANSI C compiler)
4539: if test "$with_DCE" = "yes"; then
4540: # order of libs in 9.X is important. -lc_r must be last
4541: SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
4542: LIBS="${LIBS} -ldce -lM -lc_r"
1.4 millert 4543: CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
1.1 millert 4544: fi
4545:
4546: # AFS support needs -lBSD
4547: if test "$with_AFS" = "yes"; then
4548: AFS_LIBS="-lc -lBSD"
4549: fi
1.9 millert 4550: test -n "$mansectsu" || mansectsu=1m
4551: test -n "$mansectform" || mansectform=4
1.1 millert 4552: ;;
4553: *-*-hpux*)
1.9 millert 4554: cat >>confdefs.h <<\EOF
1.1 millert 4555: #define BROKEN_SYSLOG 1
4556: EOF
4557:
4558: # Not sure if setuid binaries are safe in < 9.x
4559: if test -n "$GCC"; then
4560: SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
4561: else
4562: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
4563: fi
4564:
4565: # AFS support needs -lBSD
4566: if test "$with_AFS" = "yes"; then
4567: AFS_LIBS="-lc -lBSD"
4568: fi
1.9 millert 4569: test -n "$mansectsu" || mansectsu=1m
4570: test -n "$mansectform" || mansectform=4
1.1 millert 4571: ;;
4572: *-dec-osf*)
4573: # ignore envariables wrt dynamic lib path
4574: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
4575:
1.11 ! millert 4576: echo "$as_me:4576: checking whether to disable sia support on Digital UNIX" >&5
1.9 millert 4577: echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6
1.1 millert 4578: # Check whether --enable-sia or --disable-sia was given.
4579: if test "${enable_sia+set}" = set; then
4580: enableval="$enable_sia"
4581: case "$enableval" in
1.11 ! millert 4582: yes) echo "$as_me:4582: result: no" >&5
1.9 millert 4583: echo "${ECHO_T}no" >&6
1.1 millert 4584: ;;
1.11 ! millert 4585: no) echo "$as_me:4585: result: yes" >&5
1.9 millert 4586: echo "${ECHO_T}yes" >&6
1.1 millert 4587: CHECKSIA=false
4588: ;;
1.11 ! millert 4589: *) echo "$as_me:4589: result: no" >&5
1.9 millert 4590: echo "${ECHO_T}no" >&6
1.1 millert 4591: echo "Ignoring unknown argument to --enable-sia: $enableval"
4592: ;;
4593: esac
1.9 millert 4594:
1.1 millert 4595: else
1.11 ! millert 4596: echo "$as_me:4596: result: no" >&5
1.9 millert 4597: echo "${ECHO_T}no" >&6
4598: fi;
1.1 millert 4599:
4600: # use SIA by default, if we have it, else SecureWare
4601: # unless overridden on the command line
4602: if test "$CHECKSIA" = "true"; then
1.11 ! millert 4603: echo "$as_me:4603: checking for sia_ses_init" >&5
1.9 millert 4604: echo $ECHO_N "checking for sia_ses_init... $ECHO_C" >&6
4605: if test "${ac_cv_func_sia_ses_init+set}" = set; then
4606: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4607: else
1.9 millert 4608: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 4609: #line 4609 "configure"
1.1 millert 4610: #include "confdefs.h"
4611: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 4612: which can conflict with char sia_ses_init (); below. */
1.1 millert 4613: #include <assert.h>
4614: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 4615: #ifdef __cplusplus
4616: extern "C"
4617: #endif
1.1 millert 4618: /* We use char because int might match the return type of a gcc2
1.9 millert 4619: builtin and then its argument prototype would still apply. */
4620: char sia_ses_init ();
4621: char (*f) ();
1.1 millert 4622:
1.9 millert 4623: int
4624: main ()
4625: {
1.1 millert 4626: /* The GNU C library defines this for functions which it implements
4627: to always fail with ENOSYS. Some functions are actually named
4628: something starting with __ and the normal name is an alias. */
4629: #if defined (__stub_sia_ses_init) || defined (__stub___sia_ses_init)
4630: choke me
4631: #else
1.9 millert 4632: f = sia_ses_init;
1.1 millert 4633: #endif
4634:
1.9 millert 4635: ;
4636: return 0;
4637: }
4638: _ACEOF
4639: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 4640: if { (eval echo "$as_me:4640: \"$ac_link\"") >&5
1.9 millert 4641: (eval $ac_link) 2>&5
4642: ac_status=$?
1.11 ! millert 4643: echo "$as_me:4643: \$? = $ac_status" >&5
1.9 millert 4644: (exit $ac_status); } &&
4645: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 4646: { (eval echo "$as_me:4646: \"$ac_try\"") >&5
1.9 millert 4647: (eval $ac_try) 2>&5
4648: ac_status=$?
1.11 ! millert 4649: echo "$as_me:4649: \$? = $ac_status" >&5
1.9 millert 4650: (exit $ac_status); }; }; then
4651: ac_cv_func_sia_ses_init=yes
4652: else
4653: echo "$as_me: failed program was:" >&5
4654: cat conftest.$ac_ext >&5
4655: ac_cv_func_sia_ses_init=no
4656: fi
4657: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4658: fi
1.11 ! millert 4659: echo "$as_me:4659: result: $ac_cv_func_sia_ses_init" >&5
1.9 millert 4660: echo "${ECHO_T}$ac_cv_func_sia_ses_init" >&6
4661: if test $ac_cv_func_sia_ses_init = yes; then
1.1 millert 4662:
1.9 millert 4663: cat >>confdefs.h <<\EOF
1.1 millert 4664: #define HAVE_SIA 1
4665: EOF
1.9 millert 4666:
1.1 millert 4667: 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.11 ! millert 4668: { { echo "$as_me:4668: error: \"you cannot mix SIA and other authentication schemes. You can turn off SIA support via the --disable-sia option\"" >&5
1.9 millert 4669: echo "$as_me: error: \"you cannot mix SIA and other authentication schemes. You can turn off SIA support via the --disable-sia option\"" >&2;}
4670: { (exit 1); exit 1; }; }
1.1 millert 4671: fi; CHECKSHADOW=false
4672: fi
4673:
4674: fi
4675: if test "$CHECKSHADOW" = "true"; then
1.11 ! millert 4676: echo "$as_me:4676: checking for getprpwnam in -lsecurity" >&5
1.9 millert 4677: echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
4678: if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
4679: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4680: else
1.9 millert 4681: ac_check_lib_save_LIBS=$LIBS
1.1 millert 4682: LIBS="-lsecurity $LIBS"
1.9 millert 4683: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 4684: #line 4684 "configure"
1.1 millert 4685: #include "confdefs.h"
1.9 millert 4686:
1.1 millert 4687: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 4688: #ifdef __cplusplus
4689: extern "C"
4690: #endif
1.1 millert 4691: /* We use char because int might match the return type of a gcc2
1.9 millert 4692: builtin and then its argument prototype would still apply. */
4693: char getprpwnam ();
4694: int
4695: main ()
4696: {
4697: getprpwnam ();
4698: ;
4699: return 0;
4700: }
4701: _ACEOF
4702: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 4703: if { (eval echo "$as_me:4703: \"$ac_link\"") >&5
1.9 millert 4704: (eval $ac_link) 2>&5
4705: ac_status=$?
1.11 ! millert 4706: echo "$as_me:4706: \$? = $ac_status" >&5
1.9 millert 4707: (exit $ac_status); } &&
4708: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 4709: { (eval echo "$as_me:4709: \"$ac_try\"") >&5
1.9 millert 4710: (eval $ac_try) 2>&5
4711: ac_status=$?
1.11 ! millert 4712: echo "$as_me:4712: \$? = $ac_status" >&5
1.9 millert 4713: (exit $ac_status); }; }; then
4714: ac_cv_lib_security_getprpwnam=yes
4715: else
4716: echo "$as_me: failed program was:" >&5
4717: cat conftest.$ac_ext >&5
4718: ac_cv_lib_security_getprpwnam=no
4719: fi
4720: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4721: LIBS=$ac_check_lib_save_LIBS
4722: fi
1.11 ! millert 4723: echo "$as_me:4723: result: $ac_cv_lib_security_getprpwnam" >&5
1.9 millert 4724: echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
4725: if test $ac_cv_lib_security_getprpwnam = yes; then
1.1 millert 4726: SECUREWARE=1
4727: fi
4728:
4729: CHECKSHADOW="false"
4730: fi
4731:
4732: if test -n "$SECUREWARE"; then
1.9 millert 4733:
4734: cat >>confdefs.h <<\EOF
1.1 millert 4735: #define HAVE_GETPRPWNAM 1
4736: EOF
4737:
4738: # -ldb includes bogus versions of snprintf/vsnprintf
1.9 millert 4739:
4740: for ac_func in snprintf
4741: do
4742: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.11 ! millert 4743: echo "$as_me:4743: checking for $ac_func" >&5
1.9 millert 4744: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4745: if eval "test \"\${$as_ac_var+set}\" = set"; then
4746: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4747: else
1.9 millert 4748: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 4749: #line 4749 "configure"
1.1 millert 4750: #include "confdefs.h"
4751: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 4752: which can conflict with char $ac_func (); below. */
1.1 millert 4753: #include <assert.h>
4754: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 4755: #ifdef __cplusplus
4756: extern "C"
4757: #endif
1.1 millert 4758: /* We use char because int might match the return type of a gcc2
1.9 millert 4759: builtin and then its argument prototype would still apply. */
4760: char $ac_func ();
4761: char (*f) ();
1.1 millert 4762:
1.9 millert 4763: int
4764: main ()
4765: {
1.1 millert 4766: /* The GNU C library defines this for functions which it implements
4767: to always fail with ENOSYS. Some functions are actually named
4768: something starting with __ and the normal name is an alias. */
1.9 millert 4769: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 4770: choke me
4771: #else
1.9 millert 4772: f = $ac_func;
1.1 millert 4773: #endif
4774:
1.9 millert 4775: ;
4776: return 0;
4777: }
4778: _ACEOF
4779: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 4780: if { (eval echo "$as_me:4780: \"$ac_link\"") >&5
1.9 millert 4781: (eval $ac_link) 2>&5
4782: ac_status=$?
1.11 ! millert 4783: echo "$as_me:4783: \$? = $ac_status" >&5
1.9 millert 4784: (exit $ac_status); } &&
4785: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 4786: { (eval echo "$as_me:4786: \"$ac_try\"") >&5
1.9 millert 4787: (eval $ac_try) 2>&5
4788: ac_status=$?
1.11 ! millert 4789: echo "$as_me:4789: \$? = $ac_status" >&5
1.9 millert 4790: (exit $ac_status); }; }; then
4791: eval "$as_ac_var=yes"
4792: else
4793: echo "$as_me: failed program was:" >&5
4794: cat conftest.$ac_ext >&5
4795: eval "$as_ac_var=no"
4796: fi
4797: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4798: fi
1.11 ! millert 4799: echo "$as_me:4799: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 4800: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4801: if test `eval echo '${'$as_ac_var'}'` = yes; then
4802: cat >>confdefs.h <<EOF
4803: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 4804: EOF
4805:
4806: else
1.9 millert 4807: NEED_SNPRINTF=1
1.1 millert 4808: fi
1.9 millert 4809: done
1.1 millert 4810:
1.9 millert 4811: for ac_func in vsnprintf
4812: do
4813: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.11 ! millert 4814: echo "$as_me:4814: checking for $ac_func" >&5
1.9 millert 4815: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4816: if eval "test \"\${$as_ac_var+set}\" = set"; then
4817: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4818: else
1.9 millert 4819: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 4820: #line 4820 "configure"
1.1 millert 4821: #include "confdefs.h"
4822: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 4823: which can conflict with char $ac_func (); below. */
1.1 millert 4824: #include <assert.h>
4825: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 4826: #ifdef __cplusplus
4827: extern "C"
4828: #endif
1.1 millert 4829: /* We use char because int might match the return type of a gcc2
1.9 millert 4830: builtin and then its argument prototype would still apply. */
4831: char $ac_func ();
4832: char (*f) ();
1.1 millert 4833:
1.9 millert 4834: int
4835: main ()
4836: {
1.1 millert 4837: /* The GNU C library defines this for functions which it implements
4838: to always fail with ENOSYS. Some functions are actually named
4839: something starting with __ and the normal name is an alias. */
1.9 millert 4840: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 4841: choke me
4842: #else
1.9 millert 4843: f = $ac_func;
1.1 millert 4844: #endif
4845:
1.9 millert 4846: ;
4847: return 0;
4848: }
4849: _ACEOF
4850: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 4851: if { (eval echo "$as_me:4851: \"$ac_link\"") >&5
1.9 millert 4852: (eval $ac_link) 2>&5
4853: ac_status=$?
1.11 ! millert 4854: echo "$as_me:4854: \$? = $ac_status" >&5
1.9 millert 4855: (exit $ac_status); } &&
4856: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 4857: { (eval echo "$as_me:4857: \"$ac_try\"") >&5
1.9 millert 4858: (eval $ac_try) 2>&5
4859: ac_status=$?
1.11 ! millert 4860: echo "$as_me:4860: \$? = $ac_status" >&5
1.9 millert 4861: (exit $ac_status); }; }; then
4862: eval "$as_ac_var=yes"
4863: else
4864: echo "$as_me: failed program was:" >&5
4865: cat conftest.$ac_ext >&5
4866: eval "$as_ac_var=no"
4867: fi
4868: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4869: fi
1.11 ! millert 4870: echo "$as_me:4870: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 4871: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4872: if test `eval echo '${'$as_ac_var'}'` = yes; then
4873: cat >>confdefs.h <<EOF
4874: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 4875: EOF
4876:
4877: else
1.9 millert 4878: NEED_SNPRINTF=1
1.1 millert 4879: fi
1.9 millert 4880: done
1.1 millert 4881:
4882: # 4.x and higher need -ldb too...
1.11 ! millert 4883: echo "$as_me:4883: checking for dbopen in -ldb" >&5
1.9 millert 4884: echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6
4885: if test "${ac_cv_lib_db_dbopen+set}" = set; then
4886: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4887: else
1.9 millert 4888: ac_check_lib_save_LIBS=$LIBS
1.1 millert 4889: LIBS="-ldb $LIBS"
1.9 millert 4890: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 4891: #line 4891 "configure"
1.1 millert 4892: #include "confdefs.h"
1.9 millert 4893:
1.1 millert 4894: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 4895: #ifdef __cplusplus
4896: extern "C"
4897: #endif
1.1 millert 4898: /* We use char because int might match the return type of a gcc2
1.9 millert 4899: builtin and then its argument prototype would still apply. */
4900: char dbopen ();
4901: int
4902: main ()
4903: {
4904: dbopen ();
4905: ;
4906: return 0;
4907: }
4908: _ACEOF
4909: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 4910: if { (eval echo "$as_me:4910: \"$ac_link\"") >&5
1.9 millert 4911: (eval $ac_link) 2>&5
4912: ac_status=$?
1.11 ! millert 4913: echo "$as_me:4913: \$? = $ac_status" >&5
1.9 millert 4914: (exit $ac_status); } &&
4915: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 4916: { (eval echo "$as_me:4916: \"$ac_try\"") >&5
1.9 millert 4917: (eval $ac_try) 2>&5
4918: ac_status=$?
1.11 ! millert 4919: echo "$as_me:4919: \$? = $ac_status" >&5
1.9 millert 4920: (exit $ac_status); }; }; then
4921: ac_cv_lib_db_dbopen=yes
4922: else
4923: echo "$as_me: failed program was:" >&5
4924: cat conftest.$ac_ext >&5
4925: ac_cv_lib_db_dbopen=no
4926: fi
4927: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4928: LIBS=$ac_check_lib_save_LIBS
4929: fi
1.11 ! millert 4930: echo "$as_me:4930: result: $ac_cv_lib_db_dbopen" >&5
1.9 millert 4931: echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6
4932: if test $ac_cv_lib_db_dbopen = yes; then
4933: SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
1.1 millert 4934: else
4935: SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
4936: fi
4937:
1.9 millert 4938: for ac_func in dispcrypt
1.1 millert 4939: do
1.9 millert 4940: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.11 ! millert 4941: echo "$as_me:4941: checking for $ac_func" >&5
1.9 millert 4942: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4943: if eval "test \"\${$as_ac_var+set}\" = set"; then
4944: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4945: else
1.9 millert 4946: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 4947: #line 4947 "configure"
1.1 millert 4948: #include "confdefs.h"
4949: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 4950: which can conflict with char $ac_func (); below. */
1.1 millert 4951: #include <assert.h>
4952: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 4953: #ifdef __cplusplus
4954: extern "C"
4955: #endif
1.1 millert 4956: /* We use char because int might match the return type of a gcc2
1.9 millert 4957: builtin and then its argument prototype would still apply. */
4958: char $ac_func ();
4959: char (*f) ();
1.1 millert 4960:
1.9 millert 4961: int
4962: main ()
4963: {
1.1 millert 4964: /* The GNU C library defines this for functions which it implements
4965: to always fail with ENOSYS. Some functions are actually named
4966: something starting with __ and the normal name is an alias. */
4967: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4968: choke me
4969: #else
1.9 millert 4970: f = $ac_func;
1.1 millert 4971: #endif
4972:
1.9 millert 4973: ;
4974: return 0;
4975: }
4976: _ACEOF
4977: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 4978: if { (eval echo "$as_me:4978: \"$ac_link\"") >&5
1.9 millert 4979: (eval $ac_link) 2>&5
4980: ac_status=$?
1.11 ! millert 4981: echo "$as_me:4981: \$? = $ac_status" >&5
1.9 millert 4982: (exit $ac_status); } &&
4983: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 4984: { (eval echo "$as_me:4984: \"$ac_try\"") >&5
1.9 millert 4985: (eval $ac_try) 2>&5
4986: ac_status=$?
1.11 ! millert 4987: echo "$as_me:4987: \$? = $ac_status" >&5
1.9 millert 4988: (exit $ac_status); }; }; then
4989: eval "$as_ac_var=yes"
4990: else
4991: echo "$as_me: failed program was:" >&5
4992: cat conftest.$ac_ext >&5
4993: eval "$as_ac_var=no"
4994: fi
4995: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4996: fi
1.11 ! millert 4997: echo "$as_me:4997: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 4998: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4999: if test `eval echo '${'$as_ac_var'}'` = yes; then
5000: cat >>confdefs.h <<EOF
5001: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 5002: EOF
5003:
5004: fi
5005: done
5006:
1.11 ! millert 5007: echo "$as_me:5007: checking for broken /usr/include/prot.h" >&5
1.9 millert 5008: echo $ECHO_N "checking for broken /usr/include/prot.h... $ECHO_C" >&6
5009: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 5010: #line 5010 "configure"
1.1 millert 5011: #include "confdefs.h"
5012:
5013: #include <sys/types.h>
5014: #include <sys/security.h>
5015: #include <prot.h>
1.9 millert 5016:
5017: int
5018: main ()
5019: {
1.1 millert 5020: exit(0);
1.9 millert 5021: ;
5022: return 0;
5023: }
5024: _ACEOF
5025: rm -f conftest.$ac_objext
1.11 ! millert 5026: if { (eval echo "$as_me:5026: \"$ac_compile\"") >&5
1.9 millert 5027: (eval $ac_compile) 2>&5
5028: ac_status=$?
1.11 ! millert 5029: echo "$as_me:5029: \$? = $ac_status" >&5
1.9 millert 5030: (exit $ac_status); } &&
5031: { ac_try='test -s conftest.$ac_objext'
1.11 ! millert 5032: { (eval echo "$as_me:5032: \"$ac_try\"") >&5
1.9 millert 5033: (eval $ac_try) 2>&5
5034: ac_status=$?
1.11 ! millert 5035: echo "$as_me:5035: \$? = $ac_status" >&5
1.9 millert 5036: (exit $ac_status); }; }; then
1.11 ! millert 5037: echo "$as_me:5037: result: no" >&5
1.9 millert 5038: echo "${ECHO_T}no" >&6
5039: else
5040: echo "$as_me: failed program was:" >&5
5041: cat conftest.$ac_ext >&5
1.11 ! millert 5042: echo "$as_me:5042: result: yes, fixing locally" >&5
1.9 millert 5043: echo "${ECHO_T}yes, fixing locally" >&6
1.1 millert 5044: sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
1.9 millert 5045:
1.1 millert 5046: fi
1.9 millert 5047: rm -f conftest.$ac_objext conftest.$ac_ext
5048: elif test "$CHECKSIA" = "true"; then
1.1 millert 5049: with_passwd=no
5050: AUTH_OBJS="sia.o"
5051: fi
1.9 millert 5052: test -n "$mansectsu" || mansectsu=8
5053: test -n "$mansectform" || mansectform=4
1.1 millert 5054: ;;
5055: *-*-irix*)
5056: CPPFLAGS="${CPPFLAGS} -D_BSD_TYPES"
5057: if test -z "$NROFFPROG"; then
5058: MAN_POSTINSTALL=' /bin/rm -f $(mandir8)/sudo.$(mansect8).z $(mandir8)/visudo.$(mansect8).z $(mandir5)/sudoers.$(mansect5).z ; /usr/bin/pack $(mandir8)/sudo.$(mansect8) $(mandir8)/visudo.$(mansect8) $(mandir5)/sudoers.$(mansect5)'
5059: if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
5060: if test -d /usr/share/catman/local; then
5061: mandir="/usr/share/catman/local"
5062: else
5063: mandir="/usr/catman/local"
5064: fi
5065: fi
5066: else
5067: if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
5068: if test -d "/usr/share/man/local"; then
5069: mandir="/usr/share/man/local"
5070: else
5071: mandir="/usr/man/local"
5072: fi
5073: fi
5074: fi
5075: # IRIX <= 4 needs -lsun
5076: if test "$OSREV" -le 4; then
1.11 ! millert 5077: echo "$as_me:5077: checking for getpwnam in -lsun" >&5
1.9 millert 5078: echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
5079: if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
5080: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5081: else
1.9 millert 5082: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5083: LIBS="-lsun $LIBS"
1.9 millert 5084: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 5085: #line 5085 "configure"
1.1 millert 5086: #include "confdefs.h"
1.9 millert 5087:
1.1 millert 5088: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5089: #ifdef __cplusplus
5090: extern "C"
5091: #endif
1.1 millert 5092: /* We use char because int might match the return type of a gcc2
1.9 millert 5093: builtin and then its argument prototype would still apply. */
5094: char getpwnam ();
5095: int
5096: main ()
5097: {
5098: getpwnam ();
5099: ;
5100: return 0;
5101: }
5102: _ACEOF
5103: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 5104: if { (eval echo "$as_me:5104: \"$ac_link\"") >&5
1.9 millert 5105: (eval $ac_link) 2>&5
5106: ac_status=$?
1.11 ! millert 5107: echo "$as_me:5107: \$? = $ac_status" >&5
1.9 millert 5108: (exit $ac_status); } &&
5109: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 5110: { (eval echo "$as_me:5110: \"$ac_try\"") >&5
1.9 millert 5111: (eval $ac_try) 2>&5
5112: ac_status=$?
1.11 ! millert 5113: echo "$as_me:5113: \$? = $ac_status" >&5
1.9 millert 5114: (exit $ac_status); }; }; then
5115: ac_cv_lib_sun_getpwnam=yes
5116: else
5117: echo "$as_me: failed program was:" >&5
5118: cat conftest.$ac_ext >&5
5119: ac_cv_lib_sun_getpwnam=no
5120: fi
5121: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5122: LIBS=$ac_check_lib_save_LIBS
5123: fi
1.11 ! millert 5124: echo "$as_me:5124: result: $ac_cv_lib_sun_getpwnam" >&5
1.9 millert 5125: echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
5126: if test $ac_cv_lib_sun_getpwnam = yes; then
1.1 millert 5127: LIBS="${LIBS} -lsun"
5128: fi
5129:
5130: fi
1.9 millert 5131: test -n "$mansectsu" || mansectsu=1m
5132: test -n "$mansectform" || mansectform=4
1.1 millert 5133: ;;
5134: *-*-linux*)
5135: # Some Linux versions need to link with -lshadow
5136: if test "$CHECKSHADOW" = "true"; then
1.9 millert 5137:
5138: for ac_func in getspnam
5139: do
5140: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.11 ! millert 5141: echo "$as_me:5141: checking for $ac_func" >&5
1.9 millert 5142: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5143: if eval "test \"\${$as_ac_var+set}\" = set"; then
5144: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5145: else
1.9 millert 5146: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 5147: #line 5147 "configure"
1.1 millert 5148: #include "confdefs.h"
5149: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 5150: which can conflict with char $ac_func (); below. */
1.1 millert 5151: #include <assert.h>
5152: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5153: #ifdef __cplusplus
5154: extern "C"
5155: #endif
1.1 millert 5156: /* We use char because int might match the return type of a gcc2
1.9 millert 5157: builtin and then its argument prototype would still apply. */
5158: char $ac_func ();
5159: char (*f) ();
1.1 millert 5160:
1.9 millert 5161: int
5162: main ()
5163: {
1.1 millert 5164: /* The GNU C library defines this for functions which it implements
5165: to always fail with ENOSYS. Some functions are actually named
5166: something starting with __ and the normal name is an alias. */
1.9 millert 5167: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 5168: choke me
5169: #else
1.9 millert 5170: f = $ac_func;
1.1 millert 5171: #endif
5172:
1.9 millert 5173: ;
5174: return 0;
5175: }
5176: _ACEOF
5177: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 5178: if { (eval echo "$as_me:5178: \"$ac_link\"") >&5
1.9 millert 5179: (eval $ac_link) 2>&5
5180: ac_status=$?
1.11 ! millert 5181: echo "$as_me:5181: \$? = $ac_status" >&5
1.9 millert 5182: (exit $ac_status); } &&
5183: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 5184: { (eval echo "$as_me:5184: \"$ac_try\"") >&5
1.9 millert 5185: (eval $ac_try) 2>&5
5186: ac_status=$?
1.11 ! millert 5187: echo "$as_me:5187: \$? = $ac_status" >&5
1.9 millert 5188: (exit $ac_status); }; }; then
5189: eval "$as_ac_var=yes"
5190: else
5191: echo "$as_me: failed program was:" >&5
5192: cat conftest.$ac_ext >&5
5193: eval "$as_ac_var=no"
5194: fi
5195: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5196: fi
1.11 ! millert 5197: echo "$as_me:5197: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 5198: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5199: if test `eval echo '${'$as_ac_var'}'` = yes; then
5200: cat >>confdefs.h <<EOF
5201: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 5202: EOF
5203:
5204: else
1.11 ! millert 5205: echo "$as_me:5205: checking for getspnam in -lshadow" >&5
1.9 millert 5206: echo $ECHO_N "checking for getspnam in -lshadow... $ECHO_C" >&6
5207: if test "${ac_cv_lib_shadow_getspnam+set}" = set; then
5208: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5209: else
1.9 millert 5210: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5211: LIBS="-lshadow $LIBS"
1.9 millert 5212: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 5213: #line 5213 "configure"
1.1 millert 5214: #include "confdefs.h"
1.9 millert 5215:
1.1 millert 5216: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5217: #ifdef __cplusplus
5218: extern "C"
5219: #endif
1.1 millert 5220: /* We use char because int might match the return type of a gcc2
1.9 millert 5221: builtin and then its argument prototype would still apply. */
5222: char getspnam ();
5223: int
5224: main ()
5225: {
5226: getspnam ();
5227: ;
5228: return 0;
5229: }
5230: _ACEOF
5231: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 5232: if { (eval echo "$as_me:5232: \"$ac_link\"") >&5
1.9 millert 5233: (eval $ac_link) 2>&5
5234: ac_status=$?
1.11 ! millert 5235: echo "$as_me:5235: \$? = $ac_status" >&5
1.9 millert 5236: (exit $ac_status); } &&
5237: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 5238: { (eval echo "$as_me:5238: \"$ac_try\"") >&5
1.9 millert 5239: (eval $ac_try) 2>&5
5240: ac_status=$?
1.11 ! millert 5241: echo "$as_me:5241: \$? = $ac_status" >&5
1.9 millert 5242: (exit $ac_status); }; }; then
5243: ac_cv_lib_shadow_getspnam=yes
5244: else
5245: echo "$as_me: failed program was:" >&5
5246: cat conftest.$ac_ext >&5
5247: ac_cv_lib_shadow_getspnam=no
5248: fi
5249: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5250: LIBS=$ac_check_lib_save_LIBS
5251: fi
1.11 ! millert 5252: echo "$as_me:5252: result: $ac_cv_lib_shadow_getspnam" >&5
1.9 millert 5253: echo "${ECHO_T}$ac_cv_lib_shadow_getspnam" >&6
5254: if test $ac_cv_lib_shadow_getspnam = yes; then
5255: cat >>confdefs.h <<\EOF
1.1 millert 5256: #define HAVE_GETSPNAM 1
5257: EOF
5258: SUDO_LIBS="${SUDO_LIBS} -lshadow"; LIBS="${LIBS} -lshadow"
5259: fi
5260:
5261: fi
1.9 millert 5262: done
1.1 millert 5263:
5264: CHECKSHADOW="false"
5265: fi
5266: ;;
5267: *-convex-bsd*)
1.9 millert 5268: cat >>confdefs.h <<\EOF
1.1 millert 5269: #define _CONVEX_SOURCE 1
5270: EOF
5271:
5272: if test -z "$GCC"; then
5273: CFLAGS="${CFLAGS} -D__STDC__"
5274: fi
5275:
5276: if test "$CHECKSHADOW" = "true"; then
1.11 ! millert 5277: echo "$as_me:5277: checking for getprpwnam in -lsec" >&5
1.9 millert 5278: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
5279: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
5280: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5281: else
1.9 millert 5282: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5283: LIBS="-lsec $LIBS"
1.9 millert 5284: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 5285: #line 5285 "configure"
1.1 millert 5286: #include "confdefs.h"
1.9 millert 5287:
1.1 millert 5288: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5289: #ifdef __cplusplus
5290: extern "C"
5291: #endif
1.1 millert 5292: /* We use char because int might match the return type of a gcc2
1.9 millert 5293: builtin and then its argument prototype would still apply. */
5294: char getprpwnam ();
5295: int
5296: main ()
5297: {
5298: getprpwnam ();
5299: ;
5300: return 0;
5301: }
5302: _ACEOF
5303: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 5304: if { (eval echo "$as_me:5304: \"$ac_link\"") >&5
1.9 millert 5305: (eval $ac_link) 2>&5
5306: ac_status=$?
1.11 ! millert 5307: echo "$as_me:5307: \$? = $ac_status" >&5
1.9 millert 5308: (exit $ac_status); } &&
5309: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 5310: { (eval echo "$as_me:5310: \"$ac_try\"") >&5
1.9 millert 5311: (eval $ac_try) 2>&5
5312: ac_status=$?
1.11 ! millert 5313: echo "$as_me:5313: \$? = $ac_status" >&5
1.9 millert 5314: (exit $ac_status); }; }; then
5315: ac_cv_lib_sec_getprpwnam=yes
5316: else
5317: echo "$as_me: failed program was:" >&5
5318: cat conftest.$ac_ext >&5
5319: ac_cv_lib_sec_getprpwnam=no
5320: fi
5321: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5322: LIBS=$ac_check_lib_save_LIBS
5323: fi
1.11 ! millert 5324: echo "$as_me:5324: result: $ac_cv_lib_sec_getprpwnam" >&5
1.9 millert 5325: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
5326: if test $ac_cv_lib_sec_getprpwnam = yes; then
5327: cat >>confdefs.h <<\EOF
1.1 millert 5328: #define HAVE_GETPRPWNAM 1
5329: EOF
5330: SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"; OSDEFS="${OSDEFS} -D_AUDIT -D_ACL -DSecureWare"; SECUREWARE=1
5331: fi
5332:
5333: CHECKSHADOW="false"
5334: fi
5335: ;;
5336: *-*-ultrix*)
5337: OS="ultrix"
5338: if test "$CHECKSHADOW" = "true"; then
1.11 ! millert 5339: echo "$as_me:5339: checking for getauthuid in -lauth" >&5
1.9 millert 5340: echo $ECHO_N "checking for getauthuid in -lauth... $ECHO_C" >&6
5341: if test "${ac_cv_lib_auth_getauthuid+set}" = set; then
5342: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5343: else
1.9 millert 5344: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5345: LIBS="-lauth $LIBS"
1.9 millert 5346: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 5347: #line 5347 "configure"
1.1 millert 5348: #include "confdefs.h"
1.9 millert 5349:
1.1 millert 5350: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5351: #ifdef __cplusplus
5352: extern "C"
5353: #endif
1.1 millert 5354: /* We use char because int might match the return type of a gcc2
1.9 millert 5355: builtin and then its argument prototype would still apply. */
5356: char getauthuid ();
5357: int
5358: main ()
5359: {
5360: getauthuid ();
5361: ;
5362: return 0;
5363: }
5364: _ACEOF
5365: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 5366: if { (eval echo "$as_me:5366: \"$ac_link\"") >&5
1.9 millert 5367: (eval $ac_link) 2>&5
5368: ac_status=$?
1.11 ! millert 5369: echo "$as_me:5369: \$? = $ac_status" >&5
1.9 millert 5370: (exit $ac_status); } &&
5371: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 5372: { (eval echo "$as_me:5372: \"$ac_try\"") >&5
1.9 millert 5373: (eval $ac_try) 2>&5
5374: ac_status=$?
1.11 ! millert 5375: echo "$as_me:5375: \$? = $ac_status" >&5
1.9 millert 5376: (exit $ac_status); }; }; then
5377: ac_cv_lib_auth_getauthuid=yes
5378: else
5379: echo "$as_me: failed program was:" >&5
5380: cat conftest.$ac_ext >&5
5381: ac_cv_lib_auth_getauthuid=no
5382: fi
5383: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5384: LIBS=$ac_check_lib_save_LIBS
5385: fi
1.11 ! millert 5386: echo "$as_me:5386: result: $ac_cv_lib_auth_getauthuid" >&5
1.9 millert 5387: echo "${ECHO_T}$ac_cv_lib_auth_getauthuid" >&6
5388: if test $ac_cv_lib_auth_getauthuid = yes; then
1.1 millert 5389:
1.9 millert 5390: cat >>confdefs.h <<\EOF
1.1 millert 5391: #define HAVE_GETAUTHUID 1
5392: EOF
5393: SUDO_LIBS="${SUDO_LIBS} -lauth"; LIBS="${LIBS} -lauth"
5394: fi
5395:
5396: CHECKSHADOW="false"
5397: fi
5398: ;;
5399: *-*-riscos*)
5400: LIBS="${LIBS} -lsun -lbsd"
5401: CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
5402: OSDEFS="${OSDEFS} -D_MIPS"
1.9 millert 5403: test -n "$mansectsu" || mansectsu=1m
5404: test -n "$mansectform" || mansectform=4
1.1 millert 5405: ;;
5406: *-*-isc*)
5407: OSDEFS="${OSDEFS} -D_ISC"
5408: LIB_CRYPT=1
5409: SUDO_LIBS="${SUDO_LIBS} -lcrypt"
5410: LIBS="${LIBS} -lcrypt"
5411:
5412: if test "$CHECKSHADOW" = "true"; then
1.11 ! millert 5413: echo "$as_me:5413: checking for getspnam in -lsec" >&5
1.9 millert 5414: echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
5415: if test "${ac_cv_lib_sec_getspnam+set}" = set; then
5416: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5417: else
1.9 millert 5418: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5419: LIBS="-lsec $LIBS"
1.9 millert 5420: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 5421: #line 5421 "configure"
1.1 millert 5422: #include "confdefs.h"
1.9 millert 5423:
1.1 millert 5424: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5425: #ifdef __cplusplus
5426: extern "C"
5427: #endif
1.1 millert 5428: /* We use char because int might match the return type of a gcc2
1.9 millert 5429: builtin and then its argument prototype would still apply. */
5430: char getspnam ();
5431: int
5432: main ()
5433: {
5434: getspnam ();
5435: ;
5436: return 0;
5437: }
5438: _ACEOF
5439: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 5440: if { (eval echo "$as_me:5440: \"$ac_link\"") >&5
1.9 millert 5441: (eval $ac_link) 2>&5
5442: ac_status=$?
1.11 ! millert 5443: echo "$as_me:5443: \$? = $ac_status" >&5
1.9 millert 5444: (exit $ac_status); } &&
5445: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 5446: { (eval echo "$as_me:5446: \"$ac_try\"") >&5
1.9 millert 5447: (eval $ac_try) 2>&5
5448: ac_status=$?
1.11 ! millert 5449: echo "$as_me:5449: \$? = $ac_status" >&5
1.9 millert 5450: (exit $ac_status); }; }; then
5451: ac_cv_lib_sec_getspnam=yes
5452: else
5453: echo "$as_me: failed program was:" >&5
5454: cat conftest.$ac_ext >&5
5455: ac_cv_lib_sec_getspnam=no
5456: fi
5457: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5458: LIBS=$ac_check_lib_save_LIBS
5459: fi
1.11 ! millert 5460: echo "$as_me:5460: result: $ac_cv_lib_sec_getspnam" >&5
1.9 millert 5461: echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
5462: if test $ac_cv_lib_sec_getspnam = yes; then
5463: cat >>confdefs.h <<\EOF
1.1 millert 5464: #define HAVE_GETSPNAM 1
5465: EOF
5466: SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
5467: fi
5468:
5469: CHECKSHADOW="false"
5470: fi
1.9 millert 5471: test -n "$mansectsu" || mansectsu=1m
5472: test -n "$mansectform" || mansectform=4
1.1 millert 5473: ;;
1.9 millert 5474: *-*-sco*|*-sco-*)
1.1 millert 5475: if test "$CHECKSHADOW" = "true"; then
1.11 ! millert 5476: echo "$as_me:5476: checking for getprpwnam in -lprot" >&5
1.9 millert 5477: echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
5478: if test "${ac_cv_lib_prot_getprpwnam_lx+set}" = set; then
5479: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5480: else
1.9 millert 5481: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5482: LIBS="-lprot -lx $LIBS"
1.9 millert 5483: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 5484: #line 5484 "configure"
1.1 millert 5485: #include "confdefs.h"
1.9 millert 5486:
1.1 millert 5487: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5488: #ifdef __cplusplus
5489: extern "C"
5490: #endif
1.1 millert 5491: /* We use char because int might match the return type of a gcc2
1.9 millert 5492: builtin and then its argument prototype would still apply. */
5493: char getprpwnam ();
5494: int
5495: main ()
5496: {
5497: getprpwnam ();
5498: ;
5499: return 0;
5500: }
5501: _ACEOF
5502: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 5503: if { (eval echo "$as_me:5503: \"$ac_link\"") >&5
1.9 millert 5504: (eval $ac_link) 2>&5
5505: ac_status=$?
1.11 ! millert 5506: echo "$as_me:5506: \$? = $ac_status" >&5
1.9 millert 5507: (exit $ac_status); } &&
5508: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 5509: { (eval echo "$as_me:5509: \"$ac_try\"") >&5
1.9 millert 5510: (eval $ac_try) 2>&5
5511: ac_status=$?
1.11 ! millert 5512: echo "$as_me:5512: \$? = $ac_status" >&5
1.9 millert 5513: (exit $ac_status); }; }; then
5514: ac_cv_lib_prot_getprpwnam_lx=yes
5515: else
5516: echo "$as_me: failed program was:" >&5
5517: cat conftest.$ac_ext >&5
5518: ac_cv_lib_prot_getprpwnam_lx=no
5519: fi
5520: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5521: LIBS=$ac_check_lib_save_LIBS
5522: fi
1.11 ! millert 5523: echo "$as_me:5523: result: $ac_cv_lib_prot_getprpwnam_lx" >&5
1.9 millert 5524: echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam_lx" >&6
5525: if test $ac_cv_lib_prot_getprpwnam_lx = yes; then
5526: cat >>confdefs.h <<\EOF
1.1 millert 5527: #define HAVE_GETPRPWNAM 1
5528: EOF
5529: SUDO_LIBS="${SUDO_LIBS} -lprot -lx"; LIBS="${LIBS} -lprot -lx"; SECUREWARE=1
5530: fi
5531:
1.11 ! millert 5532: echo "$as_me:5532: checking for getspnam in -lgen" >&5
1.9 millert 5533: echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
5534: if test "${ac_cv_lib_gen_getspnam+set}" = set; then
5535: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5536: else
1.9 millert 5537: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5538: LIBS="-lgen $LIBS"
1.9 millert 5539: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 5540: #line 5540 "configure"
1.1 millert 5541: #include "confdefs.h"
1.9 millert 5542:
1.1 millert 5543: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5544: #ifdef __cplusplus
5545: extern "C"
5546: #endif
1.1 millert 5547: /* We use char because int might match the return type of a gcc2
1.9 millert 5548: builtin and then its argument prototype would still apply. */
5549: char getspnam ();
5550: int
5551: main ()
5552: {
5553: getspnam ();
5554: ;
5555: return 0;
5556: }
5557: _ACEOF
5558: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 5559: if { (eval echo "$as_me:5559: \"$ac_link\"") >&5
1.9 millert 5560: (eval $ac_link) 2>&5
5561: ac_status=$?
1.11 ! millert 5562: echo "$as_me:5562: \$? = $ac_status" >&5
1.9 millert 5563: (exit $ac_status); } &&
5564: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 5565: { (eval echo "$as_me:5565: \"$ac_try\"") >&5
1.9 millert 5566: (eval $ac_try) 2>&5
5567: ac_status=$?
1.11 ! millert 5568: echo "$as_me:5568: \$? = $ac_status" >&5
1.9 millert 5569: (exit $ac_status); }; }; then
5570: ac_cv_lib_gen_getspnam=yes
5571: else
5572: echo "$as_me: failed program was:" >&5
5573: cat conftest.$ac_ext >&5
5574: ac_cv_lib_gen_getspnam=no
5575: fi
5576: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5577: LIBS=$ac_check_lib_save_LIBS
5578: fi
1.11 ! millert 5579: echo "$as_me:5579: result: $ac_cv_lib_gen_getspnam" >&5
1.9 millert 5580: echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
5581: if test $ac_cv_lib_gen_getspnam = yes; then
5582: cat >>confdefs.h <<\EOF
1.1 millert 5583: #define HAVE_GETSPNAM 1
5584: EOF
5585: SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
5586: fi
5587:
5588: CHECKSHADOW="false"
5589: fi
1.9 millert 5590: test -n "$mansectsu" || mansectsu=1m
5591: test -n "$mansectform" || mansectform=4
1.1 millert 5592: ;;
1.10 millert 5593: m88k-motorola-sysv*)
5594: # motorolla's cc (a variant of gcc) does -O but not -O2
5595: CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
5596: test -n "$mansectsu" || mansectsu=1m
5597: test -n "$mansectform" || mansectform=4
5598: ;;
1.1 millert 5599: *-sequent-sysv*)
5600: if test "$CHECKSHADOW" = "true"; then
1.11 ! millert 5601: echo "$as_me:5601: checking for getspnam in -lsec" >&5
1.9 millert 5602: echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
5603: if test "${ac_cv_lib_sec_getspnam+set}" = set; then
5604: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5605: else
1.9 millert 5606: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5607: LIBS="-lsec $LIBS"
1.9 millert 5608: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 5609: #line 5609 "configure"
1.1 millert 5610: #include "confdefs.h"
1.9 millert 5611:
1.1 millert 5612: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5613: #ifdef __cplusplus
5614: extern "C"
5615: #endif
1.1 millert 5616: /* We use char because int might match the return type of a gcc2
1.9 millert 5617: builtin and then its argument prototype would still apply. */
5618: char getspnam ();
5619: int
5620: main ()
5621: {
5622: getspnam ();
5623: ;
5624: return 0;
5625: }
5626: _ACEOF
5627: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 5628: if { (eval echo "$as_me:5628: \"$ac_link\"") >&5
1.9 millert 5629: (eval $ac_link) 2>&5
5630: ac_status=$?
1.11 ! millert 5631: echo "$as_me:5631: \$? = $ac_status" >&5
1.9 millert 5632: (exit $ac_status); } &&
5633: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 5634: { (eval echo "$as_me:5634: \"$ac_try\"") >&5
1.9 millert 5635: (eval $ac_try) 2>&5
5636: ac_status=$?
1.11 ! millert 5637: echo "$as_me:5637: \$? = $ac_status" >&5
1.9 millert 5638: (exit $ac_status); }; }; then
5639: ac_cv_lib_sec_getspnam=yes
5640: else
5641: echo "$as_me: failed program was:" >&5
5642: cat conftest.$ac_ext >&5
5643: ac_cv_lib_sec_getspnam=no
5644: fi
5645: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5646: LIBS=$ac_check_lib_save_LIBS
5647: fi
1.11 ! millert 5648: echo "$as_me:5648: result: $ac_cv_lib_sec_getspnam" >&5
1.9 millert 5649: echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
5650: if test $ac_cv_lib_sec_getspnam = yes; then
5651: cat >>confdefs.h <<\EOF
1.1 millert 5652: #define HAVE_GETSPNAM 1
5653: EOF
5654: SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
5655: fi
5656:
5657: CHECKSHADOW="false"
5658: fi
1.9 millert 5659: test -n "$mansectsu" || mansectsu=1m
5660: test -n "$mansectform" || mansectform=4
5661: ;;
5662: *-ncr-sysv4*|*-ncr-sysvr4*)
1.11 ! millert 5663: echo "$as_me:5663: checking for strcasecmp in -lc89" >&5
1.9 millert 5664: echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6
5665: if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
5666: echo $ECHO_N "(cached) $ECHO_C" >&6
5667: else
5668: ac_check_lib_save_LIBS=$LIBS
5669: LIBS="-lc89 $LIBS"
5670: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 5671: #line 5671 "configure"
1.9 millert 5672: #include "confdefs.h"
5673:
5674: /* Override any gcc2 internal prototype to avoid an error. */
5675: #ifdef __cplusplus
5676: extern "C"
5677: #endif
5678: /* We use char because int might match the return type of a gcc2
5679: builtin and then its argument prototype would still apply. */
5680: char strcasecmp ();
5681: int
5682: main ()
5683: {
5684: strcasecmp ();
5685: ;
5686: return 0;
5687: }
5688: _ACEOF
5689: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 5690: if { (eval echo "$as_me:5690: \"$ac_link\"") >&5
1.9 millert 5691: (eval $ac_link) 2>&5
5692: ac_status=$?
1.11 ! millert 5693: echo "$as_me:5693: \$? = $ac_status" >&5
1.9 millert 5694: (exit $ac_status); } &&
5695: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 5696: { (eval echo "$as_me:5696: \"$ac_try\"") >&5
1.9 millert 5697: (eval $ac_try) 2>&5
5698: ac_status=$?
1.11 ! millert 5699: echo "$as_me:5699: \$? = $ac_status" >&5
1.9 millert 5700: (exit $ac_status); }; }; then
5701: ac_cv_lib_c89_strcasecmp=yes
5702: else
5703: echo "$as_me: failed program was:" >&5
5704: cat conftest.$ac_ext >&5
5705: ac_cv_lib_c89_strcasecmp=no
5706: fi
5707: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5708: LIBS=$ac_check_lib_save_LIBS
5709: fi
1.11 ! millert 5710: echo "$as_me:5710: result: $ac_cv_lib_c89_strcasecmp" >&5
1.9 millert 5711: echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6
5712: if test $ac_cv_lib_c89_strcasecmp = yes; then
5713: cat >>confdefs.h <<\EOF
5714: #define HAVE_STRCASECMP 1
5715: EOF
5716: LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
5717: fi
5718:
5719: test -n "$mansectsu" || mansectsu=1m
5720: test -n "$mansectform" || mansectform=4
1.1 millert 5721: ;;
1.9 millert 5722: *-ccur-sysv4*|*-ccur-sysvr4*)
1.1 millert 5723: LIBS="${LIBS} -lgen"
5724: SUDO_LIBS="${SUDO_LIBS} -lgen"
1.9 millert 5725: test -n "$mansectsu" || mansectsu=1m
5726: test -n "$mansectform" || mansectform=4
1.1 millert 5727: ;;
5728: *-*-bsdi*)
1.6 millert 5729: # Use shlicc for BSD/OS [23].x unless asked to do otherwise
5730: if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
5731: case "$OSREV" in
5732: 2|3) echo 'using shlicc as CC'
5733: ac_cv_prog_CC=shlicc
5734: CC="$ac_cv_prog_CC"
5735: ;;
5736: esac
5737: fi
5738: ;;
5739: *-*-freebsd*)
1.7 millert 5740: if test "$with_logincap" = "yes"; then
5741: SUDO_LIBS="${SUDO_LIBS} -lutil"
5742: fi
1.6 millert 5743: if test "$with_skey" = "yes"; then
5744: SUDO_LIBS="${SUDO_LIBS} -lmd"
5745: fi
5746: if test "$CHECKSHADOW" = "true"; then
5747: CHECKSHADOW="false"
1.1 millert 5748: fi
5749: ;;
1.9 millert 5750: *-*-*openbsd*)
5751: BROKEN_SETREUID=yes
5752: if test "$CHECKSHADOW" = "true"; then
5753: CHECKSHADOW="false"
5754: fi
5755: ;;
5756: *-*-*netbsd*)
5757: BROKEN_SETREUID=yes
5758: if test "$CHECKSHADOW" = "true"; then
5759: CHECKSHADOW="false"
5760: fi
5761: ;;
1.1 millert 5762: *-*-*bsd*)
5763: if test "$CHECKSHADOW" = "true"; then
5764: CHECKSHADOW="false"
5765: fi
5766: ;;
1.9 millert 5767: *-*-nextstep*)
5768: # lockf() on is broken on the NeXT -- use flock instead
5769: ac_cv_func_lockf=no
5770: ac_cv_func_flock=yes
5771: ;;
1.6 millert 5772: *-*-sysv*)
1.9 millert 5773: test -n "$mansectsu" || mansectsu=1m
5774: test -n "$mansectform" || mansectform=4
1.6 millert 5775: ;;
1.1 millert 5776: esac
5777:
1.6 millert 5778: test -n "$mansectsu" || mansectsu=8
5779: test -n "$mansectform" || mansectform=5
5780:
1.1 millert 5781: if test "$CHECKSHADOW" = "true"; then
1.9 millert 5782:
5783: for ac_func in getspnam
5784: do
5785: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.11 ! millert 5786: echo "$as_me:5786: checking for $ac_func" >&5
1.9 millert 5787: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5788: if eval "test \"\${$as_ac_var+set}\" = set"; then
5789: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5790: else
1.9 millert 5791: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 5792: #line 5792 "configure"
1.1 millert 5793: #include "confdefs.h"
5794: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 5795: which can conflict with char $ac_func (); below. */
1.1 millert 5796: #include <assert.h>
5797: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5798: #ifdef __cplusplus
5799: extern "C"
5800: #endif
1.1 millert 5801: /* We use char because int might match the return type of a gcc2
1.9 millert 5802: builtin and then its argument prototype would still apply. */
5803: char $ac_func ();
5804: char (*f) ();
1.1 millert 5805:
1.9 millert 5806: int
5807: main ()
5808: {
1.1 millert 5809: /* The GNU C library defines this for functions which it implements
5810: to always fail with ENOSYS. Some functions are actually named
5811: something starting with __ and the normal name is an alias. */
1.9 millert 5812: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 5813: choke me
5814: #else
1.9 millert 5815: f = $ac_func;
1.1 millert 5816: #endif
5817:
1.9 millert 5818: ;
5819: return 0;
5820: }
5821: _ACEOF
5822: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 5823: if { (eval echo "$as_me:5823: \"$ac_link\"") >&5
1.9 millert 5824: (eval $ac_link) 2>&5
5825: ac_status=$?
1.11 ! millert 5826: echo "$as_me:5826: \$? = $ac_status" >&5
1.9 millert 5827: (exit $ac_status); } &&
5828: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 5829: { (eval echo "$as_me:5829: \"$ac_try\"") >&5
1.9 millert 5830: (eval $ac_try) 2>&5
5831: ac_status=$?
1.11 ! millert 5832: echo "$as_me:5832: \$? = $ac_status" >&5
1.9 millert 5833: (exit $ac_status); }; }; then
5834: eval "$as_ac_var=yes"
5835: else
5836: echo "$as_me: failed program was:" >&5
5837: cat conftest.$ac_ext >&5
5838: eval "$as_ac_var=no"
5839: fi
5840: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5841: fi
1.11 ! millert 5842: echo "$as_me:5842: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 5843: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5844: if test `eval echo '${'$as_ac_var'}'` = yes; then
5845: cat >>confdefs.h <<EOF
5846: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 5847: EOF
1.9 millert 5848: CHECKSHADOW="false"
1.1 millert 5849: else
1.11 ! millert 5850: echo "$as_me:5850: checking for getspnam in -lgen" >&5
1.9 millert 5851: echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
5852: if test "${ac_cv_lib_gen_getspnam+set}" = set; then
5853: echo $ECHO_N "(cached) $ECHO_C" >&6
5854: else
5855: ac_check_lib_save_LIBS=$LIBS
5856: LIBS="-lgen $LIBS"
5857: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 5858: #line 5858 "configure"
1.9 millert 5859: #include "confdefs.h"
5860:
5861: /* Override any gcc2 internal prototype to avoid an error. */
5862: #ifdef __cplusplus
5863: extern "C"
5864: #endif
5865: /* We use char because int might match the return type of a gcc2
5866: builtin and then its argument prototype would still apply. */
5867: char getspnam ();
5868: int
5869: main ()
5870: {
5871: getspnam ();
5872: ;
5873: return 0;
5874: }
5875: _ACEOF
5876: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 5877: if { (eval echo "$as_me:5877: \"$ac_link\"") >&5
1.9 millert 5878: (eval $ac_link) 2>&5
5879: ac_status=$?
1.11 ! millert 5880: echo "$as_me:5880: \$? = $ac_status" >&5
1.9 millert 5881: (exit $ac_status); } &&
5882: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 5883: { (eval echo "$as_me:5883: \"$ac_try\"") >&5
1.9 millert 5884: (eval $ac_try) 2>&5
5885: ac_status=$?
1.11 ! millert 5886: echo "$as_me:5886: \$? = $ac_status" >&5
1.9 millert 5887: (exit $ac_status); }; }; then
5888: ac_cv_lib_gen_getspnam=yes
5889: else
5890: echo "$as_me: failed program was:" >&5
5891: cat conftest.$ac_ext >&5
5892: ac_cv_lib_gen_getspnam=no
5893: fi
5894: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5895: LIBS=$ac_check_lib_save_LIBS
5896: fi
1.11 ! millert 5897: echo "$as_me:5897: result: $ac_cv_lib_gen_getspnam" >&5
1.9 millert 5898: echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
5899: if test $ac_cv_lib_gen_getspnam = yes; then
1.1 millert 5900:
1.9 millert 5901: cat >>confdefs.h <<\EOF
1.1 millert 5902: #define HAVE_GETSPNAM 1
5903: EOF
1.9 millert 5904: SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
5905: fi
5906:
1.1 millert 5907: fi
1.9 millert 5908: done
1.1 millert 5909:
5910: fi
5911: if test "$CHECKSHADOW" = "true"; then
1.11 ! millert 5912: echo "$as_me:5912: checking for getprpwnam" >&5
1.9 millert 5913: echo $ECHO_N "checking for getprpwnam... $ECHO_C" >&6
5914: if test "${ac_cv_func_getprpwnam+set}" = set; then
5915: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5916: else
1.9 millert 5917: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 5918: #line 5918 "configure"
1.1 millert 5919: #include "confdefs.h"
5920: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 5921: which can conflict with char getprpwnam (); below. */
1.1 millert 5922: #include <assert.h>
5923: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5924: #ifdef __cplusplus
5925: extern "C"
5926: #endif
1.1 millert 5927: /* We use char because int might match the return type of a gcc2
1.9 millert 5928: builtin and then its argument prototype would still apply. */
5929: char getprpwnam ();
5930: char (*f) ();
1.1 millert 5931:
1.9 millert 5932: int
5933: main ()
5934: {
1.1 millert 5935: /* The GNU C library defines this for functions which it implements
5936: to always fail with ENOSYS. Some functions are actually named
5937: something starting with __ and the normal name is an alias. */
5938: #if defined (__stub_getprpwnam) || defined (__stub___getprpwnam)
5939: choke me
5940: #else
1.9 millert 5941: f = getprpwnam;
1.1 millert 5942: #endif
5943:
1.9 millert 5944: ;
5945: return 0;
5946: }
5947: _ACEOF
5948: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 5949: if { (eval echo "$as_me:5949: \"$ac_link\"") >&5
1.9 millert 5950: (eval $ac_link) 2>&5
5951: ac_status=$?
1.11 ! millert 5952: echo "$as_me:5952: \$? = $ac_status" >&5
1.9 millert 5953: (exit $ac_status); } &&
5954: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 5955: { (eval echo "$as_me:5955: \"$ac_try\"") >&5
1.9 millert 5956: (eval $ac_try) 2>&5
5957: ac_status=$?
1.11 ! millert 5958: echo "$as_me:5958: \$? = $ac_status" >&5
1.9 millert 5959: (exit $ac_status); }; }; then
5960: ac_cv_func_getprpwnam=yes
5961: else
5962: echo "$as_me: failed program was:" >&5
5963: cat conftest.$ac_ext >&5
5964: ac_cv_func_getprpwnam=no
5965: fi
5966: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5967: fi
1.11 ! millert 5968: echo "$as_me:5968: result: $ac_cv_func_getprpwnam" >&5
1.9 millert 5969: echo "${ECHO_T}$ac_cv_func_getprpwnam" >&6
5970: if test $ac_cv_func_getprpwnam = yes; then
5971: cat >>confdefs.h <<\EOF
1.1 millert 5972: #define HAVE_GETPRPWNAM 1
5973: EOF
1.11 ! millert 5974: CHECKSHADOW="false"; SECUREWARE=1, echo "$as_me:5974: checking for getprpwnam in -lsec" >&5
1.9 millert 5975: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
5976: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
5977: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5978: else
1.9 millert 5979: ac_check_lib_save_LIBS=$LIBS
1.1 millert 5980: LIBS="-lsec $LIBS"
1.9 millert 5981: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 5982: #line 5982 "configure"
1.1 millert 5983: #include "confdefs.h"
1.9 millert 5984:
1.1 millert 5985: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 5986: #ifdef __cplusplus
5987: extern "C"
5988: #endif
1.1 millert 5989: /* We use char because int might match the return type of a gcc2
1.9 millert 5990: builtin and then its argument prototype would still apply. */
5991: char getprpwnam ();
5992: int
5993: main ()
5994: {
5995: getprpwnam ();
5996: ;
5997: return 0;
5998: }
5999: _ACEOF
6000: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 6001: if { (eval echo "$as_me:6001: \"$ac_link\"") >&5
1.9 millert 6002: (eval $ac_link) 2>&5
6003: ac_status=$?
1.11 ! millert 6004: echo "$as_me:6004: \$? = $ac_status" >&5
1.9 millert 6005: (exit $ac_status); } &&
6006: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 6007: { (eval echo "$as_me:6007: \"$ac_try\"") >&5
1.9 millert 6008: (eval $ac_try) 2>&5
6009: ac_status=$?
1.11 ! millert 6010: echo "$as_me:6010: \$? = $ac_status" >&5
1.9 millert 6011: (exit $ac_status); }; }; then
6012: ac_cv_lib_sec_getprpwnam=yes
6013: else
6014: echo "$as_me: failed program was:" >&5
6015: cat conftest.$ac_ext >&5
6016: ac_cv_lib_sec_getprpwnam=no
6017: fi
6018: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6019: LIBS=$ac_check_lib_save_LIBS
6020: fi
1.11 ! millert 6021: echo "$as_me:6021: result: $ac_cv_lib_sec_getprpwnam" >&5
1.9 millert 6022: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
6023: if test $ac_cv_lib_sec_getprpwnam = yes; then
6024: cat >>confdefs.h <<\EOF
1.1 millert 6025: #define HAVE_GETPRPWNAM 1
6026: EOF
6027: CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
6028: else
1.11 ! millert 6029: echo "$as_me:6029: checking for getprpwnam in -lsecurity" >&5
1.9 millert 6030: echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
6031: if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
6032: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6033: else
1.9 millert 6034: ac_check_lib_save_LIBS=$LIBS
1.1 millert 6035: LIBS="-lsecurity $LIBS"
1.9 millert 6036: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 6037: #line 6037 "configure"
1.1 millert 6038: #include "confdefs.h"
1.9 millert 6039:
1.1 millert 6040: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 6041: #ifdef __cplusplus
6042: extern "C"
6043: #endif
1.1 millert 6044: /* We use char because int might match the return type of a gcc2
1.9 millert 6045: builtin and then its argument prototype would still apply. */
6046: char getprpwnam ();
6047: int
6048: main ()
6049: {
6050: getprpwnam ();
6051: ;
6052: return 0;
6053: }
6054: _ACEOF
6055: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 6056: if { (eval echo "$as_me:6056: \"$ac_link\"") >&5
1.9 millert 6057: (eval $ac_link) 2>&5
6058: ac_status=$?
1.11 ! millert 6059: echo "$as_me:6059: \$? = $ac_status" >&5
1.9 millert 6060: (exit $ac_status); } &&
6061: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 6062: { (eval echo "$as_me:6062: \"$ac_try\"") >&5
1.9 millert 6063: (eval $ac_try) 2>&5
6064: ac_status=$?
1.11 ! millert 6065: echo "$as_me:6065: \$? = $ac_status" >&5
1.9 millert 6066: (exit $ac_status); }; }; then
6067: ac_cv_lib_security_getprpwnam=yes
6068: else
6069: echo "$as_me: failed program was:" >&5
6070: cat conftest.$ac_ext >&5
6071: ac_cv_lib_security_getprpwnam=no
6072: fi
6073: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6074: LIBS=$ac_check_lib_save_LIBS
6075: fi
1.11 ! millert 6076: echo "$as_me:6076: result: $ac_cv_lib_security_getprpwnam" >&5
1.9 millert 6077: echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
6078: if test $ac_cv_lib_security_getprpwnam = yes; then
6079: cat >>confdefs.h <<\EOF
1.1 millert 6080: #define HAVE_GETPRPWNAM 1
6081: EOF
6082: CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"
6083: else
1.11 ! millert 6084: echo "$as_me:6084: checking for getprpwnam in -lprot" >&5
1.9 millert 6085: echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
6086: if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
6087: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6088: else
1.9 millert 6089: ac_check_lib_save_LIBS=$LIBS
1.1 millert 6090: LIBS="-lprot $LIBS"
1.9 millert 6091: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 6092: #line 6092 "configure"
1.1 millert 6093: #include "confdefs.h"
1.9 millert 6094:
1.1 millert 6095: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 6096: #ifdef __cplusplus
6097: extern "C"
6098: #endif
1.1 millert 6099: /* We use char because int might match the return type of a gcc2
1.9 millert 6100: builtin and then its argument prototype would still apply. */
6101: char getprpwnam ();
6102: int
6103: main ()
6104: {
6105: getprpwnam ();
6106: ;
6107: return 0;
6108: }
6109: _ACEOF
6110: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 6111: if { (eval echo "$as_me:6111: \"$ac_link\"") >&5
1.9 millert 6112: (eval $ac_link) 2>&5
6113: ac_status=$?
1.11 ! millert 6114: echo "$as_me:6114: \$? = $ac_status" >&5
1.9 millert 6115: (exit $ac_status); } &&
6116: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 6117: { (eval echo "$as_me:6117: \"$ac_try\"") >&5
1.9 millert 6118: (eval $ac_try) 2>&5
6119: ac_status=$?
1.11 ! millert 6120: echo "$as_me:6120: \$? = $ac_status" >&5
1.9 millert 6121: (exit $ac_status); }; }; then
6122: ac_cv_lib_prot_getprpwnam=yes
6123: else
6124: echo "$as_me: failed program was:" >&5
6125: cat conftest.$ac_ext >&5
6126: ac_cv_lib_prot_getprpwnam=no
6127: fi
6128: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6129: LIBS=$ac_check_lib_save_LIBS
6130: fi
1.11 ! millert 6131: echo "$as_me:6131: result: $ac_cv_lib_prot_getprpwnam" >&5
1.9 millert 6132: echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
6133: if test $ac_cv_lib_prot_getprpwnam = yes; then
6134: cat >>confdefs.h <<\EOF
1.1 millert 6135: #define HAVE_GETPRPWNAM 1
6136: EOF
6137: CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"
6138: fi
6139:
6140: fi
6141:
6142: fi
6143:
6144: fi
6145:
6146: fi
6147:
1.9 millert 6148: if test $ac_cv_c_compiler_gnu = yes; then
1.11 ! millert 6149: echo "$as_me:6149: checking whether $CC needs -traditional" >&5
1.9 millert 6150: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
6151: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6152: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6153: else
6154: ac_pattern="Autoconf.*'x'"
1.9 millert 6155: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 6156: #line 6156 "configure"
1.1 millert 6157: #include "confdefs.h"
6158: #include <sgtty.h>
6159: Autoconf TIOCGETP
1.9 millert 6160: _ACEOF
1.1 millert 6161: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6162: egrep "$ac_pattern" >/dev/null 2>&1; then
6163: ac_cv_prog_gcc_traditional=yes
6164: else
6165: ac_cv_prog_gcc_traditional=no
6166: fi
6167: rm -f conftest*
6168:
6169: if test $ac_cv_prog_gcc_traditional = no; then
1.9 millert 6170: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 6171: #line 6171 "configure"
1.1 millert 6172: #include "confdefs.h"
6173: #include <termio.h>
6174: Autoconf TCGETA
1.9 millert 6175: _ACEOF
1.1 millert 6176: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6177: egrep "$ac_pattern" >/dev/null 2>&1; then
6178: ac_cv_prog_gcc_traditional=yes
6179: fi
6180: rm -f conftest*
6181:
6182: fi
6183: fi
1.11 ! millert 6184: echo "$as_me:6184: result: $ac_cv_prog_gcc_traditional" >&5
1.9 millert 6185: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
1.1 millert 6186: if test $ac_cv_prog_gcc_traditional = yes; then
6187: CC="$CC -traditional"
6188: fi
6189: fi
6190:
1.11 ! millert 6191: echo "$as_me:6191: checking for an ANSI C-conforming const" >&5
1.9 millert 6192: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6193: if test "${ac_cv_c_const+set}" = set; then
6194: echo $ECHO_N "(cached) $ECHO_C" >&6
6195: else
6196: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 6197: #line 6197 "configure"
1.9 millert 6198: #include "confdefs.h"
6199:
6200: int
6201: main ()
6202: {
6203: /* FIXME: Include the comments suggested by Paul. */
6204: #ifndef __cplusplus
6205: /* Ultrix mips cc rejects this. */
6206: typedef int charset[2];
6207: const charset x;
6208: /* SunOS 4.1.1 cc rejects this. */
6209: char const *const *ccp;
6210: char **p;
6211: /* NEC SVR4.0.2 mips cc rejects this. */
6212: struct point {int x, y;};
6213: static struct point const zero = {0,0};
6214: /* AIX XL C 1.02.0.0 rejects this.
6215: It does not let you subtract one const X* pointer from another in
6216: an arm of an if-expression whose if-part is not a constant
6217: expression */
6218: const char *g = "string";
6219: ccp = &g + (g ? g-g : 0);
6220: /* HPUX 7.0 cc rejects these. */
6221: ++ccp;
6222: p = (char**) ccp;
6223: ccp = (char const *const *) p;
6224: { /* SCO 3.2v4 cc rejects this. */
6225: char *t;
6226: char const *s = 0 ? (char *) 0 : (char const *) 0;
6227:
6228: *t++ = 0;
6229: }
6230: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6231: int x[] = {25, 17};
6232: const int *foo = &x[0];
6233: ++foo;
6234: }
6235: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6236: typedef const int *iptr;
6237: iptr p = 0;
6238: ++p;
6239: }
6240: { /* AIX XL C 1.02.0.0 rejects this saying
6241: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6242: struct s { int j; const int *ap[3]; };
6243: struct s *b; b->j = 5;
6244: }
6245: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6246: const int foo = 10;
6247: }
6248: #endif
6249:
6250: ;
6251: return 0;
1.1 millert 6252: }
1.9 millert 6253: _ACEOF
6254: rm -f conftest.$ac_objext
1.11 ! millert 6255: if { (eval echo "$as_me:6255: \"$ac_compile\"") >&5
1.9 millert 6256: (eval $ac_compile) 2>&5
6257: ac_status=$?
1.11 ! millert 6258: echo "$as_me:6258: \$? = $ac_status" >&5
1.9 millert 6259: (exit $ac_status); } &&
6260: { ac_try='test -s conftest.$ac_objext'
1.11 ! millert 6261: { (eval echo "$as_me:6261: \"$ac_try\"") >&5
1.9 millert 6262: (eval $ac_try) 2>&5
6263: ac_status=$?
1.11 ! millert 6264: echo "$as_me:6264: \$? = $ac_status" >&5
1.9 millert 6265: (exit $ac_status); }; }; then
1.1 millert 6266: ac_cv_c_const=yes
6267: else
1.9 millert 6268: echo "$as_me: failed program was:" >&5
6269: cat conftest.$ac_ext >&5
6270: ac_cv_c_const=no
6271: fi
6272: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 6273: fi
1.11 ! millert 6274: echo "$as_me:6274: result: $ac_cv_c_const" >&5
1.9 millert 6275: echo "${ECHO_T}$ac_cv_c_const" >&6
6276: if test $ac_cv_c_const = no; then
6277:
6278: cat >>confdefs.h <<\EOF
6279: #define const
6280: EOF
6281:
1.1 millert 6282: fi
6283:
1.11 ! millert 6284: echo "$as_me:6284: checking for working volatile" >&5
1.9 millert 6285: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6286: if test "${ac_cv_c_volatile+set}" = set; then
6287: echo $ECHO_N "(cached) $ECHO_C" >&6
6288: else
6289: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 6290: #line 6290 "configure"
1.9 millert 6291: #include "confdefs.h"
6292:
6293: int
6294: main ()
6295: {
6296:
6297: volatile int x;
6298: int * volatile y;
6299: ;
6300: return 0;
6301: }
6302: _ACEOF
6303: rm -f conftest.$ac_objext
1.11 ! millert 6304: if { (eval echo "$as_me:6304: \"$ac_compile\"") >&5
1.9 millert 6305: (eval $ac_compile) 2>&5
6306: ac_status=$?
1.11 ! millert 6307: echo "$as_me:6307: \$? = $ac_status" >&5
1.9 millert 6308: (exit $ac_status); } &&
6309: { ac_try='test -s conftest.$ac_objext'
1.11 ! millert 6310: { (eval echo "$as_me:6310: \"$ac_try\"") >&5
1.9 millert 6311: (eval $ac_try) 2>&5
6312: ac_status=$?
1.11 ! millert 6313: echo "$as_me:6313: \$? = $ac_status" >&5
1.9 millert 6314: (exit $ac_status); }; }; then
6315: ac_cv_c_volatile=yes
6316: else
6317: echo "$as_me: failed program was:" >&5
6318: cat conftest.$ac_ext >&5
6319: ac_cv_c_volatile=no
6320: fi
6321: rm -f conftest.$ac_objext conftest.$ac_ext
6322: fi
1.11 ! millert 6323: echo "$as_me:6323: result: $ac_cv_c_volatile" >&5
1.9 millert 6324: echo "${ECHO_T}$ac_cv_c_volatile" >&6
6325: if test $ac_cv_c_volatile = no; then
6326:
6327: cat >>confdefs.h <<\EOF
6328: #define volatile
1.1 millert 6329: EOF
6330:
6331: fi
6332:
6333: for ac_prog in 'bison -y' byacc
6334: do
1.9 millert 6335: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.1 millert 6336: set dummy $ac_prog; ac_word=$2
1.11 ! millert 6337: echo "$as_me:6337: checking for $ac_word" >&5
1.9 millert 6338: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6339: if test "${ac_cv_prog_YACC+set}" = set; then
6340: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6341: else
6342: if test -n "$YACC"; then
6343: ac_cv_prog_YACC="$YACC" # Let the user override the test.
6344: else
1.9 millert 6345: ac_save_IFS=$IFS; IFS=$ac_path_separator
6346: ac_dummy="$PATH"
6347: for ac_dir in $ac_dummy; do
6348: IFS=$ac_save_IFS
6349: test -z "$ac_dir" && ac_dir=.
6350: $as_executable_p "$ac_dir/$ac_word" || continue
6351: ac_cv_prog_YACC="$ac_prog"
1.11 ! millert 6352: echo "$as_me:6352: found $ac_dir/$ac_word" >&5
1.9 millert 6353: break
6354: done
6355:
1.1 millert 6356: fi
6357: fi
1.9 millert 6358: YACC=$ac_cv_prog_YACC
1.1 millert 6359: if test -n "$YACC"; then
1.11 ! millert 6360: echo "$as_me:6360: result: $YACC" >&5
1.9 millert 6361: echo "${ECHO_T}$YACC" >&6
1.1 millert 6362: else
1.11 ! millert 6363: echo "$as_me:6363: result: no" >&5
1.9 millert 6364: echo "${ECHO_T}no" >&6
1.1 millert 6365: fi
6366:
1.9 millert 6367: test -n "$YACC" && break
1.1 millert 6368: done
6369: test -n "$YACC" || YACC="yacc"
6370:
1.11 ! millert 6371: echo "$as_me:6371: checking for mv" >&5
1.9 millert 6372: echo $ECHO_N "checking for mv... $ECHO_C" >&6
1.1 millert 6373: if test -f "/usr/bin/mv"; then
1.11 ! millert 6374: echo "$as_me:6374: result: /usr/bin/mv" >&5
1.9 millert 6375: echo "${ECHO_T}/usr/bin/mv" >&6
6376: cat >>confdefs.h <<\EOF
1.1 millert 6377: #define _PATH_MV "/usr/bin/mv"
6378: EOF
6379:
6380: elif test -f "/bin/mv"; then
1.11 ! millert 6381: echo "$as_me:6381: result: /bin/mv" >&5
1.9 millert 6382: echo "${ECHO_T}/bin/mv" >&6
6383: cat >>confdefs.h <<\EOF
1.1 millert 6384: #define _PATH_MV "/bin/mv"
6385: EOF
6386:
6387: elif test -f "/usr/ucb/mv"; then
1.11 ! millert 6388: echo "$as_me:6388: result: /usr/ucb/mv" >&5
1.9 millert 6389: echo "${ECHO_T}/usr/ucb/mv" >&6
6390: cat >>confdefs.h <<\EOF
1.1 millert 6391: #define _PATH_MV "/usr/ucb/mv"
6392: EOF
6393:
6394: elif test -f "/usr/sbin/mv"; then
1.11 ! millert 6395: echo "$as_me:6395: result: /usr/sbin/mv" >&5
1.9 millert 6396: echo "${ECHO_T}/usr/sbin/mv" >&6
6397: cat >>confdefs.h <<\EOF
1.1 millert 6398: #define _PATH_MV "/usr/sbin/mv"
6399: EOF
6400:
6401: else
1.11 ! millert 6402: echo "$as_me:6402: result: not found" >&5
1.9 millert 6403: echo "${ECHO_T}not found" >&6
1.1 millert 6404: fi
6405:
1.11 ! millert 6406: echo "$as_me:6406: checking for bourne shell" >&5
1.9 millert 6407: echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6
1.1 millert 6408: if test -f "/bin/sh"; then
1.11 ! millert 6409: echo "$as_me:6409: result: /bin/sh" >&5
1.9 millert 6410: echo "${ECHO_T}/bin/sh" >&6
6411: cat >>confdefs.h <<\EOF
1.1 millert 6412: #define _PATH_BSHELL "/bin/sh"
6413: EOF
6414:
6415: elif test -f "/usr/bin/sh"; then
1.11 ! millert 6416: echo "$as_me:6416: result: /usr/bin/sh" >&5
1.9 millert 6417: echo "${ECHO_T}/usr/bin/sh" >&6
6418: cat >>confdefs.h <<\EOF
1.1 millert 6419: #define _PATH_BSHELL "/usr/bin/sh"
6420: EOF
6421:
6422: elif test -f "/sbin/sh"; then
1.11 ! millert 6423: echo "$as_me:6423: result: /sbin/sh" >&5
1.9 millert 6424: echo "${ECHO_T}/sbin/sh" >&6
6425: cat >>confdefs.h <<\EOF
1.1 millert 6426: #define _PATH_BSHELL "/sbin/sh"
6427: EOF
6428:
6429: elif test -f "/usr/sbin/sh"; then
1.11 ! millert 6430: echo "$as_me:6430: result: /usr/sbin/sh" >&5
1.9 millert 6431: echo "${ECHO_T}/usr/sbin/sh" >&6
6432: cat >>confdefs.h <<\EOF
1.1 millert 6433: #define _PATH_BSHELL "/usr/sbin/sh"
6434: EOF
6435:
6436: elif test -f "/bin/ksh"; then
1.11 ! millert 6437: echo "$as_me:6437: result: /bin/ksh" >&5
1.9 millert 6438: echo "${ECHO_T}/bin/ksh" >&6
6439: cat >>confdefs.h <<\EOF
1.1 millert 6440: #define _PATH_BSHELL "/bin/ksh"
6441: EOF
6442:
6443: elif test -f "/usr/bin/ksh"; then
1.11 ! millert 6444: echo "$as_me:6444: result: /usr/bin/ksh" >&5
1.9 millert 6445: echo "${ECHO_T}/usr/bin/ksh" >&6
6446: cat >>confdefs.h <<\EOF
1.1 millert 6447: #define _PATH_BSHELL "/usr/bin/ksh"
6448: EOF
6449:
6450: elif test -f "/bin/bash"; then
1.11 ! millert 6451: echo "$as_me:6451: result: /bin/bash" >&5
1.9 millert 6452: echo "${ECHO_T}/bin/bash" >&6
6453: cat >>confdefs.h <<\EOF
1.1 millert 6454: #define _PATH_BSHELL "/bin/bash"
6455: EOF
6456:
6457: elif test -f "/usr/bin/bash"; then
1.11 ! millert 6458: echo "$as_me:6458: result: /usr/bin/bash" >&5
1.9 millert 6459: echo "${ECHO_T}/usr/bin/bash" >&6
6460: cat >>confdefs.h <<\EOF
1.1 millert 6461: #define _PATH_BSHELL "/usr/bin/bash"
6462: EOF
6463:
6464: else
1.11 ! millert 6465: echo "$as_me:6465: result: not found" >&5
1.9 millert 6466: echo "${ECHO_T}not found" >&6
6467: fi
6468:
6469: if test -z "$with_sendmail"; then
1.11 ! millert 6470: echo "$as_me:6470: checking for sendmail" >&5
1.9 millert 6471: echo $ECHO_N "checking for sendmail... $ECHO_C" >&6
6472: if test -f "/usr/sbin/sendmail"; then
1.11 ! millert 6473: echo "$as_me:6473: result: /usr/sbin/sendmail" >&5
1.9 millert 6474: echo "${ECHO_T}/usr/sbin/sendmail" >&6
6475: cat >>confdefs.h <<\EOF
6476: #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
6477: EOF
6478:
6479: elif test -f "/usr/lib/sendmail"; then
1.11 ! millert 6480: echo "$as_me:6480: result: /usr/lib/sendmail" >&5
1.9 millert 6481: echo "${ECHO_T}/usr/lib/sendmail" >&6
6482: cat >>confdefs.h <<\EOF
6483: #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
6484: EOF
6485:
6486: elif test -f "/usr/etc/sendmail"; then
1.11 ! millert 6487: echo "$as_me:6487: result: /usr/etc/sendmail" >&5
1.9 millert 6488: echo "${ECHO_T}/usr/etc/sendmail" >&6
6489: cat >>confdefs.h <<\EOF
6490: #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
6491: EOF
6492:
6493: elif test -f "/usr/ucblib/sendmail"; then
1.11 ! millert 6494: echo "$as_me:6494: result: /usr/ucblib/sendmail" >&5
1.9 millert 6495: echo "${ECHO_T}/usr/ucblib/sendmail" >&6
6496: cat >>confdefs.h <<\EOF
6497: #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
6498: EOF
6499:
6500: elif test -f "/usr/local/lib/sendmail"; then
1.11 ! millert 6501: echo "$as_me:6501: result: /usr/local/lib/sendmail" >&5
1.9 millert 6502: echo "${ECHO_T}/usr/local/lib/sendmail" >&6
6503: cat >>confdefs.h <<\EOF
6504: #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
6505: EOF
6506:
6507: elif test -f "/usr/local/bin/sendmail"; then
1.11 ! millert 6508: echo "$as_me:6508: result: /usr/local/bin/sendmail" >&5
1.9 millert 6509: echo "${ECHO_T}/usr/local/bin/sendmail" >&6
6510: cat >>confdefs.h <<\EOF
6511: #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
6512: EOF
6513:
6514: else
1.11 ! millert 6515: echo "$as_me:6515: result: not found" >&5
1.9 millert 6516: echo "${ECHO_T}not found" >&6
1.1 millert 6517: fi
6518:
1.9 millert 6519: fi
6520: if test -z "$with_editor"; then
1.11 ! millert 6521: echo "$as_me:6521: checking for vi" >&5
1.9 millert 6522: echo $ECHO_N "checking for vi... $ECHO_C" >&6
1.1 millert 6523: if test -f "/usr/bin/vi"; then
1.11 ! millert 6524: echo "$as_me:6524: result: /usr/bin/vi" >&5
1.9 millert 6525: echo "${ECHO_T}/usr/bin/vi" >&6
6526: cat >>confdefs.h <<\EOF
1.1 millert 6527: #define _PATH_VI "/usr/bin/vi"
6528: EOF
6529:
6530: elif test -f "/usr/ucb/vi"; then
1.11 ! millert 6531: echo "$as_me:6531: result: /usr/ucb/vi" >&5
1.9 millert 6532: echo "${ECHO_T}/usr/ucb/vi" >&6
6533: cat >>confdefs.h <<\EOF
1.1 millert 6534: #define _PATH_VI "/usr/ucb/vi"
6535: EOF
6536:
6537: elif test -f "/usr/bsd/vi"; then
1.11 ! millert 6538: echo "$as_me:6538: result: /usr/bsd/vi" >&5
1.9 millert 6539: echo "${ECHO_T}/usr/bsd/vi" >&6
6540: cat >>confdefs.h <<\EOF
1.1 millert 6541: #define _PATH_VI "/usr/bsd/vi"
6542: EOF
6543:
6544: elif test -f "/bin/vi"; then
1.11 ! millert 6545: echo "$as_me:6545: result: /bin/vi" >&5
1.9 millert 6546: echo "${ECHO_T}/bin/vi" >&6
6547: cat >>confdefs.h <<\EOF
1.1 millert 6548: #define _PATH_VI "/bin/vi"
6549: EOF
6550:
6551: elif test -f "/usr/local/bin/vi"; then
1.11 ! millert 6552: echo "$as_me:6552: result: /usr/local/bin/vi" >&5
1.9 millert 6553: echo "${ECHO_T}/usr/local/bin/vi" >&6
6554: cat >>confdefs.h <<\EOF
1.1 millert 6555: #define _PATH_VI "/usr/local/bin/vi"
6556: EOF
6557:
6558: else
1.11 ! millert 6559: echo "$as_me:6559: result: not found" >&5
1.9 millert 6560: echo "${ECHO_T}not found" >&6
1.1 millert 6561: fi
6562:
1.9 millert 6563: fi
1.11 ! millert 6564: echo "$as_me:6564: checking for ANSI C header files" >&5
1.9 millert 6565: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6566: if test "${ac_cv_header_stdc+set}" = set; then
6567: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6568: else
1.9 millert 6569: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 6570: #line 6570 "configure"
1.1 millert 6571: #include "confdefs.h"
6572: #include <stdlib.h>
6573: #include <stdarg.h>
6574: #include <string.h>
6575: #include <float.h>
1.9 millert 6576:
6577: _ACEOF
1.11 ! millert 6578: if { (eval echo "$as_me:6578: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 6579: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6580: ac_status=$?
6581: egrep -v '^ *\+' conftest.er1 >conftest.err
6582: rm -f conftest.er1
6583: cat conftest.err >&5
1.11 ! millert 6584: echo "$as_me:6584: \$? = $ac_status" >&5
1.9 millert 6585: (exit $ac_status); } >/dev/null; then
6586: if test -s conftest.err; then
6587: ac_cpp_err=$ac_c_preproc_warn_flag
6588: else
6589: ac_cpp_err=
6590: fi
6591: else
6592: ac_cpp_err=yes
6593: fi
6594: if test -z "$ac_cpp_err"; then
1.1 millert 6595: ac_cv_header_stdc=yes
6596: else
1.9 millert 6597: echo "$as_me: failed program was:" >&5
1.1 millert 6598: cat conftest.$ac_ext >&5
6599: ac_cv_header_stdc=no
6600: fi
1.9 millert 6601: rm -f conftest.err conftest.$ac_ext
1.1 millert 6602:
6603: if test $ac_cv_header_stdc = yes; then
6604: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.9 millert 6605: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 6606: #line 6606 "configure"
1.1 millert 6607: #include "confdefs.h"
6608: #include <string.h>
1.9 millert 6609:
6610: _ACEOF
1.1 millert 6611: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6612: egrep "memchr" >/dev/null 2>&1; then
6613: :
6614: else
6615: ac_cv_header_stdc=no
6616: fi
6617: rm -f conftest*
6618:
6619: fi
6620:
6621: if test $ac_cv_header_stdc = yes; then
6622: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.9 millert 6623: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 6624: #line 6624 "configure"
1.1 millert 6625: #include "confdefs.h"
6626: #include <stdlib.h>
1.9 millert 6627:
6628: _ACEOF
1.1 millert 6629: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6630: egrep "free" >/dev/null 2>&1; then
6631: :
6632: else
6633: ac_cv_header_stdc=no
6634: fi
6635: rm -f conftest*
6636:
6637: fi
6638:
6639: if test $ac_cv_header_stdc = yes; then
6640: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.9 millert 6641: if test "$cross_compiling" = yes; then
1.1 millert 6642: :
6643: else
1.9 millert 6644: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 6645: #line 6645 "configure"
1.1 millert 6646: #include "confdefs.h"
6647: #include <ctype.h>
1.9 millert 6648: #if ((' ' & 0x0FF) == 0x020)
6649: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6650: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6651: #else
6652: # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6653: || ('j' <= (c) && (c) <= 'r') \
6654: || ('s' <= (c) && (c) <= 'z'))
6655: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6656: #endif
6657:
1.1 millert 6658: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.9 millert 6659: int
6660: main ()
6661: {
6662: int i;
6663: for (i = 0; i < 256; i++)
6664: if (XOR (islower (i), ISLOWER (i))
6665: || toupper (i) != TOUPPER (i))
6666: exit(2);
6667: exit (0);
6668: }
6669: _ACEOF
6670: rm -f conftest$ac_exeext
1.11 ! millert 6671: if { (eval echo "$as_me:6671: \"$ac_link\"") >&5
1.9 millert 6672: (eval $ac_link) 2>&5
6673: ac_status=$?
1.11 ! millert 6674: echo "$as_me:6674: \$? = $ac_status" >&5
1.9 millert 6675: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.11 ! millert 6676: { (eval echo "$as_me:6676: \"$ac_try\"") >&5
1.9 millert 6677: (eval $ac_try) 2>&5
6678: ac_status=$?
1.11 ! millert 6679: echo "$as_me:6679: \$? = $ac_status" >&5
1.9 millert 6680: (exit $ac_status); }; }; then
1.1 millert 6681: :
6682: else
1.9 millert 6683: echo "$as_me: program exited with status $ac_status" >&5
6684: echo "$as_me: failed program was:" >&5
6685: cat conftest.$ac_ext >&5
6686: ac_cv_header_stdc=no
1.1 millert 6687: fi
1.9 millert 6688: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 6689: fi
6690: fi
6691: fi
1.11 ! millert 6692: echo "$as_me:6692: result: $ac_cv_header_stdc" >&5
1.9 millert 6693: echo "${ECHO_T}$ac_cv_header_stdc" >&6
6694: if test $ac_cv_header_stdc = yes; then
1.1 millert 6695:
1.9 millert 6696: cat >>confdefs.h <<\EOF
1.1 millert 6697: #define STDC_HEADERS 1
6698: EOF
6699:
6700: fi
6701:
6702: ac_header_dirent=no
1.9 millert 6703: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6704: as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
1.11 ! millert 6705: echo "$as_me:6705: checking for $ac_hdr that defines DIR" >&5
1.9 millert 6706: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6707: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6708: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6709: else
1.9 millert 6710: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 6711: #line 6711 "configure"
1.1 millert 6712: #include "confdefs.h"
6713: #include <sys/types.h>
6714: #include <$ac_hdr>
1.9 millert 6715:
6716: int
6717: main ()
6718: {
6719: if ((DIR *) 0)
6720: return 0;
6721: ;
6722: return 0;
6723: }
6724: _ACEOF
6725: rm -f conftest.$ac_objext
1.11 ! millert 6726: if { (eval echo "$as_me:6726: \"$ac_compile\"") >&5
1.9 millert 6727: (eval $ac_compile) 2>&5
6728: ac_status=$?
1.11 ! millert 6729: echo "$as_me:6729: \$? = $ac_status" >&5
1.9 millert 6730: (exit $ac_status); } &&
6731: { ac_try='test -s conftest.$ac_objext'
1.11 ! millert 6732: { (eval echo "$as_me:6732: \"$ac_try\"") >&5
1.9 millert 6733: (eval $ac_try) 2>&5
6734: ac_status=$?
1.11 ! millert 6735: echo "$as_me:6735: \$? = $ac_status" >&5
1.9 millert 6736: (exit $ac_status); }; }; then
6737: eval "$as_ac_Header=yes"
6738: else
6739: echo "$as_me: failed program was:" >&5
6740: cat conftest.$ac_ext >&5
6741: eval "$as_ac_Header=no"
6742: fi
6743: rm -f conftest.$ac_objext conftest.$ac_ext
6744: fi
1.11 ! millert 6745: echo "$as_me:6745: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9 millert 6746: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6747: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6748: cat >>confdefs.h <<EOF
6749: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
1.1 millert 6750: EOF
1.9 millert 6751:
6752: ac_header_dirent=$ac_hdr; break
1.1 millert 6753: fi
1.9 millert 6754:
1.1 millert 6755: done
6756: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6757: if test $ac_header_dirent = dirent.h; then
1.11 ! millert 6758: echo "$as_me:6758: checking for opendir in -ldir" >&5
1.9 millert 6759: echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
6760: if test "${ac_cv_lib_dir_opendir+set}" = set; then
6761: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6762: else
1.9 millert 6763: ac_check_lib_save_LIBS=$LIBS
1.1 millert 6764: LIBS="-ldir $LIBS"
1.9 millert 6765: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 6766: #line 6766 "configure"
1.1 millert 6767: #include "confdefs.h"
1.9 millert 6768:
1.1 millert 6769: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 6770: #ifdef __cplusplus
6771: extern "C"
6772: #endif
1.1 millert 6773: /* We use char because int might match the return type of a gcc2
1.9 millert 6774: builtin and then its argument prototype would still apply. */
6775: char opendir ();
6776: int
6777: main ()
6778: {
6779: opendir ();
6780: ;
6781: return 0;
6782: }
6783: _ACEOF
6784: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 6785: if { (eval echo "$as_me:6785: \"$ac_link\"") >&5
1.9 millert 6786: (eval $ac_link) 2>&5
6787: ac_status=$?
1.11 ! millert 6788: echo "$as_me:6788: \$? = $ac_status" >&5
1.9 millert 6789: (exit $ac_status); } &&
6790: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 6791: { (eval echo "$as_me:6791: \"$ac_try\"") >&5
1.9 millert 6792: (eval $ac_try) 2>&5
6793: ac_status=$?
1.11 ! millert 6794: echo "$as_me:6794: \$? = $ac_status" >&5
1.9 millert 6795: (exit $ac_status); }; }; then
6796: ac_cv_lib_dir_opendir=yes
6797: else
6798: echo "$as_me: failed program was:" >&5
6799: cat conftest.$ac_ext >&5
6800: ac_cv_lib_dir_opendir=no
6801: fi
6802: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6803: LIBS=$ac_check_lib_save_LIBS
6804: fi
1.11 ! millert 6805: echo "$as_me:6805: result: $ac_cv_lib_dir_opendir" >&5
1.9 millert 6806: echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
6807: if test $ac_cv_lib_dir_opendir = yes; then
1.1 millert 6808: LIBS="$LIBS -ldir"
6809: fi
6810:
6811: else
1.11 ! millert 6812: echo "$as_me:6812: checking for opendir in -lx" >&5
1.9 millert 6813: echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
6814: if test "${ac_cv_lib_x_opendir+set}" = set; then
6815: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6816: else
1.9 millert 6817: ac_check_lib_save_LIBS=$LIBS
1.1 millert 6818: LIBS="-lx $LIBS"
1.9 millert 6819: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 6820: #line 6820 "configure"
1.1 millert 6821: #include "confdefs.h"
1.9 millert 6822:
1.1 millert 6823: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 6824: #ifdef __cplusplus
6825: extern "C"
6826: #endif
1.1 millert 6827: /* We use char because int might match the return type of a gcc2
1.9 millert 6828: builtin and then its argument prototype would still apply. */
6829: char opendir ();
6830: int
6831: main ()
6832: {
6833: opendir ();
6834: ;
6835: return 0;
6836: }
6837: _ACEOF
6838: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 6839: if { (eval echo "$as_me:6839: \"$ac_link\"") >&5
1.9 millert 6840: (eval $ac_link) 2>&5
6841: ac_status=$?
1.11 ! millert 6842: echo "$as_me:6842: \$? = $ac_status" >&5
1.9 millert 6843: (exit $ac_status); } &&
6844: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 6845: { (eval echo "$as_me:6845: \"$ac_try\"") >&5
1.9 millert 6846: (eval $ac_try) 2>&5
6847: ac_status=$?
1.11 ! millert 6848: echo "$as_me:6848: \$? = $ac_status" >&5
1.9 millert 6849: (exit $ac_status); }; }; then
6850: ac_cv_lib_x_opendir=yes
6851: else
6852: echo "$as_me: failed program was:" >&5
6853: cat conftest.$ac_ext >&5
6854: ac_cv_lib_x_opendir=no
6855: fi
6856: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6857: LIBS=$ac_check_lib_save_LIBS
6858: fi
1.11 ! millert 6859: echo "$as_me:6859: result: $ac_cv_lib_x_opendir" >&5
1.9 millert 6860: echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
6861: if test $ac_cv_lib_x_opendir = yes; then
1.1 millert 6862: LIBS="$LIBS -lx"
6863: fi
6864:
6865: fi
6866:
1.9 millert 6867: for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
1.1 millert 6868: do
1.9 millert 6869: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.11 ! millert 6870: echo "$as_me:6870: checking for $ac_header" >&5
1.9 millert 6871: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6872: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6873: echo $ECHO_N "(cached) $ECHO_C" >&6
6874: else
6875: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 6876: #line 6876 "configure"
1.9 millert 6877: #include "confdefs.h"
6878: #include <$ac_header>
6879: _ACEOF
1.11 ! millert 6880: if { (eval echo "$as_me:6880: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 6881: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6882: ac_status=$?
6883: egrep -v '^ *\+' conftest.er1 >conftest.err
6884: rm -f conftest.er1
6885: cat conftest.err >&5
1.11 ! millert 6886: echo "$as_me:6886: \$? = $ac_status" >&5
1.9 millert 6887: (exit $ac_status); } >/dev/null; then
6888: if test -s conftest.err; then
6889: ac_cpp_err=$ac_c_preproc_warn_flag
6890: else
6891: ac_cpp_err=
6892: fi
1.1 millert 6893: else
1.9 millert 6894: ac_cpp_err=yes
6895: fi
6896: if test -z "$ac_cpp_err"; then
6897: eval "$as_ac_Header=yes"
1.1 millert 6898: else
1.9 millert 6899: echo "$as_me: failed program was:" >&5
1.1 millert 6900: cat conftest.$ac_ext >&5
1.9 millert 6901: eval "$as_ac_Header=no"
1.1 millert 6902: fi
1.9 millert 6903: rm -f conftest.err conftest.$ac_ext
1.1 millert 6904: fi
1.11 ! millert 6905: echo "$as_me:6905: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9 millert 6906: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6907: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6908: cat >>confdefs.h <<EOF
6909: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 millert 6910: EOF
1.9 millert 6911:
1.1 millert 6912: fi
6913: done
6914:
6915: if test "$OS" != "ultrix"; then
1.11 ! millert 6916: echo "$as_me:6916: checking POSIX termios" >&5
1.9 millert 6917: echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
6918: if test "${ac_cv_sys_posix_termios+set}" = set; then
6919: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 6920: else
1.9 millert 6921: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 6922: #line 6922 "configure"
1.1 millert 6923: #include "confdefs.h"
1.9 millert 6924: #include <sys/types.h>
6925: #include <unistd.h>
6926: #include <termios.h>
6927: int
6928: main ()
6929: {
6930: /* SunOS 4.0.3 has termios.h but not the library calls. */
6931: tcgetattr(0, 0);
6932: ;
6933: return 0;
6934: }
6935: _ACEOF
6936: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 6937: if { (eval echo "$as_me:6937: \"$ac_link\"") >&5
1.9 millert 6938: (eval $ac_link) 2>&5
6939: ac_status=$?
1.11 ! millert 6940: echo "$as_me:6940: \$? = $ac_status" >&5
1.9 millert 6941: (exit $ac_status); } &&
6942: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 6943: { (eval echo "$as_me:6943: \"$ac_try\"") >&5
1.9 millert 6944: (eval $ac_try) 2>&5
6945: ac_status=$?
1.11 ! millert 6946: echo "$as_me:6946: \$? = $ac_status" >&5
1.9 millert 6947: (exit $ac_status); }; }; then
6948: ac_cv_sys_posix_termios=yes
6949: else
6950: echo "$as_me: failed program was:" >&5
6951: cat conftest.$ac_ext >&5
6952: ac_cv_sys_posix_termios=no
6953: fi
6954: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6955: fi
1.11 ! millert 6956: echo "$as_me:6956: result: $ac_cv_sys_posix_termios" >&5
1.9 millert 6957: echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
6958:
6959: if test "$ac_cv_sys_posix_termios" = "yes"; then
6960:
6961: cat >>confdefs.h <<\EOF
6962: #define HAVE_TERMIOS_H 1
1.1 millert 6963: EOF
1.9 millert 6964:
6965: else
6966:
6967: for ac_header in termio.h
6968: do
6969: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.11 ! millert 6970: echo "$as_me:6970: checking for $ac_header" >&5
1.9 millert 6971: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6972: if eval "test \"\${$as_ac_Header+set}\" = set"; then
6973: echo $ECHO_N "(cached) $ECHO_C" >&6
6974: else
6975: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 6976: #line 6976 "configure"
1.9 millert 6977: #include "confdefs.h"
6978: #include <$ac_header>
6979: _ACEOF
1.11 ! millert 6980: if { (eval echo "$as_me:6980: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 6981: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6982: ac_status=$?
6983: egrep -v '^ *\+' conftest.er1 >conftest.err
6984: rm -f conftest.er1
6985: cat conftest.err >&5
1.11 ! millert 6986: echo "$as_me:6986: \$? = $ac_status" >&5
1.9 millert 6987: (exit $ac_status); } >/dev/null; then
6988: if test -s conftest.err; then
6989: ac_cpp_err=$ac_c_preproc_warn_flag
6990: else
6991: ac_cpp_err=
6992: fi
6993: else
6994: ac_cpp_err=yes
6995: fi
6996: if test -z "$ac_cpp_err"; then
6997: eval "$as_ac_Header=yes"
1.1 millert 6998: else
1.9 millert 6999: echo "$as_me: failed program was:" >&5
1.1 millert 7000: cat conftest.$ac_ext >&5
1.9 millert 7001: eval "$as_ac_Header=no"
1.1 millert 7002: fi
1.9 millert 7003: rm -f conftest.err conftest.$ac_ext
1.1 millert 7004: fi
1.11 ! millert 7005: echo "$as_me:7005: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9 millert 7006: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7007: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7008: cat >>confdefs.h <<EOF
7009: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 millert 7010: EOF
1.9 millert 7011:
1.1 millert 7012: fi
7013: done
7014:
1.9 millert 7015: fi
7016: fi
7017: if test "$with_logincap" = "yes"; then
7018:
7019: for ac_header in login_cap.h
1.1 millert 7020: do
1.9 millert 7021: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.11 ! millert 7022: echo "$as_me:7022: checking for $ac_header" >&5
1.9 millert 7023: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7024: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7025: echo $ECHO_N "(cached) $ECHO_C" >&6
7026: else
7027: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 7028: #line 7028 "configure"
1.9 millert 7029: #include "confdefs.h"
7030: #include <$ac_header>
7031: _ACEOF
1.11 ! millert 7032: if { (eval echo "$as_me:7032: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 7033: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7034: ac_status=$?
7035: egrep -v '^ *\+' conftest.er1 >conftest.err
7036: rm -f conftest.er1
7037: cat conftest.err >&5
1.11 ! millert 7038: echo "$as_me:7038: \$? = $ac_status" >&5
1.9 millert 7039: (exit $ac_status); } >/dev/null; then
7040: if test -s conftest.err; then
7041: ac_cpp_err=$ac_c_preproc_warn_flag
7042: else
7043: ac_cpp_err=
7044: fi
1.1 millert 7045: else
1.9 millert 7046: ac_cpp_err=yes
7047: fi
7048: if test -z "$ac_cpp_err"; then
7049: eval "$as_ac_Header=yes"
1.1 millert 7050: else
1.9 millert 7051: echo "$as_me: failed program was:" >&5
1.1 millert 7052: cat conftest.$ac_ext >&5
1.9 millert 7053: eval "$as_ac_Header=no"
1.1 millert 7054: fi
1.9 millert 7055: rm -f conftest.err conftest.$ac_ext
1.1 millert 7056: fi
1.11 ! millert 7057: echo "$as_me:7057: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9 millert 7058: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7059: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7060: cat >>confdefs.h <<EOF
7061: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 millert 7062: EOF
1.9 millert 7063:
7064: fi
7065: done
7066:
7067: fi
7068: if test "$with_bsdauth" = "yes"; then
1.11 ! millert 7069: echo "$as_me:7069: checking for bsd_auth.h" >&5
1.9 millert 7070: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6
7071: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
7072: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7073: else
1.9 millert 7074: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 7075: #line 7075 "configure"
1.1 millert 7076: #include "confdefs.h"
1.9 millert 7077: #include <bsd_auth.h>
7078: _ACEOF
1.11 ! millert 7079: if { (eval echo "$as_me:7079: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 7080: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7081: ac_status=$?
7082: egrep -v '^ *\+' conftest.er1 >conftest.err
7083: rm -f conftest.er1
7084: cat conftest.err >&5
1.11 ! millert 7085: echo "$as_me:7085: \$? = $ac_status" >&5
1.9 millert 7086: (exit $ac_status); } >/dev/null; then
7087: if test -s conftest.err; then
7088: ac_cpp_err=$ac_c_preproc_warn_flag
7089: else
7090: ac_cpp_err=
7091: fi
7092: else
7093: ac_cpp_err=yes
7094: fi
7095: if test -z "$ac_cpp_err"; then
7096: ac_cv_header_bsd_auth_h=yes
1.1 millert 7097: else
1.9 millert 7098: echo "$as_me: failed program was:" >&5
1.1 millert 7099: cat conftest.$ac_ext >&5
1.9 millert 7100: ac_cv_header_bsd_auth_h=no
1.1 millert 7101: fi
1.9 millert 7102: rm -f conftest.err conftest.$ac_ext
1.1 millert 7103: fi
1.11 ! millert 7104: echo "$as_me:7104: result: $ac_cv_header_bsd_auth_h" >&5
1.9 millert 7105: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6
7106: if test $ac_cv_header_bsd_auth_h = yes; then
1.1 millert 7107:
1.9 millert 7108: cat >>confdefs.h <<\EOF
7109: #define HAVE_BSD_AUTH_H 1
1.1 millert 7110: EOF
1.9 millert 7111: with_passwd=no; AUTH_OBJS=bsdauth.o
7112: fi
7113:
1.1 millert 7114: fi
1.9 millert 7115: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7116:
7117: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7118: inttypes.h stdint.h unistd.h
7119: do
7120: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.11 ! millert 7121: echo "$as_me:7121: checking for $ac_header" >&5
1.9 millert 7122: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7123: if eval "test \"\${$as_ac_Header+set}\" = set"; then
7124: echo $ECHO_N "(cached) $ECHO_C" >&6
7125: else
7126: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 7127: #line 7127 "configure"
1.9 millert 7128: #include "confdefs.h"
7129: $ac_includes_default
7130: #include <$ac_header>
7131: _ACEOF
7132: rm -f conftest.$ac_objext
1.11 ! millert 7133: if { (eval echo "$as_me:7133: \"$ac_compile\"") >&5
1.9 millert 7134: (eval $ac_compile) 2>&5
7135: ac_status=$?
1.11 ! millert 7136: echo "$as_me:7136: \$? = $ac_status" >&5
1.9 millert 7137: (exit $ac_status); } &&
7138: { ac_try='test -s conftest.$ac_objext'
1.11 ! millert 7139: { (eval echo "$as_me:7139: \"$ac_try\"") >&5
1.9 millert 7140: (eval $ac_try) 2>&5
7141: ac_status=$?
1.11 ! millert 7142: echo "$as_me:7142: \$? = $ac_status" >&5
1.9 millert 7143: (exit $ac_status); }; }; then
7144: eval "$as_ac_Header=yes"
7145: else
7146: echo "$as_me: failed program was:" >&5
7147: cat conftest.$ac_ext >&5
7148: eval "$as_ac_Header=no"
7149: fi
7150: rm -f conftest.$ac_objext conftest.$ac_ext
7151: fi
1.11 ! millert 7152: echo "$as_me:7152: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9 millert 7153: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7154: if test `eval echo '${'$as_ac_Header'}'` = yes; then
7155: cat >>confdefs.h <<EOF
7156: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7157: EOF
1.1 millert 7158:
7159: fi
7160: done
7161:
1.11 ! millert 7162: echo "$as_me:7162: checking for mode_t" >&5
1.9 millert 7163: echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7164: if test "${ac_cv_type_mode_t+set}" = set; then
7165: echo $ECHO_N "(cached) $ECHO_C" >&6
1.7 millert 7166: else
1.9 millert 7167: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 7168: #line 7168 "configure"
1.7 millert 7169: #include "confdefs.h"
1.9 millert 7170: $ac_includes_default
7171: int
7172: main ()
7173: {
7174: if ((mode_t *) 0)
7175: return 0;
7176: if (sizeof (mode_t))
7177: return 0;
7178: ;
7179: return 0;
7180: }
7181: _ACEOF
7182: rm -f conftest.$ac_objext
1.11 ! millert 7183: if { (eval echo "$as_me:7183: \"$ac_compile\"") >&5
1.9 millert 7184: (eval $ac_compile) 2>&5
7185: ac_status=$?
1.11 ! millert 7186: echo "$as_me:7186: \$? = $ac_status" >&5
1.9 millert 7187: (exit $ac_status); } &&
7188: { ac_try='test -s conftest.$ac_objext'
1.11 ! millert 7189: { (eval echo "$as_me:7189: \"$ac_try\"") >&5
1.9 millert 7190: (eval $ac_try) 2>&5
7191: ac_status=$?
1.11 ! millert 7192: echo "$as_me:7192: \$? = $ac_status" >&5
1.9 millert 7193: (exit $ac_status); }; }; then
7194: ac_cv_type_mode_t=yes
7195: else
7196: echo "$as_me: failed program was:" >&5
7197: cat conftest.$ac_ext >&5
7198: ac_cv_type_mode_t=no
7199: fi
7200: rm -f conftest.$ac_objext conftest.$ac_ext
7201: fi
1.11 ! millert 7202: echo "$as_me:7202: result: $ac_cv_type_mode_t" >&5
1.9 millert 7203: echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7204: if test $ac_cv_type_mode_t = yes; then
7205: :
1.7 millert 7206: else
1.9 millert 7207:
7208: cat >>confdefs.h <<EOF
7209: #define mode_t int
1.7 millert 7210: EOF
1.9 millert 7211:
1.7 millert 7212: fi
7213:
1.11 ! millert 7214: echo "$as_me:7214: checking for uid_t in sys/types.h" >&5
1.9 millert 7215: echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7216: if test "${ac_cv_type_uid_t+set}" = set; then
7217: echo $ECHO_N "(cached) $ECHO_C" >&6
1.7 millert 7218: else
1.9 millert 7219: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 7220: #line 7220 "configure"
1.7 millert 7221: #include "confdefs.h"
1.9 millert 7222: #include <sys/types.h>
7223:
7224: _ACEOF
7225: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7226: egrep "uid_t" >/dev/null 2>&1; then
7227: ac_cv_type_uid_t=yes
1.7 millert 7228: else
1.9 millert 7229: ac_cv_type_uid_t=no
1.7 millert 7230: fi
7231: rm -f conftest*
1.9 millert 7232:
1.7 millert 7233: fi
1.11 ! millert 7234: echo "$as_me:7234: result: $ac_cv_type_uid_t" >&5
1.9 millert 7235: echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7236: if test $ac_cv_type_uid_t = no; then
7237:
7238: cat >>confdefs.h <<\EOF
7239: #define uid_t int
7240: EOF
7241:
7242: cat >>confdefs.h <<\EOF
7243: #define gid_t int
1.7 millert 7244: EOF
1.9 millert 7245:
7246: fi
7247:
1.11 ! millert 7248: echo "$as_me:7248: checking for sig_atomic_t" >&5
1.9 millert 7249: echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
7250: if test "${ac_cv_type_sig_atomic_t+set}" = set; then
7251: echo $ECHO_N "(cached) $ECHO_C" >&6
7252: else
7253: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 7254: #line 7254 "configure"
1.9 millert 7255: #include "confdefs.h"
7256: #include <sys/types.h>
7257: #include <signal.h>
7258:
7259: int
7260: main ()
7261: {
7262: if ((sig_atomic_t *) 0)
7263: return 0;
7264: if (sizeof (sig_atomic_t))
7265: return 0;
7266: ;
7267: return 0;
7268: }
7269: _ACEOF
7270: rm -f conftest.$ac_objext
1.11 ! millert 7271: if { (eval echo "$as_me:7271: \"$ac_compile\"") >&5
1.9 millert 7272: (eval $ac_compile) 2>&5
7273: ac_status=$?
1.11 ! millert 7274: echo "$as_me:7274: \$? = $ac_status" >&5
1.9 millert 7275: (exit $ac_status); } &&
7276: { ac_try='test -s conftest.$ac_objext'
1.11 ! millert 7277: { (eval echo "$as_me:7277: \"$ac_try\"") >&5
1.9 millert 7278: (eval $ac_try) 2>&5
7279: ac_status=$?
1.11 ! millert 7280: echo "$as_me:7280: \$? = $ac_status" >&5
1.9 millert 7281: (exit $ac_status); }; }; then
7282: ac_cv_type_sig_atomic_t=yes
1.7 millert 7283: else
1.9 millert 7284: echo "$as_me: failed program was:" >&5
7285: cat conftest.$ac_ext >&5
7286: ac_cv_type_sig_atomic_t=no
1.7 millert 7287: fi
1.9 millert 7288: rm -f conftest.$ac_objext conftest.$ac_ext
1.7 millert 7289: fi
1.11 ! millert 7290: echo "$as_me:7290: result: $ac_cv_type_sig_atomic_t" >&5
1.9 millert 7291: echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
7292: if test $ac_cv_type_sig_atomic_t = yes; then
1.7 millert 7293:
1.9 millert 7294: cat >>confdefs.h <<EOF
7295: #define HAVE_SIG_ATOMIC_T 1
1.1 millert 7296: EOF
1.9 millert 7297:
1.1 millert 7298: else
7299:
1.9 millert 7300: cat >>confdefs.h <<\EOF
7301: #define sig_atomic_t int
1.1 millert 7302: EOF
7303:
7304: fi
7305:
1.11 ! millert 7306: echo "$as_me:7306: checking for sigaction_t" >&5
1.9 millert 7307: echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6
7308: if test "${ac_cv_type_sigaction_t+set}" = set; then
7309: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7310: else
1.9 millert 7311: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 7312: #line 7312 "configure"
1.1 millert 7313: #include "confdefs.h"
7314: #include <sys/types.h>
1.9 millert 7315: #include <signal.h>
7316:
7317: int
7318: main ()
7319: {
7320: if ((sigaction_t *) 0)
7321: return 0;
7322: if (sizeof (sigaction_t))
7323: return 0;
7324: ;
7325: return 0;
7326: }
7327: _ACEOF
7328: rm -f conftest.$ac_objext
1.11 ! millert 7329: if { (eval echo "$as_me:7329: \"$ac_compile\"") >&5
1.9 millert 7330: (eval $ac_compile) 2>&5
7331: ac_status=$?
1.11 ! millert 7332: echo "$as_me:7332: \$? = $ac_status" >&5
1.9 millert 7333: (exit $ac_status); } &&
7334: { ac_try='test -s conftest.$ac_objext'
1.11 ! millert 7335: { (eval echo "$as_me:7335: \"$ac_try\"") >&5
1.9 millert 7336: (eval $ac_try) 2>&5
7337: ac_status=$?
1.11 ! millert 7338: echo "$as_me:7338: \$? = $ac_status" >&5
1.9 millert 7339: (exit $ac_status); }; }; then
7340: ac_cv_type_sigaction_t=yes
1.1 millert 7341: else
1.9 millert 7342: echo "$as_me: failed program was:" >&5
7343: cat conftest.$ac_ext >&5
7344: ac_cv_type_sigaction_t=no
1.1 millert 7345: fi
1.9 millert 7346: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 7347: fi
1.11 ! millert 7348: echo "$as_me:7348: result: $ac_cv_type_sigaction_t" >&5
1.9 millert 7349: echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6
7350: if test $ac_cv_type_sigaction_t = yes; then
1.1 millert 7351:
1.9 millert 7352: cat >>confdefs.h <<EOF
7353: #define HAVE_SIGACTION_T 1
1.1 millert 7354: EOF
7355:
1.9 millert 7356: cat >>confdefs.h <<\EOF
7357: #define HAVE_SIGACTION_T 1
1.1 millert 7358: EOF
7359:
7360: fi
7361:
1.11 ! millert 7362: echo "$as_me:7362: checking for size_t" >&5
1.9 millert 7363: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7364: if test "${sudo_cv_type_size_t+set}" = set; then
7365: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7366: else
1.9 millert 7367: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 7368: #line 7368 "configure"
1.1 millert 7369: #include "confdefs.h"
7370: #include <sys/types.h>
1.9 millert 7371: #include <stdio.h>
1.1 millert 7372: #if STDC_HEADERS
7373: #include <stdlib.h>
7374: #endif
7375: #if HAVE_UNISTD_H
7376: #include <unistd.h>
7377: #endif
1.9 millert 7378: _ACEOF
1.1 millert 7379: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7380: egrep "size_t" >/dev/null 2>&1; then
7381: sudo_cv_type_size_t=yes
7382: else
7383: sudo_cv_type_size_t=no
7384: fi
7385: rm -f conftest*
7386:
7387: fi
1.11 ! millert 7388: echo "$as_me:7388: result: $sudo_cv_type_size_t" >&5
1.9 millert 7389: echo "${ECHO_T}$sudo_cv_type_size_t" >&6
1.1 millert 7390: if test $sudo_cv_type_size_t = no; then
1.9 millert 7391:
7392: cat >>confdefs.h <<\EOF
1.1 millert 7393: #define size_t int
7394: EOF
7395:
7396: fi
7397:
1.11 ! millert 7398: echo "$as_me:7398: checking for ssize_t" >&5
1.9 millert 7399: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7400: if test "${sudo_cv_type_ssize_t+set}" = set; then
7401: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7402: else
1.9 millert 7403: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 7404: #line 7404 "configure"
1.1 millert 7405: #include "confdefs.h"
7406: #include <sys/types.h>
1.9 millert 7407: #include <stdio.h>
1.1 millert 7408: #if STDC_HEADERS
7409: #include <stdlib.h>
7410: #endif
7411: #if HAVE_UNISTD_H
7412: #include <unistd.h>
7413: #endif
1.9 millert 7414: _ACEOF
1.1 millert 7415: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7416: egrep "ssize_t" >/dev/null 2>&1; then
7417: sudo_cv_type_ssize_t=yes
7418: else
7419: sudo_cv_type_ssize_t=no
7420: fi
7421: rm -f conftest*
7422:
7423: fi
1.11 ! millert 7424: echo "$as_me:7424: result: $sudo_cv_type_ssize_t" >&5
1.9 millert 7425: echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6
1.1 millert 7426: if test $sudo_cv_type_ssize_t = no; then
1.9 millert 7427:
7428: cat >>confdefs.h <<\EOF
1.1 millert 7429: #define ssize_t int
7430: EOF
7431:
7432: fi
7433:
1.11 ! millert 7434: echo "$as_me:7434: checking for dev_t" >&5
1.9 millert 7435: echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
7436: if test "${sudo_cv_type_dev_t+set}" = set; then
7437: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7438: else
1.9 millert 7439: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 7440: #line 7440 "configure"
1.1 millert 7441: #include "confdefs.h"
7442: #include <sys/types.h>
1.9 millert 7443: #include <stdio.h>
1.1 millert 7444: #if STDC_HEADERS
7445: #include <stdlib.h>
7446: #endif
7447: #if HAVE_UNISTD_H
7448: #include <unistd.h>
7449: #endif
1.9 millert 7450: _ACEOF
1.1 millert 7451: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7452: egrep "dev_t" >/dev/null 2>&1; then
7453: sudo_cv_type_dev_t=yes
7454: else
7455: sudo_cv_type_dev_t=no
7456: fi
7457: rm -f conftest*
7458:
7459: fi
1.11 ! millert 7460: echo "$as_me:7460: result: $sudo_cv_type_dev_t" >&5
1.9 millert 7461: echo "${ECHO_T}$sudo_cv_type_dev_t" >&6
1.1 millert 7462: if test $sudo_cv_type_dev_t = no; then
1.9 millert 7463:
7464: cat >>confdefs.h <<\EOF
1.1 millert 7465: #define dev_t int
7466: EOF
7467:
7468: fi
7469:
1.11 ! millert 7470: echo "$as_me:7470: checking for ino_t" >&5
1.9 millert 7471: echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
7472: if test "${sudo_cv_type_ino_t+set}" = set; then
7473: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7474: else
1.9 millert 7475: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 7476: #line 7476 "configure"
1.1 millert 7477: #include "confdefs.h"
7478: #include <sys/types.h>
1.9 millert 7479: #include <stdio.h>
1.1 millert 7480: #if STDC_HEADERS
7481: #include <stdlib.h>
7482: #endif
7483: #if HAVE_UNISTD_H
7484: #include <unistd.h>
7485: #endif
1.9 millert 7486: _ACEOF
1.1 millert 7487: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7488: egrep "ino_t" >/dev/null 2>&1; then
7489: sudo_cv_type_ino_t=yes
7490: else
7491: sudo_cv_type_ino_t=no
7492: fi
7493: rm -f conftest*
7494:
7495: fi
1.11 ! millert 7496: echo "$as_me:7496: result: $sudo_cv_type_ino_t" >&5
1.9 millert 7497: echo "${ECHO_T}$sudo_cv_type_ino_t" >&6
1.1 millert 7498: if test $sudo_cv_type_ino_t = no; then
1.9 millert 7499:
7500: cat >>confdefs.h <<\EOF
1.1 millert 7501: #define ino_t unsigned int
7502: EOF
7503:
7504: fi
7505:
1.11 ! millert 7506: echo "$as_me:7506: checking for full void implementation" >&5
1.9 millert 7507: echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6
7508: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 7509: #line 7509 "configure"
1.1 millert 7510: #include "confdefs.h"
7511:
1.9 millert 7512: int
7513: main ()
7514: {
1.1 millert 7515: void *foo;
7516: foo = (void *)0; (void *)"test";
1.9 millert 7517: ;
7518: return 0;
7519: }
7520: _ACEOF
7521: rm -f conftest.$ac_objext
1.11 ! millert 7522: if { (eval echo "$as_me:7522: \"$ac_compile\"") >&5
1.9 millert 7523: (eval $ac_compile) 2>&5
7524: ac_status=$?
1.11 ! millert 7525: echo "$as_me:7525: \$? = $ac_status" >&5
1.9 millert 7526: (exit $ac_status); } &&
7527: { ac_try='test -s conftest.$ac_objext'
1.11 ! millert 7528: { (eval echo "$as_me:7528: \"$ac_try\"") >&5
1.9 millert 7529: (eval $ac_try) 2>&5
7530: ac_status=$?
1.11 ! millert 7531: echo "$as_me:7531: \$? = $ac_status" >&5
1.9 millert 7532: (exit $ac_status); }; }; then
7533:
7534: cat >>confdefs.h <<\EOF
1.1 millert 7535: #define VOID void
7536: EOF
7537:
1.11 ! millert 7538: echo "$as_me:7538: result: yes" >&5
1.9 millert 7539: echo "${ECHO_T}yes" >&6
1.1 millert 7540: else
1.9 millert 7541: echo "$as_me: failed program was:" >&5
7542: cat conftest.$ac_ext >&5
7543: cat >>confdefs.h <<\EOF
1.1 millert 7544: #define VOID char
7545: EOF
7546:
1.11 ! millert 7547: echo "$as_me:7547: result: no" >&5
1.9 millert 7548: echo "${ECHO_T}no" >&6
1.1 millert 7549: fi
1.9 millert 7550: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 7551:
1.11 ! millert 7552: echo "$as_me:7552: checking max length of uid_t" >&5
1.9 millert 7553: echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6
7554: if test "${sudo_cv_uid_t_len+set}" = set; then
7555: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7556: else
7557: rm -f conftestdata
7558: if test "$cross_compiling" = yes; then
1.11 ! millert 7559: { { echo "$as_me:7559: error: cannot run test program while cross compiling" >&5
1.9 millert 7560: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7561: { (exit 1); exit 1; }; }
1.1 millert 7562: else
1.9 millert 7563: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 7564: #line 7564 "configure"
1.1 millert 7565: #include "confdefs.h"
7566: #include <stdio.h>
7567: #include <pwd.h>
7568: #include <limits.h>
7569: #include <sys/types.h>
7570: #include <sys/param.h>
7571: main() {
7572: FILE *f;
7573: char b[1024];
7574: uid_t u = (uid_t) -1;
7575:
7576: if ((f = fopen("conftestdata", "w")) == NULL)
7577: exit(1);
7578:
7579: (void) sprintf(b, "%u", u);
7580: (void) fprintf(f, "%d\n", strlen(b));
7581: (void) fclose(f);
7582: exit(0);
7583: }
1.9 millert 7584: _ACEOF
7585: rm -f conftest$ac_exeext
1.11 ! millert 7586: if { (eval echo "$as_me:7586: \"$ac_link\"") >&5
1.9 millert 7587: (eval $ac_link) 2>&5
7588: ac_status=$?
1.11 ! millert 7589: echo "$as_me:7589: \$? = $ac_status" >&5
1.9 millert 7590: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.11 ! millert 7591: { (eval echo "$as_me:7591: \"$ac_try\"") >&5
1.9 millert 7592: (eval $ac_try) 2>&5
7593: ac_status=$?
1.11 ! millert 7594: echo "$as_me:7594: \$? = $ac_status" >&5
1.9 millert 7595: (exit $ac_status); }; }; then
1.1 millert 7596: sudo_cv_uid_t_len=`cat conftestdata`
7597: else
1.9 millert 7598: echo "$as_me: program exited with status $ac_status" >&5
7599: echo "$as_me: failed program was:" >&5
7600: cat conftest.$ac_ext >&5
7601: sudo_cv_uid_t_len=10
1.1 millert 7602: fi
1.9 millert 7603: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 7604: fi
7605:
7606: fi
7607:
7608: rm -f conftestdata
1.11 ! millert 7609: echo "$as_me:7609: result: $sudo_cv_uid_t_len" >&5
1.9 millert 7610: echo "${ECHO_T}$sudo_cv_uid_t_len" >&6
7611:
7612: cat >>confdefs.h <<EOF
1.1 millert 7613: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
7614: EOF
7615:
1.11 ! millert 7616: echo "$as_me:7616: checking for long long support" >&5
1.9 millert 7617: echo $ECHO_N "checking for long long support... $ECHO_C" >&6
7618: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 7619: #line 7619 "configure"
1.1 millert 7620: #include "confdefs.h"
7621:
1.9 millert 7622: int
7623: main ()
7624: {
1.1 millert 7625: long long foo = 1000; foo /= 10;
1.9 millert 7626: ;
7627: return 0;
7628: }
7629: _ACEOF
7630: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 7631: if { (eval echo "$as_me:7631: \"$ac_link\"") >&5
1.9 millert 7632: (eval $ac_link) 2>&5
7633: ac_status=$?
1.11 ! millert 7634: echo "$as_me:7634: \$? = $ac_status" >&5
1.9 millert 7635: (exit $ac_status); } &&
7636: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 7637: { (eval echo "$as_me:7637: \"$ac_try\"") >&5
1.9 millert 7638: (eval $ac_try) 2>&5
7639: ac_status=$?
1.11 ! millert 7640: echo "$as_me:7640: \$? = $ac_status" >&5
1.9 millert 7641: (exit $ac_status); }; }; then
7642:
7643: cat >>confdefs.h <<\EOF
1.1 millert 7644: #define HAVE_LONG_LONG 1
7645: EOF
7646:
7647: if test "$cross_compiling" = yes; then
1.11 ! millert 7648: { { echo "$as_me:7648: error: cannot run test program while cross compiling" >&5
1.9 millert 7649: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7650: { (exit 1); exit 1; }; }
1.1 millert 7651: else
1.9 millert 7652: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 7653: #line 7653 "configure"
1.1 millert 7654: #include "confdefs.h"
7655: main() {if (sizeof(long long) == sizeof(long)) exit(0); else exit(1);}
1.9 millert 7656: _ACEOF
7657: rm -f conftest$ac_exeext
1.11 ! millert 7658: if { (eval echo "$as_me:7658: \"$ac_link\"") >&5
1.9 millert 7659: (eval $ac_link) 2>&5
7660: ac_status=$?
1.11 ! millert 7661: echo "$as_me:7661: \$? = $ac_status" >&5
1.9 millert 7662: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.11 ! millert 7663: { (eval echo "$as_me:7663: \"$ac_try\"") >&5
1.9 millert 7664: (eval $ac_try) 2>&5
7665: ac_status=$?
1.11 ! millert 7666: echo "$as_me:7666: \$? = $ac_status" >&5
1.9 millert 7667: (exit $ac_status); }; }; then
7668:
7669: cat >>confdefs.h <<\EOF
1.1 millert 7670: #define LONG_IS_QUAD 1
7671: EOF
7672:
7673: else
1.9 millert 7674: echo "$as_me: program exited with status $ac_status" >&5
7675: echo "$as_me: failed program was:" >&5
7676: cat conftest.$ac_ext >&5
7677: fi
7678: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7679: fi
1.11 ! millert 7680: echo "$as_me:7680: result: yes" >&5
1.9 millert 7681: echo "${ECHO_T}yes" >&6
7682: else
7683: echo "$as_me: failed program was:" >&5
7684: cat conftest.$ac_ext >&5
1.11 ! millert 7685: echo "$as_me:7685: result: no" >&5
1.9 millert 7686: echo "${ECHO_T}no" >&6
7687: fi
7688: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.11 ! millert 7689: echo "$as_me:7689: checking for sa_len field in struct sockaddr" >&5
1.9 millert 7690: echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6
7691: if test "${sudo_cv_sock_sa_len+set}" = set; then
7692: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7693: else
7694: if test "$cross_compiling" = yes; then
7695: sudo_cv_sock_sa_len=no
7696: else
1.9 millert 7697: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 7698: #line 7698 "configure"
1.1 millert 7699: #include "confdefs.h"
7700: #include <sys/types.h>
7701: #include <sys/socket.h>
7702: main() {
7703: struct sockaddr s;
7704: s.sa_len = 0;
7705: exit(0);
7706: }
1.9 millert 7707: _ACEOF
7708: rm -f conftest$ac_exeext
1.11 ! millert 7709: if { (eval echo "$as_me:7709: \"$ac_link\"") >&5
1.9 millert 7710: (eval $ac_link) 2>&5
7711: ac_status=$?
1.11 ! millert 7712: echo "$as_me:7712: \$? = $ac_status" >&5
1.9 millert 7713: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.11 ! millert 7714: { (eval echo "$as_me:7714: \"$ac_try\"") >&5
1.9 millert 7715: (eval $ac_try) 2>&5
7716: ac_status=$?
1.11 ! millert 7717: echo "$as_me:7717: \$? = $ac_status" >&5
1.9 millert 7718: (exit $ac_status); }; }; then
1.1 millert 7719: sudo_cv_sock_sa_len=yes
7720: else
1.9 millert 7721: echo "$as_me: program exited with status $ac_status" >&5
7722: echo "$as_me: failed program was:" >&5
7723: cat conftest.$ac_ext >&5
7724: sudo_cv_sock_sa_len=no
1.1 millert 7725: fi
1.9 millert 7726: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 7727: fi
7728: rm -f core core.* *.core
7729: fi
1.11 ! millert 7730: echo "$as_me:7730: result: $sudo_cv_sock_sa_len" >&5
1.9 millert 7731: echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6
1.1 millert 7732: if test $sudo_cv_sock_sa_len = yes; then
1.9 millert 7733:
7734: cat >>confdefs.h <<\EOF
1.1 millert 7735: #define HAVE_SA_LEN 1
7736: EOF
7737:
7738: fi
7739:
7740: case "$DEFS" in
7741: *"RETSIGTYPE"*) ;;
1.11 ! millert 7742: *) echo "$as_me:7742: checking return type of signal handlers" >&5
1.9 millert 7743: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7744: if test "${ac_cv_type_signal+set}" = set; then
7745: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7746: else
1.9 millert 7747: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 7748: #line 7748 "configure"
1.1 millert 7749: #include "confdefs.h"
7750: #include <sys/types.h>
7751: #include <signal.h>
7752: #ifdef signal
1.9 millert 7753: # undef signal
1.1 millert 7754: #endif
7755: #ifdef __cplusplus
7756: extern "C" void (*signal (int, void (*)(int)))(int);
7757: #else
7758: void (*signal ()) ();
7759: #endif
7760:
1.9 millert 7761: int
7762: main ()
7763: {
1.1 millert 7764: int i;
1.9 millert 7765: ;
7766: return 0;
7767: }
7768: _ACEOF
7769: rm -f conftest.$ac_objext
1.11 ! millert 7770: if { (eval echo "$as_me:7770: \"$ac_compile\"") >&5
1.9 millert 7771: (eval $ac_compile) 2>&5
7772: ac_status=$?
1.11 ! millert 7773: echo "$as_me:7773: \$? = $ac_status" >&5
1.9 millert 7774: (exit $ac_status); } &&
7775: { ac_try='test -s conftest.$ac_objext'
1.11 ! millert 7776: { (eval echo "$as_me:7776: \"$ac_try\"") >&5
1.9 millert 7777: (eval $ac_try) 2>&5
7778: ac_status=$?
1.11 ! millert 7779: echo "$as_me:7779: \$? = $ac_status" >&5
1.9 millert 7780: (exit $ac_status); }; }; then
1.1 millert 7781: ac_cv_type_signal=void
7782: else
1.9 millert 7783: echo "$as_me: failed program was:" >&5
7784: cat conftest.$ac_ext >&5
7785: ac_cv_type_signal=int
1.1 millert 7786: fi
1.9 millert 7787: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 7788: fi
1.11 ! millert 7789: echo "$as_me:7789: result: $ac_cv_type_signal" >&5
1.9 millert 7790: echo "${ECHO_T}$ac_cv_type_signal" >&6
1.1 millert 7791:
1.9 millert 7792: cat >>confdefs.h <<EOF
1.1 millert 7793: #define RETSIGTYPE $ac_cv_type_signal
7794: EOF
7795:
7796: ;;
7797: esac
1.9 millert 7798:
7799: for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
7800: seteuid setegid strftime setrlimit initgroups fstat
1.1 millert 7801: do
1.9 millert 7802: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.11 ! millert 7803: echo "$as_me:7803: checking for $ac_func" >&5
1.9 millert 7804: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7805: if eval "test \"\${$as_ac_var+set}\" = set"; then
7806: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7807: else
1.9 millert 7808: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 7809: #line 7809 "configure"
1.1 millert 7810: #include "confdefs.h"
7811: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 7812: which can conflict with char $ac_func (); below. */
1.1 millert 7813: #include <assert.h>
7814: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 7815: #ifdef __cplusplus
7816: extern "C"
7817: #endif
1.1 millert 7818: /* We use char because int might match the return type of a gcc2
1.9 millert 7819: builtin and then its argument prototype would still apply. */
7820: char $ac_func ();
7821: char (*f) ();
1.1 millert 7822:
1.9 millert 7823: int
7824: main ()
7825: {
1.1 millert 7826: /* The GNU C library defines this for functions which it implements
7827: to always fail with ENOSYS. Some functions are actually named
7828: something starting with __ and the normal name is an alias. */
7829: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7830: choke me
7831: #else
1.9 millert 7832: f = $ac_func;
1.1 millert 7833: #endif
7834:
1.9 millert 7835: ;
7836: return 0;
7837: }
7838: _ACEOF
7839: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 7840: if { (eval echo "$as_me:7840: \"$ac_link\"") >&5
1.9 millert 7841: (eval $ac_link) 2>&5
7842: ac_status=$?
1.11 ! millert 7843: echo "$as_me:7843: \$? = $ac_status" >&5
1.9 millert 7844: (exit $ac_status); } &&
7845: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 7846: { (eval echo "$as_me:7846: \"$ac_try\"") >&5
1.9 millert 7847: (eval $ac_try) 2>&5
7848: ac_status=$?
1.11 ! millert 7849: echo "$as_me:7849: \$? = $ac_status" >&5
1.9 millert 7850: (exit $ac_status); }; }; then
7851: eval "$as_ac_var=yes"
7852: else
7853: echo "$as_me: failed program was:" >&5
7854: cat conftest.$ac_ext >&5
7855: eval "$as_ac_var=no"
7856: fi
7857: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7858: fi
1.11 ! millert 7859: echo "$as_me:7859: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 7860: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7861: if test `eval echo '${'$as_ac_var'}'` = yes; then
7862: cat >>confdefs.h <<EOF
7863: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 7864: EOF
7865:
7866: fi
7867: done
7868:
1.9 millert 7869: if test -z "$BROKEN_SETREUID"; then
7870:
7871: for ac_func in setreuid
1.1 millert 7872: do
1.9 millert 7873: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.11 ! millert 7874: echo "$as_me:7874: checking for $ac_func" >&5
1.9 millert 7875: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7876: if eval "test \"\${$as_ac_var+set}\" = set"; then
7877: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7878: else
1.9 millert 7879: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 7880: #line 7880 "configure"
1.1 millert 7881: #include "confdefs.h"
7882: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 7883: which can conflict with char $ac_func (); below. */
1.1 millert 7884: #include <assert.h>
7885: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 7886: #ifdef __cplusplus
7887: extern "C"
7888: #endif
1.1 millert 7889: /* We use char because int might match the return type of a gcc2
1.9 millert 7890: builtin and then its argument prototype would still apply. */
7891: char $ac_func ();
7892: char (*f) ();
1.1 millert 7893:
1.9 millert 7894: int
7895: main ()
7896: {
1.1 millert 7897: /* The GNU C library defines this for functions which it implements
7898: to always fail with ENOSYS. Some functions are actually named
7899: something starting with __ and the normal name is an alias. */
7900: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7901: choke me
7902: #else
1.9 millert 7903: f = $ac_func;
1.1 millert 7904: #endif
7905:
1.9 millert 7906: ;
7907: return 0;
7908: }
7909: _ACEOF
7910: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 7911: if { (eval echo "$as_me:7911: \"$ac_link\"") >&5
1.9 millert 7912: (eval $ac_link) 2>&5
7913: ac_status=$?
1.11 ! millert 7914: echo "$as_me:7914: \$? = $ac_status" >&5
1.9 millert 7915: (exit $ac_status); } &&
7916: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 7917: { (eval echo "$as_me:7917: \"$ac_try\"") >&5
1.9 millert 7918: (eval $ac_try) 2>&5
7919: ac_status=$?
1.11 ! millert 7920: echo "$as_me:7920: \$? = $ac_status" >&5
1.9 millert 7921: (exit $ac_status); }; }; then
7922: eval "$as_ac_var=yes"
7923: else
7924: echo "$as_me: failed program was:" >&5
7925: cat conftest.$ac_ext >&5
7926: eval "$as_ac_var=no"
7927: fi
7928: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7929: fi
1.11 ! millert 7930: echo "$as_me:7930: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 7931: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7932: if test `eval echo '${'$as_ac_var'}'` = yes; then
7933: cat >>confdefs.h <<EOF
7934: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 7935: EOF
7936:
7937: fi
7938: done
7939:
7940: fi
1.9 millert 7941: if test X"$with_interfaces" != X"no"; then
1.1 millert 7942:
1.9 millert 7943: for ac_func in getifaddrs
1.1 millert 7944: do
1.9 millert 7945: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.11 ! millert 7946: echo "$as_me:7946: checking for $ac_func" >&5
1.9 millert 7947: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7948: if eval "test \"\${$as_ac_var+set}\" = set"; then
7949: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 7950: else
1.9 millert 7951: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 7952: #line 7952 "configure"
1.1 millert 7953: #include "confdefs.h"
7954: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 7955: which can conflict with char $ac_func (); below. */
1.1 millert 7956: #include <assert.h>
7957: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 7958: #ifdef __cplusplus
7959: extern "C"
7960: #endif
1.1 millert 7961: /* We use char because int might match the return type of a gcc2
1.9 millert 7962: builtin and then its argument prototype would still apply. */
7963: char $ac_func ();
7964: char (*f) ();
1.1 millert 7965:
1.9 millert 7966: int
7967: main ()
7968: {
1.1 millert 7969: /* The GNU C library defines this for functions which it implements
7970: to always fail with ENOSYS. Some functions are actually named
7971: something starting with __ and the normal name is an alias. */
7972: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7973: choke me
7974: #else
1.9 millert 7975: f = $ac_func;
1.1 millert 7976: #endif
7977:
1.9 millert 7978: ;
7979: return 0;
7980: }
7981: _ACEOF
7982: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 7983: if { (eval echo "$as_me:7983: \"$ac_link\"") >&5
1.9 millert 7984: (eval $ac_link) 2>&5
7985: ac_status=$?
1.11 ! millert 7986: echo "$as_me:7986: \$? = $ac_status" >&5
1.9 millert 7987: (exit $ac_status); } &&
7988: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 7989: { (eval echo "$as_me:7989: \"$ac_try\"") >&5
1.9 millert 7990: (eval $ac_try) 2>&5
7991: ac_status=$?
1.11 ! millert 7992: echo "$as_me:7992: \$? = $ac_status" >&5
1.9 millert 7993: (exit $ac_status); }; }; then
7994: eval "$as_ac_var=yes"
7995: else
7996: echo "$as_me: failed program was:" >&5
7997: cat conftest.$ac_ext >&5
7998: eval "$as_ac_var=no"
7999: fi
8000: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8001: fi
1.11 ! millert 8002: echo "$as_me:8002: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 8003: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8004: if test `eval echo '${'$as_ac_var'}'` = yes; then
8005: cat >>confdefs.h <<EOF
8006: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 8007: EOF
8008:
8009: fi
8010: done
8011:
8012: fi
1.9 millert 8013: if test -n "$SECUREWARE"; then
1.1 millert 8014:
1.9 millert 8015: for ac_func in bigcrypt set_auth_parameters initprivs
8016: do
8017: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.11 ! millert 8018: echo "$as_me:8018: checking for $ac_func" >&5
1.9 millert 8019: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8020: if eval "test \"\${$as_ac_var+set}\" = set"; then
8021: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8022: else
1.9 millert 8023: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 8024: #line 8024 "configure"
1.1 millert 8025: #include "confdefs.h"
8026: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 8027: which can conflict with char $ac_func (); below. */
1.1 millert 8028: #include <assert.h>
8029: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 8030: #ifdef __cplusplus
8031: extern "C"
1.1 millert 8032: #endif
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 $ac_func ();
8036: char (*f) ();
1.1 millert 8037:
1.9 millert 8038: int
8039: main ()
8040: {
1.1 millert 8041: /* The GNU C library defines this for functions which it implements
8042: to always fail with ENOSYS. Some functions are actually named
8043: something starting with __ and the normal name is an alias. */
8044: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8045: choke me
8046: #else
1.9 millert 8047: f = $ac_func;
1.1 millert 8048: #endif
8049:
1.9 millert 8050: ;
8051: return 0;
8052: }
8053: _ACEOF
8054: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 8055: if { (eval echo "$as_me:8055: \"$ac_link\"") >&5
1.9 millert 8056: (eval $ac_link) 2>&5
8057: ac_status=$?
1.11 ! millert 8058: echo "$as_me:8058: \$? = $ac_status" >&5
1.9 millert 8059: (exit $ac_status); } &&
8060: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 8061: { (eval echo "$as_me:8061: \"$ac_try\"") >&5
1.9 millert 8062: (eval $ac_try) 2>&5
8063: ac_status=$?
1.11 ! millert 8064: echo "$as_me:8064: \$? = $ac_status" >&5
1.9 millert 8065: (exit $ac_status); }; }; then
8066: eval "$as_ac_var=yes"
8067: else
8068: echo "$as_me: failed program was:" >&5
8069: cat conftest.$ac_ext >&5
8070: eval "$as_ac_var=no"
8071: fi
8072: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8073: fi
1.11 ! millert 8074: echo "$as_me:8074: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 8075: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8076: if test `eval echo '${'$as_ac_var'}'` = yes; then
8077: cat >>confdefs.h <<EOF
8078: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 8079: EOF
8080:
8081: fi
8082: done
8083:
8084: fi
1.9 millert 8085: if test -z "$BROKEN_GETCWD"; then
1.1 millert 8086:
1.9 millert 8087: for ac_func in getcwd
8088: do
8089: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.11 ! millert 8090: echo "$as_me:8090: checking for $ac_func" >&5
1.9 millert 8091: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8092: if eval "test \"\${$as_ac_var+set}\" = set"; then
8093: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8094: else
1.9 millert 8095: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 8096: #line 8096 "configure"
1.1 millert 8097: #include "confdefs.h"
8098: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 8099: which can conflict with char $ac_func (); below. */
1.1 millert 8100: #include <assert.h>
8101: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 8102: #ifdef __cplusplus
8103: extern "C"
1.1 millert 8104: #endif
8105: /* We use char because int might match the return type of a gcc2
1.9 millert 8106: builtin and then its argument prototype would still apply. */
8107: char $ac_func ();
8108: char (*f) ();
1.1 millert 8109:
1.9 millert 8110: int
8111: main ()
8112: {
1.1 millert 8113: /* The GNU C library defines this for functions which it implements
8114: to always fail with ENOSYS. Some functions are actually named
8115: something starting with __ and the normal name is an alias. */
8116: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8117: choke me
8118: #else
1.9 millert 8119: f = $ac_func;
1.1 millert 8120: #endif
8121:
1.9 millert 8122: ;
8123: return 0;
8124: }
8125: _ACEOF
8126: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 8127: if { (eval echo "$as_me:8127: \"$ac_link\"") >&5
1.9 millert 8128: (eval $ac_link) 2>&5
8129: ac_status=$?
1.11 ! millert 8130: echo "$as_me:8130: \$? = $ac_status" >&5
1.9 millert 8131: (exit $ac_status); } &&
8132: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 8133: { (eval echo "$as_me:8133: \"$ac_try\"") >&5
1.9 millert 8134: (eval $ac_try) 2>&5
8135: ac_status=$?
1.11 ! millert 8136: echo "$as_me:8136: \$? = $ac_status" >&5
1.9 millert 8137: (exit $ac_status); }; }; then
8138: eval "$as_ac_var=yes"
8139: else
8140: echo "$as_me: failed program was:" >&5
8141: cat conftest.$ac_ext >&5
8142: eval "$as_ac_var=no"
8143: fi
8144: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8145: fi
1.11 ! millert 8146: echo "$as_me:8146: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 8147: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8148: if test `eval echo '${'$as_ac_var'}'` = yes; then
8149: cat >>confdefs.h <<EOF
8150: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 8151: EOF
8152:
8153: else
1.9 millert 8154: LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
1.1 millert 8155: fi
8156: done
8157:
8158: fi
8159:
1.9 millert 8160: for ac_func in lockf flock
8161: do
8162: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.11 ! millert 8163: echo "$as_me:8163: checking for $ac_func" >&5
1.9 millert 8164: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8165: if eval "test \"\${$as_ac_var+set}\" = set"; then
8166: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8167: else
1.9 millert 8168: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 8169: #line 8169 "configure"
1.1 millert 8170: #include "confdefs.h"
8171: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 8172: which can conflict with char $ac_func (); below. */
1.1 millert 8173: #include <assert.h>
8174: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 8175: #ifdef __cplusplus
8176: extern "C"
8177: #endif
1.1 millert 8178: /* We use char because int might match the return type of a gcc2
1.9 millert 8179: builtin and then its argument prototype would still apply. */
8180: char $ac_func ();
8181: char (*f) ();
1.1 millert 8182:
1.9 millert 8183: int
8184: main ()
8185: {
1.1 millert 8186: /* The GNU C library defines this for functions which it implements
8187: to always fail with ENOSYS. Some functions are actually named
8188: something starting with __ and the normal name is an alias. */
1.9 millert 8189: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 8190: choke me
8191: #else
1.9 millert 8192: f = $ac_func;
1.1 millert 8193: #endif
8194:
1.9 millert 8195: ;
8196: return 0;
8197: }
8198: _ACEOF
8199: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 8200: if { (eval echo "$as_me:8200: \"$ac_link\"") >&5
1.9 millert 8201: (eval $ac_link) 2>&5
8202: ac_status=$?
1.11 ! millert 8203: echo "$as_me:8203: \$? = $ac_status" >&5
1.9 millert 8204: (exit $ac_status); } &&
8205: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 8206: { (eval echo "$as_me:8206: \"$ac_try\"") >&5
1.9 millert 8207: (eval $ac_try) 2>&5
8208: ac_status=$?
1.11 ! millert 8209: echo "$as_me:8209: \$? = $ac_status" >&5
1.9 millert 8210: (exit $ac_status); }; }; then
8211: eval "$as_ac_var=yes"
8212: else
8213: echo "$as_me: failed program was:" >&5
8214: cat conftest.$ac_ext >&5
8215: eval "$as_ac_var=no"
8216: fi
8217: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8218: fi
1.11 ! millert 8219: echo "$as_me:8219: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 8220: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8221: if test `eval echo '${'$as_ac_var'}'` = yes; then
8222: cat >>confdefs.h <<EOF
8223: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 8224: EOF
1.9 millert 8225: break
1.1 millert 8226: fi
1.9 millert 8227: done
1.1 millert 8228:
1.9 millert 8229: for ac_func in waitpid wait3
1.1 millert 8230: do
1.9 millert 8231: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.11 ! millert 8232: echo "$as_me:8232: checking for $ac_func" >&5
1.9 millert 8233: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8234: if eval "test \"\${$as_ac_var+set}\" = set"; then
8235: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8236: else
1.9 millert 8237: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 8238: #line 8238 "configure"
1.1 millert 8239: #include "confdefs.h"
8240: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 8241: which can conflict with char $ac_func (); below. */
1.1 millert 8242: #include <assert.h>
8243: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 8244: #ifdef __cplusplus
8245: extern "C"
8246: #endif
1.1 millert 8247: /* We use char because int might match the return type of a gcc2
1.9 millert 8248: builtin and then its argument prototype would still apply. */
8249: char $ac_func ();
8250: char (*f) ();
1.1 millert 8251:
1.9 millert 8252: int
8253: main ()
8254: {
1.1 millert 8255: /* The GNU C library defines this for functions which it implements
8256: to always fail with ENOSYS. Some functions are actually named
8257: something starting with __ and the normal name is an alias. */
8258: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8259: choke me
8260: #else
1.9 millert 8261: f = $ac_func;
1.1 millert 8262: #endif
8263:
1.9 millert 8264: ;
8265: return 0;
8266: }
8267: _ACEOF
8268: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 8269: if { (eval echo "$as_me:8269: \"$ac_link\"") >&5
1.9 millert 8270: (eval $ac_link) 2>&5
8271: ac_status=$?
1.11 ! millert 8272: echo "$as_me:8272: \$? = $ac_status" >&5
1.9 millert 8273: (exit $ac_status); } &&
8274: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 8275: { (eval echo "$as_me:8275: \"$ac_try\"") >&5
1.9 millert 8276: (eval $ac_try) 2>&5
8277: ac_status=$?
1.11 ! millert 8278: echo "$as_me:8278: \$? = $ac_status" >&5
1.9 millert 8279: (exit $ac_status); }; }; then
8280: eval "$as_ac_var=yes"
8281: else
8282: echo "$as_me: failed program was:" >&5
8283: cat conftest.$ac_ext >&5
8284: eval "$as_ac_var=no"
8285: fi
8286: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8287: fi
1.11 ! millert 8288: echo "$as_me:8288: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 8289: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8290: if test `eval echo '${'$as_ac_var'}'` = yes; then
8291: cat >>confdefs.h <<EOF
8292: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 8293: EOF
1.9 millert 8294: break
1.1 millert 8295: fi
8296: done
8297:
1.9 millert 8298: for ac_func in innetgr _innetgr
8299: do
8300: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.11 ! millert 8301: echo "$as_me:8301: checking for $ac_func" >&5
1.9 millert 8302: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8303: if eval "test \"\${$as_ac_var+set}\" = set"; then
8304: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8305: else
1.9 millert 8306: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 8307: #line 8307 "configure"
1.1 millert 8308: #include "confdefs.h"
8309: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 8310: which can conflict with char $ac_func (); below. */
1.1 millert 8311: #include <assert.h>
8312: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 8313: #ifdef __cplusplus
8314: extern "C"
8315: #endif
1.1 millert 8316: /* We use char because int might match the return type of a gcc2
1.9 millert 8317: builtin and then its argument prototype would still apply. */
8318: char $ac_func ();
8319: char (*f) ();
1.1 millert 8320:
1.9 millert 8321: int
8322: main ()
8323: {
1.1 millert 8324: /* The GNU C library defines this for functions which it implements
8325: to always fail with ENOSYS. Some functions are actually named
8326: something starting with __ and the normal name is an alias. */
1.9 millert 8327: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 8328: choke me
8329: #else
1.9 millert 8330: f = $ac_func;
1.1 millert 8331: #endif
8332:
1.9 millert 8333: ;
8334: return 0;
8335: }
8336: _ACEOF
8337: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 8338: if { (eval echo "$as_me:8338: \"$ac_link\"") >&5
1.9 millert 8339: (eval $ac_link) 2>&5
8340: ac_status=$?
1.11 ! millert 8341: echo "$as_me:8341: \$? = $ac_status" >&5
1.9 millert 8342: (exit $ac_status); } &&
8343: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 8344: { (eval echo "$as_me:8344: \"$ac_try\"") >&5
1.9 millert 8345: (eval $ac_try) 2>&5
8346: ac_status=$?
1.11 ! millert 8347: echo "$as_me:8347: \$? = $ac_status" >&5
1.9 millert 8348: (exit $ac_status); }; }; then
8349: eval "$as_ac_var=yes"
8350: else
8351: echo "$as_me: failed program was:" >&5
8352: cat conftest.$ac_ext >&5
8353: eval "$as_ac_var=no"
8354: fi
8355: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8356: fi
1.11 ! millert 8357: echo "$as_me:8357: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 8358: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8359: if test `eval echo '${'$as_ac_var'}'` = yes; then
8360: cat >>confdefs.h <<EOF
8361: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 8362: EOF
8363:
1.9 millert 8364: for ac_func in getdomainname
8365: do
8366: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.11 ! millert 8367: echo "$as_me:8367: checking for $ac_func" >&5
1.9 millert 8368: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8369: if eval "test \"\${$as_ac_var+set}\" = set"; then
8370: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8371: else
1.9 millert 8372: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 8373: #line 8373 "configure"
1.1 millert 8374: #include "confdefs.h"
1.9 millert 8375: /* System header to define __stub macros and hopefully few prototypes
1.1 millert 8376: else
1.9 millert 8377: which can conflict with char $ac_func (); below. */
1.1 millert 8378: #include <assert.h>
8379: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 8380: #ifdef __cplusplus
8381: extern "C"
8382: #endif
1.1 millert 8383: /* We use char because int might match the return type of a gcc2
1.9 millert 8384: builtin and then its argument prototype would still apply. */
8385: char $ac_func ();
8386: char (*f) ();
1.1 millert 8387:
1.9 millert 8388: int
8389: main ()
8390: {
1.1 millert 8391: /* The GNU C library defines this for functions which it implements
8392: to always fail with ENOSYS. Some functions are actually named
8393: something starting with __ and the normal name is an alias. */
1.9 millert 8394: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 8395: choke me
8396: #else
1.9 millert 8397: f = $ac_func;
1.1 millert 8398: #endif
8399:
1.9 millert 8400: ;
8401: return 0;
8402: }
8403: _ACEOF
8404: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 8405: if { (eval echo "$as_me:8405: \"$ac_link\"") >&5
1.9 millert 8406: (eval $ac_link) 2>&5
8407: ac_status=$?
1.11 ! millert 8408: echo "$as_me:8408: \$? = $ac_status" >&5
1.9 millert 8409: (exit $ac_status); } &&
8410: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 8411: { (eval echo "$as_me:8411: \"$ac_try\"") >&5
1.9 millert 8412: (eval $ac_try) 2>&5
8413: ac_status=$?
1.11 ! millert 8414: echo "$as_me:8414: \$? = $ac_status" >&5
1.9 millert 8415: (exit $ac_status); }; }; then
8416: eval "$as_ac_var=yes"
8417: else
8418: echo "$as_me: failed program was:" >&5
8419: cat conftest.$ac_ext >&5
8420: eval "$as_ac_var=no"
8421: fi
8422: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8423: fi
1.11 ! millert 8424: echo "$as_me:8424: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 8425: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8426: if test `eval echo '${'$as_ac_var'}'` = yes; then
8427: cat >>confdefs.h <<EOF
8428: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 8429: EOF
1.9 millert 8430:
1.1 millert 8431: fi
1.9 millert 8432: done
8433: break
1.1 millert 8434: fi
1.9 millert 8435: done
1.1 millert 8436:
1.9 millert 8437: for ac_func in lsearch
8438: do
8439: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.11 ! millert 8440: echo "$as_me:8440: checking for $ac_func" >&5
1.9 millert 8441: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8442: if eval "test \"\${$as_ac_var+set}\" = set"; then
8443: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8444: else
1.9 millert 8445: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 8446: #line 8446 "configure"
1.1 millert 8447: #include "confdefs.h"
8448: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 8449: which can conflict with char $ac_func (); below. */
1.1 millert 8450: #include <assert.h>
8451: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 8452: #ifdef __cplusplus
8453: extern "C"
8454: #endif
1.1 millert 8455: /* We use char because int might match the return type of a gcc2
1.9 millert 8456: builtin and then its argument prototype would still apply. */
8457: char $ac_func ();
8458: char (*f) ();
1.1 millert 8459:
1.9 millert 8460: int
8461: main ()
8462: {
1.1 millert 8463: /* The GNU C library defines this for functions which it implements
8464: to always fail with ENOSYS. Some functions are actually named
8465: something starting with __ and the normal name is an alias. */
1.9 millert 8466: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 8467: choke me
8468: #else
1.9 millert 8469: f = $ac_func;
1.1 millert 8470: #endif
8471:
1.9 millert 8472: ;
8473: return 0;
8474: }
8475: _ACEOF
8476: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 8477: if { (eval echo "$as_me:8477: \"$ac_link\"") >&5
1.9 millert 8478: (eval $ac_link) 2>&5
8479: ac_status=$?
1.11 ! millert 8480: echo "$as_me:8480: \$? = $ac_status" >&5
1.9 millert 8481: (exit $ac_status); } &&
8482: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 8483: { (eval echo "$as_me:8483: \"$ac_try\"") >&5
1.9 millert 8484: (eval $ac_try) 2>&5
8485: ac_status=$?
1.11 ! millert 8486: echo "$as_me:8486: \$? = $ac_status" >&5
1.9 millert 8487: (exit $ac_status); }; }; then
8488: eval "$as_ac_var=yes"
8489: else
8490: echo "$as_me: failed program was:" >&5
8491: cat conftest.$ac_ext >&5
8492: eval "$as_ac_var=no"
8493: fi
8494: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8495: fi
1.11 ! millert 8496: echo "$as_me:8496: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 8497: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8498: if test `eval echo '${'$as_ac_var'}'` = yes; then
8499: cat >>confdefs.h <<EOF
8500: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 8501: EOF
1.9 millert 8502:
8503: else
1.11 ! millert 8504: echo "$as_me:8504: checking for lsearch in -lcompat" >&5
1.9 millert 8505: echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6
8506: if test "${ac_cv_lib_compat_lsearch+set}" = set; then
8507: echo $ECHO_N "(cached) $ECHO_C" >&6
8508: else
8509: ac_check_lib_save_LIBS=$LIBS
8510: LIBS="-lcompat $LIBS"
8511: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 8512: #line 8512 "configure"
1.9 millert 8513: #include "confdefs.h"
8514:
8515: /* Override any gcc2 internal prototype to avoid an error. */
8516: #ifdef __cplusplus
8517: extern "C"
8518: #endif
8519: /* We use char because int might match the return type of a gcc2
8520: builtin and then its argument prototype would still apply. */
8521: char lsearch ();
8522: int
8523: main ()
8524: {
8525: lsearch ();
8526: ;
8527: return 0;
8528: }
8529: _ACEOF
8530: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 8531: if { (eval echo "$as_me:8531: \"$ac_link\"") >&5
1.9 millert 8532: (eval $ac_link) 2>&5
8533: ac_status=$?
1.11 ! millert 8534: echo "$as_me:8534: \$? = $ac_status" >&5
1.9 millert 8535: (exit $ac_status); } &&
8536: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 8537: { (eval echo "$as_me:8537: \"$ac_try\"") >&5
1.9 millert 8538: (eval $ac_try) 2>&5
8539: ac_status=$?
1.11 ! millert 8540: echo "$as_me:8540: \$? = $ac_status" >&5
1.9 millert 8541: (exit $ac_status); }; }; then
8542: ac_cv_lib_compat_lsearch=yes
8543: else
8544: echo "$as_me: failed program was:" >&5
8545: cat conftest.$ac_ext >&5
8546: ac_cv_lib_compat_lsearch=no
8547: fi
8548: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8549: LIBS=$ac_check_lib_save_LIBS
8550: fi
1.11 ! millert 8551: echo "$as_me:8551: result: $ac_cv_lib_compat_lsearch" >&5
1.9 millert 8552: echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6
8553: if test $ac_cv_lib_compat_lsearch = yes; then
1.11 ! millert 8554: echo "$as_me:8554: checking for search.h" >&5
1.9 millert 8555: echo $ECHO_N "checking for search.h... $ECHO_C" >&6
8556: if test "${ac_cv_header_search_h+set}" = set; then
8557: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8558: else
1.9 millert 8559: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 8560: #line 8560 "configure"
1.9 millert 8561: #include "confdefs.h"
8562: #include <search.h>
8563: _ACEOF
1.11 ! millert 8564: if { (eval echo "$as_me:8564: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 8565: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8566: ac_status=$?
8567: egrep -v '^ *\+' conftest.er1 >conftest.err
8568: rm -f conftest.er1
8569: cat conftest.err >&5
1.11 ! millert 8570: echo "$as_me:8570: \$? = $ac_status" >&5
1.9 millert 8571: (exit $ac_status); } >/dev/null; then
8572: if test -s conftest.err; then
8573: ac_cpp_err=$ac_c_preproc_warn_flag
8574: else
8575: ac_cpp_err=
8576: fi
8577: else
8578: ac_cpp_err=yes
8579: fi
8580: if test -z "$ac_cpp_err"; then
8581: ac_cv_header_search_h=yes
8582: else
8583: echo "$as_me: failed program was:" >&5
1.1 millert 8584: cat conftest.$ac_ext >&5
1.9 millert 8585: ac_cv_header_search_h=no
1.1 millert 8586: fi
1.9 millert 8587: rm -f conftest.err conftest.$ac_ext
1.1 millert 8588: fi
1.11 ! millert 8589: echo "$as_me:8589: result: $ac_cv_header_search_h" >&5
1.9 millert 8590: echo "${ECHO_T}$ac_cv_header_search_h" >&6
8591: if test $ac_cv_header_search_h = yes; then
8592: cat >>confdefs.h <<\EOF
8593: #define HAVE_LSEARCH 1
1.1 millert 8594: EOF
1.9 millert 8595: LIBS="${LIBS} -lcompat"
8596: else
8597: LIBOBJS="$LIBOBJS lsearch.$ac_objext"
8598: fi
1.1 millert 8599:
8600: else
1.9 millert 8601: LIBOBJS="$LIBOBJS lsearch.$ac_objext"
1.1 millert 8602: fi
8603:
8604: fi
1.9 millert 8605: done
1.1 millert 8606:
1.9 millert 8607: for ac_func in utime
8608: do
8609: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.11 ! millert 8610: echo "$as_me:8610: checking for $ac_func" >&5
1.9 millert 8611: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8612: if eval "test \"\${$as_ac_var+set}\" = set"; then
8613: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8614: else
1.9 millert 8615: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 8616: #line 8616 "configure"
1.1 millert 8617: #include "confdefs.h"
8618: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 8619: which can conflict with char $ac_func (); below. */
1.1 millert 8620: #include <assert.h>
8621: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 8622: #ifdef __cplusplus
8623: extern "C"
8624: #endif
1.1 millert 8625: /* We use char because int might match the return type of a gcc2
1.9 millert 8626: builtin and then its argument prototype would still apply. */
8627: char $ac_func ();
8628: char (*f) ();
1.1 millert 8629:
1.9 millert 8630: int
8631: main ()
8632: {
1.1 millert 8633: /* The GNU C library defines this for functions which it implements
8634: to always fail with ENOSYS. Some functions are actually named
8635: something starting with __ and the normal name is an alias. */
1.9 millert 8636: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 8637: choke me
8638: #else
1.9 millert 8639: f = $ac_func;
1.1 millert 8640: #endif
8641:
1.9 millert 8642: ;
8643: return 0;
8644: }
8645: _ACEOF
8646: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 8647: if { (eval echo "$as_me:8647: \"$ac_link\"") >&5
1.9 millert 8648: (eval $ac_link) 2>&5
8649: ac_status=$?
1.11 ! millert 8650: echo "$as_me:8650: \$? = $ac_status" >&5
1.9 millert 8651: (exit $ac_status); } &&
8652: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 8653: { (eval echo "$as_me:8653: \"$ac_try\"") >&5
1.9 millert 8654: (eval $ac_try) 2>&5
8655: ac_status=$?
1.11 ! millert 8656: echo "$as_me:8656: \$? = $ac_status" >&5
1.9 millert 8657: (exit $ac_status); }; }; then
8658: eval "$as_ac_var=yes"
8659: else
8660: echo "$as_me: failed program was:" >&5
8661: cat conftest.$ac_ext >&5
8662: eval "$as_ac_var=no"
8663: fi
8664: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8665: fi
1.11 ! millert 8666: echo "$as_me:8666: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 8667: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8668: if test `eval echo '${'$as_ac_var'}'` = yes; then
8669: cat >>confdefs.h <<EOF
8670: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8671: EOF
1.11 ! millert 8672: echo "$as_me:8672: checking for POSIX utime" >&5
1.9 millert 8673: echo $ECHO_N "checking for POSIX utime... $ECHO_C" >&6
8674: if test "${sudo_cv_func_utime_posix+set}" = set; then
8675: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8676: else
8677: rm -f conftestdata; > conftestdata
8678: if test "$cross_compiling" = yes; then
8679: sudo_cv_func_utime_posix=no
8680: else
1.9 millert 8681: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 8682: #line 8682 "configure"
1.1 millert 8683: #include "confdefs.h"
8684: #include <sys/types.h>
8685: #include <sys/time.h>
8686: #include <utime.h>
8687: main() {
8688: struct utimbuf ut;
8689: ut.actime = ut.modtime = time(0);
8690: utime("conftestdata", &ut);
8691: exit(0);
8692: }
1.9 millert 8693: _ACEOF
8694: rm -f conftest$ac_exeext
1.11 ! millert 8695: if { (eval echo "$as_me:8695: \"$ac_link\"") >&5
1.9 millert 8696: (eval $ac_link) 2>&5
8697: ac_status=$?
1.11 ! millert 8698: echo "$as_me:8698: \$? = $ac_status" >&5
1.9 millert 8699: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.11 ! millert 8700: { (eval echo "$as_me:8700: \"$ac_try\"") >&5
1.9 millert 8701: (eval $ac_try) 2>&5
8702: ac_status=$?
1.11 ! millert 8703: echo "$as_me:8703: \$? = $ac_status" >&5
1.9 millert 8704: (exit $ac_status); }; }; then
1.1 millert 8705: sudo_cv_func_utime_posix=yes
8706: else
1.9 millert 8707: echo "$as_me: program exited with status $ac_status" >&5
8708: echo "$as_me: failed program was:" >&5
8709: cat conftest.$ac_ext >&5
8710: sudo_cv_func_utime_posix=no
1.1 millert 8711: fi
1.9 millert 8712: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 8713: fi
8714: rm -f core core.* *.core
8715: fi
1.11 ! millert 8716: echo "$as_me:8716: result: $sudo_cv_func_utime_posix" >&5
1.9 millert 8717: echo "${ECHO_T}$sudo_cv_func_utime_posix" >&6
1.1 millert 8718: if test $sudo_cv_func_utime_posix = yes; then
1.9 millert 8719:
8720: cat >>confdefs.h <<\EOF
1.1 millert 8721: #define HAVE_UTIME_POSIX 1
8722: EOF
8723:
8724: fi
8725:
8726: else
1.9 millert 8727: LIBOBJS="$LIBOBJS utime.$ac_objext"
1.1 millert 8728: fi
1.9 millert 8729: done
1.1 millert 8730:
1.11 ! millert 8731: echo "$as_me:8731: checking for working fnmatch with FNM_CASEFOLD" >&5
1.9 millert 8732: echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6
8733: if test "${sudo_cv_func_fnmatch+set}" = set; then
8734: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8735: else
8736: rm -f conftestdata; > conftestdata
8737: if test "$cross_compiling" = yes; then
8738: sudo_cv_func_fnmatch=no
8739: else
1.9 millert 8740: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 8741: #line 8741 "configure"
1.1 millert 8742: #include "confdefs.h"
1.3 millert 8743: #include <fnmatch.h>
1.6 millert 8744: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
1.3 millert 8745:
1.9 millert 8746: _ACEOF
8747: rm -f conftest$ac_exeext
1.11 ! millert 8748: if { (eval echo "$as_me:8748: \"$ac_link\"") >&5
1.9 millert 8749: (eval $ac_link) 2>&5
8750: ac_status=$?
1.11 ! millert 8751: echo "$as_me:8751: \$? = $ac_status" >&5
1.9 millert 8752: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.11 ! millert 8753: { (eval echo "$as_me:8753: \"$ac_try\"") >&5
1.9 millert 8754: (eval $ac_try) 2>&5
8755: ac_status=$?
1.11 ! millert 8756: echo "$as_me:8756: \$? = $ac_status" >&5
1.9 millert 8757: (exit $ac_status); }; }; then
1.1 millert 8758: sudo_cv_func_fnmatch=yes
8759: else
1.9 millert 8760: echo "$as_me: program exited with status $ac_status" >&5
8761: echo "$as_me: failed program was:" >&5
8762: cat conftest.$ac_ext >&5
8763: sudo_cv_func_fnmatch=no
1.1 millert 8764: fi
1.9 millert 8765: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 8766: fi
8767: rm -f core core.* *.core
8768: fi
1.11 ! millert 8769: echo "$as_me:8769: result: $sudo_cv_func_fnmatch" >&5
1.9 millert 8770: echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6
1.1 millert 8771: if test $sudo_cv_func_fnmatch = yes; then
1.9 millert 8772:
8773: cat >>confdefs.h <<\EOF
1.1 millert 8774: #define HAVE_FNMATCH 1
8775: EOF
8776:
8777: else
1.9 millert 8778: LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
1.1 millert 8779: fi
8780:
1.11 ! millert 8781: echo "$as_me:8781: checking for isblank" >&5
1.9 millert 8782: echo $ECHO_N "checking for isblank... $ECHO_C" >&6
8783: if test "${sudo_cv_func_isblank+set}" = set; then
8784: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8785: else
1.9 millert 8786: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 8787: #line 8787 "configure"
1.1 millert 8788: #include "confdefs.h"
1.9 millert 8789: #include <ctype.h>
8790: int
8791: main ()
8792: {
8793: (void)isblank(1);
8794: ;
8795: return 0;
8796: }
8797: _ACEOF
8798: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 8799: if { (eval echo "$as_me:8799: \"$ac_link\"") >&5
1.9 millert 8800: (eval $ac_link) 2>&5
8801: ac_status=$?
1.11 ! millert 8802: echo "$as_me:8802: \$? = $ac_status" >&5
1.9 millert 8803: (exit $ac_status); } &&
8804: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 8805: { (eval echo "$as_me:8805: \"$ac_try\"") >&5
1.9 millert 8806: (eval $ac_try) 2>&5
8807: ac_status=$?
1.11 ! millert 8808: echo "$as_me:8808: \$? = $ac_status" >&5
1.9 millert 8809: (exit $ac_status); }; }; then
8810: sudo_cv_func_isblank=yes
8811: else
8812: echo "$as_me: failed program was:" >&5
8813: cat conftest.$ac_ext >&5
8814: sudo_cv_func_isblank=no
8815: fi
8816: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 millert 8817: fi
1.11 ! millert 8818: echo "$as_me:8818: result: $sudo_cv_func_isblank" >&5
1.9 millert 8819: echo "${ECHO_T}$sudo_cv_func_isblank" >&6
1.1 millert 8820:
1.9 millert 8821: if test "$sudo_cv_func_isblank" = "yes"; then
1.1 millert 8822:
1.9 millert 8823: cat >>confdefs.h <<\EOF
8824: #define HAVE_ISBLANK 1
1.1 millert 8825: EOF
8826:
1.9 millert 8827: fi
1.1 millert 8828:
1.9 millert 8829: for ac_func in strerror strcasecmp sigaction
8830: do
8831: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.11 ! millert 8832: echo "$as_me:8832: checking for $ac_func" >&5
1.9 millert 8833: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8834: if eval "test \"\${$as_ac_var+set}\" = set"; then
8835: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8836: else
1.9 millert 8837: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 8838: #line 8838 "configure"
1.1 millert 8839: #include "confdefs.h"
8840: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 8841: which can conflict with char $ac_func (); below. */
1.1 millert 8842: #include <assert.h>
8843: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 8844: #ifdef __cplusplus
8845: extern "C"
1.1 millert 8846: #endif
8847: /* We use char because int might match the return type of a gcc2
1.9 millert 8848: builtin and then its argument prototype would still apply. */
8849: char $ac_func ();
8850: char (*f) ();
1.1 millert 8851:
1.9 millert 8852: int
8853: main ()
8854: {
1.1 millert 8855: /* The GNU C library defines this for functions which it implements
8856: to always fail with ENOSYS. Some functions are actually named
8857: something starting with __ and the normal name is an alias. */
1.9 millert 8858: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 8859: choke me
8860: #else
1.9 millert 8861: f = $ac_func;
1.1 millert 8862: #endif
8863:
1.9 millert 8864: ;
8865: return 0;
8866: }
8867: _ACEOF
8868: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 8869: if { (eval echo "$as_me:8869: \"$ac_link\"") >&5
1.9 millert 8870: (eval $ac_link) 2>&5
8871: ac_status=$?
1.11 ! millert 8872: echo "$as_me:8872: \$? = $ac_status" >&5
1.9 millert 8873: (exit $ac_status); } &&
8874: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 8875: { (eval echo "$as_me:8875: \"$ac_try\"") >&5
1.9 millert 8876: (eval $ac_try) 2>&5
8877: ac_status=$?
1.11 ! millert 8878: echo "$as_me:8878: \$? = $ac_status" >&5
1.9 millert 8879: (exit $ac_status); }; }; then
8880: eval "$as_ac_var=yes"
8881: else
8882: echo "$as_me: failed program was:" >&5
8883: cat conftest.$ac_ext >&5
8884: eval "$as_ac_var=no"
8885: fi
8886: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8887: fi
1.11 ! millert 8888: echo "$as_me:8888: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 8889: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8890: if test `eval echo '${'$as_ac_var'}'` = yes; then
8891: cat >>confdefs.h <<EOF
8892: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 8893: EOF
8894:
8895: else
1.9 millert 8896: LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
1.1 millert 8897: fi
1.9 millert 8898: done
1.1 millert 8899:
1.9 millert 8900: for ac_func in snprintf vsnprintf asprintf vasprintf
8901: do
8902: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.11 ! millert 8903: echo "$as_me:8903: checking for $ac_func" >&5
1.9 millert 8904: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8905: if eval "test \"\${$as_ac_var+set}\" = set"; then
8906: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8907: else
1.9 millert 8908: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 8909: #line 8909 "configure"
1.1 millert 8910: #include "confdefs.h"
8911: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 8912: which can conflict with char $ac_func (); below. */
1.1 millert 8913: #include <assert.h>
8914: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 8915: #ifdef __cplusplus
8916: extern "C"
8917: #endif
1.1 millert 8918: /* We use char because int might match the return type of a gcc2
1.9 millert 8919: builtin and then its argument prototype would still apply. */
8920: char $ac_func ();
8921: char (*f) ();
1.1 millert 8922:
1.9 millert 8923: int
8924: main ()
8925: {
1.1 millert 8926: /* The GNU C library defines this for functions which it implements
8927: to always fail with ENOSYS. Some functions are actually named
8928: something starting with __ and the normal name is an alias. */
1.9 millert 8929: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 8930: choke me
8931: #else
1.9 millert 8932: f = $ac_func;
1.1 millert 8933: #endif
8934:
1.9 millert 8935: ;
8936: return 0;
8937: }
8938: _ACEOF
8939: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 8940: if { (eval echo "$as_me:8940: \"$ac_link\"") >&5
1.9 millert 8941: (eval $ac_link) 2>&5
8942: ac_status=$?
1.11 ! millert 8943: echo "$as_me:8943: \$? = $ac_status" >&5
1.9 millert 8944: (exit $ac_status); } &&
8945: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 8946: { (eval echo "$as_me:8946: \"$ac_try\"") >&5
1.9 millert 8947: (eval $ac_try) 2>&5
8948: ac_status=$?
1.11 ! millert 8949: echo "$as_me:8949: \$? = $ac_status" >&5
1.9 millert 8950: (exit $ac_status); }; }; then
8951: eval "$as_ac_var=yes"
8952: else
8953: echo "$as_me: failed program was:" >&5
8954: cat conftest.$ac_ext >&5
8955: eval "$as_ac_var=no"
8956: fi
8957: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8958: fi
1.11 ! millert 8959: echo "$as_me:8959: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 8960: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8961: if test `eval echo '${'$as_ac_var'}'` = yes; then
8962: cat >>confdefs.h <<EOF
8963: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 millert 8964: EOF
8965:
8966: else
1.9 millert 8967: NEED_SNPRINTF=1
1.1 millert 8968: fi
1.9 millert 8969: done
1.1 millert 8970:
8971: if test -n "$NEED_SNPRINTF"; then
1.9 millert 8972: LIBOBJS="$LIBOBJS snprintf.$ac_objext"
1.1 millert 8973: fi
8974: if test -z "$LIB_CRYPT"; then
1.11 ! millert 8975: echo "$as_me:8975: checking for crypt" >&5
1.9 millert 8976: echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8977: if test "${ac_cv_func_crypt+set}" = set; then
8978: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 8979: else
1.9 millert 8980: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 8981: #line 8981 "configure"
1.1 millert 8982: #include "confdefs.h"
8983: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 8984: which can conflict with char crypt (); below. */
1.1 millert 8985: #include <assert.h>
8986: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 8987: #ifdef __cplusplus
8988: extern "C"
8989: #endif
1.1 millert 8990: /* We use char because int might match the return type of a gcc2
1.9 millert 8991: builtin and then its argument prototype would still apply. */
8992: char crypt ();
8993: char (*f) ();
1.1 millert 8994:
1.9 millert 8995: int
8996: main ()
8997: {
1.1 millert 8998: /* The GNU C library defines this for functions which it implements
8999: to always fail with ENOSYS. Some functions are actually named
9000: something starting with __ and the normal name is an alias. */
9001: #if defined (__stub_crypt) || defined (__stub___crypt)
9002: choke me
9003: #else
1.9 millert 9004: f = crypt;
1.1 millert 9005: #endif
9006:
1.9 millert 9007: ;
9008: return 0;
9009: }
9010: _ACEOF
9011: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 9012: if { (eval echo "$as_me:9012: \"$ac_link\"") >&5
1.9 millert 9013: (eval $ac_link) 2>&5
9014: ac_status=$?
1.11 ! millert 9015: echo "$as_me:9015: \$? = $ac_status" >&5
1.9 millert 9016: (exit $ac_status); } &&
9017: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 9018: { (eval echo "$as_me:9018: \"$ac_try\"") >&5
1.9 millert 9019: (eval $ac_try) 2>&5
9020: ac_status=$?
1.11 ! millert 9021: echo "$as_me:9021: \$? = $ac_status" >&5
1.9 millert 9022: (exit $ac_status); }; }; then
9023: ac_cv_func_crypt=yes
9024: else
9025: echo "$as_me: failed program was:" >&5
9026: cat conftest.$ac_ext >&5
9027: ac_cv_func_crypt=no
9028: fi
9029: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9030: fi
1.11 ! millert 9031: echo "$as_me:9031: result: $ac_cv_func_crypt" >&5
1.9 millert 9032: echo "${ECHO_T}$ac_cv_func_crypt" >&6
9033: if test $ac_cv_func_crypt = yes; then
1.1 millert 9034: :
9035: else
1.11 ! millert 9036: echo "$as_me:9036: checking for crypt in -lcrypt" >&5
1.9 millert 9037: echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9038: if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9039: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9040: else
1.9 millert 9041: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9042: LIBS="-lcrypt $LIBS"
1.9 millert 9043: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 9044: #line 9044 "configure"
1.1 millert 9045: #include "confdefs.h"
1.9 millert 9046:
1.1 millert 9047: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 9048: #ifdef __cplusplus
9049: extern "C"
9050: #endif
1.1 millert 9051: /* We use char because int might match the return type of a gcc2
1.9 millert 9052: builtin and then its argument prototype would still apply. */
9053: char crypt ();
9054: int
9055: main ()
9056: {
9057: crypt ();
9058: ;
9059: return 0;
9060: }
9061: _ACEOF
9062: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 9063: if { (eval echo "$as_me:9063: \"$ac_link\"") >&5
1.9 millert 9064: (eval $ac_link) 2>&5
9065: ac_status=$?
1.11 ! millert 9066: echo "$as_me:9066: \$? = $ac_status" >&5
1.9 millert 9067: (exit $ac_status); } &&
9068: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 9069: { (eval echo "$as_me:9069: \"$ac_try\"") >&5
1.9 millert 9070: (eval $ac_try) 2>&5
9071: ac_status=$?
1.11 ! millert 9072: echo "$as_me:9072: \$? = $ac_status" >&5
1.9 millert 9073: (exit $ac_status); }; }; then
9074: ac_cv_lib_crypt_crypt=yes
9075: else
9076: echo "$as_me: failed program was:" >&5
9077: cat conftest.$ac_ext >&5
9078: ac_cv_lib_crypt_crypt=no
9079: fi
9080: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9081: LIBS=$ac_check_lib_save_LIBS
9082: fi
1.11 ! millert 9083: echo "$as_me:9083: result: $ac_cv_lib_crypt_crypt" >&5
1.9 millert 9084: echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9085: if test $ac_cv_lib_crypt_crypt = yes; then
1.1 millert 9086: SUDO_LIBS="${SUDO_LIBS} -lcrypt"; LIBS="${LIBS} -lcrypt"
9087: else
1.11 ! millert 9088: echo "$as_me:9088: checking for crypt in -lcrypt_d" >&5
1.9 millert 9089: echo $ECHO_N "checking for crypt in -lcrypt_d... $ECHO_C" >&6
9090: if test "${ac_cv_lib_crypt_d_crypt+set}" = set; then
9091: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9092: else
1.9 millert 9093: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9094: LIBS="-lcrypt_d $LIBS"
1.9 millert 9095: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 9096: #line 9096 "configure"
1.1 millert 9097: #include "confdefs.h"
1.9 millert 9098:
1.1 millert 9099: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 9100: #ifdef __cplusplus
9101: extern "C"
9102: #endif
1.1 millert 9103: /* We use char because int might match the return type of a gcc2
1.9 millert 9104: builtin and then its argument prototype would still apply. */
9105: char crypt ();
9106: int
9107: main ()
9108: {
9109: crypt ();
9110: ;
9111: return 0;
9112: }
9113: _ACEOF
9114: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 9115: if { (eval echo "$as_me:9115: \"$ac_link\"") >&5
1.9 millert 9116: (eval $ac_link) 2>&5
9117: ac_status=$?
1.11 ! millert 9118: echo "$as_me:9118: \$? = $ac_status" >&5
1.9 millert 9119: (exit $ac_status); } &&
9120: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 9121: { (eval echo "$as_me:9121: \"$ac_try\"") >&5
1.9 millert 9122: (eval $ac_try) 2>&5
9123: ac_status=$?
1.11 ! millert 9124: echo "$as_me:9124: \$? = $ac_status" >&5
1.9 millert 9125: (exit $ac_status); }; }; then
9126: ac_cv_lib_crypt_d_crypt=yes
9127: else
9128: echo "$as_me: failed program was:" >&5
9129: cat conftest.$ac_ext >&5
9130: ac_cv_lib_crypt_d_crypt=no
9131: fi
9132: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9133: LIBS=$ac_check_lib_save_LIBS
9134: fi
1.11 ! millert 9135: echo "$as_me:9135: result: $ac_cv_lib_crypt_d_crypt" >&5
1.9 millert 9136: echo "${ECHO_T}$ac_cv_lib_crypt_d_crypt" >&6
9137: if test $ac_cv_lib_crypt_d_crypt = yes; then
1.1 millert 9138: SUDO_LIBS="${SUDO_LIBS} -lcrypt_d"; LIBS="${LIBS} -lcrypt_d"
9139: else
1.11 ! millert 9140: echo "$as_me:9140: checking for crypt in -lufc" >&5
1.9 millert 9141: echo $ECHO_N "checking for crypt in -lufc... $ECHO_C" >&6
9142: if test "${ac_cv_lib_ufc_crypt+set}" = set; then
9143: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9144: else
1.9 millert 9145: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9146: LIBS="-lufc $LIBS"
1.9 millert 9147: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 9148: #line 9148 "configure"
1.1 millert 9149: #include "confdefs.h"
1.9 millert 9150:
1.1 millert 9151: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 9152: #ifdef __cplusplus
9153: extern "C"
9154: #endif
1.1 millert 9155: /* We use char because int might match the return type of a gcc2
1.9 millert 9156: builtin and then its argument prototype would still apply. */
9157: char crypt ();
9158: int
9159: main ()
9160: {
9161: crypt ();
9162: ;
9163: return 0;
9164: }
9165: _ACEOF
9166: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 9167: if { (eval echo "$as_me:9167: \"$ac_link\"") >&5
1.9 millert 9168: (eval $ac_link) 2>&5
9169: ac_status=$?
1.11 ! millert 9170: echo "$as_me:9170: \$? = $ac_status" >&5
1.9 millert 9171: (exit $ac_status); } &&
9172: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 9173: { (eval echo "$as_me:9173: \"$ac_try\"") >&5
1.9 millert 9174: (eval $ac_try) 2>&5
9175: ac_status=$?
1.11 ! millert 9176: echo "$as_me:9176: \$? = $ac_status" >&5
1.9 millert 9177: (exit $ac_status); }; }; then
9178: ac_cv_lib_ufc_crypt=yes
9179: else
9180: echo "$as_me: failed program was:" >&5
9181: cat conftest.$ac_ext >&5
9182: ac_cv_lib_ufc_crypt=no
9183: fi
9184: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9185: LIBS=$ac_check_lib_save_LIBS
9186: fi
1.11 ! millert 9187: echo "$as_me:9187: result: $ac_cv_lib_ufc_crypt" >&5
1.9 millert 9188: echo "${ECHO_T}$ac_cv_lib_ufc_crypt" >&6
9189: if test $ac_cv_lib_ufc_crypt = yes; then
1.1 millert 9190: SUDO_LIBS="${SUDO_LIBS} -lufc"; LIBS="${LIBS} -lufc"
9191: fi
9192:
9193: fi
9194:
9195: fi
9196:
9197: fi
9198:
9199: fi
1.11 ! millert 9200: echo "$as_me:9200: checking for socket" >&5
1.9 millert 9201: echo $ECHO_N "checking for socket... $ECHO_C" >&6
9202: if test "${ac_cv_func_socket+set}" = set; then
9203: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9204: else
1.9 millert 9205: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 9206: #line 9206 "configure"
1.1 millert 9207: #include "confdefs.h"
9208: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 9209: which can conflict with char socket (); below. */
1.1 millert 9210: #include <assert.h>
9211: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 9212: #ifdef __cplusplus
9213: extern "C"
9214: #endif
1.1 millert 9215: /* We use char because int might match the return type of a gcc2
1.9 millert 9216: builtin and then its argument prototype would still apply. */
9217: char socket ();
9218: char (*f) ();
1.1 millert 9219:
1.9 millert 9220: int
9221: main ()
9222: {
1.1 millert 9223: /* The GNU C library defines this for functions which it implements
9224: to always fail with ENOSYS. Some functions are actually named
9225: something starting with __ and the normal name is an alias. */
9226: #if defined (__stub_socket) || defined (__stub___socket)
9227: choke me
9228: #else
1.9 millert 9229: f = socket;
1.1 millert 9230: #endif
9231:
1.9 millert 9232: ;
9233: return 0;
9234: }
9235: _ACEOF
9236: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 9237: if { (eval echo "$as_me:9237: \"$ac_link\"") >&5
1.9 millert 9238: (eval $ac_link) 2>&5
9239: ac_status=$?
1.11 ! millert 9240: echo "$as_me:9240: \$? = $ac_status" >&5
1.9 millert 9241: (exit $ac_status); } &&
9242: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 9243: { (eval echo "$as_me:9243: \"$ac_try\"") >&5
1.9 millert 9244: (eval $ac_try) 2>&5
9245: ac_status=$?
1.11 ! millert 9246: echo "$as_me:9246: \$? = $ac_status" >&5
1.9 millert 9247: (exit $ac_status); }; }; then
9248: ac_cv_func_socket=yes
9249: else
9250: echo "$as_me: failed program was:" >&5
9251: cat conftest.$ac_ext >&5
9252: ac_cv_func_socket=no
9253: fi
9254: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9255: fi
1.11 ! millert 9256: echo "$as_me:9256: result: $ac_cv_func_socket" >&5
1.9 millert 9257: echo "${ECHO_T}$ac_cv_func_socket" >&6
9258: if test $ac_cv_func_socket = yes; then
1.1 millert 9259: :
9260: else
1.11 ! millert 9261: echo "$as_me:9261: checking for socket in -lsocket" >&5
1.9 millert 9262: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9263: if test "${ac_cv_lib_socket_socket+set}" = set; then
9264: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9265: else
1.9 millert 9266: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9267: LIBS="-lsocket $LIBS"
1.9 millert 9268: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 9269: #line 9269 "configure"
1.1 millert 9270: #include "confdefs.h"
1.9 millert 9271:
1.1 millert 9272: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 9273: #ifdef __cplusplus
9274: extern "C"
9275: #endif
1.1 millert 9276: /* We use char because int might match the return type of a gcc2
1.9 millert 9277: builtin and then its argument prototype would still apply. */
9278: char socket ();
9279: int
9280: main ()
9281: {
9282: socket ();
9283: ;
9284: return 0;
9285: }
9286: _ACEOF
9287: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 9288: if { (eval echo "$as_me:9288: \"$ac_link\"") >&5
1.9 millert 9289: (eval $ac_link) 2>&5
9290: ac_status=$?
1.11 ! millert 9291: echo "$as_me:9291: \$? = $ac_status" >&5
1.9 millert 9292: (exit $ac_status); } &&
9293: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 9294: { (eval echo "$as_me:9294: \"$ac_try\"") >&5
1.9 millert 9295: (eval $ac_try) 2>&5
9296: ac_status=$?
1.11 ! millert 9297: echo "$as_me:9297: \$? = $ac_status" >&5
1.9 millert 9298: (exit $ac_status); }; }; then
9299: ac_cv_lib_socket_socket=yes
9300: else
9301: echo "$as_me: failed program was:" >&5
9302: cat conftest.$ac_ext >&5
9303: ac_cv_lib_socket_socket=no
9304: fi
9305: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9306: LIBS=$ac_check_lib_save_LIBS
9307: fi
1.11 ! millert 9308: echo "$as_me:9308: result: $ac_cv_lib_socket_socket" >&5
1.9 millert 9309: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9310: if test $ac_cv_lib_socket_socket = yes; then
1.1 millert 9311: NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
9312: else
1.11 ! millert 9313: echo "$as_me:9313: checking for socket in -linet" >&5
1.9 millert 9314: echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
9315: if test "${ac_cv_lib_inet_socket+set}" = set; then
9316: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9317: else
1.9 millert 9318: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9319: LIBS="-linet $LIBS"
1.9 millert 9320: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 9321: #line 9321 "configure"
1.1 millert 9322: #include "confdefs.h"
1.9 millert 9323:
1.1 millert 9324: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 9325: #ifdef __cplusplus
9326: extern "C"
9327: #endif
1.1 millert 9328: /* We use char because int might match the return type of a gcc2
1.9 millert 9329: builtin and then its argument prototype would still apply. */
9330: char socket ();
9331: int
9332: main ()
9333: {
9334: socket ();
9335: ;
9336: return 0;
9337: }
9338: _ACEOF
9339: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 9340: if { (eval echo "$as_me:9340: \"$ac_link\"") >&5
1.9 millert 9341: (eval $ac_link) 2>&5
9342: ac_status=$?
1.11 ! millert 9343: echo "$as_me:9343: \$? = $ac_status" >&5
1.9 millert 9344: (exit $ac_status); } &&
9345: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 9346: { (eval echo "$as_me:9346: \"$ac_try\"") >&5
1.9 millert 9347: (eval $ac_try) 2>&5
9348: ac_status=$?
1.11 ! millert 9349: echo "$as_me:9349: \$? = $ac_status" >&5
1.9 millert 9350: (exit $ac_status); }; }; then
9351: ac_cv_lib_inet_socket=yes
9352: else
9353: echo "$as_me: failed program was:" >&5
9354: cat conftest.$ac_ext >&5
9355: ac_cv_lib_inet_socket=no
9356: fi
9357: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9358: LIBS=$ac_check_lib_save_LIBS
9359: fi
1.11 ! millert 9360: echo "$as_me:9360: result: $ac_cv_lib_inet_socket" >&5
1.9 millert 9361: echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
9362: if test $ac_cv_lib_inet_socket = yes; then
1.1 millert 9363: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
9364: else
1.11 ! millert 9365: { echo "$as_me:9365: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
1.9 millert 9366: echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
1.11 ! millert 9367: echo "$as_me:9367: checking for socket in -lsocket" >&5
1.9 millert 9368: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9369: if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
9370: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9371: else
1.9 millert 9372: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9373: LIBS="-lsocket -lnsl $LIBS"
1.9 millert 9374: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 9375: #line 9375 "configure"
1.1 millert 9376: #include "confdefs.h"
1.9 millert 9377:
1.1 millert 9378: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 9379: #ifdef __cplusplus
9380: extern "C"
9381: #endif
1.1 millert 9382: /* We use char because int might match the return type of a gcc2
1.9 millert 9383: builtin and then its argument prototype would still apply. */
9384: char socket ();
9385: int
9386: main ()
9387: {
9388: socket ();
9389: ;
9390: return 0;
9391: }
9392: _ACEOF
9393: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 9394: if { (eval echo "$as_me:9394: \"$ac_link\"") >&5
1.9 millert 9395: (eval $ac_link) 2>&5
9396: ac_status=$?
1.11 ! millert 9397: echo "$as_me:9397: \$? = $ac_status" >&5
1.9 millert 9398: (exit $ac_status); } &&
9399: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 9400: { (eval echo "$as_me:9400: \"$ac_try\"") >&5
1.9 millert 9401: (eval $ac_try) 2>&5
9402: ac_status=$?
1.11 ! millert 9403: echo "$as_me:9403: \$? = $ac_status" >&5
1.9 millert 9404: (exit $ac_status); }; }; then
9405: ac_cv_lib_socket_socket_lnsl=yes
9406: else
9407: echo "$as_me: failed program was:" >&5
9408: cat conftest.$ac_ext >&5
9409: ac_cv_lib_socket_socket_lnsl=no
9410: fi
9411: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9412: LIBS=$ac_check_lib_save_LIBS
9413: fi
1.11 ! millert 9414: echo "$as_me:9414: result: $ac_cv_lib_socket_socket_lnsl" >&5
1.9 millert 9415: echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6
9416: if test $ac_cv_lib_socket_socket_lnsl = yes; then
1.1 millert 9417: NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
9418: fi
9419:
9420: fi
9421:
9422: fi
9423:
9424: fi
9425:
1.11 ! millert 9426: echo "$as_me:9426: checking for inet_addr" >&5
1.9 millert 9427: echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6
9428: if test "${ac_cv_func_inet_addr+set}" = set; then
9429: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9430: else
1.9 millert 9431: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 9432: #line 9432 "configure"
1.1 millert 9433: #include "confdefs.h"
9434: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 9435: which can conflict with char inet_addr (); below. */
1.1 millert 9436: #include <assert.h>
9437: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 9438: #ifdef __cplusplus
9439: extern "C"
9440: #endif
1.1 millert 9441: /* We use char because int might match the return type of a gcc2
1.9 millert 9442: builtin and then its argument prototype would still apply. */
9443: char inet_addr ();
9444: char (*f) ();
1.1 millert 9445:
1.9 millert 9446: int
9447: main ()
9448: {
1.1 millert 9449: /* The GNU C library defines this for functions which it implements
9450: to always fail with ENOSYS. Some functions are actually named
9451: something starting with __ and the normal name is an alias. */
9452: #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
9453: choke me
9454: #else
1.9 millert 9455: f = inet_addr;
1.1 millert 9456: #endif
9457:
1.9 millert 9458: ;
9459: return 0;
9460: }
9461: _ACEOF
9462: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 9463: if { (eval echo "$as_me:9463: \"$ac_link\"") >&5
1.9 millert 9464: (eval $ac_link) 2>&5
9465: ac_status=$?
1.11 ! millert 9466: echo "$as_me:9466: \$? = $ac_status" >&5
1.9 millert 9467: (exit $ac_status); } &&
9468: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 9469: { (eval echo "$as_me:9469: \"$ac_try\"") >&5
1.9 millert 9470: (eval $ac_try) 2>&5
9471: ac_status=$?
1.11 ! millert 9472: echo "$as_me:9472: \$? = $ac_status" >&5
1.9 millert 9473: (exit $ac_status); }; }; then
9474: ac_cv_func_inet_addr=yes
9475: else
9476: echo "$as_me: failed program was:" >&5
9477: cat conftest.$ac_ext >&5
9478: ac_cv_func_inet_addr=no
9479: fi
9480: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9481: fi
1.11 ! millert 9482: echo "$as_me:9482: result: $ac_cv_func_inet_addr" >&5
1.9 millert 9483: echo "${ECHO_T}$ac_cv_func_inet_addr" >&6
9484: if test $ac_cv_func_inet_addr = yes; then
1.1 millert 9485: :
9486: else
1.11 ! millert 9487: echo "$as_me:9487: checking for __inet_addr" >&5
1.9 millert 9488: echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6
9489: if test "${ac_cv_func___inet_addr+set}" = set; then
9490: echo $ECHO_N "(cached) $ECHO_C" >&6
1.6 millert 9491: else
1.9 millert 9492: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 9493: #line 9493 "configure"
1.6 millert 9494: #include "confdefs.h"
9495: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 9496: which can conflict with char __inet_addr (); below. */
1.6 millert 9497: #include <assert.h>
9498: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 9499: #ifdef __cplusplus
9500: extern "C"
9501: #endif
1.6 millert 9502: /* We use char because int might match the return type of a gcc2
1.9 millert 9503: builtin and then its argument prototype would still apply. */
9504: char __inet_addr ();
9505: char (*f) ();
1.6 millert 9506:
1.9 millert 9507: int
9508: main ()
9509: {
1.6 millert 9510: /* The GNU C library defines this for functions which it implements
9511: to always fail with ENOSYS. Some functions are actually named
9512: something starting with __ and the normal name is an alias. */
9513: #if defined (__stub___inet_addr) || defined (__stub_____inet_addr)
9514: choke me
9515: #else
1.9 millert 9516: f = __inet_addr;
1.6 millert 9517: #endif
9518:
1.9 millert 9519: ;
9520: return 0;
9521: }
9522: _ACEOF
9523: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 9524: if { (eval echo "$as_me:9524: \"$ac_link\"") >&5
1.9 millert 9525: (eval $ac_link) 2>&5
9526: ac_status=$?
1.11 ! millert 9527: echo "$as_me:9527: \$? = $ac_status" >&5
1.9 millert 9528: (exit $ac_status); } &&
9529: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 9530: { (eval echo "$as_me:9530: \"$ac_try\"") >&5
1.9 millert 9531: (eval $ac_try) 2>&5
9532: ac_status=$?
1.11 ! millert 9533: echo "$as_me:9533: \$? = $ac_status" >&5
1.9 millert 9534: (exit $ac_status); }; }; then
9535: ac_cv_func___inet_addr=yes
9536: else
9537: echo "$as_me: failed program was:" >&5
9538: cat conftest.$ac_ext >&5
9539: ac_cv_func___inet_addr=no
9540: fi
9541: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9542: fi
1.11 ! millert 9543: echo "$as_me:9543: result: $ac_cv_func___inet_addr" >&5
1.9 millert 9544: echo "${ECHO_T}$ac_cv_func___inet_addr" >&6
9545: if test $ac_cv_func___inet_addr = yes; then
1.6 millert 9546: :
9547: else
1.11 ! millert 9548: echo "$as_me:9548: checking for inet_addr in -lnsl" >&5
1.9 millert 9549: echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
9550: if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
9551: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9552: else
1.9 millert 9553: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9554: LIBS="-lnsl $LIBS"
1.9 millert 9555: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 9556: #line 9556 "configure"
1.1 millert 9557: #include "confdefs.h"
1.9 millert 9558:
1.1 millert 9559: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 9560: #ifdef __cplusplus
9561: extern "C"
9562: #endif
1.1 millert 9563: /* We use char because int might match the return type of a gcc2
1.9 millert 9564: builtin and then its argument prototype would still apply. */
9565: char inet_addr ();
9566: int
9567: main ()
9568: {
9569: inet_addr ();
9570: ;
9571: return 0;
9572: }
9573: _ACEOF
9574: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 9575: if { (eval echo "$as_me:9575: \"$ac_link\"") >&5
1.9 millert 9576: (eval $ac_link) 2>&5
9577: ac_status=$?
1.11 ! millert 9578: echo "$as_me:9578: \$? = $ac_status" >&5
1.9 millert 9579: (exit $ac_status); } &&
9580: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 9581: { (eval echo "$as_me:9581: \"$ac_try\"") >&5
1.9 millert 9582: (eval $ac_try) 2>&5
9583: ac_status=$?
1.11 ! millert 9584: echo "$as_me:9584: \$? = $ac_status" >&5
1.9 millert 9585: (exit $ac_status); }; }; then
9586: ac_cv_lib_nsl_inet_addr=yes
9587: else
9588: echo "$as_me: failed program was:" >&5
9589: cat conftest.$ac_ext >&5
9590: ac_cv_lib_nsl_inet_addr=no
9591: fi
9592: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9593: LIBS=$ac_check_lib_save_LIBS
9594: fi
1.11 ! millert 9595: echo "$as_me:9595: result: $ac_cv_lib_nsl_inet_addr" >&5
1.9 millert 9596: echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
9597: if test $ac_cv_lib_nsl_inet_addr = yes; then
1.1 millert 9598: NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
9599: else
1.11 ! millert 9600: echo "$as_me:9600: checking for inet_addr in -linet" >&5
1.9 millert 9601: echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6
9602: if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
9603: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9604: else
1.9 millert 9605: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9606: LIBS="-linet $LIBS"
1.9 millert 9607: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 9608: #line 9608 "configure"
1.1 millert 9609: #include "confdefs.h"
1.9 millert 9610:
1.1 millert 9611: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 9612: #ifdef __cplusplus
9613: extern "C"
9614: #endif
1.1 millert 9615: /* We use char because int might match the return type of a gcc2
1.9 millert 9616: builtin and then its argument prototype would still apply. */
9617: char inet_addr ();
9618: int
9619: main ()
9620: {
9621: inet_addr ();
9622: ;
9623: return 0;
9624: }
9625: _ACEOF
9626: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 9627: if { (eval echo "$as_me:9627: \"$ac_link\"") >&5
1.9 millert 9628: (eval $ac_link) 2>&5
9629: ac_status=$?
1.11 ! millert 9630: echo "$as_me:9630: \$? = $ac_status" >&5
1.9 millert 9631: (exit $ac_status); } &&
9632: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 9633: { (eval echo "$as_me:9633: \"$ac_try\"") >&5
1.9 millert 9634: (eval $ac_try) 2>&5
9635: ac_status=$?
1.11 ! millert 9636: echo "$as_me:9636: \$? = $ac_status" >&5
1.9 millert 9637: (exit $ac_status); }; }; then
9638: ac_cv_lib_inet_inet_addr=yes
9639: else
9640: echo "$as_me: failed program was:" >&5
9641: cat conftest.$ac_ext >&5
9642: ac_cv_lib_inet_inet_addr=no
9643: fi
9644: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9645: LIBS=$ac_check_lib_save_LIBS
9646: fi
1.11 ! millert 9647: echo "$as_me:9647: result: $ac_cv_lib_inet_inet_addr" >&5
1.9 millert 9648: echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6
9649: if test $ac_cv_lib_inet_inet_addr = yes; then
1.1 millert 9650: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
9651: else
1.11 ! millert 9652: { echo "$as_me:9652: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
1.9 millert 9653: echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
1.11 ! millert 9654: echo "$as_me:9654: checking for inet_addr in -lsocket" >&5
1.9 millert 9655: echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
9656: if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
9657: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9658: else
1.9 millert 9659: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9660: LIBS="-lsocket -lnsl $LIBS"
1.9 millert 9661: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 9662: #line 9662 "configure"
1.1 millert 9663: #include "confdefs.h"
1.9 millert 9664:
1.1 millert 9665: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 9666: #ifdef __cplusplus
9667: extern "C"
9668: #endif
1.1 millert 9669: /* We use char because int might match the return type of a gcc2
1.9 millert 9670: builtin and then its argument prototype would still apply. */
9671: char inet_addr ();
9672: int
9673: main ()
9674: {
9675: inet_addr ();
9676: ;
9677: return 0;
9678: }
9679: _ACEOF
9680: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 9681: if { (eval echo "$as_me:9681: \"$ac_link\"") >&5
1.9 millert 9682: (eval $ac_link) 2>&5
9683: ac_status=$?
1.11 ! millert 9684: echo "$as_me:9684: \$? = $ac_status" >&5
1.9 millert 9685: (exit $ac_status); } &&
9686: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 9687: { (eval echo "$as_me:9687: \"$ac_try\"") >&5
1.9 millert 9688: (eval $ac_try) 2>&5
9689: ac_status=$?
1.11 ! millert 9690: echo "$as_me:9690: \$? = $ac_status" >&5
1.9 millert 9691: (exit $ac_status); }; }; then
9692: ac_cv_lib_socket_inet_addr_lnsl=yes
9693: else
9694: echo "$as_me: failed program was:" >&5
9695: cat conftest.$ac_ext >&5
9696: ac_cv_lib_socket_inet_addr_lnsl=no
9697: fi
9698: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9699: LIBS=$ac_check_lib_save_LIBS
9700: fi
1.11 ! millert 9701: echo "$as_me:9701: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
1.9 millert 9702: echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6
9703: if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
1.1 millert 9704: NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
9705: fi
9706:
9707: fi
9708:
9709: fi
9710:
9711: fi
9712:
1.6 millert 9713: fi
9714:
1.11 ! millert 9715: echo "$as_me:9715: checking for syslog" >&5
1.9 millert 9716: echo $ECHO_N "checking for syslog... $ECHO_C" >&6
9717: if test "${ac_cv_func_syslog+set}" = set; then
9718: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9719: else
1.9 millert 9720: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 9721: #line 9721 "configure"
1.1 millert 9722: #include "confdefs.h"
9723: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 9724: which can conflict with char syslog (); below. */
1.1 millert 9725: #include <assert.h>
9726: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 9727: #ifdef __cplusplus
9728: extern "C"
9729: #endif
1.1 millert 9730: /* We use char because int might match the return type of a gcc2
1.9 millert 9731: builtin and then its argument prototype would still apply. */
9732: char syslog ();
9733: char (*f) ();
1.1 millert 9734:
1.9 millert 9735: int
9736: main ()
9737: {
1.1 millert 9738: /* The GNU C library defines this for functions which it implements
9739: to always fail with ENOSYS. Some functions are actually named
9740: something starting with __ and the normal name is an alias. */
9741: #if defined (__stub_syslog) || defined (__stub___syslog)
9742: choke me
9743: #else
1.9 millert 9744: f = syslog;
1.1 millert 9745: #endif
9746:
1.9 millert 9747: ;
9748: return 0;
9749: }
9750: _ACEOF
9751: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 9752: if { (eval echo "$as_me:9752: \"$ac_link\"") >&5
1.9 millert 9753: (eval $ac_link) 2>&5
9754: ac_status=$?
1.11 ! millert 9755: echo "$as_me:9755: \$? = $ac_status" >&5
1.9 millert 9756: (exit $ac_status); } &&
9757: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 9758: { (eval echo "$as_me:9758: \"$ac_try\"") >&5
1.9 millert 9759: (eval $ac_try) 2>&5
9760: ac_status=$?
1.11 ! millert 9761: echo "$as_me:9761: \$? = $ac_status" >&5
1.9 millert 9762: (exit $ac_status); }; }; then
9763: ac_cv_func_syslog=yes
9764: else
9765: echo "$as_me: failed program was:" >&5
9766: cat conftest.$ac_ext >&5
9767: ac_cv_func_syslog=no
9768: fi
9769: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9770: fi
1.11 ! millert 9771: echo "$as_me:9771: result: $ac_cv_func_syslog" >&5
1.9 millert 9772: echo "${ECHO_T}$ac_cv_func_syslog" >&6
9773: if test $ac_cv_func_syslog = yes; then
1.1 millert 9774: :
9775: else
1.11 ! millert 9776: echo "$as_me:9776: checking for syslog in -lsocket" >&5
1.9 millert 9777: echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6
9778: if test "${ac_cv_lib_socket_syslog+set}" = set; then
9779: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9780: else
1.9 millert 9781: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9782: LIBS="-lsocket $LIBS"
1.9 millert 9783: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 9784: #line 9784 "configure"
1.1 millert 9785: #include "confdefs.h"
1.9 millert 9786:
1.1 millert 9787: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 9788: #ifdef __cplusplus
9789: extern "C"
9790: #endif
1.1 millert 9791: /* We use char because int might match the return type of a gcc2
1.9 millert 9792: builtin and then its argument prototype would still apply. */
9793: char syslog ();
9794: int
9795: main ()
9796: {
9797: syslog ();
9798: ;
9799: return 0;
9800: }
9801: _ACEOF
9802: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 9803: if { (eval echo "$as_me:9803: \"$ac_link\"") >&5
1.9 millert 9804: (eval $ac_link) 2>&5
9805: ac_status=$?
1.11 ! millert 9806: echo "$as_me:9806: \$? = $ac_status" >&5
1.9 millert 9807: (exit $ac_status); } &&
9808: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 9809: { (eval echo "$as_me:9809: \"$ac_try\"") >&5
1.9 millert 9810: (eval $ac_try) 2>&5
9811: ac_status=$?
1.11 ! millert 9812: echo "$as_me:9812: \$? = $ac_status" >&5
1.9 millert 9813: (exit $ac_status); }; }; then
9814: ac_cv_lib_socket_syslog=yes
9815: else
9816: echo "$as_me: failed program was:" >&5
9817: cat conftest.$ac_ext >&5
9818: ac_cv_lib_socket_syslog=no
9819: fi
9820: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9821: LIBS=$ac_check_lib_save_LIBS
9822: fi
1.11 ! millert 9823: echo "$as_me:9823: result: $ac_cv_lib_socket_syslog" >&5
1.9 millert 9824: echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6
9825: if test $ac_cv_lib_socket_syslog = yes; then
1.1 millert 9826: NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
9827: else
1.11 ! millert 9828: echo "$as_me:9828: checking for syslog in -lnsl" >&5
1.9 millert 9829: echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6
9830: if test "${ac_cv_lib_nsl_syslog+set}" = set; then
9831: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9832: else
1.9 millert 9833: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9834: LIBS="-lnsl $LIBS"
1.9 millert 9835: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 9836: #line 9836 "configure"
1.1 millert 9837: #include "confdefs.h"
9838:
1.9 millert 9839: /* Override any gcc2 internal prototype to avoid an error. */
9840: #ifdef __cplusplus
9841: extern "C"
9842: #endif
9843: /* We use char because int might match the return type of a gcc2
9844: builtin and then its argument prototype would still apply. */
9845: char syslog ();
9846: int
9847: main ()
9848: {
9849: syslog ();
9850: ;
9851: return 0;
9852: }
9853: _ACEOF
9854: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 9855: if { (eval echo "$as_me:9855: \"$ac_link\"") >&5
1.9 millert 9856: (eval $ac_link) 2>&5
9857: ac_status=$?
1.11 ! millert 9858: echo "$as_me:9858: \$? = $ac_status" >&5
1.9 millert 9859: (exit $ac_status); } &&
9860: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 9861: { (eval echo "$as_me:9861: \"$ac_try\"") >&5
1.9 millert 9862: (eval $ac_try) 2>&5
9863: ac_status=$?
1.11 ! millert 9864: echo "$as_me:9864: \$? = $ac_status" >&5
1.9 millert 9865: (exit $ac_status); }; }; then
9866: ac_cv_lib_nsl_syslog=yes
9867: else
9868: echo "$as_me: failed program was:" >&5
9869: cat conftest.$ac_ext >&5
9870: ac_cv_lib_nsl_syslog=no
9871: fi
9872: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9873: LIBS=$ac_check_lib_save_LIBS
9874: fi
1.11 ! millert 9875: echo "$as_me:9875: result: $ac_cv_lib_nsl_syslog" >&5
1.9 millert 9876: echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6
9877: if test $ac_cv_lib_nsl_syslog = yes; then
1.1 millert 9878: NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
9879: else
1.11 ! millert 9880: echo "$as_me:9880: checking for syslog in -linet" >&5
1.9 millert 9881: echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6
9882: if test "${ac_cv_lib_inet_syslog+set}" = set; then
9883: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9884: else
1.9 millert 9885: ac_check_lib_save_LIBS=$LIBS
1.1 millert 9886: LIBS="-linet $LIBS"
1.9 millert 9887: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 9888: #line 9888 "configure"
1.1 millert 9889: #include "confdefs.h"
1.9 millert 9890:
1.1 millert 9891: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 9892: #ifdef __cplusplus
9893: extern "C"
9894: #endif
1.1 millert 9895: /* We use char because int might match the return type of a gcc2
1.9 millert 9896: builtin and then its argument prototype would still apply. */
9897: char syslog ();
9898: int
9899: main ()
9900: {
9901: syslog ();
9902: ;
9903: return 0;
9904: }
9905: _ACEOF
9906: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 9907: if { (eval echo "$as_me:9907: \"$ac_link\"") >&5
1.9 millert 9908: (eval $ac_link) 2>&5
9909: ac_status=$?
1.11 ! millert 9910: echo "$as_me:9910: \$? = $ac_status" >&5
1.9 millert 9911: (exit $ac_status); } &&
9912: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 9913: { (eval echo "$as_me:9913: \"$ac_try\"") >&5
1.9 millert 9914: (eval $ac_try) 2>&5
9915: ac_status=$?
1.11 ! millert 9916: echo "$as_me:9916: \$? = $ac_status" >&5
1.9 millert 9917: (exit $ac_status); }; }; then
9918: ac_cv_lib_inet_syslog=yes
9919: else
9920: echo "$as_me: failed program was:" >&5
9921: cat conftest.$ac_ext >&5
9922: ac_cv_lib_inet_syslog=no
9923: fi
9924: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9925: LIBS=$ac_check_lib_save_LIBS
9926: fi
1.11 ! millert 9927: echo "$as_me:9927: result: $ac_cv_lib_inet_syslog" >&5
1.9 millert 9928: echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6
9929: if test $ac_cv_lib_inet_syslog = yes; then
1.1 millert 9930: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
9931: fi
9932:
9933: fi
9934:
9935: fi
9936:
9937: fi
9938:
9939: if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
9940: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9941: # for constant arguments. Useless!
1.11 ! millert 9942: echo "$as_me:9942: checking for working alloca.h" >&5
1.9 millert 9943: echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9944: if test "${ac_cv_working_alloca_h+set}" = set; then
9945: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9946: else
1.9 millert 9947: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 9948: #line 9948 "configure"
1.1 millert 9949: #include "confdefs.h"
9950: #include <alloca.h>
1.9 millert 9951: int
9952: main ()
9953: {
9954: char *p = (char *) alloca (2 * sizeof (int));
9955: ;
9956: return 0;
9957: }
9958: _ACEOF
9959: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 9960: if { (eval echo "$as_me:9960: \"$ac_link\"") >&5
1.9 millert 9961: (eval $ac_link) 2>&5
9962: ac_status=$?
1.11 ! millert 9963: echo "$as_me:9963: \$? = $ac_status" >&5
1.9 millert 9964: (exit $ac_status); } &&
9965: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 9966: { (eval echo "$as_me:9966: \"$ac_try\"") >&5
1.9 millert 9967: (eval $ac_try) 2>&5
9968: ac_status=$?
1.11 ! millert 9969: echo "$as_me:9969: \$? = $ac_status" >&5
1.9 millert 9970: (exit $ac_status); }; }; then
9971: ac_cv_working_alloca_h=yes
9972: else
9973: echo "$as_me: failed program was:" >&5
9974: cat conftest.$ac_ext >&5
9975: ac_cv_working_alloca_h=no
9976: fi
9977: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9978: fi
1.11 ! millert 9979: echo "$as_me:9979: result: $ac_cv_working_alloca_h" >&5
1.9 millert 9980: echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9981: if test $ac_cv_working_alloca_h = yes; then
1.1 millert 9982:
1.9 millert 9983: cat >>confdefs.h <<\EOF
1.1 millert 9984: #define HAVE_ALLOCA_H 1
9985: EOF
9986:
9987: fi
9988:
1.11 ! millert 9989: echo "$as_me:9989: checking for alloca" >&5
1.9 millert 9990: echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9991: if test "${ac_cv_func_alloca_works+set}" = set; then
9992: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 9993: else
1.9 millert 9994: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 9995: #line 9995 "configure"
1.1 millert 9996: #include "confdefs.h"
9997: #ifdef __GNUC__
9998: # define alloca __builtin_alloca
9999: #else
1.9 millert 10000: # ifdef _MSC_VER
10001: # include <malloc.h>
10002: # define alloca _alloca
1.1 millert 10003: # else
1.9 millert 10004: # if HAVE_ALLOCA_H
10005: # include <alloca.h>
10006: # else
10007: # ifdef _AIX
1.1 millert 10008: #pragma alloca
1.9 millert 10009: # else
10010: # ifndef alloca /* predefined by HP cc +Olibcalls */
1.1 millert 10011: char *alloca ();
1.9 millert 10012: # endif
1.1 millert 10013: # endif
10014: # endif
10015: # endif
10016: #endif
10017:
1.9 millert 10018: int
10019: main ()
10020: {
10021: char *p = (char *) alloca (1);
10022: ;
10023: return 0;
10024: }
10025: _ACEOF
10026: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 10027: if { (eval echo "$as_me:10027: \"$ac_link\"") >&5
1.9 millert 10028: (eval $ac_link) 2>&5
10029: ac_status=$?
1.11 ! millert 10030: echo "$as_me:10030: \$? = $ac_status" >&5
1.9 millert 10031: (exit $ac_status); } &&
10032: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 10033: { (eval echo "$as_me:10033: \"$ac_try\"") >&5
1.9 millert 10034: (eval $ac_try) 2>&5
10035: ac_status=$?
1.11 ! millert 10036: echo "$as_me:10036: \$? = $ac_status" >&5
1.9 millert 10037: (exit $ac_status); }; }; then
1.1 millert 10038: ac_cv_func_alloca_works=yes
10039: else
1.9 millert 10040: echo "$as_me: failed program was:" >&5
10041: cat conftest.$ac_ext >&5
10042: ac_cv_func_alloca_works=no
1.1 millert 10043: fi
1.9 millert 10044: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 millert 10045: fi
1.11 ! millert 10046: echo "$as_me:10046: result: $ac_cv_func_alloca_works" >&5
1.9 millert 10047: echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
1.1 millert 10048:
10049: if test $ac_cv_func_alloca_works = yes; then
1.9 millert 10050:
10051: cat >>confdefs.h <<\EOF
1.1 millert 10052: #define HAVE_ALLOCA 1
10053: EOF
10054:
1.9 millert 10055: else
10056: # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10057: # that cause trouble. Some versions do not even contain alloca or
10058: # contain a buggy version. If you still want to use their alloca,
10059: # use ar to extract alloca.o from them instead of compiling alloca.c.
10060:
10061: ALLOCA=alloca.$ac_objext
1.1 millert 10062:
1.9 millert 10063: cat >>confdefs.h <<\EOF
1.1 millert 10064: #define C_ALLOCA 1
10065: EOF
10066:
1.11 ! millert 10067: echo "$as_me:10067: checking whether \`alloca.c' needs Cray hooks" >&5
1.9 millert 10068: echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10069: if test "${ac_cv_os_cray+set}" = set; then
10070: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10071: else
1.9 millert 10072: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 10073: #line 10073 "configure"
1.1 millert 10074: #include "confdefs.h"
10075: #if defined(CRAY) && ! defined(CRAY2)
10076: webecray
10077: #else
10078: wenotbecray
10079: #endif
10080:
1.9 millert 10081: _ACEOF
1.1 millert 10082: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10083: egrep "webecray" >/dev/null 2>&1; then
10084: ac_cv_os_cray=yes
10085: else
10086: ac_cv_os_cray=no
10087: fi
10088: rm -f conftest*
10089:
10090: fi
1.11 ! millert 10091: echo "$as_me:10091: result: $ac_cv_os_cray" >&5
1.9 millert 10092: echo "${ECHO_T}$ac_cv_os_cray" >&6
1.1 millert 10093: if test $ac_cv_os_cray = yes; then
1.9 millert 10094: for ac_func in _getb67 GETB67 getb67; do
10095: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.11 ! millert 10096: echo "$as_me:10096: checking for $ac_func" >&5
1.9 millert 10097: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10098: if eval "test \"\${$as_ac_var+set}\" = set"; then
10099: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10100: else
1.9 millert 10101: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 10102: #line 10102 "configure"
1.1 millert 10103: #include "confdefs.h"
10104: /* System header to define __stub macros and hopefully few prototypes,
1.9 millert 10105: which can conflict with char $ac_func (); below. */
1.1 millert 10106: #include <assert.h>
10107: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 10108: #ifdef __cplusplus
10109: extern "C"
10110: #endif
1.1 millert 10111: /* We use char because int might match the return type of a gcc2
1.9 millert 10112: builtin and then its argument prototype would still apply. */
10113: char $ac_func ();
10114: char (*f) ();
1.1 millert 10115:
1.9 millert 10116: int
10117: main ()
10118: {
1.1 millert 10119: /* The GNU C library defines this for functions which it implements
10120: to always fail with ENOSYS. Some functions are actually named
10121: something starting with __ and the normal name is an alias. */
10122: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10123: choke me
10124: #else
1.9 millert 10125: f = $ac_func;
1.1 millert 10126: #endif
10127:
1.9 millert 10128: ;
10129: return 0;
10130: }
10131: _ACEOF
10132: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 10133: if { (eval echo "$as_me:10133: \"$ac_link\"") >&5
1.9 millert 10134: (eval $ac_link) 2>&5
10135: ac_status=$?
1.11 ! millert 10136: echo "$as_me:10136: \$? = $ac_status" >&5
1.9 millert 10137: (exit $ac_status); } &&
10138: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 10139: { (eval echo "$as_me:10139: \"$ac_try\"") >&5
1.9 millert 10140: (eval $ac_try) 2>&5
10141: ac_status=$?
1.11 ! millert 10142: echo "$as_me:10142: \$? = $ac_status" >&5
1.9 millert 10143: (exit $ac_status); }; }; then
10144: eval "$as_ac_var=yes"
10145: else
10146: echo "$as_me: failed program was:" >&5
10147: cat conftest.$ac_ext >&5
10148: eval "$as_ac_var=no"
10149: fi
10150: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10151: fi
1.11 ! millert 10152: echo "$as_me:10152: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 10153: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10154: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 millert 10155:
1.9 millert 10156: cat >>confdefs.h <<EOF
1.1 millert 10157: #define CRAY_STACKSEG_END $ac_func
10158: EOF
10159:
1.9 millert 10160: break
1.1 millert 10161: fi
10162:
1.9 millert 10163: done
1.1 millert 10164: fi
10165:
1.11 ! millert 10166: echo "$as_me:10166: checking stack direction for C alloca" >&5
1.9 millert 10167: echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10168: if test "${ac_cv_c_stack_direction+set}" = set; then
10169: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10170: else
10171: if test "$cross_compiling" = yes; then
10172: ac_cv_c_stack_direction=0
10173: else
1.9 millert 10174: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 10175: #line 10175 "configure"
1.1 millert 10176: #include "confdefs.h"
1.9 millert 10177: int
1.1 millert 10178: find_stack_direction ()
10179: {
10180: static char *addr = 0;
10181: auto char dummy;
10182: if (addr == 0)
10183: {
10184: addr = &dummy;
10185: return find_stack_direction ();
10186: }
10187: else
10188: return (&dummy > addr) ? 1 : -1;
10189: }
1.9 millert 10190:
10191: int
1.1 millert 10192: main ()
10193: {
1.9 millert 10194: exit (find_stack_direction () < 0);
1.1 millert 10195: }
1.9 millert 10196: _ACEOF
10197: rm -f conftest$ac_exeext
1.11 ! millert 10198: if { (eval echo "$as_me:10198: \"$ac_link\"") >&5
1.9 millert 10199: (eval $ac_link) 2>&5
10200: ac_status=$?
1.11 ! millert 10201: echo "$as_me:10201: \$? = $ac_status" >&5
1.9 millert 10202: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.11 ! millert 10203: { (eval echo "$as_me:10203: \"$ac_try\"") >&5
1.9 millert 10204: (eval $ac_try) 2>&5
10205: ac_status=$?
1.11 ! millert 10206: echo "$as_me:10206: \$? = $ac_status" >&5
1.9 millert 10207: (exit $ac_status); }; }; then
1.1 millert 10208: ac_cv_c_stack_direction=1
10209: else
1.9 millert 10210: echo "$as_me: program exited with status $ac_status" >&5
10211: echo "$as_me: failed program was:" >&5
10212: cat conftest.$ac_ext >&5
10213: ac_cv_c_stack_direction=-1
1.1 millert 10214: fi
1.9 millert 10215: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 10216: fi
10217: fi
1.11 ! millert 10218: echo "$as_me:10218: result: $ac_cv_c_stack_direction" >&5
1.9 millert 10219: echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
1.1 millert 10220:
1.9 millert 10221: cat >>confdefs.h <<EOF
1.1 millert 10222: #define STACK_DIRECTION $ac_cv_c_stack_direction
10223: EOF
10224:
10225: fi
10226:
10227: fi
10228:
10229: if test "$with_kerb5" = "yes"; then
1.9 millert 10230:
10231: cat >>confdefs.h <<\EOF
1.1 millert 10232: #define HAVE_KERB5 1
10233: EOF
10234:
10235: if test -f "/usr/local/include/krb5.h"; then
10236: CPPFLAGS="$CPPFLAGS -I/usr/local/include"
10237: elif test -f "/usr/local/kerberos/include/krb5.h"; then
10238: CPPFLAGS="$CPPFLAGS -I/usr/local/kerberos/include"
1.9 millert 10239: elif test -f "/usr/krb5/include/krb5.h"; then
10240: CPPFLAGS="$CPPFLAGS -I/usr/krb5/include"
1.1 millert 10241: elif test -f "/usr/local/krb5/include/krb5.h"; then
10242: CPPFLAGS="$CPPFLAGS -I/usr/local/krb5/include"
10243: else
10244: echo 'Unable to locate kerberos 5 include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS'
10245: fi
10246:
10247: if test -f "/usr/local/lib/libkrb5.a"; then
10248: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
10249: elif test -f "/usr/local/kerberos/lib/libkrb5.a"; then
10250: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/kerberos/lib"
1.9 millert 10251: elif test -f "/usr/krb5/lib/libkrb5.a"; then
10252: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/krb5/lib"
1.1 millert 10253: elif test -f "/usr/local/krb5/lib/libkrb5.a"; then
10254: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/krb5/lib"
10255: else
10256: echo 'Unable to locate kerberos 5 libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS'
10257: fi
10258:
10259: SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
10260: AUTH_OBJS="${AUTH_OBJS} kerb5.o"
10261: fi
10262:
1.5 millert 10263: if test "$with_pam" = "yes"; then
1.11 ! millert 10264: echo "$as_me:10264: checking for main in -ldl" >&5
1.9 millert 10265: echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
10266: if test "${ac_cv_lib_dl_main+set}" = set; then
10267: echo $ECHO_N "(cached) $ECHO_C" >&6
1.5 millert 10268: else
1.9 millert 10269: ac_check_lib_save_LIBS=$LIBS
1.5 millert 10270: LIBS="-ldl $LIBS"
1.9 millert 10271: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 10272: #line 10272 "configure"
1.5 millert 10273: #include "confdefs.h"
10274:
1.9 millert 10275: int
10276: main ()
10277: {
10278: main ();
10279: ;
10280: return 0;
10281: }
10282: _ACEOF
10283: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 10284: if { (eval echo "$as_me:10284: \"$ac_link\"") >&5
1.9 millert 10285: (eval $ac_link) 2>&5
10286: ac_status=$?
1.11 ! millert 10287: echo "$as_me:10287: \$? = $ac_status" >&5
1.9 millert 10288: (exit $ac_status); } &&
10289: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 10290: { (eval echo "$as_me:10290: \"$ac_try\"") >&5
1.9 millert 10291: (eval $ac_try) 2>&5
10292: ac_status=$?
1.11 ! millert 10293: echo "$as_me:10293: \$? = $ac_status" >&5
1.9 millert 10294: (exit $ac_status); }; }; then
10295: ac_cv_lib_dl_main=yes
10296: else
10297: echo "$as_me: failed program was:" >&5
10298: cat conftest.$ac_ext >&5
10299: ac_cv_lib_dl_main=no
10300: fi
10301: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10302: LIBS=$ac_check_lib_save_LIBS
10303: fi
1.11 ! millert 10304: echo "$as_me:10304: result: $ac_cv_lib_dl_main" >&5
1.9 millert 10305: echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
10306: if test $ac_cv_lib_dl_main = yes; then
1.5 millert 10307: SUDO_LIBS="${SUDO_LIBS} -ldl -lpam"
10308: else
10309: SUDO_LIBS="${SUDO_LIBS} -lpam"
10310: fi
1.9 millert 10311: ac_cv_lib_dl=ac_cv_lib_dl_main
1.5 millert 10312:
10313: fi
10314:
1.1 millert 10315: if test "$with_kerb4" = "yes"; then
1.9 millert 10316:
10317: cat >>confdefs.h <<\EOF
1.1 millert 10318: #define HAVE_KERB4 1
10319: EOF
10320:
10321: if test -f "/usr/include/kerberosIV/krb.h"; then
10322: CPPFLAGS="${CPPFLAGS} -I/usr/include/kerberosIV"
10323: elif test -f "/usr/local/include/kerberosIV/krb.h"; then
10324: CPPFLAGS="${CPPFLAGS} -I/usr/local/include/kerberosIV"
10325: elif test -f "/usr/kerberos/include/krb.h"; then
10326: CPPFLAGS="${CPPFLAGS} -I/usr/kerberos/include"
10327: elif test -f "/usr/local/kerberos/include/krb.h"; then
10328: CPPFLAGS="${CPPFLAGS} -I/usr/local/kerberos/include"
10329: else
10330: echo 'Unable to locate kerberos 4 include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS'
10331: fi
10332:
10333: if test -d "/usr/kerberos/lib"; then
10334: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/kerberos/lib"
10335: elif test -d "/usr/lib/kerberos"; then
10336: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/lib/kerberos"
10337: elif test -f "/usr/local/lib/libkrb.a"; then
10338: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
10339: elif test ! -f "/usr/lib/libkrb.a"; then
10340: echo 'Unable to locate kerberos 4 libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS'
10341: fi
10342:
1.11 ! millert 10343: echo "$as_me:10343: checking for main in -ldes" >&5
1.9 millert 10344: echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
10345: if test "${ac_cv_lib_des_main+set}" = set; then
10346: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 10347: else
1.9 millert 10348: ac_check_lib_save_LIBS=$LIBS
1.1 millert 10349: LIBS="-ldes $LIBS"
1.9 millert 10350: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 10351: #line 10351 "configure"
1.1 millert 10352: #include "confdefs.h"
10353:
1.9 millert 10354: int
10355: main ()
10356: {
10357: main ();
10358: ;
10359: return 0;
10360: }
10361: _ACEOF
10362: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 10363: if { (eval echo "$as_me:10363: \"$ac_link\"") >&5
1.9 millert 10364: (eval $ac_link) 2>&5
10365: ac_status=$?
1.11 ! millert 10366: echo "$as_me:10366: \$? = $ac_status" >&5
1.9 millert 10367: (exit $ac_status); } &&
10368: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 10369: { (eval echo "$as_me:10369: \"$ac_try\"") >&5
1.9 millert 10370: (eval $ac_try) 2>&5
10371: ac_status=$?
1.11 ! millert 10372: echo "$as_me:10372: \$? = $ac_status" >&5
1.9 millert 10373: (exit $ac_status); }; }; then
10374: ac_cv_lib_des_main=yes
10375: else
10376: echo "$as_me: failed program was:" >&5
10377: cat conftest.$ac_ext >&5
10378: ac_cv_lib_des_main=no
10379: fi
10380: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10381: LIBS=$ac_check_lib_save_LIBS
10382: fi
1.11 ! millert 10383: echo "$as_me:10383: result: $ac_cv_lib_des_main" >&5
1.9 millert 10384: echo "${ECHO_T}$ac_cv_lib_des_main" >&6
10385: if test $ac_cv_lib_des_main = yes; then
1.1 millert 10386: SUDO_LIBS="${SUDO_LIBS} -lkrb -ldes"
10387: else
10388: SUDO_LIBS="${SUDO_LIBS} -lkrb"
10389: fi
1.9 millert 10390: ac_cv_lib_des=ac_cv_lib_des_main
1.1 millert 10391:
10392: AUTH_OBJS="${AUTH_OBJS} kerb4.o"
10393: fi
10394:
10395: if test "$with_AFS" = "yes"; then
10396:
10397: # looks like the "standard" place for AFS libs is /usr/afsws/lib
10398: AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
10399: for i in $AFSLIBDIRS; do
10400: if test -d ${i}; then
10401: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${i}"
10402: FOUND_AFSLIBDIR=true
10403: fi
10404: done
10405: if test -z "$FOUND_AFSLIBDIR"; then
10406: echo 'Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options.'
10407: fi
10408:
10409: # Order is important here. Note that we build AFS_LIBS from right to left
10410: # since AFS_LIBS may be initialized with BSD compat libs that must go last
10411: AFS_LIBS="-laudit ${AFS_LIBS}"
10412: for i in $AFSLIBDIRS; do
10413: if test -f ${i}/util.a; then
10414: AFS_LIBS="${i}/util.a ${AFS_LIBS}"
10415: FOUND_UTIL_A=true
10416: break;
10417: fi
10418: done
10419: if test -z "$FOUND_UTIL_A"; then
10420: AFS_LIBS="-lutil ${AFS_LIBS}"
10421: fi
10422: AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
10423:
10424: # AFS includes may live in /usr/include on some machines...
10425: for i in /usr/afsws/include; do
10426: if test -d ${i}; then
10427: CPPFLAGS="${CPPFLAGS} -I${i}"
10428: FOUND_AFSINCDIR=true
10429: fi
10430: done
10431:
10432: if test -z "$FOUND_AFSLIBDIR"; then
10433: echo 'Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options.'
10434: fi
10435: fi
10436:
10437: if test "$with_DCE" = "yes"; then
10438: DCE_OBJS="${DCE_OBJS} dce_pwent.o"
10439: SUDO_LIBS="${SUDO_LIBS} -ldce"
10440: fi
10441:
10442: if test "$with_skey" = "yes"; then
10443: SUDO_LIBS="${SUDO_LIBS} -lskey"
10444: if test -f /usr/include/skey.h -a -f /usr/lib/libskey.a; then
10445: :
10446: elif test -f /usr/local/include/skey.h; then
10447: CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
10448: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
10449: elif test "$with_csops" = "yes" -a -f /tools/cs/skey/include/skey.h -a -f /tools/cs/skey/lib/libskey.a; then
10450: CPPFLAGS="${CPPFLAGS} -I/tools/cs/skey/include"
10451: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/tools/cs/skey/lib"
10452: else
10453: echo 'Unable to locate libskey.a and/or skey.h, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS and/or -I/path/to/skey.h to CPPFLAGS'
10454: fi
1.11 ! millert 10455: echo "$as_me:10455: checking for skeyaccess in -lskey" >&5
1.9 millert 10456: echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6
10457: if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
10458: echo $ECHO_N "(cached) $ECHO_C" >&6
10459: else
10460: ac_check_lib_save_LIBS=$LIBS
10461: LIBS="-lskey $LIBS"
10462: cat >conftest.$ac_ext <<_ACEOF
1.11 ! millert 10463: #line 10463 "configure"
1.9 millert 10464: #include "confdefs.h"
10465:
10466: /* Override any gcc2 internal prototype to avoid an error. */
10467: #ifdef __cplusplus
10468: extern "C"
10469: #endif
10470: /* We use char because int might match the return type of a gcc2
10471: builtin and then its argument prototype would still apply. */
10472: char skeyaccess ();
10473: int
10474: main ()
10475: {
10476: skeyaccess ();
10477: ;
10478: return 0;
10479: }
10480: _ACEOF
10481: rm -f conftest.$ac_objext conftest$ac_exeext
1.11 ! millert 10482: if { (eval echo "$as_me:10482: \"$ac_link\"") >&5
1.9 millert 10483: (eval $ac_link) 2>&5
10484: ac_status=$?
1.11 ! millert 10485: echo "$as_me:10485: \$? = $ac_status" >&5
1.9 millert 10486: (exit $ac_status); } &&
10487: { ac_try='test -s conftest$ac_exeext'
1.11 ! millert 10488: { (eval echo "$as_me:10488: \"$ac_try\"") >&5
1.9 millert 10489: (eval $ac_try) 2>&5
10490: ac_status=$?
1.11 ! millert 10491: echo "$as_me:10491: \$? = $ac_status" >&5
1.9 millert 10492: (exit $ac_status); }; }; then
10493: ac_cv_lib_skey_skeyaccess=yes
10494: else
10495: echo "$as_me: failed program was:" >&5
10496: cat conftest.$ac_ext >&5
10497: ac_cv_lib_skey_skeyaccess=no
10498: fi
10499: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10500: LIBS=$ac_check_lib_save_LIBS
10501: fi
1.11 ! millert 10502: echo "$as_me:10502: result: $ac_cv_lib_skey_skeyaccess" >&5
1.9 millert 10503: echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6
10504: if test $ac_cv_lib_skey_skeyaccess = yes; then
10505:
10506: cat >>confdefs.h <<\EOF
10507: #define HAVE_SKEYACCESS 1
10508: EOF
10509:
10510: fi
10511:
1.1 millert 10512: fi
10513:
10514: if test "$with_opie" = "yes"; then
10515: SUDO_LIBS="${SUDO_LIBS} -lopie"
10516: if test -f /usr/include/opie.h -a -f /usr/lib/libopie.a; then
10517: :
10518: elif test -f /usr/local/include/opie.h; then
10519: CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
10520: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
10521: else
10522: echo 'Unable to locate libopie.a and/or opie.h, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS and/or -I/path/to/opie.h to CPPFLAGS'
10523: fi
10524: fi
10525:
10526: if test -n "$with_SecurID" -a "$with_SecurID" != "no"; then
10527: if test "$with_SecurID" != "yes"; then
10528: SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
10529: CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
10530: elif test -f /usr/ace/examples/sdiclient.a; then
10531: SUDO_LIBS="${SUDO_LIBS} /usr/ace/examples/sdiclient.a"
10532: CPPFLAGS="${CPPFLAGS} -I/usr/ace/examples"
10533: else
10534: SUDO_LIBS="${SUDO_LIBS} /usr/ace/sdiclient.a"
10535: CPPFLAGS="${CPPFLAGS} -I/usr/ace"
10536: fi
10537: fi
10538:
10539: if test "$with_fwtk" = "yes"; then
10540: SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
10541: fi
10542:
10543: if test "$with_authenticate" = "yes"; then
10544: SUDO_LIBS="${SUDO_LIBS} -ls"
10545: fi
10546:
1.11 ! millert 10547: echo "$as_me:10547: checking for log file location" >&5
1.9 millert 10548: echo $ECHO_N "checking for log file location... $ECHO_C" >&6
1.1 millert 10549: if test -n "$with_logpath"; then
1.11 ! millert 10550: echo "$as_me:10550: result: $with_logpath" >&5
1.9 millert 10551: echo "${ECHO_T}$with_logpath" >&6
10552: cat >>confdefs.h <<EOF
1.1 millert 10553: #define _PATH_SUDO_LOGFILE "$with_logpath"
10554: EOF
10555:
10556: elif test -d "/var/log"; then
1.11 ! millert 10557: echo "$as_me:10557: result: /var/log/sudo.log" >&5
1.9 millert 10558: echo "${ECHO_T}/var/log/sudo.log" >&6
10559: cat >>confdefs.h <<\EOF
1.1 millert 10560: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
10561: EOF
10562:
10563: elif test -d "/var/adm"; then
1.11 ! millert 10564: echo "$as_me:10564: result: /var/adm/sudo.log" >&5
1.9 millert 10565: echo "${ECHO_T}/var/adm/sudo.log" >&6
10566: cat >>confdefs.h <<\EOF
1.1 millert 10567: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
10568: EOF
10569:
10570: elif test -d "/usr/adm"; then
1.11 ! millert 10571: echo "$as_me:10571: result: /usr/adm/sudo.log" >&5
1.9 millert 10572: echo "${ECHO_T}/usr/adm/sudo.log" >&6
10573: cat >>confdefs.h <<\EOF
1.1 millert 10574: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
10575: EOF
10576:
10577: else
1.11 ! millert 10578: echo "$as_me:10578: result: unknown" >&5
1.9 millert 10579: echo "${ECHO_T}unknown" >&6
1.1 millert 10580: fi
10581:
1.11 ! millert 10582: echo "$as_me:10582: checking for timestamp file location" >&5
1.9 millert 10583: echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6
1.1 millert 10584: if test -n "$with_timedir"; then
1.11 ! millert 10585: echo "$as_me:10585: result: $with_timedir" >&5
1.9 millert 10586: echo "${ECHO_T}$with_timedir" >&6
10587: cat >>confdefs.h <<EOF
1.1 millert 10588: #define _PATH_SUDO_TIMEDIR "$with_timedir"
10589: EOF
10590:
1.9 millert 10591: timedir="$with_timedir"
1.1 millert 10592: elif test -d "/var/run"; then
1.11 ! millert 10593: echo "$as_me:10593: result: /var/run/sudo" >&5
1.9 millert 10594: echo "${ECHO_T}/var/run/sudo" >&6
10595: cat >>confdefs.h <<\EOF
1.1 millert 10596: #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
10597: EOF
10598:
1.9 millert 10599: timedir="/var/run/sudo"
1.6 millert 10600: else
1.11 ! millert 10601: echo "$as_me:10601: result: /tmp/.odus" >&5
1.9 millert 10602: echo "${ECHO_T}/tmp/.odus" >&6
10603: cat >>confdefs.h <<\EOF
1.1 millert 10604: #define _PATH_SUDO_TIMEDIR "/tmp/.odus"
10605: EOF
10606:
1.9 millert 10607: timedir="/tmp/.odus"
1.1 millert 10608: fi
10609:
10610: if test "$with_passwd" = "no"; then
1.9 millert 10611: cat >>confdefs.h <<\EOF
10612: #define WITHOUT_PASSWD 1. Define to avoid using the passwd/shadow file for authentication.
1.1 millert 10613: EOF
10614:
10615: if test -z "$AUTH_OBJS"; then
1.11 ! millert 10616: { { echo "$as_me:10616: error: no authentication methods defined." >&5
1.9 millert 10617: echo "$as_me: error: no authentication methods defined." >&2;}
10618: { (exit 1); exit 1; }; }
1.1 millert 10619: fi
10620: else
10621: if test -n "$SECUREWARE"; then
10622: AUTH_OBJS="${AUTH_OBJS} passwd.o secureware.o"
10623: else
10624: AUTH_OBJS="${AUTH_OBJS} passwd.o"
10625: fi
10626: fi
10627:
10628: if test -n "$LIBS"; then
10629: L="$LIBS"
10630: LIBS=
10631: for l in ${L}; do
10632: dupe=0
10633: for sl in ${SUDO_LIBS} ${NET_LIBS}; do
10634: test $l = $sl && dupe=1
10635: done
10636: test $dupe = 0 && LIBS="${LIBS} $l"
10637: done
10638: fi
10639:
10640: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
10641:
1.9 millert 10642: ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
10643: cat >confcache <<\_ACEOF
1.1 millert 10644: # This file is a shell script that caches the results of configure
10645: # tests run on this system so they can be shared between configure
1.9 millert 10646: # scripts and configure runs, see configure's option --config-cache.
10647: # It is not useful on other systems. If it contains results you don't
10648: # want to keep, you may remove or edit it.
1.1 millert 10649: #
1.9 millert 10650: # config.status only pays attention to the cache file if you give it
10651: # the --recheck option to rerun configure.
1.1 millert 10652: #
1.9 millert 10653: # `ac_cv_env_foo' variables (set or unset) will be overriden when
10654: # loading this file, other *unset* `ac_cv_foo' will be assigned the
10655: # following values.
10656:
10657: _ACEOF
10658:
1.1 millert 10659: # The following way of writing the cache mishandles newlines in values,
10660: # but we know of no workaround that is simple, portable, and efficient.
10661: # So, don't put newlines in cache variables' values.
10662: # Ultrix sh set writes to stderr and can't be redirected directly,
10663: # and sets the high bit in the cache file unless we assign to the vars.
1.9 millert 10664: {
10665: (set) 2>&1 |
10666: case `(ac_space=' '; set | grep ac_space) 2>&1` in
10667: *ac_space=\ *)
10668: # `set' does not quote correctly, so add quotes (double-quote
10669: # substitution turns \\\\ into \\, and sed turns \\ into \).
10670: sed -n \
10671: "s/'/'\\\\''/g;
10672: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10673: ;;
10674: *)
10675: # `set' quotes correctly as required by POSIX, so do not add quotes.
10676: sed -n \
10677: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10678: ;;
10679: esac;
10680: } |
10681: sed '
10682: t clear
10683: : clear
10684: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10685: t end
10686: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10687: : end' >>confcache
10688: if cmp -s $cache_file confcache; then :; else
1.1 millert 10689: if test -w $cache_file; then
1.9 millert 10690: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10691: cat confcache >$cache_file
1.1 millert 10692: else
10693: echo "not updating unwritable cache $cache_file"
10694: fi
10695: fi
10696: rm -f confcache
10697:
10698: test "x$prefix" = xNONE && prefix=$ac_default_prefix
10699: # Let make expand exec_prefix.
10700: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10701:
1.9 millert 10702: # VPATH may cause trouble with some makes, so we remove $(srcdir),
10703: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10704: # trailing colons and then remove the whole line if VPATH becomes empty
10705: # (actually we leave an empty line to preserve line numbers).
1.1 millert 10706: if test "x$srcdir" = x.; then
1.9 millert 10707: ac_vpsub='/^[ ]*VPATH[ ]*=/{
10708: s/:*\$(srcdir):*/:/;
10709: s/:*\${srcdir}:*/:/;
10710: s/:*@srcdir@:*/:/;
10711: s/^\([^=]*=[ ]*\):*/\1/;
10712: s/:*$//;
10713: s/^[^=]*=[ ]*$//;
10714: }'
1.1 millert 10715: fi
10716:
10717: DEFS=-DHAVE_CONFIG_H
10718:
10719: : ${CONFIG_STATUS=./config.status}
1.9 millert 10720: ac_clean_files_save=$ac_clean_files
10721: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.11 ! millert 10722: { echo "$as_me:10722: creating $CONFIG_STATUS" >&5
1.9 millert 10723: echo "$as_me: creating $CONFIG_STATUS" >&6;}
10724: cat >$CONFIG_STATUS <<_ACEOF
10725: #! $SHELL
1.1 millert 10726: # Generated automatically by configure.
10727: # Run this file to recreate the current configuration.
10728: # Compiler output produced by configure, useful for debugging
1.9 millert 10729: # configure, is in config.log if it exists.
10730:
10731: debug=false
10732: SHELL=\${CONFIG_SHELL-$SHELL}
10733: ac_cs_invocation="\$0 \$@"
1.1 millert 10734:
1.9 millert 10735: _ACEOF
10736:
10737: cat >>$CONFIG_STATUS <<\_ACEOF
10738: # Be Bourne compatible
10739: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10740: emulate sh
10741: NULLCMD=:
10742: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10743: set -o posix
10744: fi
10745:
10746: # Name of the executable.
10747: as_me=`echo "$0" |sed 's,.*[\\/],,'`
10748:
10749: if expr a : '\(a\)' >/dev/null 2>&1; then
10750: as_expr=expr
10751: else
10752: as_expr=false
10753: fi
10754:
10755: rm -f conf$$ conf$$.exe conf$$.file
10756: echo >conf$$.file
10757: if ln -s conf$$.file conf$$ 2>/dev/null; then
10758: # We could just check for DJGPP; but this test a) works b) is more generic
10759: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10760: if test -f conf$$.exe; then
10761: # Don't use ln at all; we don't have any links
10762: as_ln_s='cp -p'
10763: else
10764: as_ln_s='ln -s'
10765: fi
10766: elif ln conf$$.file conf$$ 2>/dev/null; then
10767: as_ln_s=ln
10768: else
10769: as_ln_s='cp -p'
10770: fi
10771: rm -f conf$$ conf$$.exe conf$$.file
10772:
10773: as_executable_p="test -f"
10774:
10775: # Support unset when possible.
10776: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10777: as_unset=unset
10778: else
10779: as_unset=false
10780: fi
10781:
10782: # NLS nuisances.
10783: $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
10784: $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
10785: $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
10786: $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
10787: $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
10788: $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
10789: $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
10790: $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
10791:
10792: # IFS
10793: # We need space, tab and new line, in precisely that order.
10794: as_nl='
10795: '
10796: IFS=" $as_nl"
10797:
10798: # CDPATH.
10799: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
10800:
10801: exec 6>&1
10802:
10803: _ACEOF
10804:
10805: # Files that config.status was made for.
10806: if test -n "$ac_config_files"; then
10807: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10808: fi
10809:
10810: if test -n "$ac_config_headers"; then
10811: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10812: fi
10813:
10814: if test -n "$ac_config_links"; then
10815: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10816: fi
10817:
10818: if test -n "$ac_config_commands"; then
10819: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10820: fi
10821:
10822: cat >>$CONFIG_STATUS <<\EOF
10823:
10824: ac_cs_usage="\
10825: \`$as_me' instantiates files from templates according to the
10826: current configuration.
10827:
10828: Usage: $0 [OPTIONS] [FILE]...
10829:
10830: -h, --help print this help, then exit
10831: -V, --version print version number, then exit
10832: -d, --debug don't remove temporary files
10833: --recheck update $as_me by reconfiguring in the same conditions
10834: --file=FILE[:TEMPLATE]
10835: instantiate the configuration file FILE
10836: --header=FILE[:TEMPLATE]
10837: instantiate the configuration header FILE
10838:
10839: Configuration files:
10840: $config_files
10841:
10842: Configuration headers:
10843: $config_headers
10844:
10845: Report bugs to <bug-autoconf@gnu.org>."
10846: EOF
10847:
10848: cat >>$CONFIG_STATUS <<EOF
10849: ac_cs_version="\\
10850: sudo config.status 1.6.4
10851: configured by $0, generated by GNU Autoconf 2.52,
10852: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10853:
10854: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10855: Free Software Foundation, Inc.
10856: This config.status script is free software; the Free Software Foundation
10857: gives unlimited permission to copy, distribute and modify it."
10858: srcdir=$srcdir
10859: EOF
10860:
10861: cat >>$CONFIG_STATUS <<\EOF
10862: # If no file are specified by the user, then we need to provide default
10863: # value. By we need to know if files were specified by the user.
10864: ac_need_defaults=:
10865: while test $# != 0
1.1 millert 10866: do
1.9 millert 10867: case $1 in
10868: --*=*)
10869: ac_option=`expr "x$1" : 'x\([^=]*\)='`
10870: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10871: shift
10872: set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
10873: shift
10874: ;;
10875: -*);;
10876: *) # This is not an option, so the user has probably given explicit
10877: # arguments.
10878: ac_need_defaults=false;;
10879: esac
10880:
10881: case $1 in
10882: # Handling of the options.
10883: EOF
10884: cat >>$CONFIG_STATUS <<EOF
1.1 millert 10885: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.9 millert 10886: echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
10887: exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
10888: EOF
10889: cat >>$CONFIG_STATUS <<\EOF
10890: --version | --vers* | -V )
10891: echo "$ac_cs_version"; exit 0 ;;
10892: --he | --h)
10893: # Conflict between --help and --header
1.11 ! millert 10894: { { echo "$as_me:10894: error: ambiguous option: $1
1.9 millert 10895: Try \`$0 --help' for more information." >&5
10896: echo "$as_me: error: ambiguous option: $1
10897: Try \`$0 --help' for more information." >&2;}
10898: { (exit 1); exit 1; }; };;
10899: --help | --hel | -h )
10900: echo "$ac_cs_usage"; exit 0 ;;
10901: --debug | --d* | -d )
10902: debug=: ;;
10903: --file | --fil | --fi | --f )
10904: shift
10905: CONFIG_FILES="$CONFIG_FILES $1"
10906: ac_need_defaults=false;;
10907: --header | --heade | --head | --hea )
10908: shift
10909: CONFIG_HEADERS="$CONFIG_HEADERS $1"
10910: ac_need_defaults=false;;
10911:
10912: # This is an error.
1.11 ! millert 10913: -*) { { echo "$as_me:10913: error: unrecognized option: $1
1.9 millert 10914: Try \`$0 --help' for more information." >&5
10915: echo "$as_me: error: unrecognized option: $1
10916: Try \`$0 --help' for more information." >&2;}
10917: { (exit 1); exit 1; }; } ;;
10918:
10919: *) ac_config_targets="$ac_config_targets $1" ;;
10920:
10921: esac
10922: shift
10923: done
10924:
10925: exec 5>>config.log
10926: cat >&5 << _ACEOF
10927:
10928: ## ----------------------- ##
10929: ## Running config.status. ##
10930: ## ----------------------- ##
10931:
10932: This file was extended by $as_me (sudo 1.6.4) 2.52, executed with
10933: CONFIG_FILES = $CONFIG_FILES
10934: CONFIG_HEADERS = $CONFIG_HEADERS
10935: CONFIG_LINKS = $CONFIG_LINKS
10936: CONFIG_COMMANDS = $CONFIG_COMMANDS
10937: > $ac_cs_invocation
10938: on `(hostname || uname -n) 2>/dev/null | sed 1q`
10939:
10940: _ACEOF
10941: EOF
10942:
10943: cat >>$CONFIG_STATUS <<\EOF
10944: for ac_config_target in $ac_config_targets
10945: do
10946: case "$ac_config_target" in
10947: # Handling of arguments.
10948: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10949: "sudo.man" ) CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
10950: "visudo.man" ) CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
10951: "sudoers.man" ) CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
10952: "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10953: "pathnames.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
1.11 ! millert 10954: *) { { echo "$as_me:10954: error: invalid argument: $ac_config_target" >&5
1.9 millert 10955: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10956: { (exit 1); exit 1; }; };;
1.1 millert 10957: esac
10958: done
10959:
1.9 millert 10960: # If the user did not use the arguments to specify the items to instantiate,
10961: # then the envvar interface is used. Set only those that are not.
10962: # We use the long form for the default assignment because of an extremely
10963: # bizarre bug on SunOS 4.1.3.
10964: if $ac_need_defaults; then
10965: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10966: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10967: fi
10968:
10969: # Create a temporary directory, and hook for its removal unless debugging.
10970: $debug ||
10971: {
10972: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10973: trap '{ (exit 1); exit 1; }' 1 2 13 15
10974: }
10975:
10976: # Create a (secure) tmp directory for tmp files.
10977: : ${TMPDIR=/tmp}
10978: {
10979: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
10980: test -n "$tmp" && test -d "$tmp"
10981: } ||
10982: {
10983: tmp=$TMPDIR/cs$$-$RANDOM
10984: (umask 077 && mkdir $tmp)
10985: } ||
10986: {
10987: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
10988: { (exit 1); exit 1; }
10989: }
1.1 millert 10990:
10991: EOF
10992:
1.9 millert 10993: cat >>$CONFIG_STATUS <<EOF
10994:
10995: #
10996: # CONFIG_FILES section.
10997: #
1.1 millert 10998:
1.9 millert 10999: # No need to generate the scripts if there are no CONFIG_FILES.
11000: # This happens for instance when ./config.status config.h
11001: if test -n "\$CONFIG_FILES"; then
11002: # Protect against being on the right side of a sed subst in config.status.
11003: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11004: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11005: s,@SHELL@,$SHELL,;t t
11006: s,@exec_prefix@,$exec_prefix,;t t
11007: s,@prefix@,$prefix,;t t
11008: s,@program_transform_name@,$program_transform_name,;t t
11009: s,@bindir@,$bindir,;t t
11010: s,@sbindir@,$sbindir,;t t
11011: s,@libexecdir@,$libexecdir,;t t
11012: s,@datadir@,$datadir,;t t
11013: s,@sysconfdir@,$sysconfdir,;t t
11014: s,@sharedstatedir@,$sharedstatedir,;t t
11015: s,@localstatedir@,$localstatedir,;t t
11016: s,@libdir@,$libdir,;t t
11017: s,@includedir@,$includedir,;t t
11018: s,@oldincludedir@,$oldincludedir,;t t
11019: s,@infodir@,$infodir,;t t
11020: s,@mandir@,$mandir,;t t
11021: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11022: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11023: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11024: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11025: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11026: s,@build_alias@,$build_alias,;t t
11027: s,@host_alias@,$host_alias,;t t
11028: s,@target_alias@,$target_alias,;t t
11029: s,@ECHO_C@,$ECHO_C,;t t
11030: s,@ECHO_N@,$ECHO_N,;t t
11031: s,@ECHO_T@,$ECHO_T,;t t
11032: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11033: s,@DEFS@,$DEFS,;t t
11034: s,@LIBS@,$LIBS,;t t
11035: s,@CFLAGS@,$CFLAGS,;t t
11036: s,@PROGS@,$PROGS,;t t
11037: s,@CPPFLAGS@,$CPPFLAGS,;t t
11038: s,@LDFLAGS@,$LDFLAGS,;t t
11039: s,@SUDO_LDFLAGS@,$SUDO_LDFLAGS,;t t
11040: s,@SUDO_LIBS@,$SUDO_LIBS,;t t
11041: s,@NET_LIBS@,$NET_LIBS,;t t
11042: s,@AFS_LIBS@,$AFS_LIBS,;t t
11043: s,@OSDEFS@,$OSDEFS,;t t
11044: s,@AUTH_OBJS@,$AUTH_OBJS,;t t
11045: s,@LIBOBJS@,$LIBOBJS,;t t
11046: s,@MANTYPE@,$MANTYPE,;t t
11047: s,@MAN_POSTINSTALL@,$MAN_POSTINSTALL,;t t
11048: s,@SUDOERS_MODE@,$SUDOERS_MODE,;t t
11049: s,@SUDOERS_UID@,$SUDOERS_UID,;t t
11050: s,@SUDOERS_GID@,$SUDOERS_GID,;t t
11051: s,@DEV@,$DEV,;t t
11052: s,@mansectsu@,$mansectsu,;t t
11053: s,@mansectform@,$mansectform,;t t
11054: s,@mansrcdir@,$mansrcdir,;t t
11055: s,@timedir@,$timedir,;t t
11056: s,@timeout@,$timeout,;t t
11057: s,@password_timeout@,$password_timeout,;t t
11058: s,@sudo_umask@,$sudo_umask,;t t
11059: s,@passprompt@,$passprompt,;t t
11060: s,@long_otp_prompt@,$long_otp_prompt,;t t
11061: s,@lecture@,$lecture,;t t
11062: s,@logfac@,$logfac,;t t
11063: s,@goodpri@,$goodpri,;t t
11064: s,@badpri@,$badpri,;t t
11065: s,@loglen@,$loglen,;t t
11066: s,@ignore_dot@,$ignore_dot,;t t
11067: s,@mail_no_user@,$mail_no_user,;t t
11068: s,@mail_no_host@,$mail_no_host,;t t
11069: s,@mail_no_perms@,$mail_no_perms,;t t
11070: s,@mailto@,$mailto,;t t
11071: s,@mailsub@,$mailsub,;t t
11072: s,@badpass_message@,$badpass_message,;t t
11073: s,@fqdn@,$fqdn,;t t
11074: s,@runas_default@,$runas_default,;t t
11075: s,@env_editor@,$env_editor,;t t
11076: s,@passwd_tries@,$passwd_tries,;t t
11077: s,@tty_tickets@,$tty_tickets,;t t
11078: s,@insults@,$insults,;t t
11079: s,@EGREPPROG@,$EGREPPROG,;t t
11080: s,@CC@,$CC,;t t
11081: s,@ac_ct_CC@,$ac_ct_CC,;t t
11082: s,@EXEEXT@,$EXEEXT,;t t
11083: s,@OBJEXT@,$OBJEXT,;t t
11084: s,@CPP@,$CPP,;t t
11085: s,@UNAMEPROG@,$UNAMEPROG,;t t
11086: s,@TRPROG@,$TRPROG,;t t
11087: s,@SEDPROG@,$SEDPROG,;t t
11088: s,@NROFFPROG@,$NROFFPROG,;t t
11089: s,@build@,$build,;t t
11090: s,@build_cpu@,$build_cpu,;t t
11091: s,@build_vendor@,$build_vendor,;t t
11092: s,@build_os@,$build_os,;t t
11093: s,@host@,$host,;t t
11094: s,@host_cpu@,$host_cpu,;t t
11095: s,@host_vendor@,$host_vendor,;t t
11096: s,@host_os@,$host_os,;t t
11097: s,@YACC@,$YACC,;t t
11098: s,@ALLOCA@,$ALLOCA,;t t
1.1 millert 11099: CEOF
1.9 millert 11100:
1.1 millert 11101: EOF
11102:
1.9 millert 11103: cat >>$CONFIG_STATUS <<\EOF
11104: # Split the substitutions into bite-sized pieces for seds with
11105: # small command number limits, like on Digital OSF/1 and HP-UX.
11106: ac_max_sed_lines=48
11107: ac_sed_frag=1 # Number of current file.
11108: ac_beg=1 # First line for current file.
11109: ac_end=$ac_max_sed_lines # Line after last line for current file.
11110: ac_more_lines=:
11111: ac_sed_cmds=
11112: while $ac_more_lines; do
11113: if test $ac_beg -gt 1; then
11114: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11115: else
11116: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11117: fi
11118: if test ! -s $tmp/subs.frag; then
11119: ac_more_lines=false
1.1 millert 11120: else
1.9 millert 11121: # The purpose of the label and of the branching condition is to
11122: # speed up the sed processing (if there are no `@' at all, there
11123: # is no need to browse any of the substitutions).
11124: # These are the two extra sed commands mentioned above.
11125: (echo ':t
11126: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11127: if test -z "$ac_sed_cmds"; then
11128: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11129: else
11130: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11131: fi
11132: ac_sed_frag=`expr $ac_sed_frag + 1`
11133: ac_beg=$ac_end
11134: ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1 millert 11135: fi
1.9 millert 11136: done
11137: if test -z "$ac_sed_cmds"; then
11138: ac_sed_cmds=cat
1.1 millert 11139: fi
1.9 millert 11140: fi # test -n "$CONFIG_FILES"
1.1 millert 11141:
11142: EOF
1.9 millert 11143: cat >>$CONFIG_STATUS <<\EOF
11144: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1.1 millert 11145: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.9 millert 11146: case $ac_file in
11147: - | *:- | *:-:* ) # input from stdin
11148: cat >$tmp/stdin
11149: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11150: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11151: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11152: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11153: * ) ac_file_in=$ac_file.in ;;
1.1 millert 11154: esac
11155:
1.9 millert 11156: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11157: ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11158: X"$ac_file" : 'X\(//\)[^/]' \| \
11159: X"$ac_file" : 'X\(//\)$' \| \
11160: X"$ac_file" : 'X\(/\)' \| \
11161: . : '\(.\)' 2>/dev/null ||
11162: echo X"$ac_file" |
11163: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11164: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11165: /^X\(\/\/\)$/{ s//\1/; q; }
11166: /^X\(\/\).*/{ s//\1/; q; }
11167: s/.*/./; q'`
11168: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11169: { case "$ac_dir" in
11170: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11171: *) as_incr_dir=.;;
11172: esac
11173: as_dummy="$ac_dir"
11174: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11175: case $as_mkdir_dir in
11176: # Skip DOS drivespec
11177: ?:) as_incr_dir=$as_mkdir_dir ;;
11178: *)
11179: as_incr_dir=$as_incr_dir/$as_mkdir_dir
11180: test -d "$as_incr_dir" || mkdir "$as_incr_dir"
11181: ;;
11182: esac
11183: done; }
1.1 millert 11184:
1.9 millert 11185: ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
1.1 millert 11186: # A "../" for each directory in $ac_dir_suffix.
1.9 millert 11187: ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
1.1 millert 11188: else
11189: ac_dir_suffix= ac_dots=
11190: fi
11191:
1.9 millert 11192: case $srcdir in
11193: .) ac_srcdir=.
11194: if test -z "$ac_dots"; then
11195: ac_top_srcdir=.
11196: else
11197: ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
11198: fi ;;
11199: [\\/]* | ?:[\\/]* )
11200: ac_srcdir=$srcdir$ac_dir_suffix;
11201: ac_top_srcdir=$srcdir ;;
1.1 millert 11202: *) # Relative path.
1.9 millert 11203: ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
11204: ac_top_srcdir=$ac_dots$srcdir ;;
1.1 millert 11205: esac
11206:
1.9 millert 11207: if test x"$ac_file" != x-; then
1.11 ! millert 11208: { echo "$as_me:11208: creating $ac_file" >&5
1.9 millert 11209: echo "$as_me: creating $ac_file" >&6;}
11210: rm -f "$ac_file"
11211: fi
11212: # Let's still pretend it is `configure' which instantiates (i.e., don't
11213: # use $as_me), people would be surprised to read:
11214: # /* config.h. Generated automatically by config.status. */
11215: configure_input="Generated automatically from `echo $ac_file_in |
11216: sed 's,.*/,,'` by configure."
11217:
11218: # First look for the input files in the build tree, otherwise in the
11219: # src tree.
11220: ac_file_inputs=`IFS=:
11221: for f in $ac_file_in; do
11222: case $f in
11223: -) echo $tmp/stdin ;;
11224: [\\/$]*)
11225: # Absolute (can't be DOS-style, as IFS=:)
1.11 ! millert 11226: test -f "$f" || { { echo "$as_me:11226: error: cannot find input file: $f" >&5
1.9 millert 11227: echo "$as_me: error: cannot find input file: $f" >&2;}
11228: { (exit 1); exit 1; }; }
11229: echo $f;;
11230: *) # Relative
11231: if test -f "$f"; then
11232: # Build tree
11233: echo $f
11234: elif test -f "$srcdir/$f"; then
11235: # Source tree
11236: echo $srcdir/$f
11237: else
11238: # /dev/null tree
1.11 ! millert 11239: { { echo "$as_me:11239: error: cannot find input file: $f" >&5
1.9 millert 11240: echo "$as_me: error: cannot find input file: $f" >&2;}
11241: { (exit 1); exit 1; }; }
11242: fi;;
11243: esac
11244: done` || { (exit 1); exit 1; }
11245: EOF
11246: cat >>$CONFIG_STATUS <<EOF
11247: sed "$ac_vpsub
11248: $extrasub
11249: EOF
11250: cat >>$CONFIG_STATUS <<\EOF
11251: :t
11252: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11253: s,@configure_input@,$configure_input,;t t
11254: s,@srcdir@,$ac_srcdir,;t t
11255: s,@top_srcdir@,$ac_top_srcdir,;t t
11256: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11257: rm -f $tmp/stdin
11258: if test x"$ac_file" != x-; then
11259: mv $tmp/out $ac_file
11260: else
11261: cat $tmp/out
11262: rm -f $tmp/out
11263: fi
1.1 millert 11264:
1.9 millert 11265: done
11266: EOF
11267: cat >>$CONFIG_STATUS <<\EOF
1.1 millert 11268:
1.9 millert 11269: #
11270: # CONFIG_HEADER section.
11271: #
1.1 millert 11272:
11273: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11274: # NAME is the cpp macro being defined and VALUE is the value it is being given.
11275: #
11276: # ac_d sets the value in "#define NAME VALUE" lines.
1.9 millert 11277: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11278: ac_dB='[ ].*$,\1#\2'
11279: ac_dC=' '
11280: ac_dD=',;t'
11281: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11282: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11283: ac_uB='$,\1#\2define\3'
1.1 millert 11284: ac_uC=' '
1.9 millert 11285: ac_uD=',;t'
1.1 millert 11286:
1.9 millert 11287: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 millert 11288: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.9 millert 11289: case $ac_file in
11290: - | *:- | *:-:* ) # input from stdin
11291: cat >$tmp/stdin
11292: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11293: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11294: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11295: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11296: * ) ac_file_in=$ac_file.in ;;
1.1 millert 11297: esac
11298:
1.11 ! millert 11299: test x"$ac_file" != x- && { echo "$as_me:11299: creating $ac_file" >&5
1.9 millert 11300: echo "$as_me: creating $ac_file" >&6;}
1.1 millert 11301:
1.9 millert 11302: # First look for the input files in the build tree, otherwise in the
11303: # src tree.
11304: ac_file_inputs=`IFS=:
11305: for f in $ac_file_in; do
11306: case $f in
11307: -) echo $tmp/stdin ;;
11308: [\\/$]*)
11309: # Absolute (can't be DOS-style, as IFS=:)
1.11 ! millert 11310: test -f "$f" || { { echo "$as_me:11310: error: cannot find input file: $f" >&5
1.9 millert 11311: echo "$as_me: error: cannot find input file: $f" >&2;}
11312: { (exit 1); exit 1; }; }
11313: echo $f;;
11314: *) # Relative
11315: if test -f "$f"; then
11316: # Build tree
11317: echo $f
11318: elif test -f "$srcdir/$f"; then
11319: # Source tree
11320: echo $srcdir/$f
11321: else
11322: # /dev/null tree
1.11 ! millert 11323: { { echo "$as_me:11323: error: cannot find input file: $f" >&5
1.9 millert 11324: echo "$as_me: error: cannot find input file: $f" >&2;}
11325: { (exit 1); exit 1; }; }
11326: fi;;
11327: esac
11328: done` || { (exit 1); exit 1; }
11329: # Remove the trailing spaces.
11330: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
1.1 millert 11331:
11332: EOF
11333:
1.9 millert 11334: # Transform confdefs.h into two sed scripts, `conftest.defines' and
11335: # `conftest.undefs', that substitutes the proper values into
11336: # config.h.in to produce config.h. The first handles `#define'
11337: # templates, and the second `#undef' templates.
11338: # And first: Protect against being on the right side of a sed subst in
11339: # config.status. Protect against being in an unquoted here document
11340: # in config.status.
11341: rm -f conftest.defines conftest.undefs
11342: # Using a here document instead of a string reduces the quoting nightmare.
11343: # Putting comments in sed scripts is not portable.
11344: #
11345: # `end' is used to avoid that the second main sed command (meant for
11346: # 0-ary CPP macros) applies to n-ary macro definitions.
11347: # See the Autoconf documentation for `clear'.
11348: cat >confdef2sed.sed <<\EOF
11349: s/[\\&,]/\\&/g
11350: s,[\\$`],\\&,g
11351: t clear
11352: : clear
11353: s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
11354: t end
11355: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11356: : end
11357: EOF
11358: # If some macros were called several times there might be several times
11359: # the same #defines, which is useless. Nevertheless, we may not want to
11360: # sort them, since we want the *last* AC-DEFINE to be honored.
11361: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11362: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11363: rm -f confdef2sed.sed
1.1 millert 11364:
11365: # This sed command replaces #undef with comments. This is necessary, for
11366: # example, in the case of _POSIX_SOURCE, which is predefined and required
11367: # on some systems where configure will not decide to define it.
1.9 millert 11368: cat >>conftest.undefs <<\EOF
11369: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.1 millert 11370: EOF
11371:
1.9 millert 11372: # Break up conftest.defines because some shells have a limit on the size
11373: # of here documents, and old seds have small limits too (100 cmds).
11374: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11375: echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11376: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11377: echo ' :' >>$CONFIG_STATUS
11378: rm -f conftest.tail
11379: while grep . conftest.defines >/dev/null
11380: do
11381: # Write a limited-size here document to $tmp/defines.sed.
11382: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11383: # Speed up: don't consider the non `#define' lines.
11384: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11385: # Work around the forget-to-reset-the-flag bug.
11386: echo 't clr' >>$CONFIG_STATUS
11387: echo ': clr' >>$CONFIG_STATUS
11388: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11389: echo 'CEOF
11390: sed -f $tmp/defines.sed $tmp/in >$tmp/out
11391: rm -f $tmp/in
11392: mv $tmp/out $tmp/in
11393: ' >>$CONFIG_STATUS
11394: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11395: rm -f conftest.defines
11396: mv conftest.tail conftest.defines
11397: done
11398: rm -f conftest.defines
11399: echo ' fi # egrep' >>$CONFIG_STATUS
11400: echo >>$CONFIG_STATUS
11401:
11402: # Break up conftest.undefs because some shells have a limit on the size
11403: # of here documents, and old seds have small limits too (100 cmds).
11404: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 millert 11405: rm -f conftest.tail
1.9 millert 11406: while grep . conftest.undefs >/dev/null
1.1 millert 11407: do
1.9 millert 11408: # Write a limited-size here document to $tmp/undefs.sed.
11409: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11410: # Speed up: don't consider the non `#undef'
11411: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11412: # Work around the forget-to-reset-the-flag bug.
11413: echo 't clr' >>$CONFIG_STATUS
11414: echo ': clr' >>$CONFIG_STATUS
11415: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 millert 11416: echo 'CEOF
1.9 millert 11417: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11418: rm -f $tmp/in
11419: mv $tmp/out $tmp/in
11420: ' >>$CONFIG_STATUS
11421: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11422: rm -f conftest.undefs
11423: mv conftest.tail conftest.undefs
11424: done
11425: rm -f conftest.undefs
11426:
11427: cat >>$CONFIG_STATUS <<\EOF
11428: # Let's still pretend it is `configure' which instantiates (i.e., don't
11429: # use $as_me), people would be surprised to read:
11430: # /* config.h. Generated automatically by config.status. */
11431: if test x"$ac_file" = x-; then
11432: echo "/* Generated automatically by configure. */" >$tmp/config.h
1.1 millert 11433: else
1.9 millert 11434: echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
11435: fi
11436: cat $tmp/in >>$tmp/config.h
11437: rm -f $tmp/in
11438: if test x"$ac_file" != x-; then
11439: if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
1.11 ! millert 11440: { echo "$as_me:11440: $ac_file is unchanged" >&5
1.9 millert 11441: echo "$as_me: $ac_file is unchanged" >&6;}
11442: else
11443: ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11444: X"$ac_file" : 'X\(//\)[^/]' \| \
11445: X"$ac_file" : 'X\(//\)$' \| \
11446: X"$ac_file" : 'X\(/\)' \| \
11447: . : '\(.\)' 2>/dev/null ||
11448: echo X"$ac_file" |
11449: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11450: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11451: /^X\(\/\/\)$/{ s//\1/; q; }
11452: /^X\(\/\).*/{ s//\1/; q; }
11453: s/.*/./; q'`
1.1 millert 11454: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1.9 millert 11455: { case "$ac_dir" in
11456: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11457: *) as_incr_dir=.;;
11458: esac
11459: as_dummy="$ac_dir"
11460: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11461: case $as_mkdir_dir in
11462: # Skip DOS drivespec
11463: ?:) as_incr_dir=$as_mkdir_dir ;;
11464: *)
11465: as_incr_dir=$as_incr_dir/$as_mkdir_dir
11466: test -d "$as_incr_dir" || mkdir "$as_incr_dir"
11467: ;;
11468: esac
11469: done; }
11470:
11471: fi
11472: rm -f $ac_file
11473: mv $tmp/config.h $ac_file
1.1 millert 11474: fi
1.9 millert 11475: else
11476: cat $tmp/config.h
11477: rm -f $tmp/config.h
1.1 millert 11478: fi
1.9 millert 11479: done
1.1 millert 11480: EOF
11481:
1.9 millert 11482: cat >>$CONFIG_STATUS <<\EOF
1.1 millert 11483:
1.9 millert 11484: { (exit 0); exit 0; }
1.1 millert 11485: EOF
11486: chmod +x $CONFIG_STATUS
1.9 millert 11487: ac_clean_files=$ac_clean_files_save
1.1 millert 11488:
1.9 millert 11489: # configure is writing to config.log, and then calls config.status.
11490: # config.status does its own redirection, appending to config.log.
11491: # Unfortunately, on DOS this fails, as config.log is still kept open
11492: # by configure, so config.status won't be able to write to it; its
11493: # output is simply discarded. So we exec the FD to /dev/null,
11494: # effectively closing config.log, so it can be properly (re)opened and
11495: # appended to by config.status. When coming back to configure, we
11496: # need to make the FD available again.
11497: if test "$no_create" != yes; then
11498: ac_cs_success=:
11499: exec 5>/dev/null
11500: $SHELL $CONFIG_STATUS || ac_cs_success=false
11501: exec 5>>config.log
11502: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11503: # would make configure fail if this is the last instruction.
11504: $ac_cs_success || { (exit 1); exit 1; }
11505: fi
1.1 millert 11506:
11507: if test "$with_pam" = "yes"; then
11508: echo ""
11509: case $host in
11510: *-*-linux*)
11511: echo "You will need to customize sample.pam and install it as /etc/pam.d/sudo"
11512: ;;
11513: esac
11514: echo ""
11515: fi
1.9 millert 11516: