[BACK]Return to configure CVS log [TXT][DIR] Up to [local] / src / usr.bin / sudo

Annotation of src/usr.bin/sudo/configure, Revision 1.10

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
                    673:   --disable-shadow        Never use shadow passwords
                    674:   --disable-root-sudo     don't allow root to run sudo
                    675:   --enable-log-host       Log the hostname in the log file
                    676:   --enable-noargs-shell   If sudo is given no arguments run a shell
                    677:   --enable-shell-sets-home
                    678:                           set $HOME to target user in shell mode
                    679:   --disable-path-info     Print 'command not allowed' not 'command not found'
                    680:   --disable-sia           Never use SIA on Digital UNIX
                    681:
                    682: Optional Packages:
                    683:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                    684:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                    685:   --with-otp-only         deprecated
                    686:   --with-alertmail        deprecated
                    687:   --with-CC               C compiler to use
                    688:   --with-incpath          additional places to look for include files
                    689:   --with-libpath          additional places to look for libraries
                    690:   --with-libraries        additional libraries to link with
                    691:   --with-devel            add developement options
                    692:   --with-csops            add CSOps standard options
                    693:   --without-passwd        don't use passwd/shadow file for authentication
                    694:   --with-skey             enable S/Key support
                    695:   --with-opie             enable OPIE support
                    696:   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
                    697:   --with-SecurID          enable SecurID support
                    698:   --with-fwtk             enable FWTK AuthSRV support
                    699:   --with-kerb4            enable kerberos v4 support
                    700:   --with-kerb5            enable kerberos v5 support
                    701:   --with-authenticate     enable AIX general authentication support
                    702:   --with-pam              enable PAM support
                    703:   --with-AFS              enable AFS support
                    704:   --with-DCE              enable DCE support
                    705:   --with-logincap         enable BSD login class support
                    706:   --with-bsdauth          enable BSD authentication support
                    707:   --without-lecture       don't print lecture for first-time sudoer
                    708:   --with-logging          log via syslog, file, or both
                    709:   --with-logfac           syslog facility to log with (default is "local2")
                    710:   --with-goodpri          syslog priority for commands (def is "notice")
                    711:   --with-badpri           syslog priority for failures (def is "alert")
                    712:   --with-logpath          path to the sudo log file
                    713:   --with-loglen           maximum length of a log file line (default is 80)
                    714:   --with-ignore-dot       ignore '.' in the PATH
                    715:   --without-mail-if-no-user do not send mail if user not in sudoers
                    716:   --with-mail-if-no-host  send mail if user in sudoers but not for this host
                    717:   --with-mail-if-noperms  send mail if user not allowed to run command
                    718:   --with-mailto           who should get sudo mail (default is "root")
                    719:   --with-mailsubject      subject of sudo mail
                    720:   --with-passprompt       default password prompt
                    721:   --with-badpass-message  message the user sees when the password is wrong
                    722:   --with-fqdn             expect fully qualified hosts in sudoers
                    723:   --with-timedir          path to the sudo timestamp dir
                    724:   --with-sendmail=path    set path to sendmail
                    725:   --without-sendmail      do not send mail at all
                    726:   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
                    727:   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
                    728:   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
                    729:   --with-umask            umask with which the prog should run (default is 022)
                    730:   --without-umask         Preserves the umask of the user invoking sudo.
                    731:   --with-runas-default    User to run commands as (default is "root")
                    732:   --with-exempt=group     no passwd needed for users in this group
                    733:   --with-editor=path      Default editor for visudo (defaults to vi)
                    734:   --with-env-editor       Use the environment variable EDITOR for visudo
                    735:   --with-passwd-tries     number of tries to enter password (default is 3)
                    736:   --with-timeout          minutes before sudo asks for passwd again (def is 5 minutes)
                    737:   --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
                    738:   --with-execv            use execv() instead of execvp()
                    739:   --with-tty-tickets      use a different ticket file for each tty
                    740:   --with-insults          insult the user for entering an incorrect password
                    741:   --with-all-insults      include all the sudo insult sets
                    742:   --with-classic-insults  include the insults from the "classic" sudo
                    743:   --with-csops-insults    include CSOps insults
                    744:   --with-hal-insults      include 2001-like insults
                    745:   --with-goons-insults    include the insults from the "Goon Show"
                    746:   --with-secure-path      override the user's path with a builtin one
                    747:   --without-interfaces    don't try to read the ip addr of ether interfaces
                    748:
                    749: Some influential environment variables:
                    750:   CC          C compiler command
                    751:   CFLAGS      C compiler flags
                    752:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                    753:               nonstandard directory <lib dir>
                    754:   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
                    755:               headers in a nonstandard directory <include dir>
                    756:   CPP         C preprocessor
                    757:
                    758: Use these variables to override the choices made by `configure' or to help
                    759: it to find libraries and programs with nonstandard names/locations.
                    760:
                    761: EOF
                    762: fi
                    763:
                    764: if test "$ac_init_help" = "recursive"; then
                    765:   # If there are subdirs, report their specific --help.
                    766:   ac_popdir=`pwd`
                    767:   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
                    768:     cd $ac_subdir
                    769:     # A "../" for each directory in /$ac_subdir.
                    770:     ac_dots=`echo $ac_subdir |
                    771:              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
                    772:
                    773:     case $srcdir in
                    774:     .) # No --srcdir option.  We are building in place.
                    775:       ac_sub_srcdir=$srcdir ;;
                    776:     [\\/]* | ?:[\\/]* ) # Absolute path.
                    777:       ac_sub_srcdir=$srcdir/$ac_subdir ;;
                    778:     *) # Relative path.
                    779:       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
                    780:     esac
                    781:
                    782:     # Check for guested configure; otherwise get Cygnus style configure.
                    783:     if test -f $ac_sub_srcdir/configure.gnu; then
                    784:       echo
                    785:       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
                    786:     elif test -f $ac_sub_srcdir/configure; then
                    787:       echo
                    788:       $SHELL $ac_sub_srcdir/configure  --help=recursive
                    789:     elif test -f $ac_sub_srcdir/configure.ac ||
                    790:            test -f $ac_sub_srcdir/configure.in; then
                    791:       echo
                    792:       $ac_configure --help
                    793:     else
                    794:       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
                    795:     fi
                    796:     cd $ac_popdir
                    797:   done
                    798: fi
                    799:
                    800: test -n "$ac_init_help" && exit 0
                    801: if $ac_init_version; then
                    802:   cat <<\EOF
                    803: sudo configure 1.6.4
                    804: generated by GNU Autoconf 2.52
                    805:
                    806: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
                    807: Free Software Foundation, Inc.
                    808: This configure script is free software; the Free Software Foundation
                    809: gives unlimited permission to copy, distribute and modify it.
                    810: EOF
                    811:   exit 0
                    812: fi
                    813: exec 5>config.log
                    814: cat >&5 <<EOF
                    815: This file contains any messages produced by compilers while
                    816: running configure, to aid debugging if configure makes a mistake.
                    817:
                    818: It was created by sudo $as_me 1.6.4, which was
                    819: generated by GNU Autoconf 2.52.  Invocation command line was
                    820:
                    821:   $ $0 $@
                    822:
                    823: EOF
                    824: {
                    825: cat <<_ASUNAME
                    826: ## ---------- ##
                    827: ## Platform.  ##
                    828: ## ---------- ##
                    829:
                    830: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                    831: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                    832: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                    833: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                    834: uname -v = `(uname -v) 2>/dev/null || echo unknown`
                    835:
                    836: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                    837: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
                    838:
                    839: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                    840: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                    841: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
                    842: hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
                    843: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                    844: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                    845: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
                    846:
                    847: PATH = $PATH
                    848:
                    849: _ASUNAME
                    850: } >&5
                    851:
                    852: cat >&5 <<EOF
                    853: ## ------------ ##
                    854: ## Core tests.  ##
                    855: ## ------------ ##
                    856:
                    857: EOF
                    858:
                    859: # Keep a trace of the command line.
                    860: # Strip out --no-create and --no-recursion so they do not pile up.
                    861: # Also quote any args containing shell meta-characters.
                    862: ac_configure_args=
                    863: ac_sep=
                    864: for ac_arg
                    865: do
                    866:   case $ac_arg in
                    867:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    868:   | --no-cr | --no-c) ;;
                    869:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    870:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
                    871:   *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
                    872:     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
                    873:     ac_configure_args="$ac_configure_args$ac_sep\"$ac_arg\""
                    874:     ac_sep=" " ;;
                    875:   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
                    876:      ac_sep=" " ;;
                    877:   esac
                    878:   # Get rid of the leading space.
                    879: done
                    880:
                    881: # When interrupted or exit'd, cleanup temporary files, and complete
                    882: # config.log.  We remove comments because anyway the quotes in there
                    883: # would cause problems or look ugly.
                    884: trap 'exit_status=$?
                    885:   # Save into config.log some information that might help in debugging.
                    886:   echo >&5
                    887:   echo "## ----------------- ##" >&5
                    888:   echo "## Cache variables.  ##" >&5
                    889:   echo "## ----------------- ##" >&5
                    890:   echo >&5
                    891:   # The following way of writing the cache mishandles newlines in values,
                    892: {
                    893:   (set) 2>&1 |
                    894:     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
                    895:     *ac_space=\ *)
                    896:       sed -n \
                    897:         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
                    898:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
                    899:       ;;
                    900:     *)
                    901:       sed -n \
                    902:         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
                    903:       ;;
                    904:     esac;
                    905: } >&5
                    906:   sed "/^$/d" confdefs.h >conftest.log
                    907:   if test -s conftest.log; then
                    908:     echo >&5
                    909:     echo "## ------------ ##" >&5
                    910:     echo "## confdefs.h.  ##" >&5
                    911:     echo "## ------------ ##" >&5
                    912:     echo >&5
                    913:     cat conftest.log >&5
                    914:   fi
                    915:   (echo; echo) >&5
                    916:   test "$ac_signal" != 0 &&
                    917:     echo "$as_me: caught signal $ac_signal" >&5
                    918:   echo "$as_me: exit $exit_status" >&5
                    919:   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
                    920:     exit $exit_status
                    921:      ' 0
                    922: for ac_signal in 1 2 13 15; do
                    923:   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
                    924: done
                    925: ac_signal=0
1.1       millert   926:
1.9       millert   927: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                    928: rm -rf conftest* confdefs.h
                    929: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
                    930: echo >confdefs.h
                    931:
                    932: # Let the site file select an alternate cache file if it wants to.
1.1       millert   933: # Prefer explicitly selected file to automatically selected ones.
                    934: if test -z "$CONFIG_SITE"; then
                    935:   if test "x$prefix" != xNONE; then
                    936:     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
                    937:   else
                    938:     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
                    939:   fi
                    940: fi
                    941: for ac_site_file in $CONFIG_SITE; do
                    942:   if test -r "$ac_site_file"; then
1.9       millert   943:     { echo "$as_me:943: loading site script $ac_site_file" >&5
                    944: echo "$as_me: loading site script $ac_site_file" >&6;}
                    945:     cat "$ac_site_file" >&5
1.1       millert   946:     . "$ac_site_file"
                    947:   fi
                    948: done
                    949:
                    950: if test -r "$cache_file"; then
1.9       millert   951:   # Some versions of bash will fail to source /dev/null (special
                    952:   # files actually), so we avoid doing that.
                    953:   if test -f "$cache_file"; then
                    954:     { echo "$as_me:954: loading cache $cache_file" >&5
                    955: echo "$as_me: loading cache $cache_file" >&6;}
                    956:     case $cache_file in
                    957:       [\\/]* | ?:[\\/]* ) . $cache_file;;
                    958:       *)                      . ./$cache_file;;
                    959:     esac
                    960:   fi
1.1       millert   961: else
1.9       millert   962:   { echo "$as_me:962: creating cache $cache_file" >&5
                    963: echo "$as_me: creating cache $cache_file" >&6;}
                    964:   >$cache_file
                    965: fi
                    966:
                    967: # Check that the precious variables saved in the cache have kept the same
                    968: # value.
                    969: ac_cache_corrupted=false
                    970: for ac_var in `(set) 2>&1 |
                    971:                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
                    972:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                    973:   eval ac_new_set=\$ac_env_${ac_var}_set
                    974:   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
                    975:   eval ac_new_val="\$ac_env_${ac_var}_value"
                    976:   case $ac_old_set,$ac_new_set in
                    977:     set,)
                    978:       { echo "$as_me:978: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
                    979: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                    980:       ac_cache_corrupted=: ;;
                    981:     ,set)
                    982:       { echo "$as_me:982: error: \`$ac_var' was not set in the previous run" >&5
                    983: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                    984:       ac_cache_corrupted=: ;;
                    985:     ,);;
                    986:     *)
                    987:       if test "x$ac_old_val" != "x$ac_new_val"; then
                    988:         { echo "$as_me:988: error: \`$ac_var' has changed since the previous run:" >&5
                    989: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
                    990:         { echo "$as_me:990:   former value:  $ac_old_val" >&5
                    991: echo "$as_me:   former value:  $ac_old_val" >&2;}
                    992:         { echo "$as_me:992:   current value: $ac_new_val" >&5
                    993: echo "$as_me:   current value: $ac_new_val" >&2;}
                    994:         ac_cache_corrupted=:
                    995:       fi;;
                    996:   esac
                    997:   # Pass precious variables to config.status.  It doesn't matter if
                    998:   # we pass some twice (in addition to the command line arguments).
                    999:   if test "$ac_new_set" = set; then
                   1000:     case $ac_new_val in
                   1001:     *" "*|*"   "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
                   1002:       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
                   1003:       ac_configure_args="$ac_configure_args '$ac_arg'"
                   1004:       ;;
                   1005:     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
                   1006:        ;;
                   1007:     esac
                   1008:   fi
                   1009: done
                   1010: if $ac_cache_corrupted; then
                   1011:   { echo "$as_me:1011: error: changes in the environment can compromise the build" >&5
                   1012: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
                   1013:   { { echo "$as_me:1013: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
                   1014: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
                   1015:    { (exit 1); exit 1; }; }
1.1       millert  1016: fi
                   1017:
                   1018: ac_ext=c
                   1019: ac_cpp='$CPP $CPPFLAGS'
1.9       millert  1020: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   1021: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   1022: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   1023:
                   1024: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
                   1025:   *c*,-n*) ECHO_N= ECHO_C='
                   1026: ' ECHO_T='     ' ;;
                   1027:   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
                   1028:   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
                   1029: esac
                   1030: echo "#! $SHELL" >conftest.sh
                   1031: echo  "exit 0"   >>conftest.sh
                   1032: chmod +x conftest.sh
                   1033: if { (echo "$as_me:1033: PATH=\".;.\"; conftest.sh") >&5
                   1034:   (PATH=".;."; conftest.sh) 2>&5
                   1035:   ac_status=$?
                   1036:   echo "$as_me:1036: \$? = $ac_status" >&5
                   1037:   (exit $ac_status); }; then
                   1038:   ac_path_separator=';'
                   1039: else
                   1040:   ac_path_separator=:
                   1041: fi
                   1042: PATH_SEPARATOR="$ac_path_separator"
                   1043: rm -f conftest.sh
                   1044:
                   1045: ac_config_headers="$ac_config_headers config.h pathnames.h"
                   1046:
                   1047: echo "Configuring Sudo version 1.6.4"
                   1048:
                   1049: timeout=5
                   1050: password_timeout=5
                   1051: sudo_umask=0022
                   1052: passprompt="Password:"
                   1053: long_otp_prompt=off
                   1054: lecture=on
                   1055: logfac=local2
                   1056: goodpri=notice
                   1057: badpri=alert
                   1058: loglen=80
                   1059: ignore_dot=off
                   1060: mail_no_user=on
                   1061: mail_no_host=off
                   1062: mail_no_perms=off
                   1063: mailto=root
                   1064: mailsub='*** SECURITY information for %h ***'
                   1065: badpass_message='Sorry, try again.'
                   1066: fqdn=off
                   1067: runas_default=root
                   1068: env_editor=off
                   1069: passwd_tries=3
                   1070: tty_tickets=off
                   1071: insults=off
1.1       millert  1072: PROGS="sudo visudo"
1.6       millert  1073: test -n "$MANTYPE" || MANTYPE="man"
                   1074: test -n "$mansrcdir" || mansrcdir="."
                   1075: test -n "$SUDOERS_MODE" || SUDOERS_MODE=0440
                   1076: test -n "$SUDOERS_UID" || SUDOERS_UID=0
                   1077: test -n "$SUDOERS_GID" || SUDOERS_GID=0
1.1       millert  1078: DEV="#"
                   1079:
                   1080: CHECKSHADOW=true
                   1081: CHECKSIA=true
                   1082:
                   1083: test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
                   1084: test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
                   1085: test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
                   1086: test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
                   1087:
                   1088: # Check whether --with-otp-only or --without-otp-only was given.
                   1089: if test "${with_otp_only+set}" = set; then
                   1090:   withval="$with_otp_only"
                   1091:   case $with_otp_only in
                   1092:     yes)       with_passwd=no
1.9       millert  1093:
                   1094: cat >>confdefs.h <<\EOF
1.1       millert  1095: #define WITHOUT_PASSWD 1
                   1096: EOF
                   1097:
1.9       millert  1098:                { echo "$as_me:1098: WARNING: --with-otp-only option deprecated, treating as --without-passwd" >&5
                   1099: echo "$as_me: WARNING: --with-otp-only option deprecated, treating as --without-passwd" >&2;}
1.1       millert  1100:                ;;
                   1101: esac
1.9       millert  1102: fi;
1.1       millert  1103:
                   1104: # Check whether --with-alertmail or --without-alertmail was given.
                   1105: if test "${with_alertmail+set}" = set; then
                   1106:   withval="$with_alertmail"
                   1107:   case $with_alertmail in
                   1108:     *)         with_mailto="$with_alertmail"
1.9       millert  1109:                { echo "$as_me:1109: WARNING: --with-alertmail option deprecated, treating as --mailto" >&5
                   1110: echo "$as_me: WARNING: --with-alertmail option deprecated, treating as --mailto" >&2;}
1.1       millert  1111:                ;;
                   1112: esac
1.9       millert  1113: fi;
1.1       millert  1114:
                   1115: # Check whether --with-CC or --without-CC was given.
                   1116: if test "${with_CC+set}" = set; then
                   1117:   withval="$with_CC"
                   1118:   case $with_CC in
1.9       millert  1119:     yes)       { { echo "$as_me:1119: error: \"must give --with-CC an argument.\"" >&5
                   1120: echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
                   1121:    { (exit 1); exit 1; }; }
                   1122:                ;;
                   1123:     no)                { { echo "$as_me:1123: error: \"illegal argument: --without-CC.\"" >&5
                   1124: echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
                   1125:    { (exit 1); exit 1; }; }
1.1       millert  1126:                ;;
                   1127:     *)         CC=$with_CC
                   1128:                ;;
                   1129: esac
1.9       millert  1130: fi;
1.1       millert  1131:
                   1132: # Check whether --with-incpath or --without-incpath was given.
                   1133: if test "${with_incpath+set}" = set; then
                   1134:   withval="$with_incpath"
1.9       millert  1135:   case $with_incpath in
                   1136:     yes)       { { echo "$as_me:1136: error: \"must give --with-incpath an argument.\"" >&5
                   1137: echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
                   1138:    { (exit 1); exit 1; }; }
                   1139:                ;;
                   1140:     no)                { { echo "$as_me:1140: error: \"--without-incpath not supported.\"" >&5
                   1141: echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
                   1142:    { (exit 1); exit 1; }; }
1.1       millert  1143:                ;;
                   1144:     *)         echo "Adding ${with_incpath} to CPPFLAGS"
                   1145:                for i in ${with_incpath}; do
                   1146:                    CPPFLAGS="${CPPFLAGS} -I${i}"
                   1147:                done
                   1148:                ;;
                   1149: esac
1.9       millert  1150: fi;
1.1       millert  1151:
                   1152: # Check whether --with-libpath or --without-libpath was given.
                   1153: if test "${with_libpath+set}" = set; then
                   1154:   withval="$with_libpath"
1.9       millert  1155:   case $with_libpath in
                   1156:     yes)       { { echo "$as_me:1156: error: \"must give --with-libpath an argument.\"" >&5
                   1157: echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
                   1158:    { (exit 1); exit 1; }; }
                   1159:                ;;
                   1160:     no)                { { echo "$as_me:1160: error: \"--without-libpath not supported.\"" >&5
                   1161: echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
                   1162:    { (exit 1); exit 1; }; }
1.1       millert  1163:                ;;
                   1164:     *)         echo "Adding ${with_libpath} to LDFLAGS"
                   1165:                for i in ${with_libpath}; do
                   1166:                    LDFLAGS="${LDFLAGS} -L${i}"
                   1167:                done
                   1168:                ;;
                   1169: esac
1.9       millert  1170: fi;
1.1       millert  1171:
                   1172: # Check whether --with-libraries or --without-libraries was given.
                   1173: if test "${with_libraries+set}" = set; then
                   1174:   withval="$with_libraries"
1.9       millert  1175:   case $with_libraries in
                   1176:     yes)       { { echo "$as_me:1176: error: \"must give --with-libraries an argument.\"" >&5
                   1177: echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
                   1178:    { (exit 1); exit 1; }; }
                   1179:                ;;
                   1180:     no)                { { echo "$as_me:1180: error: \"--without-libraries not supported.\"" >&5
                   1181: echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
                   1182:    { (exit 1); exit 1; }; }
1.1       millert  1183:                ;;
                   1184:     *)         echo "Adding ${with_libraries} to LIBS"
                   1185:                for i in ${with_libraries}; do
                   1186:                    case $i in
                   1187:                        -l*)    ;;
                   1188:                        *.a)    ;;
                   1189:                        *.o)    ;;
                   1190:                        *)      i="-l${i}";;
                   1191:                    esac
                   1192:                    LIBS="${LIBS} ${i}"
                   1193:                done
                   1194:                ;;
                   1195: esac
1.9       millert  1196: fi;
1.1       millert  1197:
                   1198: # Check whether --with-devel or --without-devel was given.
                   1199: if test "${with_devel+set}" = set; then
                   1200:   withval="$with_devel"
1.9       millert  1201:   case $with_devel in
1.1       millert  1202:     yes)       echo 'Setting up for developement: -Wall, flex, yacc'
                   1203:                PROGS="${PROGS} testsudoers"
                   1204:                OSDEFS="${OSDEFS} -DSUDO_DEVEL"
                   1205:                DEV=""
                   1206:                ;;
                   1207:     no)                ;;
1.6       millert  1208:     *)         echo "Ignoring unknown argument to --with-devel: $with_devel"
1.1       millert  1209:                ;;
                   1210: esac
1.9       millert  1211: fi;
1.1       millert  1212:
                   1213: # Check whether --with-csops or --without-csops was given.
                   1214: if test "${with_csops+set}" = set; then
                   1215:   withval="$with_csops"
1.9       millert  1216:   case $with_csops in
1.1       millert  1217:     yes)       echo 'Adding CSOps standard options'
                   1218:                CHECKSIA=false
                   1219:                with_ignore_dot=yes
1.9       millert  1220:                insults=on
1.1       millert  1221:                with_classic_insults=yes
                   1222:                with_csops_insults=yes
                   1223:                with_env_editor=yes
                   1224:                ;;
                   1225:     no)                ;;
                   1226:     *)         echo "Ignoring unknown argument to --with-csops: $with_csops"
                   1227:                ;;
                   1228: esac
1.9       millert  1229: fi;
1.1       millert  1230:
                   1231: # Check whether --with-passwd or --without-passwd was given.
                   1232: if test "${with_passwd+set}" = set; then
                   1233:   withval="$with_passwd"
                   1234:   case $with_passwd in
                   1235:     yes)       ;;
1.9       millert  1236:     no)                cat >>confdefs.h <<\EOF
1.1       millert  1237: #define WITHOUT_PASSWD 1
                   1238: EOF
                   1239:
1.9       millert  1240:                echo "$as_me:1240: checking whether to use shadow/passwd file authentication" >&5
                   1241: echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6
                   1242:                echo "$as_me:1242: result: no" >&5
                   1243: echo "${ECHO_T}no" >&6
1.1       millert  1244:                ;;
1.9       millert  1245:     *)         { { echo "$as_me:1245: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
                   1246: echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
                   1247:    { (exit 1); exit 1; }; }
1.1       millert  1248:                ;;
                   1249: esac
1.9       millert  1250: fi;
1.1       millert  1251:
                   1252: # Check whether --with-skey or --without-skey was given.
                   1253: if test "${with_skey+set}" = set; then
                   1254:   withval="$with_skey"
                   1255:   case $with_skey in
                   1256:     yes)       if test -n "$with_opie"; then
1.9       millert  1257:                    { { echo "$as_me:1257: error: \"cannot use both S/Key and OPIE\"" >&5
                   1258: echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
                   1259:    { (exit 1); exit 1; }; }
1.1       millert  1260:                fi
1.9       millert  1261:
                   1262: cat >>confdefs.h <<\EOF
1.1       millert  1263: #define HAVE_SKEY 1
                   1264: EOF
                   1265:
1.9       millert  1266:                echo "$as_me:1266: checking whether to try S/Key authentication" >&5
                   1267: echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6
                   1268:                echo "$as_me:1268: result: yes" >&5
                   1269: echo "${ECHO_T}yes" >&6
1.1       millert  1270:                AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
                   1271:                ;;
                   1272:     no)                ;;
                   1273:     *)         echo "Ignoring unknown argument to --with-skey: $with_skey"
                   1274:                ;;
                   1275: esac
1.9       millert  1276: fi;
1.1       millert  1277:
                   1278: # Check whether --with-opie or --without-opie was given.
                   1279: if test "${with_opie+set}" = set; then
                   1280:   withval="$with_opie"
                   1281:   case $with_opie in
                   1282:     yes)       if test -n "$with_skey"; then
1.9       millert  1283:                    { { echo "$as_me:1283: error: \"cannot use both S/Key and OPIE\"" >&5
                   1284: echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
                   1285:    { (exit 1); exit 1; }; }
1.1       millert  1286:                fi
1.9       millert  1287:
                   1288: cat >>confdefs.h <<\EOF
1.1       millert  1289: #define HAVE_OPIE 1
                   1290: EOF
                   1291:
1.9       millert  1292:                echo "$as_me:1292: checking whether to try NRL OPIE authentication" >&5
                   1293: echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6
                   1294:                echo "$as_me:1294: result: yes" >&5
                   1295: echo "${ECHO_T}yes" >&6
1.1       millert  1296:                AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
                   1297:                ;;
                   1298:     no)                ;;
                   1299:     *)         echo "Ignoring unknown argument to --with-opie: $with_opie"
                   1300:                ;;
                   1301: esac
1.9       millert  1302: fi;
1.1       millert  1303:
                   1304: # Check whether --with-long-otp-prompt or --without-long-otp-prompt was given.
                   1305: if test "${with_long_otp_prompt+set}" = set; then
                   1306:   withval="$with_long_otp_prompt"
                   1307:   case $with_long_otp_prompt in
1.9       millert  1308:     yes)
                   1309: cat >>confdefs.h <<\EOF
1.1       millert  1310: #define LONG_OTP_PROMPT 1
                   1311: EOF
                   1312:
1.9       millert  1313:                echo "$as_me:1313: checking whether to use a two line prompt for OTP authentication" >&5
                   1314: echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6
                   1315:                echo "$as_me:1315: result: yes" >&5
                   1316: echo "${ECHO_T}yes" >&6
                   1317:                long_otp_prompt=on
1.1       millert  1318:                ;;
1.9       millert  1319:     no)                long_otp_prompt=off
                   1320:                ;;
                   1321:     *)         { { echo "$as_me:1321: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
                   1322: echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
                   1323:    { (exit 1); exit 1; }; }
1.1       millert  1324:                ;;
                   1325: esac
1.9       millert  1326: fi;
1.1       millert  1327:
                   1328: # Check whether --with-SecurID or --without-SecurID was given.
                   1329: if test "${with_SecurID+set}" = set; then
                   1330:   withval="$with_SecurID"
                   1331:   case $with_SecurID in
                   1332:     no)                ;;
1.9       millert  1333:     *)
                   1334: cat >>confdefs.h <<\EOF
1.1       millert  1335: #define HAVE_SECURID 1
                   1336: EOF
                   1337:
1.9       millert  1338:                echo "$as_me:1338: checking whether to use SecurID for authentication" >&5
                   1339: echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6
                   1340:                echo "$as_me:1340: result: yes" >&5
                   1341: echo "${ECHO_T}yes" >&6
1.1       millert  1342:                with_passwd=no
                   1343:                AUTH_OBJS="securid.o"
                   1344:                ;;
                   1345: esac
1.9       millert  1346: fi;
1.1       millert  1347:
                   1348: # Check whether --with-fwtk or --without-fwtk was given.
                   1349: if test "${with_fwtk+set}" = set; then
                   1350:   withval="$with_fwtk"
                   1351:   case $with_fwtk in
                   1352:     no)                ;;
1.9       millert  1353:     *)
                   1354: cat >>confdefs.h <<\EOF
1.1       millert  1355: #define HAVE_FWTK 1
                   1356: EOF
                   1357:
1.9       millert  1358:                echo "$as_me:1358: checking whether to use FWTK AuthSRV for authentication" >&5
                   1359: echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6
                   1360:                echo "$as_me:1360: result: yes" >&5
                   1361: echo "${ECHO_T}yes" >&6
1.1       millert  1362:                with_passwd=no
                   1363:                AUTH_OBJS="fwtk.o"
1.9       millert  1364:                if test "$with_fwtk" != "yes"; then
                   1365:                    SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
                   1366:                    CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
                   1367:                    with_fwtk=yes
                   1368:                fi
1.1       millert  1369:                ;;
                   1370: esac
1.9       millert  1371: fi;
1.1       millert  1372:
                   1373: # Check whether --with-kerb4 or --without-kerb4 was given.
                   1374: if test "${with_kerb4+set}" = set; then
                   1375:   withval="$with_kerb4"
                   1376:   case $with_kerb4 in
1.9       millert  1377:     yes)       echo "$as_me:1377: checking whether to try Kerberos 4 authentication" >&5
                   1378: echo $ECHO_N "checking whether to try Kerberos 4 authentication... $ECHO_C" >&6
                   1379:                echo "$as_me:1379: result: yes" >&5
                   1380: echo "${ECHO_T}yes" >&6
1.1       millert  1381:                ;;
                   1382:     no)                ;;
1.9       millert  1383:     *)         { { echo "$as_me:1383: error: \"--with-kerb4 does not take an argument.\"" >&5
                   1384: echo "$as_me: error: \"--with-kerb4 does not take an argument.\"" >&2;}
                   1385:    { (exit 1); exit 1; }; }
1.1       millert  1386:                ;;
                   1387: esac
1.9       millert  1388: fi;
1.1       millert  1389:
                   1390: # Check whether --with-kerb5 or --without-kerb5 was given.
                   1391: if test "${with_kerb5+set}" = set; then
                   1392:   withval="$with_kerb5"
                   1393:   case $with_kerb5 in
1.9       millert  1394:     yes)       echo "$as_me:1394: checking whether to try Kerberos 5 authentication" >&5
                   1395: echo $ECHO_N "checking whether to try Kerberos 5 authentication... $ECHO_C" >&6
                   1396:                echo "$as_me:1396: result: yes" >&5
                   1397: echo "${ECHO_T}yes" >&6
1.1       millert  1398:                ;;
                   1399:     no)                ;;
1.9       millert  1400:     *)         { { echo "$as_me:1400: error: \"--with-kerb5 does not take an argument.\"" >&5
                   1401: echo "$as_me: error: \"--with-kerb5 does not take an argument.\"" >&2;}
                   1402:    { (exit 1); exit 1; }; }
1.1       millert  1403:                ;;
                   1404: esac
1.9       millert  1405: fi;
1.1       millert  1406:
                   1407: # Check whether --with-authenticate or --without-authenticate was given.
                   1408: if test "${with_authenticate+set}" = set; then
                   1409:   withval="$with_authenticate"
                   1410:   case $with_authenticate in
1.9       millert  1411:     yes)
                   1412: cat >>confdefs.h <<\EOF
1.1       millert  1413: #define HAVE_AUTHENTICATE 1
                   1414: EOF
                   1415:
1.9       millert  1416:                echo "$as_me:1416: checking whether to use AIX general authentication" >&5
                   1417: echo $ECHO_N "checking whether to use AIX general authentication... $ECHO_C" >&6
                   1418:                echo "$as_me:1418: result: yes" >&5
                   1419: echo "${ECHO_T}yes" >&6
1.1       millert  1420:                with_passwd=no
                   1421:                AUTH_OBJS="aix_auth.o"
                   1422:                ;;
                   1423:     no)                ;;
1.9       millert  1424:     *)         { { echo "$as_me:1424: error: \"--with-authenticate does not take an argument.\"" >&5
                   1425: echo "$as_me: error: \"--with-authenticate does not take an argument.\"" >&2;}
                   1426:    { (exit 1); exit 1; }; }
1.1       millert  1427:                ;;
                   1428: esac
1.9       millert  1429: fi;
1.1       millert  1430:
                   1431: # Check whether --with-pam or --without-pam was given.
                   1432: if test "${with_pam+set}" = set; then
                   1433:   withval="$with_pam"
                   1434:   case $with_pam in
1.9       millert  1435:     yes)
                   1436: cat >>confdefs.h <<\EOF
1.1       millert  1437: #define HAVE_PAM 1
                   1438: EOF
                   1439:
1.9       millert  1440:                echo "$as_me:1440: checking whether to use PAM authentication" >&5
                   1441: echo $ECHO_N "checking whether to use PAM authentication... $ECHO_C" >&6
                   1442:                echo "$as_me:1442: result: yes" >&5
                   1443: echo "${ECHO_T}yes" >&6
1.1       millert  1444:                with_passwd=no
                   1445:                AUTH_OBJS="pam.o"
                   1446:                ;;
                   1447:     no)                ;;
1.9       millert  1448:     *)         { { echo "$as_me:1448: error: \"--with-pam does not take an argument.\"" >&5
                   1449: echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
                   1450:    { (exit 1); exit 1; }; }
1.1       millert  1451:                ;;
                   1452: esac
1.9       millert  1453: fi;
1.1       millert  1454:
                   1455: # Check whether --with-AFS or --without-AFS was given.
                   1456: if test "${with_AFS+set}" = set; then
                   1457:   withval="$with_AFS"
                   1458:   case $with_AFS in
1.9       millert  1459:     yes)
                   1460: cat >>confdefs.h <<\EOF
1.1       millert  1461: #define HAVE_AFS 1
                   1462: EOF
                   1463:
1.9       millert  1464:                echo "$as_me:1464: checking whether to try AFS (kerberos) authentication" >&5
                   1465: echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6
                   1466:                echo "$as_me:1466: result: yes" >&5
                   1467: echo "${ECHO_T}yes" >&6
1.1       millert  1468:                AUTH_OBJS="${AUTH_OBJS} afs.o"
                   1469:                ;;
                   1470:     no)                ;;
1.9       millert  1471:     *)         { { echo "$as_me:1471: error: \"--with-AFS does not take an argument.\"" >&5
                   1472: echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
                   1473:    { (exit 1); exit 1; }; }
1.1       millert  1474:                ;;
                   1475: esac
1.9       millert  1476: fi;
1.1       millert  1477:
                   1478: # Check whether --with-DCE or --without-DCE was given.
                   1479: if test "${with_DCE+set}" = set; then
                   1480:   withval="$with_DCE"
                   1481:   case $with_DCE in
1.9       millert  1482:     yes)
                   1483: cat >>confdefs.h <<\EOF
1.1       millert  1484: #define HAVE_DCE 1
                   1485: EOF
                   1486:
1.9       millert  1487:                echo "$as_me:1487: checking whether to try DCE (kerberos) authentication" >&5
                   1488: echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6
                   1489:                echo "$as_me:1489: result: yes" >&5
                   1490: echo "${ECHO_T}yes" >&6
1.1       millert  1491:                AUTH_OBJS="${AUTH_OBJS} dce.o"
                   1492:                ;;
                   1493:     no)                ;;
1.9       millert  1494:     *)         { { echo "$as_me:1494: error: \"--with-DCE does not take an argument.\"" >&5
                   1495: echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
                   1496:    { (exit 1); exit 1; }; }
1.1       millert  1497:                ;;
                   1498: esac
1.9       millert  1499: fi;
1.1       millert  1500:
1.6       millert  1501: # Check whether --with-logincap or --without-logincap was given.
                   1502: if test "${with_logincap+set}" = set; then
                   1503:   withval="$with_logincap"
                   1504:   case $with_logincap in
1.7       millert  1505:     yes|no)    ;;
1.9       millert  1506:     *)         { { echo "$as_me:1506: error: \"--with-logincap does not take an argument.\"" >&5
                   1507: echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
                   1508:    { (exit 1); exit 1; }; }
1.7       millert  1509:                ;;
                   1510: esac
1.9       millert  1511: fi;
1.6       millert  1512:
1.7       millert  1513: # Check whether --with-bsdauth or --without-bsdauth was given.
                   1514: if test "${with_bsdauth+set}" = set; then
                   1515:   withval="$with_bsdauth"
                   1516:   case $with_bsdauth in
                   1517:     yes)       with_logincap=yes
1.6       millert  1518:                ;;
                   1519:     no)                ;;
1.9       millert  1520:     *)         { { echo "$as_me:1520: error: \"--with-bsdauth does not take an argument.\"" >&5
                   1521: echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
                   1522:    { (exit 1); exit 1; }; }
1.6       millert  1523:                ;;
                   1524: esac
1.9       millert  1525: fi;
1.6       millert  1526:
1.9       millert  1527: echo "$as_me:1527: checking whether to lecture users the first time they run sudo" >&5
                   1528: echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6
1.6       millert  1529:
1.1       millert  1530: # Check whether --with-lecture or --without-lecture was given.
                   1531: if test "${with_lecture+set}" = set; then
                   1532:   withval="$with_lecture"
1.9       millert  1533:   case $with_lecture in
                   1534:     yes|short) lecture=on
1.1       millert  1535:                ;;
1.9       millert  1536:     no|none)   lecture=off
1.1       millert  1537:                ;;
1.9       millert  1538:     *)         { { echo "$as_me:1538: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
                   1539: echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
                   1540:    { (exit 1); exit 1; }; }
1.1       millert  1541:                ;;
                   1542: esac
1.9       millert  1543: fi;
                   1544: if test "$lecture" = "on"; then
                   1545:     echo "$as_me:1545: result: yes" >&5
                   1546: echo "${ECHO_T}yes" >&6
1.1       millert  1547: else
1.9       millert  1548:
                   1549: cat >>confdefs.h <<\EOF
                   1550: #define NO_LECTURE 1
                   1551: EOF
                   1552:
                   1553:     echo "$as_me:1553: result: no" >&5
                   1554: echo "${ECHO_T}no" >&6
1.1       millert  1555: fi
                   1556:
1.9       millert  1557: echo "$as_me:1557: checking whether sudo should log via syslog or to a file by default" >&5
                   1558: echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6
1.1       millert  1559:
                   1560: # Check whether --with-logging or --without-logging was given.
                   1561: if test "${with_logging+set}" = set; then
                   1562:   withval="$with_logging"
1.9       millert  1563:   case $with_logging in
                   1564:     yes)       { { echo "$as_me:1564: error: \"must give --with-logging an argument.\"" >&5
                   1565: echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
                   1566:    { (exit 1); exit 1; }; }
                   1567:                ;;
                   1568:     no)                { { echo "$as_me:1568: error: \"--without-logging not supported.\"" >&5
                   1569: echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
                   1570:    { (exit 1); exit 1; }; }
1.1       millert  1571:                ;;
1.9       millert  1572:     syslog)
                   1573: cat >>confdefs.h <<\EOF
1.1       millert  1574: #define LOGGING SLOG_SYSLOG
                   1575: EOF
                   1576:
1.9       millert  1577:                echo "$as_me:1577: result: syslog" >&5
                   1578: echo "${ECHO_T}syslog" >&6
1.1       millert  1579:                ;;
1.9       millert  1580:     file)      cat >>confdefs.h <<\EOF
1.1       millert  1581: #define LOGGING SLOG_FILE
                   1582: EOF
                   1583:
1.9       millert  1584:                echo "$as_me:1584: result: file" >&5
                   1585: echo "${ECHO_T}file" >&6
1.1       millert  1586:                ;;
1.9       millert  1587:     both)      cat >>confdefs.h <<\EOF
1.1       millert  1588: #define LOGGING SLOG_BOTH
                   1589: EOF
                   1590:
1.9       millert  1591:                echo "$as_me:1591: result: both" >&5
                   1592: echo "${ECHO_T}both" >&6
1.1       millert  1593:                ;;
1.9       millert  1594:     *)         { { echo "$as_me:1594: error: \"unknown argument to --with-logging: $with_logging\"" >&5
                   1595: echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
                   1596:    { (exit 1); exit 1; }; }
1.1       millert  1597:                ;;
                   1598: esac
                   1599: else
1.9       millert  1600:   cat >>confdefs.h <<\EOF
1.1       millert  1601: #define LOGGING SLOG_SYSLOG
                   1602: EOF
1.9       millert  1603:  echo "$as_me:1603: result: syslog" >&5
                   1604: echo "${ECHO_T}syslog" >&6
                   1605: fi;
1.1       millert  1606:
1.9       millert  1607: echo "$as_me:1607: checking which syslog facility sudo should log with" >&5
                   1608: echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6
1.1       millert  1609:
                   1610: # Check whether --with-logfac or --without-logfac was given.
                   1611: if test "${with_logfac+set}" = set; then
                   1612:   withval="$with_logfac"
1.9       millert  1613:   case $with_logfac in
                   1614:     yes)       { { echo "$as_me:1614: error: \"must give --with-logfac an argument.\"" >&5
                   1615: echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
                   1616:    { (exit 1); exit 1; }; }
                   1617:                ;;
                   1618:     no)                { { echo "$as_me:1618: error: \"--without-logfac not supported.\"" >&5
                   1619: echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
                   1620:    { (exit 1); exit 1; }; }
1.1       millert  1621:                ;;
1.9       millert  1622:     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)         logfac=$with_logfac
1.1       millert  1623:                ;;
1.9       millert  1624:     *)         { { echo "$as_me:1624: error: \"$with_logfac is not a supported syslog facility.\"" >&5
                   1625: echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
                   1626:    { (exit 1); exit 1; }; }
1.1       millert  1627:                ;;
                   1628: esac
1.9       millert  1629: fi;
                   1630:
                   1631: cat >>confdefs.h <<EOF
                   1632: #define LOGFAC "$logfac"
1.1       millert  1633: EOF
                   1634:
1.9       millert  1635: echo "$as_me:1635: result: $logfac" >&5
                   1636: echo "${ECHO_T}$logfac" >&6
                   1637:
                   1638: echo "$as_me:1638: checking at which syslog priority to log commands" >&5
                   1639: echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6
1.1       millert  1640:
                   1641: # Check whether --with-goodpri or --without-goodpri was given.
                   1642: if test "${with_goodpri+set}" = set; then
                   1643:   withval="$with_goodpri"
1.9       millert  1644:   case $with_goodpri in
                   1645:     yes)       { { echo "$as_me:1645: error: \"must give --with-goodpri an argument.\"" >&5
                   1646: echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
                   1647:    { (exit 1); exit 1; }; }
1.1       millert  1648:                ;;
1.9       millert  1649:     no)                { { echo "$as_me:1649: error: \"--without-goodpri not supported.\"" >&5
                   1650: echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
                   1651:    { (exit 1); exit 1; }; }
1.1       millert  1652:                ;;
1.9       millert  1653:     alert|crit|debug|emerg|err|info|notice|warning)
                   1654:                goodpri=$with_goodpri
1.1       millert  1655:                ;;
1.9       millert  1656:     *)         { { echo "$as_me:1656: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
                   1657: echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
                   1658:    { (exit 1); exit 1; }; }
1.1       millert  1659:                ;;
                   1660: esac
1.9       millert  1661: fi;
                   1662:
                   1663: cat >>confdefs.h <<EOF
                   1664: #define PRI_SUCCESS "$goodpri"
1.1       millert  1665: EOF
                   1666:
1.9       millert  1667: echo "$as_me:1667: result: $goodpri" >&5
                   1668: echo "${ECHO_T}$goodpri" >&6
                   1669:
                   1670: echo "$as_me:1670: checking at which syslog priority to log failures" >&5
                   1671: echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6
1.1       millert  1672:
                   1673: # Check whether --with-badpri or --without-badpri was given.
                   1674: if test "${with_badpri+set}" = set; then
                   1675:   withval="$with_badpri"
1.9       millert  1676:   case $with_badpri in
                   1677:     yes)       { { echo "$as_me:1677: error: \"must give --with-badpri an argument.\"" >&5
                   1678: echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
                   1679:    { (exit 1); exit 1; }; }
1.1       millert  1680:                ;;
1.9       millert  1681:     no)                { { echo "$as_me:1681: error: \"--without-badpri not supported.\"" >&5
                   1682: echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
                   1683:    { (exit 1); exit 1; }; }
1.1       millert  1684:                ;;
1.9       millert  1685:     alert|crit|debug|emerg|err|info|notice|warning)
                   1686:                badpri=$with_badpri
1.1       millert  1687:                ;;
1.9       millert  1688:     *)         { { echo "$as_me:1688: error: $with_badpri is not a supported syslog priority." >&5
                   1689: echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
                   1690:    { (exit 1); exit 1; }; }
1.1       millert  1691:                ;;
                   1692: esac
1.9       millert  1693: fi;
                   1694:
                   1695: cat >>confdefs.h <<EOF
                   1696: #define PRI_FAILURE "$badpri"
1.1       millert  1697: EOF
                   1698:
1.9       millert  1699: echo "$as_me:1699: result: badpri" >&5
                   1700: echo "${ECHO_T}badpri" >&6
1.1       millert  1701:
                   1702: # Check whether --with-logpath or --without-logpath was given.
                   1703: if test "${with_logpath+set}" = set; then
                   1704:   withval="$with_logpath"
1.9       millert  1705:   case $with_logpath in
                   1706:     yes)       { { echo "$as_me:1706: error: \"must give --with-logpath an argument.\"" >&5
                   1707: echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
                   1708:    { (exit 1); exit 1; }; }
1.1       millert  1709:                ;;
1.9       millert  1710:     no)                { { echo "$as_me:1710: error: \"--without-logpath not supported.\"" >&5
                   1711: echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
                   1712:    { (exit 1); exit 1; }; }
1.1       millert  1713:                ;;
                   1714: esac
1.9       millert  1715: fi;
1.1       millert  1716:
1.9       millert  1717: echo "$as_me:1717: checking how long a line in the log file should be" >&5
                   1718: echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6
1.1       millert  1719:
                   1720: # Check whether --with-loglen or --without-loglen was given.
                   1721: if test "${with_loglen+set}" = set; then
                   1722:   withval="$with_loglen"
1.9       millert  1723:   case $with_loglen in
                   1724:     yes)       { { echo "$as_me:1724: error: \"must give --with-loglen an argument.\"" >&5
                   1725: echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
                   1726:    { (exit 1); exit 1; }; }
1.1       millert  1727:                ;;
1.9       millert  1728:     no)                { { echo "$as_me:1728: error: \"--without-loglen not supported.\"" >&5
                   1729: echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
                   1730:    { (exit 1); exit 1; }; }
1.1       millert  1731:                ;;
1.9       millert  1732:     [0-9]*)    loglen=$with_loglen
1.1       millert  1733:                ;;
1.9       millert  1734:     *)         { { echo "$as_me:1734: error: \"you must enter a number, not $with_loglen\"" >&5
                   1735: echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
                   1736:    { (exit 1); exit 1; }; }
1.1       millert  1737:                ;;
                   1738: esac
1.9       millert  1739: fi;
                   1740:
                   1741: cat >>confdefs.h <<EOF
                   1742: #define MAXLOGFILELEN $loglen
1.1       millert  1743: EOF
                   1744:
1.9       millert  1745: echo "$as_me:1745: result: $loglen" >&5
                   1746: echo "${ECHO_T}$loglen" >&6
                   1747:
                   1748: echo "$as_me:1748: checking whether sudo should ignore '.' or '' in \$PATH" >&5
                   1749: echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6
1.1       millert  1750:
                   1751: # Check whether --with-ignore-dot or --without-ignore-dot was given.
                   1752: if test "${with_ignore_dot+set}" = set; then
                   1753:   withval="$with_ignore_dot"
1.9       millert  1754:   case $with_ignore_dot in
                   1755:     yes)       ignore_dot=on
1.1       millert  1756:                ;;
1.9       millert  1757:     no)                ignore_dot=off
1.1       millert  1758:                ;;
1.9       millert  1759:     *)         { { echo "$as_me:1759: error: \"--with-ignore-dot does not take an argument.\"" >&5
                   1760: echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
                   1761:    { (exit 1); exit 1; }; }
1.1       millert  1762:                ;;
                   1763: esac
1.9       millert  1764: fi;
                   1765: if test "$ignore_dot" = "on"; then
                   1766:
                   1767: cat >>confdefs.h <<\EOF
                   1768: #define IGNORE_DOT_PATH 1
                   1769: EOF
                   1770:
                   1771:     echo "$as_me:1771: result: yes" >&5
                   1772: echo "${ECHO_T}yes" >&6
1.1       millert  1773: else
1.9       millert  1774:     echo "$as_me:1774: result: no" >&5
                   1775: echo "${ECHO_T}no" >&6
1.1       millert  1776: fi
                   1777:
1.9       millert  1778: echo "$as_me:1778: checking whether to send mail when a user is not in sudoers" >&5
                   1779: echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6
1.1       millert  1780:
1.9       millert  1781: # Check whether --with-mail-if-no-user or --without-mail-if-no-user was given.
                   1782: if test "${with_mail_if_no_user+set}" = set; then
                   1783:   withval="$with_mail_if_no_user"
                   1784:   case $with_mail_if_no_user in
                   1785:     yes)       mail_no_user=on
                   1786:                ;;
                   1787:     no)                mail_no_user=off
1.1       millert  1788:                ;;
1.9       millert  1789:     *)         { { echo "$as_me:1789: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
                   1790: echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
                   1791:    { (exit 1); exit 1; }; }
1.1       millert  1792:                ;;
1.9       millert  1793: esac
                   1794: fi;
                   1795: if test "$mail_no_user" = "on"; then
                   1796:
                   1797: cat >>confdefs.h <<\EOF
                   1798: #define SEND_MAIL_WHEN_NO_USER 1
1.1       millert  1799: EOF
                   1800:
1.9       millert  1801:     echo "$as_me:1801: result: yes" >&5
                   1802: echo "${ECHO_T}yes" >&6
1.1       millert  1803: else
1.9       millert  1804:     echo "$as_me:1804: result: no" >&5
                   1805: echo "${ECHO_T}no" >&6
1.1       millert  1806: fi
                   1807:
1.9       millert  1808: echo "$as_me:1808: checking whether to send mail when user listed but not for this host" >&5
                   1809: echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6
1.1       millert  1810:
1.9       millert  1811: # Check whether --with-mail-if-no-host or --without-mail-if-no-host was given.
                   1812: if test "${with_mail_if_no_host+set}" = set; then
                   1813:   withval="$with_mail_if_no_host"
                   1814:   case $with_mail_if_no_host in
                   1815:     yes)       mail_no_host=on
1.1       millert  1816:                ;;
1.9       millert  1817:     no)                mail_no_host=off
1.1       millert  1818:                ;;
1.9       millert  1819:     *)         { { echo "$as_me:1819: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
                   1820: echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
                   1821:    { (exit 1); exit 1; }; }
1.1       millert  1822:                ;;
                   1823: esac
1.9       millert  1824: fi;
                   1825: if test "$mail_no_host" = "on"; then
                   1826:
                   1827: cat >>confdefs.h <<\EOF
                   1828: #define SEND_MAIL_WHEN_NO_HOST 1
1.1       millert  1829: EOF
                   1830:
1.9       millert  1831:     echo "$as_me:1831: result: yes" >&5
                   1832: echo "${ECHO_T}yes" >&6
                   1833: else
                   1834:     echo "$as_me:1834: result: no" >&5
                   1835: echo "${ECHO_T}no" >&6
1.1       millert  1836: fi
                   1837:
1.9       millert  1838: echo "$as_me:1838: checking whether to send mail when a user tries a disallowed command" >&5
                   1839: echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6
1.1       millert  1840:
1.9       millert  1841: # Check whether --with-mail-if-noperms or --without-mail-if-noperms was given.
                   1842: if test "${with_mail_if_noperms+set}" = set; then
                   1843:   withval="$with_mail_if_noperms"
                   1844:   case $with_mail_if_noperms in
                   1845:     yes)       mail_noperms=on
1.1       millert  1846:                ;;
1.9       millert  1847:     no)                mail_noperms=off
1.1       millert  1848:                ;;
1.9       millert  1849:     *)         { { echo "$as_me:1849: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
                   1850: echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
                   1851:    { (exit 1); exit 1; }; }
1.1       millert  1852:                ;;
                   1853: esac
1.9       millert  1854: fi;
                   1855: if test "$mail_noperms" = "on"; then
                   1856:
                   1857: cat >>confdefs.h <<\EOF
                   1858: #define SEND_MAIL_WHEN_NOT_OK 1
                   1859: EOF
                   1860:
                   1861:     echo "$as_me:1861: result: yes" >&5
                   1862: echo "${ECHO_T}yes" >&6
1.1       millert  1863: else
1.9       millert  1864:     echo "$as_me:1864: result: no" >&5
                   1865: echo "${ECHO_T}no" >&6
1.1       millert  1866: fi
                   1867:
1.9       millert  1868: echo "$as_me:1868: checking who should get the mail that sudo sends" >&5
                   1869: echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6
1.1       millert  1870:
1.9       millert  1871: # Check whether --with-mailto or --without-mailto was given.
                   1872: if test "${with_mailto+set}" = set; then
                   1873:   withval="$with_mailto"
                   1874:   case $with_mailto in
                   1875:     yes)       { { echo "$as_me:1875: error: \"must give --with-mailto an argument.\"" >&5
                   1876: echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
                   1877:    { (exit 1); exit 1; }; }
1.1       millert  1878:                ;;
1.9       millert  1879:     no)                { { echo "$as_me:1879: error: \"--without-mailto not supported.\"" >&5
                   1880: echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
                   1881:    { (exit 1); exit 1; }; }
1.1       millert  1882:                ;;
1.9       millert  1883:     *)         mailto=$with_mailto
1.1       millert  1884:                ;;
                   1885: esac
1.9       millert  1886: fi;
1.1       millert  1887:
1.9       millert  1888: cat >>confdefs.h <<EOF
                   1889: #define MAILTO "$mailto"
                   1890: EOF
1.1       millert  1891:
1.9       millert  1892: echo "$as_me:1892: result: $mailto" >&5
                   1893: echo "${ECHO_T}$mailto" >&6
1.1       millert  1894:
1.9       millert  1895: # Check whether --with-mailsubject or --without-mailsubject was given.
                   1896: if test "${with_mailsubject+set}" = set; then
                   1897:   withval="$with_mailsubject"
                   1898:   case $with_mailsubject in
                   1899:     yes)       { { echo "$as_me:1899: error: \"must give --with-mailsubject an argument.\"" >&5
                   1900: echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
                   1901:    { (exit 1); exit 1; }; }
1.1       millert  1902:                ;;
1.9       millert  1903:     no)                echo "Sorry, --without-mailsubject not supported."
1.1       millert  1904:                ;;
1.9       millert  1905:     *)         mailsub="$with_mailsubject"
                   1906:                echo "$as_me:1906: checking sudo mail subject" >&5
                   1907: echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6
                   1908:                echo "$as_me:1908: result: Using alert mail subject: $mailsub" >&5
                   1909: echo "${ECHO_T}Using alert mail subject: $mailsub" >&6
1.1       millert  1910:                ;;
                   1911: esac
1.9       millert  1912: fi;
                   1913:
                   1914: cat >>confdefs.h <<EOF
                   1915: #define MAILSUBJECT "$mailsub"
                   1916: EOF
1.1       millert  1917:
1.9       millert  1918: echo "$as_me:1918: checking for bad password prompt" >&5
                   1919: echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6
1.1       millert  1920:
                   1921: # Check whether --with-passprompt or --without-passprompt was given.
                   1922: if test "${with_passprompt+set}" = set; then
                   1923:   withval="$with_passprompt"
1.9       millert  1924:   case $with_passprompt in
                   1925:     yes)       { { echo "$as_me:1925: error: \"must give --with-passprompt an argument.\"" >&5
                   1926: echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
                   1927:    { (exit 1); exit 1; }; }
1.1       millert  1928:                ;;
                   1929:     no)                echo "Sorry, --without-passprompt not supported."
                   1930:                ;;
1.9       millert  1931:     *)         passprompt="$with_passprompt"
                   1932: esac
                   1933: fi;
                   1934: echo "$as_me:1934: result: $passprompt" >&5
                   1935: echo "${ECHO_T}$passprompt" >&6
1.1       millert  1936:
1.9       millert  1937: cat >>confdefs.h <<EOF
                   1938: #define PASSPROMPT "$passprompt"
1.1       millert  1939: EOF
                   1940:
1.9       millert  1941: echo "$as_me:1941: checking for bad password message" >&5
                   1942: echo $ECHO_N "checking for bad password message... $ECHO_C" >&6
1.1       millert  1943:
                   1944: # Check whether --with-badpass-message or --without-badpass-message was given.
                   1945: if test "${with_badpass_message+set}" = set; then
                   1946:   withval="$with_badpass_message"
1.9       millert  1947:   case $with_badpass_message in
                   1948:     yes)       { { echo "$as_me:1948: error: \"Must give --with-badpass-message an argument.\"" >&5
                   1949: echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
                   1950:    { (exit 1); exit 1; }; }
1.1       millert  1951:                ;;
                   1952:     no)                echo "Sorry, --without-badpass-message not supported."
                   1953:                ;;
1.9       millert  1954:     *)         badpass_message="$with_badpass_message"
1.1       millert  1955:                ;;
                   1956: esac
1.9       millert  1957: fi;
                   1958:
                   1959: cat >>confdefs.h <<EOF
                   1960: #define INCORRECT_PASSWORD "$badpass_message"
1.1       millert  1961: EOF
                   1962:
1.9       millert  1963: echo "$as_me:1963: result: $badpass_message" >&5
                   1964: echo "${ECHO_T}$badpass_message" >&6
                   1965:
                   1966: echo "$as_me:1966: checking whether to expect fully qualified hosts in sudoers" >&5
                   1967: echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6
1.1       millert  1968:
                   1969: # Check whether --with-fqdn or --without-fqdn was given.
                   1970: if test "${with_fqdn+set}" = set; then
                   1971:   withval="$with_fqdn"
1.9       millert  1972:   case $with_fqdn in
                   1973:     yes)       fqdn=on
1.1       millert  1974:                ;;
1.9       millert  1975:     no)                fqdn=off
1.1       millert  1976:                ;;
1.9       millert  1977:     *)         { { echo "$as_me:1977: error: \"--with-fqdn does not take an argument.\"" >&5
                   1978: echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
                   1979:    { (exit 1); exit 1; }; }
1.1       millert  1980:                ;;
                   1981: esac
1.9       millert  1982: fi;
                   1983: if test "$fqdn" = "on"; then
                   1984:
                   1985: cat >>confdefs.h <<\EOF
                   1986: #define FQDN 1
                   1987: EOF
                   1988:
                   1989:     echo "$as_me:1989: result: yes" >&5
                   1990: echo "${ECHO_T}yes" >&6
1.1       millert  1991: else
1.9       millert  1992:     echo "$as_me:1992: result: no" >&5
                   1993: echo "${ECHO_T}no" >&6
1.1       millert  1994: fi
                   1995:
                   1996: # Check whether --with-timedir or --without-timedir was given.
                   1997: if test "${with_timedir+set}" = set; then
                   1998:   withval="$with_timedir"
1.9       millert  1999:   case $with_timedir in
                   2000:     yes)       { { echo "$as_me:2000: error: \"must give --with-timedir an argument.\"" >&5
                   2001: echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
                   2002:    { (exit 1); exit 1; }; }
1.1       millert  2003:                ;;
1.9       millert  2004:     no)                { { echo "$as_me:2004: error: \"--without-timedir not supported.\"" >&5
                   2005: echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
                   2006:    { (exit 1); exit 1; }; }
1.1       millert  2007:                ;;
                   2008: esac
1.9       millert  2009: fi;
1.1       millert  2010:
                   2011: # Check whether --with-sendmail or --without-sendmail was given.
                   2012: if test "${with_sendmail+set}" = set; then
                   2013:   withval="$with_sendmail"
1.9       millert  2014:   case $with_sendmail in
1.1       millert  2015:     yes)       with_sendmail=""
                   2016:                ;;
                   2017:     no)                ;;
1.9       millert  2018:     *)         cat >>confdefs.h <<EOF
                   2019: #define _PATH_SUDO_SENDMAIL "$with_sendmail"
1.1       millert  2020: EOF
                   2021:
                   2022:                ;;
                   2023: esac
1.9       millert  2024: fi;
1.1       millert  2025:
                   2026: # Check whether --with-sudoers-mode or --without-sudoers-mode was given.
                   2027: if test "${with_sudoers_mode+set}" = set; then
                   2028:   withval="$with_sudoers_mode"
1.9       millert  2029:   case $with_sudoers_mode in
                   2030:     yes)       { { echo "$as_me:2030: error: \"must give --with-sudoers-mode an argument.\"" >&5
                   2031: echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
                   2032:    { (exit 1); exit 1; }; }
                   2033:                ;;
                   2034:     no)                { { echo "$as_me:2034: error: \"--without-sudoers-mode not supported.\"" >&5
                   2035: echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
                   2036:    { (exit 1); exit 1; }; }
1.1       millert  2037:                ;;
                   2038:     [1-9]*)    SUDOERS_MODE=0${with_sudoers_mode}
                   2039:                ;;
                   2040:     0*)                SUDOERS_MODE=$with_sudoers_mode
                   2041:                ;;
1.9       millert  2042:     *)         { { echo "$as_me:2042: error: \"you must use a numeric uid, not a name.\"" >&5
                   2043: echo "$as_me: error: \"you must use a numeric uid, not a name.\"" >&2;}
                   2044:    { (exit 1); exit 1; }; }
1.1       millert  2045:                ;;
                   2046: esac
1.9       millert  2047: fi;
1.1       millert  2048:
                   2049: # Check whether --with-sudoers-uid or --without-sudoers-uid was given.
                   2050: if test "${with_sudoers_uid+set}" = set; then
                   2051:   withval="$with_sudoers_uid"
1.9       millert  2052:   case $with_sudoers_uid in
                   2053:     yes)       { { echo "$as_me:2053: error: \"must give --with-sudoers-uid an argument.\"" >&5
                   2054: echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
                   2055:    { (exit 1); exit 1; }; }
                   2056:                ;;
                   2057:     no)                { { echo "$as_me:2057: error: \"--without-sudoers-uid not supported.\"" >&5
                   2058: echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
                   2059:    { (exit 1); exit 1; }; }
1.1       millert  2060:                ;;
                   2061:     [0-9]*)    SUDOERS_UID=$with_sudoers_uid
                   2062:                ;;
1.9       millert  2063:     *)         { { echo "$as_me:2063: error: \"you must use a numeric uid, not a name.\"" >&5
                   2064: echo "$as_me: error: \"you must use a numeric uid, not a name.\"" >&2;}
                   2065:    { (exit 1); exit 1; }; }
1.1       millert  2066:                ;;
                   2067: esac
1.9       millert  2068: fi;
1.1       millert  2069:
                   2070: # Check whether --with-sudoers-gid or --without-sudoers-gid was given.
                   2071: if test "${with_sudoers_gid+set}" = set; then
                   2072:   withval="$with_sudoers_gid"
1.9       millert  2073:   case $with_sudoers_gid in
                   2074:     yes)       { { echo "$as_me:2074: error: \"must give --with-sudoers-gid an argument.\"" >&5
                   2075: echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
                   2076:    { (exit 1); exit 1; }; }
                   2077:                ;;
                   2078:     no)                { { echo "$as_me:2078: error: \"--without-sudoers-gid not supported.\"" >&5
                   2079: echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
                   2080:    { (exit 1); exit 1; }; }
1.1       millert  2081:                ;;
                   2082:     [0-9]*)    SUDOERS_GID=$with_sudoers_gid
                   2083:                ;;
1.9       millert  2084:     *)         { { echo "$as_me:2084: error: \"you must use a numeric gid, not a name.\"" >&5
                   2085: echo "$as_me: error: \"you must use a numeric gid, not a name.\"" >&2;}
                   2086:    { (exit 1); exit 1; }; }
1.1       millert  2087:                ;;
                   2088: esac
1.9       millert  2089: fi;
1.1       millert  2090:
1.9       millert  2091: echo "$as_me:2091: checking for umask programs should be run with" >&5
                   2092: echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6
1.1       millert  2093:
                   2094: # Check whether --with-umask or --without-umask was given.
                   2095: if test "${with_umask+set}" = set; then
                   2096:   withval="$with_umask"
1.9       millert  2097:   case $with_umask in
                   2098:     yes)       { { echo "$as_me:2098: error: \"must give --with-umask an argument.\"" >&5
                   2099: echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
                   2100:    { (exit 1); exit 1; }; }
1.1       millert  2101:                ;;
1.9       millert  2102:     no)                sudo_umask=0777
1.1       millert  2103:                ;;
1.9       millert  2104:     [0-9]*)    sudo_umask=$with_umask
1.1       millert  2105:                ;;
1.9       millert  2106:     *)         { { echo "$as_me:2106: error: \"you must enter a numeric mask.\"" >&5
                   2107: echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
                   2108:    { (exit 1); exit 1; }; }
1.1       millert  2109:                ;;
                   2110: esac
1.9       millert  2111: fi;
                   2112:
                   2113: cat >>confdefs.h <<EOF
                   2114: #define SUDO_UMASK $sudo_umask
                   2115: EOF
                   2116:
                   2117: if test "$sudo_umask" = "0777"; then
                   2118:     echo "$as_me:2118: result: user" >&5
                   2119: echo "${ECHO_T}user" >&6
1.1       millert  2120: else
1.9       millert  2121:     echo "$as_me:2121: result: $sudo_umask" >&5
                   2122: echo "${ECHO_T}$sudo_umask" >&6
1.1       millert  2123: fi
                   2124:
1.9       millert  2125: echo "$as_me:2125: checking for default user to run commands as" >&5
                   2126: echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6
1.1       millert  2127:
                   2128: # Check whether --with-runas-default or --without-runas-default was given.
                   2129: if test "${with_runas_default+set}" = set; then
                   2130:   withval="$with_runas_default"
1.9       millert  2131:   case $with_runas_default in
                   2132:     yes)       { { echo "$as_me:2132: error: \"must give --with-runas-default an argument.\"" >&5
                   2133: echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
                   2134:    { (exit 1); exit 1; }; }
1.1       millert  2135:                ;;
1.9       millert  2136:     no)                { { echo "$as_me:2136: error: \"--without-runas-default not supported.\"" >&5
                   2137: echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
                   2138:    { (exit 1); exit 1; }; }
1.1       millert  2139:                ;;
1.9       millert  2140:     *)         runas_default="$with_runas_default"
1.1       millert  2141:                ;;
                   2142: esac
1.9       millert  2143: fi;
                   2144:
                   2145: cat >>confdefs.h <<EOF
                   2146: #define RUNAS_DEFAULT "$runas_default"
1.1       millert  2147: EOF
                   2148:
1.9       millert  2149: echo "$as_me:2149: result: $runas_default" >&5
                   2150: echo "${ECHO_T}$runas_default" >&6
1.1       millert  2151:
                   2152: # Check whether --with-exempt or --without-exempt was given.
                   2153: if test "${with_exempt+set}" = set; then
                   2154:   withval="$with_exempt"
1.9       millert  2155:   case $with_exempt in
                   2156:     yes)       { { echo "$as_me:2156: error: \"must give --with-exempt an argument.\"" >&5
                   2157: echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
                   2158:    { (exit 1); exit 1; }; }
                   2159:                ;;
                   2160:     no)                { { echo "$as_me:2160: error: \"--without-exempt not supported.\"" >&5
                   2161: echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
                   2162:    { (exit 1); exit 1; }; }
1.1       millert  2163:                ;;
1.9       millert  2164:     *)
                   2165: cat >>confdefs.h <<EOF
1.1       millert  2166: #define EXEMPTGROUP "$with_exempt"
                   2167: EOF
                   2168:
1.9       millert  2169:                echo "$as_me:2169: checking for group to be exempt from password" >&5
                   2170: echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6
                   2171:                echo "$as_me:2171: result: $with_exempt" >&5
                   2172: echo "${ECHO_T}$with_exempt" >&6
1.1       millert  2173:                ;;
                   2174: esac
1.9       millert  2175: fi;
1.1       millert  2176:
1.9       millert  2177: echo "$as_me:2177: checking for editor that visudo should use" >&5
                   2178: echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6
1.1       millert  2179:
                   2180: # Check whether --with-editor or --without-editor was given.
                   2181: if test "${with_editor+set}" = set; then
                   2182:   withval="$with_editor"
1.9       millert  2183:   case $with_editor in
                   2184:     yes)       { { echo "$as_me:2184: error: \"must give --with-editor an argument.\"" >&5
                   2185: echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
                   2186:    { (exit 1); exit 1; }; }
                   2187:                ;;
                   2188:     no)                { { echo "$as_me:2188: error: \"--without-editor not supported.\"" >&5
                   2189: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
                   2190:    { (exit 1); exit 1; }; }
1.1       millert  2191:                ;;
1.9       millert  2192:     *)
                   2193: cat >>confdefs.h <<EOF
1.1       millert  2194: #define EDITOR "$with_editor"
                   2195: EOF
                   2196:
1.9       millert  2197:                echo "$as_me:2197: result: $with_editor" >&5
                   2198: echo "${ECHO_T}$with_editor" >&6
1.1       millert  2199:                ;;
                   2200: esac
                   2201: else
1.9       millert  2202:   cat >>confdefs.h <<\EOF
1.1       millert  2203: #define EDITOR _PATH_VI
                   2204: EOF
1.9       millert  2205:  echo "$as_me:2205: result: vi" >&5
                   2206: echo "${ECHO_T}vi" >&6
                   2207: fi;
1.1       millert  2208:
1.9       millert  2209: echo "$as_me:2209: checking whether to obey EDITOR and VISUAL environment variables" >&5
                   2210: echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6
1.1       millert  2211:
                   2212: # Check whether --with-env-editor or --without-env-editor was given.
                   2213: if test "${with_env_editor+set}" = set; then
                   2214:   withval="$with_env_editor"
1.9       millert  2215:   case $with_env_editor in
                   2216:     yes)       env_editor=on
1.1       millert  2217:                ;;
1.9       millert  2218:     no)                env_editor=off
1.1       millert  2219:                ;;
1.9       millert  2220:     *)         { { echo "$as_me:2220: error: \"--with-env-editor does not take an argument.\"" >&5
                   2221: echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
                   2222:    { (exit 1); exit 1; }; }
1.1       millert  2223:                ;;
                   2224: esac
1.9       millert  2225: fi;
                   2226: if test "$env_editor" = "on"; then
                   2227:
                   2228: cat >>confdefs.h <<\EOF
                   2229: #define ENV_EDITOR 1
                   2230: EOF
                   2231:
                   2232:     echo "$as_me:2232: result: yes" >&5
                   2233: echo "${ECHO_T}yes" >&6
1.1       millert  2234: else
1.9       millert  2235:     echo "$as_me:2235: result: no" >&5
                   2236: echo "${ECHO_T}no" >&6
1.1       millert  2237: fi
                   2238:
1.9       millert  2239: echo "$as_me:2239: checking number of tries a user gets to enter their password" >&5
                   2240: echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6
1.1       millert  2241:
                   2242: # Check whether --with-passwd-tries or --without-passwd-tries was given.
                   2243: if test "${with_passwd_tries+set}" = set; then
                   2244:   withval="$with_passwd_tries"
1.9       millert  2245:   case $with_passwd_tries in
                   2246:     yes)       ;;
                   2247:     no)                { { echo "$as_me:2247: error: \"--without-editor not supported.\"" >&5
                   2248: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
                   2249:    { (exit 1); exit 1; }; }
1.1       millert  2250:                ;;
1.9       millert  2251:     [1-9]*)    passwd_tries=$with_passwd_tries
1.1       millert  2252:                ;;
1.9       millert  2253:     *)         { { echo "$as_me:2253: error: \"you must enter the numer of tries, > 0\"" >&5
                   2254: echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
                   2255:    { (exit 1); exit 1; }; }
1.1       millert  2256:                ;;
                   2257: esac
1.9       millert  2258: fi;
                   2259:
                   2260: cat >>confdefs.h <<EOF
                   2261: #define TRIES_FOR_PASSWORD $passwd_tries
1.1       millert  2262: EOF
                   2263:
1.9       millert  2264: echo "$as_me:2264: result: $passwd_tries" >&5
                   2265: echo "${ECHO_T}$passwd_tries" >&6
                   2266:
                   2267: echo "$as_me:2267: checking time in minutes after which sudo will ask for a password again" >&5
                   2268: echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6
1.1       millert  2269:
                   2270: # Check whether --with-timeout or --without-timeout was given.
                   2271: if test "${with_timeout+set}" = set; then
                   2272:   withval="$with_timeout"
1.9       millert  2273:   echo $with_timeout; case $with_timeout in
                   2274:     yes)       ;;
                   2275:     no)                timeout=0
1.1       millert  2276:                ;;
1.9       millert  2277:     [0-9]*)    timeout=$with_timeout
1.1       millert  2278:                ;;
1.9       millert  2279:     *)         { { echo "$as_me:2279: error: \"you must enter the numer of minutes.\"" >&5
                   2280: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
                   2281:    { (exit 1); exit 1; }; }
1.1       millert  2282:                ;;
                   2283: esac
1.9       millert  2284: fi;
                   2285:
                   2286: cat >>confdefs.h <<EOF
                   2287: #define TIMEOUT $timeout
1.1       millert  2288: EOF
                   2289:
1.9       millert  2290: echo "$as_me:2290: result: $timeout" >&5
                   2291: echo "${ECHO_T}$timeout" >&6
                   2292:
                   2293: echo "$as_me:2293: checking time in minutes after the password prompt will time out" >&5
                   2294: echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6
1.1       millert  2295:
                   2296: # Check whether --with-password-timeout or --without-password-timeout was given.
                   2297: if test "${with_password_timeout+set}" = set; then
                   2298:   withval="$with_password_timeout"
1.9       millert  2299:   case $with_password_timeout in
                   2300:     yes)       ;;
                   2301:     no)                password_timeout=0
1.1       millert  2302:                ;;
1.9       millert  2303:     [0-9]*)    password_timeout=$with_password_timeout
1.1       millert  2304:                ;;
1.9       millert  2305:     *)         { { echo "$as_me:2305: error: \"you must enter the numer of minutes.\"" >&5
                   2306: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
                   2307:    { (exit 1); exit 1; }; }
1.1       millert  2308:                ;;
                   2309: esac
1.9       millert  2310: fi;
                   2311:
                   2312: cat >>confdefs.h <<EOF
                   2313: #define PASSWORD_TIMEOUT $password_timeout
1.1       millert  2314: EOF
                   2315:
1.9       millert  2316: echo "$as_me:2316: result: $password_timeout" >&5
                   2317: echo "${ECHO_T}$password_timeout" >&6
1.1       millert  2318:
                   2319: # Check whether --with-execv or --without-execv was given.
                   2320: if test "${with_execv+set}" = set; then
                   2321:   withval="$with_execv"
1.9       millert  2322:   case $with_execv in
                   2323:     yes)       echo "$as_me:2323: checking whether to use execvp or execv" >&5
                   2324: echo $ECHO_N "checking whether to use execvp or execv... $ECHO_C" >&6
                   2325:                echo "$as_me:2325: result: execv" >&5
                   2326: echo "${ECHO_T}execv" >&6
                   2327:
                   2328: cat >>confdefs.h <<\EOF
1.1       millert  2329: #define USE_EXECV 1
                   2330: EOF
                   2331:
                   2332:                ;;
1.9       millert  2333:     no)                ;;
                   2334:     *)         { { echo "$as_me:2334: error: \"--with-execv does not take an argument.\"" >&5
                   2335: echo "$as_me: error: \"--with-execv does not take an argument.\"" >&2;}
                   2336:    { (exit 1); exit 1; }; }
1.1       millert  2337:                ;;
                   2338: esac
1.9       millert  2339: fi;
1.1       millert  2340:
1.9       millert  2341: echo "$as_me:2341: checking whether to use per-tty ticket files" >&5
                   2342: echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6
1.1       millert  2343:
                   2344: # Check whether --with-tty-tickets or --without-tty-tickets was given.
                   2345: if test "${with_tty_tickets+set}" = set; then
                   2346:   withval="$with_tty_tickets"
1.9       millert  2347:   case $with_tty_tickets in
                   2348:     yes)       tty_tickets=on
1.1       millert  2349:                ;;
1.9       millert  2350:     no)                tty_tickets=off
1.1       millert  2351:                ;;
1.9       millert  2352:     *)         { { echo "$as_me:2352: error: \"--with-tty-tickets does not take an argument.\"" >&5
                   2353: echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
                   2354:    { (exit 1); exit 1; }; }
1.1       millert  2355:                ;;
                   2356: esac
1.9       millert  2357: fi;
                   2358: if test "$tty_tickets" = "on"; then
                   2359:
                   2360: cat >>confdefs.h <<\EOF
                   2361: #define USE_TTY_TICKETS 1
                   2362: EOF
                   2363:
                   2364:     echo "$as_me:2364: result: yes" >&5
                   2365: echo "${ECHO_T}yes" >&6
1.1       millert  2366: else
1.9       millert  2367:     echo "$as_me:2367: result: no" >&5
                   2368: echo "${ECHO_T}no" >&6
1.1       millert  2369: fi
                   2370:
1.9       millert  2371: echo "$as_me:2371: checking whether to include insults" >&5
                   2372: echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6
1.1       millert  2373:
                   2374: # Check whether --with-insults or --without-insults was given.
                   2375: if test "${with_insults+set}" = set; then
                   2376:   withval="$with_insults"
1.9       millert  2377:   case $with_insults in
                   2378:     yes)       insults=on
1.1       millert  2379:                with_classic_insults=yes
                   2380:                with_csops_insults=yes
                   2381:                ;;
1.9       millert  2382:     no)                insults=off
1.1       millert  2383:                ;;
1.9       millert  2384:     *)         { { echo "$as_me:2384: error: \"--with-insults does not take an argument.\"" >&5
                   2385: echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
                   2386:    { (exit 1); exit 1; }; }
1.1       millert  2387:                ;;
                   2388: esac
1.9       millert  2389: fi;
                   2390: if test "$insults" = "on"; then
                   2391:
                   2392: cat >>confdefs.h <<\EOF
                   2393: #define USE_INSULTS 1
                   2394: EOF
                   2395:
                   2396:     echo "$as_me:2396: result: yes" >&5
                   2397: echo "${ECHO_T}yes" >&6
1.1       millert  2398: else
1.9       millert  2399:     echo "$as_me:2399: result: no" >&5
                   2400: echo "${ECHO_T}no" >&6
1.1       millert  2401: fi
                   2402:
                   2403: # Check whether --with-all-insults or --without-all-insults was given.
                   2404: if test "${with_all_insults+set}" = set; then
                   2405:   withval="$with_all_insults"
1.9       millert  2406:   case $with_all_insults in
1.1       millert  2407:     yes)       with_classic_insults=yes
                   2408:                with_csops_insults=yes
                   2409:                with_hal_insults=yes
                   2410:                with_goons_insults=yes
                   2411:                ;;
                   2412:     no)                ;;
1.9       millert  2413:     *)         { { echo "$as_me:2413: error: \"--with-all-insults does not take an argument.\"" >&5
                   2414: echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
                   2415:    { (exit 1); exit 1; }; }
1.1       millert  2416:                ;;
                   2417: esac
1.9       millert  2418: fi;
1.1       millert  2419:
                   2420: # Check whether --with-classic-insults or --without-classic-insults was given.
                   2421: if test "${with_classic_insults+set}" = set; then
                   2422:   withval="$with_classic_insults"
1.9       millert  2423:   case $with_classic_insults in
                   2424:     yes)
                   2425: cat >>confdefs.h <<\EOF
1.1       millert  2426: #define CLASSIC_INSULTS 1
                   2427: EOF
                   2428:
                   2429:                ;;
                   2430:     no)                ;;
1.9       millert  2431:     *)         { { echo "$as_me:2431: error: \"--with-classic-insults does not take an argument.\"" >&5
                   2432: echo "$as_me: error: \"--with-classic-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-csops-insults or --without-csops-insults was given.
                   2439: if test "${with_csops_insults+set}" = set; then
                   2440:   withval="$with_csops_insults"
1.9       millert  2441:   case $with_csops_insults in
                   2442:     yes)
                   2443: cat >>confdefs.h <<\EOF
1.1       millert  2444: #define CSOPS_INSULTS 1
                   2445: EOF
                   2446:
                   2447:                ;;
                   2448:     no)                ;;
1.9       millert  2449:     *)         { { echo "$as_me:2449: error: \"--with-csops-insults does not take an argument.\"" >&5
                   2450: echo "$as_me: error: \"--with-csops-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-hal-insults or --without-hal-insults was given.
                   2457: if test "${with_hal_insults+set}" = set; then
                   2458:   withval="$with_hal_insults"
1.9       millert  2459:   case $with_hal_insults in
                   2460:     yes)
                   2461: cat >>confdefs.h <<\EOF
1.1       millert  2462: #define HAL_INSULTS 1
                   2463: EOF
                   2464:
                   2465:                ;;
                   2466:     no)                ;;
1.9       millert  2467:     *)         { { echo "$as_me:2467: error: \"--with-hal-insults does not take an argument.\"" >&5
                   2468: echo "$as_me: error: \"--with-hal-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-goons-insults or --without-goons-insults was given.
                   2475: if test "${with_goons_insults+set}" = set; then
                   2476:   withval="$with_goons_insults"
1.9       millert  2477:   case $with_goons_insults in
                   2478:     yes)
                   2479: cat >>confdefs.h <<\EOF
1.1       millert  2480: #define GOONS_INSULTS 1
                   2481: EOF
                   2482:
                   2483:                ;;
                   2484:     no)                ;;
1.9       millert  2485:     *)         { { echo "$as_me:2485: error: \"--with-goons-insults does not take an argument.\"" >&5
                   2486: echo "$as_me: error: \"--with-goons-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:
1.9       millert  2492: if test "$insults" = "on"; then
                   2493:     echo "$as_me:2493: checking which insult sets to include" >&5
                   2494: echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6
1.1       millert  2495:     i=""
                   2496:     test "$with_goons_insults" = "yes" && i="goons ${i}"
                   2497:     test "$with_hal_insults" = "yes" && i="hal ${i}"
                   2498:     test "$with_csops_insults" = "yes" && i="csops ${i}"
                   2499:     test "$with_classic_insults" = "yes" && i="classic ${i}"
1.9       millert  2500:     echo "$as_me:2500: result: $i" >&5
                   2501: echo "${ECHO_T}$i" >&6
1.1       millert  2502: fi
                   2503:
1.9       millert  2504: echo "$as_me:2504: checking whether to override the user's path" >&5
                   2505: echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6
                   2506:
1.1       millert  2507: # Check whether --with-secure-path or --without-secure-path was given.
                   2508: if test "${with_secure_path+set}" = set; then
                   2509:   withval="$with_secure_path"
1.9       millert  2510:   case $with_secure_path in
                   2511:     yes)
                   2512: cat >>confdefs.h <<EOF
1.1       millert  2513: #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
                   2514: EOF
                   2515:
1.9       millert  2516:                echo "$as_me:2516: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
                   2517: echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6
1.1       millert  2518:                ;;
1.9       millert  2519:     no)                echo "$as_me:2519: result: no" >&5
                   2520: echo "${ECHO_T}no" >&6
1.1       millert  2521:                ;;
1.9       millert  2522:     *)         cat >>confdefs.h <<EOF
1.1       millert  2523: #define SECURE_PATH "$with_secure_path"
                   2524: EOF
                   2525:
1.9       millert  2526:                echo "$as_me:2526: result: $with_secure_path" >&5
                   2527: echo "${ECHO_T}$with_secure_path" >&6
1.1       millert  2528:                ;;
                   2529: esac
                   2530: else
1.9       millert  2531:   echo "$as_me:2531: result: no" >&5
                   2532: echo "${ECHO_T}no" >&6
                   2533: fi;
1.1       millert  2534:
1.9       millert  2535: echo "$as_me:2535: checking whether to get ip addresses from the network interfaces" >&5
                   2536: echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6
1.1       millert  2537:
                   2538: # Check whether --with-interfaces or --without-interfaces was given.
                   2539: if test "${with_interfaces+set}" = set; then
                   2540:   withval="$with_interfaces"
1.9       millert  2541:   case $with_interfaces in
                   2542:     yes)       echo "$as_me:2542: result: yes" >&5
                   2543: echo "${ECHO_T}yes" >&6
1.1       millert  2544:                ;;
1.9       millert  2545:     no)
                   2546: cat >>confdefs.h <<\EOF
1.1       millert  2547: #define STUB_LOAD_INTERFACES 1
                   2548: EOF
                   2549:
1.9       millert  2550:                echo "$as_me:2550: result: no" >&5
                   2551: echo "${ECHO_T}no" >&6
1.1       millert  2552:                ;;
1.9       millert  2553:     *)         { { echo "$as_me:2553: error: \"--with-interfaces does not take an argument.\"" >&5
                   2554: echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
                   2555:    { (exit 1); exit 1; }; }
1.1       millert  2556:                ;;
                   2557: esac
                   2558: else
1.9       millert  2559:   echo "$as_me:2559: result: yes" >&5
                   2560: echo "${ECHO_T}yes" >&6
                   2561: fi;
1.1       millert  2562:
1.9       millert  2563: echo "$as_me:2563: checking whether to do user authentication by default" >&5
                   2564: echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6
1.1       millert  2565: # Check whether --enable-authentication or --disable-authentication was given.
                   2566: if test "${enable_authentication+set}" = set; then
                   2567:   enableval="$enable_authentication"
                   2568:    case "$enableval" in
1.9       millert  2569:     yes)       echo "$as_me:2569: result: yes" >&5
                   2570: echo "${ECHO_T}yes" >&6
1.1       millert  2571:                ;;
1.9       millert  2572:     no)                echo "$as_me:2572: result: no" >&5
                   2573: echo "${ECHO_T}no" >&6
                   2574:
                   2575: cat >>confdefs.h <<\EOF
1.1       millert  2576: #define NO_AUTHENTICATION 1
                   2577: EOF
                   2578:
                   2579:                ;;
1.9       millert  2580:     *)         echo "$as_me:2580: result: no" >&5
                   2581: echo "${ECHO_T}no" >&6
1.1       millert  2582:                echo "Ignoring unknown argument to --enable-authentication: $enableval"
                   2583:                ;;
                   2584:   esac
                   2585:
                   2586: else
1.9       millert  2587:   echo "$as_me:2587: result: yes" >&5
                   2588: echo "${ECHO_T}yes" >&6
                   2589: fi;
1.1       millert  2590:
1.9       millert  2591: echo "$as_me:2591: checking whether to disable shadow password support" >&5
                   2592: echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6
1.1       millert  2593: # Check whether --enable-shadow or --disable-shadow was given.
                   2594: if test "${enable_shadow+set}" = set; then
                   2595:   enableval="$enable_shadow"
                   2596:    case "$enableval" in
1.9       millert  2597:     yes)       echo "$as_me:2597: result: no" >&5
                   2598: echo "${ECHO_T}no" >&6
1.1       millert  2599:                ;;
1.9       millert  2600:     no)                echo "$as_me:2600: result: yes" >&5
                   2601: echo "${ECHO_T}yes" >&6
1.1       millert  2602:                CHECKSHADOW="false"
                   2603:                ;;
1.9       millert  2604:     *)         echo "$as_me:2604: result: no" >&5
                   2605: echo "${ECHO_T}no" >&6
1.1       millert  2606:                echo "Ignoring unknown argument to --enable-shadow: $enableval"
                   2607:                ;;
                   2608:   esac
                   2609:
                   2610: else
1.9       millert  2611:   echo "$as_me:2611: result: no" >&5
                   2612: echo "${ECHO_T}no" >&6
                   2613: fi;
1.1       millert  2614:
1.9       millert  2615: echo "$as_me:2615: checking whether root should be allowed to use sudo" >&5
                   2616: echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6
1.1       millert  2617: # Check whether --enable-root-sudo or --disable-root-sudo was given.
                   2618: if test "${enable_root_sudo+set}" = set; then
                   2619:   enableval="$enable_root_sudo"
1.9       millert  2620:    case "$enableval" in
                   2621:     yes)       echo "$as_me:2621: result: yes" >&5
                   2622: echo "${ECHO_T}yes" >&6
1.1       millert  2623:                ;;
1.9       millert  2624:     no)
                   2625: cat >>confdefs.h <<\EOF
1.1       millert  2626: #define NO_ROOT_SUDO 1
                   2627: EOF
                   2628:
1.9       millert  2629:                echo "$as_me:2629: result: no" >&5
                   2630: echo "${ECHO_T}no" >&6
1.1       millert  2631:                ;;
1.9       millert  2632:     *)         { { echo "$as_me:2632: error: \"--enable-root-sudo does not take an argument.\"" >&5
                   2633: echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
                   2634:    { (exit 1); exit 1; }; }
1.1       millert  2635:                ;;
                   2636:   esac
                   2637:
                   2638: else
1.9       millert  2639:   echo "$as_me:2639: result: yes" >&5
                   2640: echo "${ECHO_T}yes" >&6
                   2641: fi;
1.1       millert  2642:
1.9       millert  2643: echo "$as_me:2643: checking whether to log the hostname in the log file" >&5
                   2644: echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6
1.1       millert  2645: # Check whether --enable-log-host or --disable-log-host was given.
                   2646: if test "${enable_log_host+set}" = set; then
                   2647:   enableval="$enable_log_host"
                   2648:    case "$enableval" in
1.9       millert  2649:     yes)       echo "$as_me:2649: result: yes" >&5
                   2650: echo "${ECHO_T}yes" >&6
                   2651:
                   2652: cat >>confdefs.h <<\EOF
1.1       millert  2653: #define HOST_IN_LOG 1
                   2654: EOF
                   2655:
                   2656:                ;;
1.9       millert  2657:     no)                echo "$as_me:2657: result: no" >&5
                   2658: echo "${ECHO_T}no" >&6
1.1       millert  2659:                ;;
1.9       millert  2660:     *)         echo "$as_me:2660: result: no" >&5
                   2661: echo "${ECHO_T}no" >&6
1.1       millert  2662:                echo "Ignoring unknown argument to --enable-log-host: $enableval"
                   2663:                ;;
                   2664:   esac
                   2665:
                   2666: else
1.9       millert  2667:   echo "$as_me:2667: result: no" >&5
                   2668: echo "${ECHO_T}no" >&6
                   2669: fi;
1.1       millert  2670:
1.9       millert  2671: echo "$as_me:2671: checking whether to invoke a shell if sudo is given no arguments" >&5
                   2672: echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6
1.1       millert  2673: # Check whether --enable-noargs-shell or --disable-noargs-shell was given.
                   2674: if test "${enable_noargs_shell+set}" = set; then
                   2675:   enableval="$enable_noargs_shell"
                   2676:    case "$enableval" in
1.9       millert  2677:     yes)       echo "$as_me:2677: result: yes" >&5
                   2678: echo "${ECHO_T}yes" >&6
                   2679:
                   2680: cat >>confdefs.h <<\EOF
1.1       millert  2681: #define SHELL_IF_NO_ARGS 1
                   2682: EOF
                   2683:
                   2684:                ;;
1.9       millert  2685:     no)                echo "$as_me:2685: result: no" >&5
                   2686: echo "${ECHO_T}no" >&6
1.1       millert  2687:                ;;
1.9       millert  2688:     *)         echo "$as_me:2688: result: no" >&5
                   2689: echo "${ECHO_T}no" >&6
1.1       millert  2690:                echo "Ignoring unknown argument to --enable-noargs-shell: $enableval"
                   2691:                ;;
                   2692:   esac
                   2693:
                   2694: else
1.9       millert  2695:   echo "$as_me:2695: result: no" >&5
                   2696: echo "${ECHO_T}no" >&6
                   2697: fi;
1.1       millert  2698:
1.9       millert  2699: echo "$as_me:2699: checking whether to set \$HOME to target user in shell mode" >&5
                   2700: echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6
1.1       millert  2701: # Check whether --enable-shell-sets-home or --disable-shell-sets-home was given.
                   2702: if test "${enable_shell_sets_home+set}" = set; then
                   2703:   enableval="$enable_shell_sets_home"
                   2704:    case "$enableval" in
1.9       millert  2705:     yes)       echo "$as_me:2705: result: yes" >&5
                   2706: echo "${ECHO_T}yes" >&6
                   2707:
                   2708: cat >>confdefs.h <<\EOF
1.1       millert  2709: #define SHELL_SETS_HOME 1
                   2710: EOF
                   2711:
                   2712:                ;;
1.9       millert  2713:     no)                echo "$as_me:2713: result: no" >&5
                   2714: echo "${ECHO_T}no" >&6
1.1       millert  2715:                ;;
1.9       millert  2716:     *)         echo "$as_me:2716: result: no" >&5
                   2717: echo "${ECHO_T}no" >&6
1.1       millert  2718:                echo "Ignoring unknown argument to --enable-shell-sets-home: $enableval"
                   2719:                ;;
                   2720:   esac
                   2721:
                   2722: else
1.9       millert  2723:   echo "$as_me:2723: result: no" >&5
                   2724: echo "${ECHO_T}no" >&6
                   2725: fi;
1.1       millert  2726:
1.9       millert  2727: echo "$as_me:2727: checking whether to disable 'command not found' messages" >&5
                   2728: echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6
1.1       millert  2729: # Check whether --enable-path_info or --disable-path_info was given.
                   2730: if test "${enable_path_info+set}" = set; then
                   2731:   enableval="$enable_path_info"
                   2732:    case "$enableval" in
1.9       millert  2733:     yes)       echo "$as_me:2733: result: no" >&5
                   2734: echo "${ECHO_T}no" >&6
1.1       millert  2735:                ;;
1.9       millert  2736:     no)                echo "$as_me:2736: result: yes" >&5
                   2737: echo "${ECHO_T}yes" >&6
                   2738:
                   2739: cat >>confdefs.h <<\EOF
1.1       millert  2740: #define DONT_LEAK_PATH_INFO 1
                   2741: EOF
                   2742:
                   2743:                ;;
1.9       millert  2744:     *)         echo "$as_me:2744: result: no" >&5
                   2745: echo "${ECHO_T}no" >&6
1.1       millert  2746:                echo "Ignoring unknown argument to --enable-path-info: $enableval"
                   2747:                ;;
                   2748:   esac
                   2749:
                   2750: else
1.9       millert  2751:   echo "$as_me:2751: result: no" >&5
                   2752: echo "${ECHO_T}no" >&6
                   2753: fi;
1.1       millert  2754:
                   2755: # Extract the first word of "egrep", so it can be a program name with args.
                   2756: set dummy egrep; ac_word=$2
1.9       millert  2757: echo "$as_me:2757: checking for $ac_word" >&5
                   2758: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2759: if test "${ac_cv_prog_EGREPPROG+set}" = set; then
                   2760:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  2761: else
                   2762:   if test -n "$EGREPPROG"; then
                   2763:   ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
                   2764: else
1.9       millert  2765:   ac_save_IFS=$IFS; IFS=$ac_path_separator
                   2766: ac_dummy="$PATH"
                   2767: for ac_dir in $ac_dummy; do
                   2768:   IFS=$ac_save_IFS
                   2769:   test -z "$ac_dir" && ac_dir=.
                   2770:   $as_executable_p "$ac_dir/$ac_word" || continue
                   2771: ac_cv_prog_EGREPPROG="egrep"
                   2772: echo "$as_me:2772: found $ac_dir/$ac_word" >&5
                   2773: break
                   2774: done
                   2775:
1.1       millert  2776: fi
                   2777: fi
1.9       millert  2778: EGREPPROG=$ac_cv_prog_EGREPPROG
1.1       millert  2779: if test -n "$EGREPPROG"; then
1.9       millert  2780:   echo "$as_me:2780: result: $EGREPPROG" >&5
                   2781: echo "${ECHO_T}$EGREPPROG" >&6
1.1       millert  2782: else
1.9       millert  2783:   echo "$as_me:2783: result: no" >&5
                   2784: echo "${ECHO_T}no" >&6
1.1       millert  2785: fi
                   2786:
                   2787: if test -z "$EGREPPROG"; then
                   2788:     echo "Sorry, configure requires egrep to run."
                   2789:     exit
                   2790: fi
                   2791:
1.9       millert  2792: if test "$with_devel" != "yes"; then
                   2793:     ac_cv_prog_cc_g=no
                   2794: fi
                   2795:
                   2796: ac_ext=c
                   2797: ac_cpp='$CPP $CPPFLAGS'
                   2798: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2799: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2800: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   2801: if test -n "$ac_tool_prefix"; then
                   2802:   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
                   2803: set dummy ${ac_tool_prefix}gcc; ac_word=$2
                   2804: echo "$as_me:2804: checking for $ac_word" >&5
                   2805: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2806: if test "${ac_cv_prog_CC+set}" = set; then
                   2807:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  2808: else
                   2809:   if test -n "$CC"; then
                   2810:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   2811: else
1.9       millert  2812:   ac_save_IFS=$IFS; IFS=$ac_path_separator
                   2813: ac_dummy="$PATH"
                   2814: for ac_dir in $ac_dummy; do
                   2815:   IFS=$ac_save_IFS
                   2816:   test -z "$ac_dir" && ac_dir=.
                   2817:   $as_executable_p "$ac_dir/$ac_word" || continue
                   2818: ac_cv_prog_CC="${ac_tool_prefix}gcc"
                   2819: echo "$as_me:2819: found $ac_dir/$ac_word" >&5
                   2820: break
                   2821: done
                   2822:
1.1       millert  2823: fi
                   2824: fi
1.9       millert  2825: CC=$ac_cv_prog_CC
1.1       millert  2826: if test -n "$CC"; then
1.9       millert  2827:   echo "$as_me:2827: result: $CC" >&5
                   2828: echo "${ECHO_T}$CC" >&6
1.1       millert  2829: else
1.9       millert  2830:   echo "$as_me:2830: result: no" >&5
                   2831: echo "${ECHO_T}no" >&6
                   2832: fi
                   2833:
                   2834: fi
                   2835: if test -z "$ac_cv_prog_CC"; then
                   2836:   ac_ct_CC=$CC
                   2837:   # Extract the first word of "gcc", so it can be a program name with args.
                   2838: set dummy gcc; ac_word=$2
                   2839: echo "$as_me:2839: checking for $ac_word" >&5
                   2840: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2841: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   2842:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2843: else
                   2844:   if test -n "$ac_ct_CC"; then
                   2845:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   2846: else
                   2847:   ac_save_IFS=$IFS; IFS=$ac_path_separator
                   2848: ac_dummy="$PATH"
                   2849: for ac_dir in $ac_dummy; do
                   2850:   IFS=$ac_save_IFS
                   2851:   test -z "$ac_dir" && ac_dir=.
                   2852:   $as_executable_p "$ac_dir/$ac_word" || continue
                   2853: ac_cv_prog_ac_ct_CC="gcc"
                   2854: echo "$as_me:2854: found $ac_dir/$ac_word" >&5
                   2855: break
                   2856: done
                   2857:
                   2858: fi
                   2859: fi
                   2860: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   2861: if test -n "$ac_ct_CC"; then
                   2862:   echo "$as_me:2862: result: $ac_ct_CC" >&5
                   2863: echo "${ECHO_T}$ac_ct_CC" >&6
                   2864: else
                   2865:   echo "$as_me:2865: result: no" >&5
                   2866: echo "${ECHO_T}no" >&6
                   2867: fi
                   2868:
                   2869:   CC=$ac_ct_CC
                   2870: else
                   2871:   CC="$ac_cv_prog_CC"
1.1       millert  2872: fi
                   2873:
                   2874: if test -z "$CC"; then
1.9       millert  2875:   if test -n "$ac_tool_prefix"; then
                   2876:   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
                   2877: set dummy ${ac_tool_prefix}cc; ac_word=$2
                   2878: echo "$as_me:2878: checking for $ac_word" >&5
                   2879: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2880: if test "${ac_cv_prog_CC+set}" = set; then
                   2881:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2882: else
                   2883:   if test -n "$CC"; then
                   2884:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   2885: else
                   2886:   ac_save_IFS=$IFS; IFS=$ac_path_separator
                   2887: ac_dummy="$PATH"
                   2888: for ac_dir in $ac_dummy; do
                   2889:   IFS=$ac_save_IFS
                   2890:   test -z "$ac_dir" && ac_dir=.
                   2891:   $as_executable_p "$ac_dir/$ac_word" || continue
                   2892: ac_cv_prog_CC="${ac_tool_prefix}cc"
                   2893: echo "$as_me:2893: found $ac_dir/$ac_word" >&5
                   2894: break
                   2895: done
                   2896:
                   2897: fi
                   2898: fi
                   2899: CC=$ac_cv_prog_CC
                   2900: if test -n "$CC"; then
                   2901:   echo "$as_me:2901: result: $CC" >&5
                   2902: echo "${ECHO_T}$CC" >&6
                   2903: else
                   2904:   echo "$as_me:2904: result: no" >&5
                   2905: echo "${ECHO_T}no" >&6
                   2906: fi
                   2907:
                   2908: fi
                   2909: if test -z "$ac_cv_prog_CC"; then
                   2910:   ac_ct_CC=$CC
1.1       millert  2911:   # Extract the first word of "cc", so it can be a program name with args.
                   2912: set dummy cc; ac_word=$2
1.9       millert  2913: echo "$as_me:2913: checking for $ac_word" >&5
                   2914: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2915: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   2916:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   2917: else
                   2918:   if test -n "$ac_ct_CC"; then
                   2919:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   2920: else
                   2921:   ac_save_IFS=$IFS; IFS=$ac_path_separator
                   2922: ac_dummy="$PATH"
                   2923: for ac_dir in $ac_dummy; do
                   2924:   IFS=$ac_save_IFS
                   2925:   test -z "$ac_dir" && ac_dir=.
                   2926:   $as_executable_p "$ac_dir/$ac_word" || continue
                   2927: ac_cv_prog_ac_ct_CC="cc"
                   2928: echo "$as_me:2928: found $ac_dir/$ac_word" >&5
                   2929: break
                   2930: done
                   2931:
                   2932: fi
                   2933: fi
                   2934: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   2935: if test -n "$ac_ct_CC"; then
                   2936:   echo "$as_me:2936: result: $ac_ct_CC" >&5
                   2937: echo "${ECHO_T}$ac_ct_CC" >&6
                   2938: else
                   2939:   echo "$as_me:2939: result: no" >&5
                   2940: echo "${ECHO_T}no" >&6
                   2941: fi
                   2942:
                   2943:   CC=$ac_ct_CC
                   2944: else
                   2945:   CC="$ac_cv_prog_CC"
                   2946: fi
                   2947:
                   2948: fi
                   2949: if test -z "$CC"; then
                   2950:   # Extract the first word of "cc", so it can be a program name with args.
                   2951: set dummy cc; ac_word=$2
                   2952: echo "$as_me:2952: checking for $ac_word" >&5
                   2953: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   2954: if test "${ac_cv_prog_CC+set}" = set; then
                   2955:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  2956: else
                   2957:   if test -n "$CC"; then
                   2958:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   2959: else
                   2960:   ac_prog_rejected=no
1.9       millert  2961:   ac_save_IFS=$IFS; IFS=$ac_path_separator
                   2962: ac_dummy="$PATH"
                   2963: for ac_dir in $ac_dummy; do
                   2964:   IFS=$ac_save_IFS
                   2965:   test -z "$ac_dir" && ac_dir=.
                   2966:   $as_executable_p "$ac_dir/$ac_word" || continue
                   2967: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
                   2968:   ac_prog_rejected=yes
                   2969:   continue
                   2970: fi
                   2971: ac_cv_prog_CC="cc"
                   2972: echo "$as_me:2972: found $ac_dir/$ac_word" >&5
                   2973: break
                   2974: done
                   2975:
1.1       millert  2976: if test $ac_prog_rejected = yes; then
                   2977:   # We found a bogon in the path, so make sure we never use it.
                   2978:   set dummy $ac_cv_prog_CC
                   2979:   shift
1.9       millert  2980:   if test $# != 0; then
1.1       millert  2981:     # We chose a different compiler from the bogus one.
                   2982:     # However, it has the same basename, so the bogon will be chosen
                   2983:     # first if we set CC to just the basename; use the full file name.
                   2984:     shift
1.9       millert  2985:     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1.1       millert  2986:     shift
                   2987:     ac_cv_prog_CC="$@"
                   2988:   fi
                   2989: fi
                   2990: fi
                   2991: fi
1.9       millert  2992: CC=$ac_cv_prog_CC
1.1       millert  2993: if test -n "$CC"; then
1.9       millert  2994:   echo "$as_me:2994: result: $CC" >&5
                   2995: echo "${ECHO_T}$CC" >&6
                   2996: else
                   2997:   echo "$as_me:2997: result: no" >&5
                   2998: echo "${ECHO_T}no" >&6
                   2999: fi
                   3000:
                   3001: fi
                   3002: if test -z "$CC"; then
                   3003:   if test -n "$ac_tool_prefix"; then
                   3004:   for ac_prog in cl
                   3005:   do
                   3006:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   3007: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
                   3008: echo "$as_me:3008: checking for $ac_word" >&5
                   3009: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3010: if test "${ac_cv_prog_CC+set}" = set; then
                   3011:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3012: else
                   3013:   if test -n "$CC"; then
                   3014:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   3015: else
                   3016:   ac_save_IFS=$IFS; IFS=$ac_path_separator
                   3017: ac_dummy="$PATH"
                   3018: for ac_dir in $ac_dummy; do
                   3019:   IFS=$ac_save_IFS
                   3020:   test -z "$ac_dir" && ac_dir=.
                   3021:   $as_executable_p "$ac_dir/$ac_word" || continue
                   3022: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   3023: echo "$as_me:3023: found $ac_dir/$ac_word" >&5
                   3024: break
                   3025: done
                   3026:
                   3027: fi
                   3028: fi
                   3029: CC=$ac_cv_prog_CC
                   3030: if test -n "$CC"; then
                   3031:   echo "$as_me:3031: result: $CC" >&5
                   3032: echo "${ECHO_T}$CC" >&6
                   3033: else
                   3034:   echo "$as_me:3034: result: no" >&5
                   3035: echo "${ECHO_T}no" >&6
                   3036: fi
                   3037:
                   3038:     test -n "$CC" && break
                   3039:   done
                   3040: fi
                   3041: if test -z "$CC"; then
                   3042:   ac_ct_CC=$CC
                   3043:   for ac_prog in cl
                   3044: do
                   3045:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3046: set dummy $ac_prog; ac_word=$2
                   3047: echo "$as_me:3047: checking for $ac_word" >&5
                   3048: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3049: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   3050:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3051: else
                   3052:   if test -n "$ac_ct_CC"; then
                   3053:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   3054: else
                   3055:   ac_save_IFS=$IFS; IFS=$ac_path_separator
                   3056: ac_dummy="$PATH"
                   3057: for ac_dir in $ac_dummy; do
                   3058:   IFS=$ac_save_IFS
                   3059:   test -z "$ac_dir" && ac_dir=.
                   3060:   $as_executable_p "$ac_dir/$ac_word" || continue
                   3061: ac_cv_prog_ac_ct_CC="$ac_prog"
                   3062: echo "$as_me:3062: found $ac_dir/$ac_word" >&5
                   3063: break
                   3064: done
                   3065:
                   3066: fi
                   3067: fi
                   3068: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   3069: if test -n "$ac_ct_CC"; then
                   3070:   echo "$as_me:3070: result: $ac_ct_CC" >&5
                   3071: echo "${ECHO_T}$ac_ct_CC" >&6
1.1       millert  3072: else
1.9       millert  3073:   echo "$as_me:3073: result: no" >&5
                   3074: echo "${ECHO_T}no" >&6
                   3075: fi
                   3076:
                   3077:   test -n "$ac_ct_CC" && break
                   3078: done
                   3079:
                   3080:   CC=$ac_ct_CC
1.1       millert  3081: fi
                   3082:
                   3083: fi
                   3084:
1.9       millert  3085: test -z "$CC" && { { echo "$as_me:3085: error: no acceptable cc found in \$PATH" >&5
                   3086: echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
                   3087:    { (exit 1); exit 1; }; }
                   3088:
                   3089: # Provide some information about the compiler.
                   3090: echo "$as_me:3090:" \
                   3091:      "checking for C compiler version" >&5
                   3092: ac_compiler=`set X $ac_compile; echo $2`
                   3093: { (eval echo "$as_me:3093: \"$ac_compiler --version </dev/null >&5\"") >&5
                   3094:   (eval $ac_compiler --version </dev/null >&5) 2>&5
                   3095:   ac_status=$?
                   3096:   echo "$as_me:3096: \$? = $ac_status" >&5
                   3097:   (exit $ac_status); }
                   3098: { (eval echo "$as_me:3098: \"$ac_compiler -v </dev/null >&5\"") >&5
                   3099:   (eval $ac_compiler -v </dev/null >&5) 2>&5
                   3100:   ac_status=$?
                   3101:   echo "$as_me:3101: \$? = $ac_status" >&5
                   3102:   (exit $ac_status); }
                   3103: { (eval echo "$as_me:3103: \"$ac_compiler -V </dev/null >&5\"") >&5
                   3104:   (eval $ac_compiler -V </dev/null >&5) 2>&5
                   3105:   ac_status=$?
                   3106:   echo "$as_me:3106: \$? = $ac_status" >&5
                   3107:   (exit $ac_status); }
                   3108:
                   3109: cat >conftest.$ac_ext <<_ACEOF
                   3110: #line 3110 "configure"
                   3111: #include "confdefs.h"
                   3112:
                   3113: int
                   3114: main ()
                   3115: {
1.1       millert  3116:
1.9       millert  3117:   ;
                   3118:   return 0;
                   3119: }
                   3120: _ACEOF
                   3121: ac_clean_files_save=$ac_clean_files
                   3122: ac_clean_files="$ac_clean_files a.out a.exe"
                   3123: # Try to create an executable without -o first, disregard a.out.
                   3124: # It will help us diagnose broken compilers, and finding out an intuition
                   3125: # of exeext.
                   3126: echo "$as_me:3126: checking for C compiler default output" >&5
                   3127: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
                   3128: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
                   3129: if { (eval echo "$as_me:3129: \"$ac_link_default\"") >&5
                   3130:   (eval $ac_link_default) 2>&5
                   3131:   ac_status=$?
                   3132:   echo "$as_me:3132: \$? = $ac_status" >&5
                   3133:   (exit $ac_status); }; then
                   3134:   # Find the output, starting from the most likely.  This scheme is
                   3135: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
                   3136: # resort.
                   3137: for ac_file in `ls a.exe conftest.exe 2>/dev/null;
                   3138:                 ls a.out conftest 2>/dev/null;
                   3139:                 ls a.* conftest.* 2>/dev/null`; do
                   3140:   case $ac_file in
                   3141:     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
                   3142:     a.out ) # We found the default executable, but exeext='' is most
                   3143:             # certainly right.
                   3144:             break;;
                   3145:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3146:           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
                   3147:           export ac_cv_exeext
                   3148:           break;;
                   3149:     * ) break;;
                   3150:   esac
                   3151: done
                   3152: else
                   3153:   echo "$as_me: failed program was:" >&5
                   3154: cat conftest.$ac_ext >&5
                   3155: { { echo "$as_me:3155: error: C compiler cannot create executables" >&5
                   3156: echo "$as_me: error: C compiler cannot create executables" >&2;}
                   3157:    { (exit 77); exit 77; }; }
                   3158: fi
                   3159:
                   3160: ac_exeext=$ac_cv_exeext
                   3161: echo "$as_me:3161: result: $ac_file" >&5
                   3162: echo "${ECHO_T}$ac_file" >&6
                   3163:
                   3164: # Check the compiler produces executables we can run.  If not, either
                   3165: # the compiler is broken, or we cross compile.
                   3166: echo "$as_me:3166: checking whether the C compiler works" >&5
                   3167: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
                   3168: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
                   3169: # If not cross compiling, check that we can run a simple program.
                   3170: if test "$cross_compiling" != yes; then
                   3171:   if { ac_try='./$ac_file'
                   3172:   { (eval echo "$as_me:3172: \"$ac_try\"") >&5
                   3173:   (eval $ac_try) 2>&5
                   3174:   ac_status=$?
                   3175:   echo "$as_me:3175: \$? = $ac_status" >&5
                   3176:   (exit $ac_status); }; }; then
                   3177:     cross_compiling=no
1.1       millert  3178:   else
1.9       millert  3179:     if test "$cross_compiling" = maybe; then
                   3180:        cross_compiling=yes
                   3181:     else
                   3182:        { { echo "$as_me:3182: error: cannot run C compiled programs.
                   3183: If you meant to cross compile, use \`--host'." >&5
                   3184: echo "$as_me: error: cannot run C compiled programs.
                   3185: If you meant to cross compile, use \`--host'." >&2;}
                   3186:    { (exit 1); exit 1; }; }
                   3187:     fi
1.1       millert  3188:   fi
1.9       millert  3189: fi
                   3190: echo "$as_me:3190: result: yes" >&5
                   3191: echo "${ECHO_T}yes" >&6
                   3192:
                   3193: rm -f a.out a.exe conftest$ac_cv_exeext
                   3194: ac_clean_files=$ac_clean_files_save
                   3195: # Check the compiler produces executables we can run.  If not, either
                   3196: # the compiler is broken, or we cross compile.
                   3197: echo "$as_me:3197: checking whether we are cross compiling" >&5
                   3198: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
                   3199: echo "$as_me:3199: result: $cross_compiling" >&5
                   3200: echo "${ECHO_T}$cross_compiling" >&6
                   3201:
                   3202: echo "$as_me:3202: checking for executable suffix" >&5
                   3203: echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
                   3204: if { (eval echo "$as_me:3204: \"$ac_link\"") >&5
                   3205:   (eval $ac_link) 2>&5
                   3206:   ac_status=$?
                   3207:   echo "$as_me:3207: \$? = $ac_status" >&5
                   3208:   (exit $ac_status); }; then
                   3209:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   3210: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   3211: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   3212: # `rm'.
                   3213: for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
                   3214:   case $ac_file in
                   3215:     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
                   3216:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   3217:           export ac_cv_exeext
                   3218:           break;;
                   3219:     * ) break;;
                   3220:   esac
                   3221: done
1.1       millert  3222: else
1.9       millert  3223:   { { echo "$as_me:3223: error: cannot compute EXEEXT: cannot compile and link" >&5
                   3224: echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
                   3225:    { (exit 1); exit 1; }; }
1.1       millert  3226: fi
                   3227:
1.9       millert  3228: rm -f conftest$ac_cv_exeext
                   3229: echo "$as_me:3229: result: $ac_cv_exeext" >&5
                   3230: echo "${ECHO_T}$ac_cv_exeext" >&6
1.1       millert  3231:
1.9       millert  3232: rm -f conftest.$ac_ext
                   3233: EXEEXT=$ac_cv_exeext
                   3234: ac_exeext=$EXEEXT
                   3235: echo "$as_me:3235: checking for object suffix" >&5
                   3236: echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
                   3237: if test "${ac_cv_objext+set}" = set; then
                   3238:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  3239: else
1.9       millert  3240:   cat >conftest.$ac_ext <<_ACEOF
                   3241: #line 3241 "configure"
                   3242: #include "confdefs.h"
                   3243:
                   3244: int
                   3245: main ()
                   3246: {
                   3247:
                   3248:   ;
                   3249:   return 0;
                   3250: }
                   3251: _ACEOF
                   3252: rm -f conftest.o conftest.obj
                   3253: if { (eval echo "$as_me:3253: \"$ac_compile\"") >&5
                   3254:   (eval $ac_compile) 2>&5
                   3255:   ac_status=$?
                   3256:   echo "$as_me:3256: \$? = $ac_status" >&5
                   3257:   (exit $ac_status); }; then
                   3258:   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
                   3259:   case $ac_file in
                   3260:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
                   3261:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   3262:        break;;
                   3263:   esac
                   3264: done
1.1       millert  3265: else
1.9       millert  3266:   echo "$as_me: failed program was:" >&5
                   3267: cat conftest.$ac_ext >&5
                   3268: { { echo "$as_me:3268: error: cannot compute OBJEXT: cannot compile" >&5
                   3269: echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
                   3270:    { (exit 1); exit 1; }; }
1.1       millert  3271: fi
1.9       millert  3272:
                   3273: rm -f conftest.$ac_cv_objext conftest.$ac_ext
1.1       millert  3274: fi
1.9       millert  3275: echo "$as_me:3275: result: $ac_cv_objext" >&5
                   3276: echo "${ECHO_T}$ac_cv_objext" >&6
                   3277: OBJEXT=$ac_cv_objext
                   3278: ac_objext=$OBJEXT
                   3279: echo "$as_me:3279: checking whether we are using the GNU C compiler" >&5
                   3280: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
                   3281: if test "${ac_cv_c_compiler_gnu+set}" = set; then
                   3282:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3283: else
                   3284:   cat >conftest.$ac_ext <<_ACEOF
                   3285: #line 3285 "configure"
                   3286: #include "confdefs.h"
1.1       millert  3287:
1.9       millert  3288: int
                   3289: main ()
                   3290: {
                   3291: #ifndef __GNUC__
                   3292:        choke me
                   3293: #endif
1.1       millert  3294:
1.9       millert  3295:   ;
                   3296:   return 0;
                   3297: }
                   3298: _ACEOF
                   3299: rm -f conftest.$ac_objext
                   3300: if { (eval echo "$as_me:3300: \"$ac_compile\"") >&5
                   3301:   (eval $ac_compile) 2>&5
                   3302:   ac_status=$?
                   3303:   echo "$as_me:3303: \$? = $ac_status" >&5
                   3304:   (exit $ac_status); } &&
                   3305:          { ac_try='test -s conftest.$ac_objext'
                   3306:   { (eval echo "$as_me:3306: \"$ac_try\"") >&5
                   3307:   (eval $ac_try) 2>&5
                   3308:   ac_status=$?
                   3309:   echo "$as_me:3309: \$? = $ac_status" >&5
                   3310:   (exit $ac_status); }; }; then
                   3311:   ac_compiler_gnu=yes
                   3312: else
                   3313:   echo "$as_me: failed program was:" >&5
                   3314: cat conftest.$ac_ext >&5
                   3315: ac_compiler_gnu=no
                   3316: fi
                   3317: rm -f conftest.$ac_objext conftest.$ac_ext
                   3318: ac_cv_c_compiler_gnu=$ac_compiler_gnu
                   3319:
                   3320: fi
                   3321: echo "$as_me:3321: result: $ac_cv_c_compiler_gnu" >&5
                   3322: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
                   3323: GCC=`test $ac_compiler_gnu = yes && echo yes`
                   3324: ac_test_CFLAGS=${CFLAGS+set}
                   3325: ac_save_CFLAGS=$CFLAGS
                   3326: CFLAGS="-g"
                   3327: echo "$as_me:3327: checking whether $CC accepts -g" >&5
                   3328: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
                   3329: if test "${ac_cv_prog_cc_g+set}" = set; then
                   3330:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  3331: else
1.9       millert  3332:   cat >conftest.$ac_ext <<_ACEOF
                   3333: #line 3333 "configure"
                   3334: #include "confdefs.h"
                   3335:
                   3336: int
                   3337: main ()
                   3338: {
                   3339:
                   3340:   ;
                   3341:   return 0;
                   3342: }
                   3343: _ACEOF
                   3344: rm -f conftest.$ac_objext
                   3345: if { (eval echo "$as_me:3345: \"$ac_compile\"") >&5
                   3346:   (eval $ac_compile) 2>&5
                   3347:   ac_status=$?
                   3348:   echo "$as_me:3348: \$? = $ac_status" >&5
                   3349:   (exit $ac_status); } &&
                   3350:          { ac_try='test -s conftest.$ac_objext'
                   3351:   { (eval echo "$as_me:3351: \"$ac_try\"") >&5
                   3352:   (eval $ac_try) 2>&5
                   3353:   ac_status=$?
                   3354:   echo "$as_me:3354: \$? = $ac_status" >&5
                   3355:   (exit $ac_status); }; }; then
1.1       millert  3356:   ac_cv_prog_cc_g=yes
                   3357: else
1.9       millert  3358:   echo "$as_me: failed program was:" >&5
                   3359: cat conftest.$ac_ext >&5
                   3360: ac_cv_prog_cc_g=no
                   3361: fi
                   3362: rm -f conftest.$ac_objext conftest.$ac_ext
                   3363: fi
                   3364: echo "$as_me:3364: result: $ac_cv_prog_cc_g" >&5
                   3365: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
                   3366: if test "$ac_test_CFLAGS" = set; then
                   3367:   CFLAGS=$ac_save_CFLAGS
                   3368: elif test $ac_cv_prog_cc_g = yes; then
                   3369:   if test "$GCC" = yes; then
                   3370:     CFLAGS="-g -O2"
                   3371:   else
                   3372:     CFLAGS="-g"
                   3373:   fi
                   3374: else
                   3375:   if test "$GCC" = yes; then
                   3376:     CFLAGS="-O2"
                   3377:   else
                   3378:     CFLAGS=
                   3379:   fi
                   3380: fi
                   3381: # Some people use a C++ compiler to compile C.  Since we use `exit',
                   3382: # in C++ we need to declare it.  In case someone uses the same compiler
                   3383: # for both compiling C and C++ we need to have the C++ compiler decide
                   3384: # the declaration of exit, since it's the most demanding environment.
                   3385: cat >conftest.$ac_ext <<_ACEOF
                   3386: #ifndef __cplusplus
                   3387:   choke me
                   3388: #endif
                   3389: _ACEOF
                   3390: rm -f conftest.$ac_objext
                   3391: if { (eval echo "$as_me:3391: \"$ac_compile\"") >&5
                   3392:   (eval $ac_compile) 2>&5
                   3393:   ac_status=$?
                   3394:   echo "$as_me:3394: \$? = $ac_status" >&5
                   3395:   (exit $ac_status); } &&
                   3396:          { ac_try='test -s conftest.$ac_objext'
                   3397:   { (eval echo "$as_me:3397: \"$ac_try\"") >&5
                   3398:   (eval $ac_try) 2>&5
                   3399:   ac_status=$?
                   3400:   echo "$as_me:3400: \$? = $ac_status" >&5
                   3401:   (exit $ac_status); }; }; then
                   3402:   for ac_declaration in \
                   3403:    ''\
                   3404:    '#include <stdlib.h>' \
                   3405:    'extern "C" void std::exit (int) throw (); using std::exit;' \
                   3406:    'extern "C" void std::exit (int); using std::exit;' \
                   3407:    'extern "C" void exit (int) throw ();' \
                   3408:    'extern "C" void exit (int);' \
                   3409:    'void exit (int);'
                   3410: do
                   3411:   cat >conftest.$ac_ext <<_ACEOF
                   3412: #line 3412 "configure"
                   3413: #include "confdefs.h"
                   3414: #include <stdlib.h>
                   3415: $ac_declaration
                   3416: int
                   3417: main ()
                   3418: {
                   3419: exit (42);
                   3420:   ;
                   3421:   return 0;
                   3422: }
                   3423: _ACEOF
                   3424: rm -f conftest.$ac_objext
                   3425: if { (eval echo "$as_me:3425: \"$ac_compile\"") >&5
                   3426:   (eval $ac_compile) 2>&5
                   3427:   ac_status=$?
                   3428:   echo "$as_me:3428: \$? = $ac_status" >&5
                   3429:   (exit $ac_status); } &&
                   3430:          { ac_try='test -s conftest.$ac_objext'
                   3431:   { (eval echo "$as_me:3431: \"$ac_try\"") >&5
                   3432:   (eval $ac_try) 2>&5
                   3433:   ac_status=$?
                   3434:   echo "$as_me:3434: \$? = $ac_status" >&5
                   3435:   (exit $ac_status); }; }; then
                   3436:   :
                   3437: else
                   3438:   echo "$as_me: failed program was:" >&5
                   3439: cat conftest.$ac_ext >&5
                   3440: continue
                   3441: fi
                   3442: rm -f conftest.$ac_objext conftest.$ac_ext
                   3443:   cat >conftest.$ac_ext <<_ACEOF
                   3444: #line 3444 "configure"
                   3445: #include "confdefs.h"
                   3446: $ac_declaration
                   3447: int
                   3448: main ()
                   3449: {
                   3450: exit (42);
                   3451:   ;
                   3452:   return 0;
                   3453: }
                   3454: _ACEOF
                   3455: rm -f conftest.$ac_objext
                   3456: if { (eval echo "$as_me:3456: \"$ac_compile\"") >&5
                   3457:   (eval $ac_compile) 2>&5
                   3458:   ac_status=$?
                   3459:   echo "$as_me:3459: \$? = $ac_status" >&5
                   3460:   (exit $ac_status); } &&
                   3461:          { ac_try='test -s conftest.$ac_objext'
                   3462:   { (eval echo "$as_me:3462: \"$ac_try\"") >&5
                   3463:   (eval $ac_try) 2>&5
                   3464:   ac_status=$?
                   3465:   echo "$as_me:3465: \$? = $ac_status" >&5
                   3466:   (exit $ac_status); }; }; then
                   3467:   break
                   3468: else
                   3469:   echo "$as_me: failed program was:" >&5
                   3470: cat conftest.$ac_ext >&5
1.1       millert  3471: fi
1.9       millert  3472: rm -f conftest.$ac_objext conftest.$ac_ext
                   3473: done
1.1       millert  3474: rm -f conftest*
1.9       millert  3475: if test -n "$ac_declaration"; then
                   3476:   echo '#ifdef __cplusplus' >>confdefs.h
                   3477:   echo $ac_declaration      >>confdefs.h
                   3478:   echo '#endif'             >>confdefs.h
                   3479: fi
1.1       millert  3480:
1.9       millert  3481: else
                   3482:   echo "$as_me: failed program was:" >&5
                   3483: cat conftest.$ac_ext >&5
1.1       millert  3484: fi
1.9       millert  3485: rm -f conftest.$ac_objext conftest.$ac_ext
                   3486: ac_ext=c
                   3487: ac_cpp='$CPP $CPPFLAGS'
                   3488: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3489: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3490: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       millert  3491:
1.9       millert  3492: echo "$as_me:3492: checking for POSIXized ISC" >&5
                   3493: echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
                   3494: if test -d /etc/conf/kconfig.d &&
                   3495:    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
                   3496: then
                   3497:   echo "$as_me:3497: result: yes" >&5
                   3498: echo "${ECHO_T}yes" >&6
                   3499:   ISC=yes # If later tests want to check for ISC.
                   3500:
                   3501: cat >>confdefs.h <<\EOF
                   3502: #define _POSIX_SOURCE 1
                   3503: EOF
                   3504:
                   3505:   if test "$GCC" = yes; then
                   3506:     CC="$CC -posix"
1.1       millert  3507:   else
1.9       millert  3508:     CC="$CC -Xp"
1.1       millert  3509:   fi
                   3510: else
1.9       millert  3511:   echo "$as_me:3511: result: no" >&5
                   3512: echo "${ECHO_T}no" >&6
                   3513:   ISC=
1.1       millert  3514: fi
                   3515:
                   3516: ac_cv_prog_cc_cross="no"
                   3517: cross_compiling="no"
1.9       millert  3518:
                   3519: echo "$as_me:3519: checking for $CC option to accept ANSI C" >&5
                   3520: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
                   3521: if test "${ac_cv_prog_cc_stdc+set}" = set; then
                   3522:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3523: else
                   3524:   ac_cv_prog_cc_stdc=no
                   3525: ac_save_CC=$CC
                   3526: cat >conftest.$ac_ext <<_ACEOF
                   3527: #line 3527 "configure"
                   3528: #include "confdefs.h"
                   3529: #include <stdarg.h>
                   3530: #include <stdio.h>
                   3531: #include <sys/types.h>
                   3532: #include <sys/stat.h>
                   3533: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   3534: struct buf { int x; };
                   3535: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   3536: static char *e (p, i)
                   3537:      char **p;
                   3538:      int i;
                   3539: {
                   3540:   return p[i];
                   3541: }
                   3542: static char *f (char * (*g) (char **, int), char **p, ...)
                   3543: {
                   3544:   char *s;
                   3545:   va_list v;
                   3546:   va_start (v,p);
                   3547:   s = g (p, va_arg (v,int));
                   3548:   va_end (v);
                   3549:   return s;
                   3550: }
                   3551: int test (int i, double x);
                   3552: struct s1 {int (*f) (int a);};
                   3553: struct s2 {int (*f) (double a);};
                   3554: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   3555: int argc;
                   3556: char **argv;
                   3557: int
                   3558: main ()
                   3559: {
                   3560: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
                   3561:   ;
                   3562:   return 0;
                   3563: }
                   3564: _ACEOF
                   3565: # Don't try gcc -ansi; that turns off useful extensions and
                   3566: # breaks some systems' header files.
                   3567: # AIX                  -qlanglvl=ansi
                   3568: # Ultrix and OSF/1     -std1
                   3569: # HP-UX 10.20 and later        -Ae
                   3570: # HP-UX older versions -Aa -D_HPUX_SOURCE
                   3571: # SVR4                 -Xc -D__EXTENSIONS__
                   3572: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
                   3573: do
                   3574:   CC="$ac_save_CC $ac_arg"
                   3575:   rm -f conftest.$ac_objext
                   3576: if { (eval echo "$as_me:3576: \"$ac_compile\"") >&5
                   3577:   (eval $ac_compile) 2>&5
                   3578:   ac_status=$?
                   3579:   echo "$as_me:3579: \$? = $ac_status" >&5
                   3580:   (exit $ac_status); } &&
                   3581:          { ac_try='test -s conftest.$ac_objext'
                   3582:   { (eval echo "$as_me:3582: \"$ac_try\"") >&5
                   3583:   (eval $ac_try) 2>&5
                   3584:   ac_status=$?
                   3585:   echo "$as_me:3585: \$? = $ac_status" >&5
                   3586:   (exit $ac_status); }; }; then
                   3587:   ac_cv_prog_cc_stdc=$ac_arg
                   3588: break
                   3589: else
                   3590:   echo "$as_me: failed program was:" >&5
                   3591: cat conftest.$ac_ext >&5
                   3592: fi
                   3593: rm -f conftest.$ac_objext
                   3594: done
                   3595: rm -f conftest.$ac_ext conftest.$ac_objext
                   3596: CC=$ac_save_CC
                   3597:
                   3598: fi
                   3599:
                   3600: case "x$ac_cv_prog_cc_stdc" in
                   3601:   x|xno)
                   3602:     echo "$as_me:3602: result: none needed" >&5
                   3603: echo "${ECHO_T}none needed" >&6 ;;
                   3604:   *)
                   3605:     echo "$as_me:3605: result: $ac_cv_prog_cc_stdc" >&5
                   3606: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
                   3607:     CC="$CC $ac_cv_prog_cc_stdc" ;;
                   3608: esac
                   3609:
                   3610: ac_cv_prog_cc_cross="no"
                   3611: cross_compiling="no"
                   3612: ac_ext=c
                   3613: ac_cpp='$CPP $CPPFLAGS'
                   3614: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3615: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3616: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   3617: echo "$as_me:3617: checking how to run the C preprocessor" >&5
                   3618: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1.1       millert  3619: # On Suns, sometimes $CPP names a directory.
                   3620: if test -n "$CPP" && test -d "$CPP"; then
                   3621:   CPP=
                   3622: fi
                   3623: if test -z "$CPP"; then
1.9       millert  3624:   if test "${ac_cv_prog_CPP+set}" = set; then
                   3625:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  3626: else
1.9       millert  3627:       # Double quotes because CPP needs to be expanded
                   3628:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   3629:     do
                   3630:       ac_preproc_ok=false
                   3631: for ac_c_preproc_warn_flag in '' yes
                   3632: do
                   3633:   # Use a header file that comes with gcc, so configuring glibc
                   3634:   # with a fresh cross-compiler works.
1.1       millert  3635:   # On the NeXT, cc -E runs the code through the compiler's parser,
1.9       millert  3636:   # not just through cpp. "Syntax error" is here to catch this case.
                   3637:   cat >conftest.$ac_ext <<_ACEOF
                   3638: #line 3638 "configure"
1.1       millert  3639: #include "confdefs.h"
                   3640: #include <assert.h>
1.9       millert  3641:                      Syntax error
                   3642: _ACEOF
                   3643: if { (eval echo "$as_me:3643: \"$ac_cpp conftest.$ac_ext\"") >&5
                   3644:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   3645:   ac_status=$?
                   3646:   egrep -v '^ *\+' conftest.er1 >conftest.err
                   3647:   rm -f conftest.er1
                   3648:   cat conftest.err >&5
                   3649:   echo "$as_me:3649: \$? = $ac_status" >&5
                   3650:   (exit $ac_status); } >/dev/null; then
                   3651:   if test -s conftest.err; then
                   3652:     ac_cpp_err=$ac_c_preproc_warn_flag
                   3653:   else
                   3654:     ac_cpp_err=
                   3655:   fi
                   3656: else
                   3657:   ac_cpp_err=yes
                   3658: fi
                   3659: if test -z "$ac_cpp_err"; then
1.1       millert  3660:   :
                   3661: else
1.9       millert  3662:   echo "$as_me: failed program was:" >&5
1.1       millert  3663:   cat conftest.$ac_ext >&5
1.9       millert  3664:   # Broken: fails on valid input.
                   3665: continue
                   3666: fi
                   3667: rm -f conftest.err conftest.$ac_ext
                   3668:
                   3669:   # OK, works on sane cases.  Now check whether non-existent headers
                   3670:   # can be detected and how.
                   3671:   cat >conftest.$ac_ext <<_ACEOF
                   3672: #line 3672 "configure"
                   3673: #include "confdefs.h"
                   3674: #include <ac_nonexistent.h>
                   3675: _ACEOF
                   3676: if { (eval echo "$as_me:3676: \"$ac_cpp conftest.$ac_ext\"") >&5
                   3677:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   3678:   ac_status=$?
                   3679:   egrep -v '^ *\+' conftest.er1 >conftest.err
                   3680:   rm -f conftest.er1
                   3681:   cat conftest.err >&5
                   3682:   echo "$as_me:3682: \$? = $ac_status" >&5
                   3683:   (exit $ac_status); } >/dev/null; then
                   3684:   if test -s conftest.err; then
                   3685:     ac_cpp_err=$ac_c_preproc_warn_flag
                   3686:   else
                   3687:     ac_cpp_err=
                   3688:   fi
                   3689: else
                   3690:   ac_cpp_err=yes
                   3691: fi
                   3692: if test -z "$ac_cpp_err"; then
                   3693:   # Broken: success on invalid input.
                   3694: continue
                   3695: else
                   3696:   echo "$as_me: failed program was:" >&5
                   3697:   cat conftest.$ac_ext >&5
                   3698:   # Passes both tests.
                   3699: ac_preproc_ok=:
                   3700: break
                   3701: fi
                   3702: rm -f conftest.err conftest.$ac_ext
                   3703:
                   3704: done
                   3705: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   3706: rm -f conftest.err conftest.$ac_ext
                   3707: if $ac_preproc_ok; then
                   3708:   break
                   3709: fi
                   3710:
                   3711:     done
                   3712:     ac_cv_prog_CPP=$CPP
                   3713:
                   3714: fi
                   3715:   CPP=$ac_cv_prog_CPP
                   3716: else
                   3717:   ac_cv_prog_CPP=$CPP
                   3718: fi
                   3719: echo "$as_me:3719: result: $CPP" >&5
                   3720: echo "${ECHO_T}$CPP" >&6
                   3721: ac_preproc_ok=false
                   3722: for ac_c_preproc_warn_flag in '' yes
                   3723: do
                   3724:   # Use a header file that comes with gcc, so configuring glibc
                   3725:   # with a fresh cross-compiler works.
                   3726:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   3727:   # not just through cpp. "Syntax error" is here to catch this case.
                   3728:   cat >conftest.$ac_ext <<_ACEOF
                   3729: #line 3729 "configure"
1.1       millert  3730: #include "confdefs.h"
                   3731: #include <assert.h>
1.9       millert  3732:                      Syntax error
                   3733: _ACEOF
                   3734: if { (eval echo "$as_me:3734: \"$ac_cpp conftest.$ac_ext\"") >&5
                   3735:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   3736:   ac_status=$?
                   3737:   egrep -v '^ *\+' conftest.er1 >conftest.err
                   3738:   rm -f conftest.er1
                   3739:   cat conftest.err >&5
                   3740:   echo "$as_me:3740: \$? = $ac_status" >&5
                   3741:   (exit $ac_status); } >/dev/null; then
                   3742:   if test -s conftest.err; then
                   3743:     ac_cpp_err=$ac_c_preproc_warn_flag
                   3744:   else
                   3745:     ac_cpp_err=
                   3746:   fi
                   3747: else
                   3748:   ac_cpp_err=yes
                   3749: fi
                   3750: if test -z "$ac_cpp_err"; then
1.1       millert  3751:   :
                   3752: else
1.9       millert  3753:   echo "$as_me: failed program was:" >&5
1.1       millert  3754:   cat conftest.$ac_ext >&5
1.9       millert  3755:   # Broken: fails on valid input.
                   3756: continue
1.1       millert  3757: fi
1.9       millert  3758: rm -f conftest.err conftest.$ac_ext
                   3759:
                   3760:   # OK, works on sane cases.  Now check whether non-existent headers
                   3761:   # can be detected and how.
                   3762:   cat >conftest.$ac_ext <<_ACEOF
                   3763: #line 3763 "configure"
                   3764: #include "confdefs.h"
                   3765: #include <ac_nonexistent.h>
                   3766: _ACEOF
                   3767: if { (eval echo "$as_me:3767: \"$ac_cpp conftest.$ac_ext\"") >&5
                   3768:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   3769:   ac_status=$?
                   3770:   egrep -v '^ *\+' conftest.er1 >conftest.err
                   3771:   rm -f conftest.er1
                   3772:   cat conftest.err >&5
                   3773:   echo "$as_me:3773: \$? = $ac_status" >&5
                   3774:   (exit $ac_status); } >/dev/null; then
                   3775:   if test -s conftest.err; then
                   3776:     ac_cpp_err=$ac_c_preproc_warn_flag
                   3777:   else
                   3778:     ac_cpp_err=
                   3779:   fi
                   3780: else
                   3781:   ac_cpp_err=yes
1.1       millert  3782: fi
1.9       millert  3783: if test -z "$ac_cpp_err"; then
                   3784:   # Broken: success on invalid input.
                   3785: continue
1.1       millert  3786: else
1.9       millert  3787:   echo "$as_me: failed program was:" >&5
                   3788:   cat conftest.$ac_ext >&5
                   3789:   # Passes both tests.
                   3790: ac_preproc_ok=:
                   3791: break
1.1       millert  3792: fi
1.9       millert  3793: rm -f conftest.err conftest.$ac_ext
1.1       millert  3794:
1.9       millert  3795: done
                   3796: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   3797: rm -f conftest.err conftest.$ac_ext
                   3798: if $ac_preproc_ok; then
                   3799:   :
1.1       millert  3800: else
1.9       millert  3801:   { { echo "$as_me:3801: error: C preprocessor \"$CPP\" fails sanity check" >&5
                   3802: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
                   3803:    { (exit 1); exit 1; }; }
1.1       millert  3804: fi
                   3805:
1.9       millert  3806: ac_ext=c
                   3807: ac_cpp='$CPP $CPPFLAGS'
                   3808: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   3809: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   3810: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       millert  3811:
                   3812: if test "$with_devel" = "yes" -a -n "$GCC"; then
                   3813:     CFLAGS="${CFLAGS} -Wall"
                   3814: fi
                   3815:
                   3816: # Extract the first word of "uname", so it can be a program name with args.
                   3817: set dummy uname; ac_word=$2
1.9       millert  3818: echo "$as_me:3818: checking for $ac_word" >&5
                   3819: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3820: if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
                   3821:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  3822: else
                   3823:   if test -n "$UNAMEPROG"; then
                   3824:   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
                   3825: else
1.9       millert  3826:   ac_save_IFS=$IFS; IFS=$ac_path_separator
                   3827: ac_dummy="$PATH"
                   3828: for ac_dir in $ac_dummy; do
                   3829:   IFS=$ac_save_IFS
                   3830:   test -z "$ac_dir" && ac_dir=.
                   3831:   $as_executable_p "$ac_dir/$ac_word" || continue
                   3832: ac_cv_prog_UNAMEPROG="uname"
                   3833: echo "$as_me:3833: found $ac_dir/$ac_word" >&5
                   3834: break
                   3835: done
                   3836:
1.1       millert  3837: fi
                   3838: fi
1.9       millert  3839: UNAMEPROG=$ac_cv_prog_UNAMEPROG
1.1       millert  3840: if test -n "$UNAMEPROG"; then
1.9       millert  3841:   echo "$as_me:3841: result: $UNAMEPROG" >&5
                   3842: echo "${ECHO_T}$UNAMEPROG" >&6
1.1       millert  3843: else
1.9       millert  3844:   echo "$as_me:3844: result: no" >&5
                   3845: echo "${ECHO_T}no" >&6
1.1       millert  3846: fi
                   3847:
                   3848: # Extract the first word of "tr", so it can be a program name with args.
                   3849: set dummy tr; ac_word=$2
1.9       millert  3850: echo "$as_me:3850: checking for $ac_word" >&5
                   3851: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3852: if test "${ac_cv_prog_TRPROG+set}" = set; then
                   3853:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  3854: else
                   3855:   if test -n "$TRPROG"; then
                   3856:   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
                   3857: else
1.9       millert  3858:   ac_save_IFS=$IFS; IFS=$ac_path_separator
                   3859: ac_dummy="$PATH"
                   3860: for ac_dir in $ac_dummy; do
                   3861:   IFS=$ac_save_IFS
                   3862:   test -z "$ac_dir" && ac_dir=.
                   3863:   $as_executable_p "$ac_dir/$ac_word" || continue
                   3864: ac_cv_prog_TRPROG="tr"
                   3865: echo "$as_me:3865: found $ac_dir/$ac_word" >&5
                   3866: break
                   3867: done
                   3868:
1.1       millert  3869: fi
                   3870: fi
1.9       millert  3871: TRPROG=$ac_cv_prog_TRPROG
1.1       millert  3872: if test -n "$TRPROG"; then
1.9       millert  3873:   echo "$as_me:3873: result: $TRPROG" >&5
                   3874: echo "${ECHO_T}$TRPROG" >&6
1.1       millert  3875: else
1.9       millert  3876:   echo "$as_me:3876: result: no" >&5
                   3877: echo "${ECHO_T}no" >&6
1.1       millert  3878: fi
                   3879:
                   3880: # Extract the first word of "sed", so it can be a program name with args.
                   3881: set dummy sed; ac_word=$2
1.9       millert  3882: echo "$as_me:3882: checking for $ac_word" >&5
                   3883: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3884: if test "${ac_cv_prog_SEDPROG+set}" = set; then
                   3885:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  3886: else
                   3887:   if test -n "$SEDPROG"; then
                   3888:   ac_cv_prog_SEDPROG="$SEDPROG" # Let the user override the test.
                   3889: else
1.9       millert  3890:   ac_save_IFS=$IFS; IFS=$ac_path_separator
                   3891: ac_dummy="$PATH"
                   3892: for ac_dir in $ac_dummy; do
                   3893:   IFS=$ac_save_IFS
                   3894:   test -z "$ac_dir" && ac_dir=.
                   3895:   $as_executable_p "$ac_dir/$ac_word" || continue
                   3896: ac_cv_prog_SEDPROG="sed"
                   3897: echo "$as_me:3897: found $ac_dir/$ac_word" >&5
                   3898: break
                   3899: done
                   3900:
1.1       millert  3901: fi
                   3902: fi
1.9       millert  3903: SEDPROG=$ac_cv_prog_SEDPROG
1.1       millert  3904: if test -n "$SEDPROG"; then
1.9       millert  3905:   echo "$as_me:3905: result: $SEDPROG" >&5
                   3906: echo "${ECHO_T}$SEDPROG" >&6
1.1       millert  3907: else
1.9       millert  3908:   echo "$as_me:3908: result: no" >&5
                   3909: echo "${ECHO_T}no" >&6
1.1       millert  3910: fi
                   3911:
                   3912: # Extract the first word of "nroff", so it can be a program name with args.
                   3913: set dummy nroff; ac_word=$2
1.9       millert  3914: echo "$as_me:3914: checking for $ac_word" >&5
                   3915: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   3916: if test "${ac_cv_prog_NROFFPROG+set}" = set; then
                   3917:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  3918: else
                   3919:   if test -n "$NROFFPROG"; then
                   3920:   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
                   3921: else
1.9       millert  3922:   ac_save_IFS=$IFS; IFS=$ac_path_separator
                   3923: ac_dummy="$PATH"
                   3924: for ac_dir in $ac_dummy; do
                   3925:   IFS=$ac_save_IFS
                   3926:   test -z "$ac_dir" && ac_dir=.
                   3927:   $as_executable_p "$ac_dir/$ac_word" || continue
                   3928: ac_cv_prog_NROFFPROG="nroff"
                   3929: echo "$as_me:3929: found $ac_dir/$ac_word" >&5
                   3930: break
                   3931: done
                   3932:
1.1       millert  3933: fi
                   3934: fi
1.9       millert  3935: NROFFPROG=$ac_cv_prog_NROFFPROG
1.1       millert  3936: if test -n "$NROFFPROG"; then
1.9       millert  3937:   echo "$as_me:3937: result: $NROFFPROG" >&5
                   3938: echo "${ECHO_T}$NROFFPROG" >&6
1.1       millert  3939: else
1.9       millert  3940:   echo "$as_me:3940: result: no" >&5
                   3941: echo "${ECHO_T}no" >&6
1.1       millert  3942: fi
                   3943:
                   3944: if test -z "$NROFFPROG"; then
                   3945:     MANTYPE="cat"
1.6       millert  3946:     mansrcdir='$(srcdir)'
1.1       millert  3947: fi
                   3948:
                   3949: ac_aux_dir=
1.9       millert  3950: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1.1       millert  3951:   if test -f $ac_dir/install-sh; then
                   3952:     ac_aux_dir=$ac_dir
                   3953:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   3954:     break
                   3955:   elif test -f $ac_dir/install.sh; then
                   3956:     ac_aux_dir=$ac_dir
                   3957:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   3958:     break
1.9       millert  3959:   elif test -f $ac_dir/shtool; then
                   3960:     ac_aux_dir=$ac_dir
                   3961:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   3962:     break
1.1       millert  3963:   fi
                   3964: done
                   3965: if test -z "$ac_aux_dir"; then
1.9       millert  3966:   { { echo "$as_me:3966: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
                   3967: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
                   3968:    { (exit 1); exit 1; }; }
                   3969: fi
                   3970: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
                   3971: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
                   3972: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1       millert  3973:
                   3974: # Make sure we can run config.sub.
1.9       millert  3975: $ac_config_sub sun4 >/dev/null 2>&1 ||
                   3976:   { { echo "$as_me:3976: error: cannot run $ac_config_sub" >&5
                   3977: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
                   3978:    { (exit 1); exit 1; }; }
                   3979:
                   3980: echo "$as_me:3980: checking build system type" >&5
                   3981: echo $ECHO_N "checking build system type... $ECHO_C" >&6
                   3982: if test "${ac_cv_build+set}" = set; then
                   3983:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   3984: else
                   3985:   ac_cv_build_alias=$build_alias
                   3986: test -z "$ac_cv_build_alias" &&
                   3987:   ac_cv_build_alias=`$ac_config_guess`
                   3988: test -z "$ac_cv_build_alias" &&
                   3989:   { { echo "$as_me:3989: error: cannot guess build type; you must specify one" >&5
                   3990: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
                   3991:    { (exit 1); exit 1; }; }
                   3992: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
                   3993:   { { echo "$as_me:3993: error: $ac_config_sub $ac_cv_build_alias failed." >&5
                   3994: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
                   3995:    { (exit 1); exit 1; }; }
                   3996:
                   3997: fi
                   3998: echo "$as_me:3998: result: $ac_cv_build" >&5
                   3999: echo "${ECHO_T}$ac_cv_build" >&6
                   4000: build=$ac_cv_build
                   4001: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                   4002: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                   4003: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
                   4004:
                   4005: echo "$as_me:4005: checking host system type" >&5
                   4006: echo $ECHO_N "checking host system type... $ECHO_C" >&6
                   4007: if test "${ac_cv_host+set}" = set; then
                   4008:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4009: else
                   4010:   ac_cv_host_alias=$host_alias
                   4011: test -z "$ac_cv_host_alias" &&
                   4012:   ac_cv_host_alias=$ac_cv_build_alias
                   4013: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
                   4014:   { { echo "$as_me:4014: error: $ac_config_sub $ac_cv_host_alias failed" >&5
                   4015: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
                   4016:    { (exit 1); exit 1; }; }
                   4017:
                   4018: fi
                   4019: echo "$as_me:4019: result: $ac_cv_host" >&5
                   4020: echo "${ECHO_T}$ac_cv_host" >&6
                   4021: host=$ac_cv_host
                   4022: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                   4023: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                   4024: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1       millert  4025:
                   4026: if test -n "$sudo_cv_prev_host"; then
                   4027:     if test "$sudo_cv_prev_host" != "$host"; then
                   4028:        echo ""
                   4029:        echo "Fatal Error: config.cache exists from another platform!"
                   4030:        echo "Please remove it and re-run configure."
                   4031:        echo ""
                   4032:        exit 1
                   4033:     else
1.9       millert  4034:        echo "$as_me:4034: checking previous host type" >&5
                   4035: echo $ECHO_N "checking previous host type... $ECHO_C" >&6
                   4036:        if test "${sudo_cv_prev_host+set}" = set; then
                   4037:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4038: else
                   4039:   sudo_cv_prev_host="$host"
                   4040: fi
                   4041:
                   4042:        echo $sudo_cv_prev_host
                   4043:     fi
                   4044: else
                   4045:     # this will produce no output since there is no cached value
1.9       millert  4046:     if test "${sudo_cv_prev_host+set}" = set; then
                   4047:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4048: else
                   4049:   sudo_cv_prev_host="$host"
                   4050: fi
                   4051:
                   4052: fi
                   4053:
                   4054: if test -n "$host_os"; then
                   4055:     OS=`echo $host_os | sed 's/[0-9].*//'`
                   4056:     OSREV=`echo $host_os | sed 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/'`
                   4057: else
                   4058:     OS="unknown"
                   4059:     OSREV=0
                   4060: fi
                   4061:
                   4062: case "$host" in
                   4063:     *-*-sunos4*)
                   4064:                # getcwd(3) opens a pipe to getpwd(1)!?!
                   4065:                BROKEN_GETCWD=1
                   4066:
                   4067:                # system headers lack prototypes but gcc helps...
                   4068:                if test -n "$GCC"; then
                   4069:                    CPPFLAGS="${CPPFLAGS} -D__USE_FIXED_PROTOTYPES__"
                   4070:                fi
                   4071:
                   4072:                # check for password adjunct functions (shadow passwords)
                   4073:                if test "$CHECKSHADOW" = "true"; then
                   4074:
1.9       millert  4075: for ac_func in getpwanam issecure
1.1       millert  4076: do
1.9       millert  4077: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   4078: echo "$as_me:4078: checking for $ac_func" >&5
                   4079: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   4080: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   4081:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4082: else
1.9       millert  4083:   cat >conftest.$ac_ext <<_ACEOF
                   4084: #line 4084 "configure"
1.1       millert  4085: #include "confdefs.h"
                   4086: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  4087:     which can conflict with char $ac_func (); below.  */
1.1       millert  4088: #include <assert.h>
                   4089: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  4090: #ifdef __cplusplus
                   4091: extern "C"
                   4092: #endif
1.1       millert  4093: /* We use char because int might match the return type of a gcc2
1.9       millert  4094:    builtin and then its argument prototype would still apply.  */
                   4095: char $ac_func ();
                   4096: char (*f) ();
1.1       millert  4097:
1.9       millert  4098: int
                   4099: main ()
                   4100: {
1.1       millert  4101: /* The GNU C library defines this for functions which it implements
                   4102:     to always fail with ENOSYS.  Some functions are actually named
                   4103:     something starting with __ and the normal name is an alias.  */
                   4104: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   4105: choke me
                   4106: #else
1.9       millert  4107: f = $ac_func;
1.1       millert  4108: #endif
                   4109:
1.9       millert  4110:   ;
                   4111:   return 0;
                   4112: }
                   4113: _ACEOF
                   4114: rm -f conftest.$ac_objext conftest$ac_exeext
                   4115: if { (eval echo "$as_me:4115: \"$ac_link\"") >&5
                   4116:   (eval $ac_link) 2>&5
                   4117:   ac_status=$?
                   4118:   echo "$as_me:4118: \$? = $ac_status" >&5
                   4119:   (exit $ac_status); } &&
                   4120:          { ac_try='test -s conftest$ac_exeext'
                   4121:   { (eval echo "$as_me:4121: \"$ac_try\"") >&5
                   4122:   (eval $ac_try) 2>&5
                   4123:   ac_status=$?
                   4124:   echo "$as_me:4124: \$? = $ac_status" >&5
                   4125:   (exit $ac_status); }; }; then
                   4126:   eval "$as_ac_var=yes"
                   4127: else
                   4128:   echo "$as_me: failed program was:" >&5
                   4129: cat conftest.$ac_ext >&5
                   4130: eval "$as_ac_var=no"
                   4131: fi
                   4132: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4133: fi
                   4134: echo "$as_me:4134: result: `eval echo '${'$as_ac_var'}'`" >&5
                   4135: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   4136: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   4137:   cat >>confdefs.h <<EOF
                   4138: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       millert  4139: EOF
                   4140:
                   4141: else
1.9       millert  4142:   break
1.1       millert  4143: fi
                   4144: done
                   4145:
                   4146:                    CHECKSHADOW="false"
                   4147:                fi
                   4148:                ;;
                   4149:     *-*-solaris2*)
                   4150:                # To get the crypt(3) prototype (so we pass -Wall)
                   4151:                CPPFLAGS="${CPPFLAGS} -D__EXTENSIONS__"
                   4152:                # AFS support needs -lucb
                   4153:                if test "$with_AFS" = "yes"; then
                   4154:                    AFS_LIBS="-lc -lucb"
                   4155:                fi
1.9       millert  4156:                test -n "$mansectsu" || mansectsu=1m
                   4157:                test -n "$mansectform" || mansectform=4
1.1       millert  4158:                ;;
                   4159:     *-*-aix*)
                   4160:                # To get all prototypes (so we pass -Wall)
                   4161:                CPPFLAGS="${CPPFLAGS} -D_XOPEN_EXTENDED_SOURCE"
1.9       millert  4162:                cat >>confdefs.h <<\EOF
1.1       millert  4163: #define _ALL_SOURCE 1
                   4164: EOF
                   4165:
                   4166:                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
                   4167:                ;;
                   4168:     *-*-hiuxmpp*)
                   4169:                if test "$CHECKSHADOW" = "true"; then
1.9       millert  4170:                    echo "$as_me:4170: checking for getprpwnam in -lsec" >&5
                   4171: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
                   4172: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
                   4173:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4174: else
1.9       millert  4175:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  4176: LIBS="-lsec  $LIBS"
1.9       millert  4177: cat >conftest.$ac_ext <<_ACEOF
                   4178: #line 4178 "configure"
1.1       millert  4179: #include "confdefs.h"
1.9       millert  4180:
                   4181: /* Override any gcc2 internal prototype to avoid an error.  */
                   4182: #ifdef __cplusplus
                   4183: extern "C"
                   4184: #endif
1.1       millert  4185: /* We use char because int might match the return type of a gcc2
1.9       millert  4186:    builtin and then its argument prototype would still apply.  */
                   4187: char getprpwnam ();
                   4188: int
                   4189: main ()
                   4190: {
                   4191: getprpwnam ();
                   4192:   ;
                   4193:   return 0;
                   4194: }
                   4195: _ACEOF
                   4196: rm -f conftest.$ac_objext conftest$ac_exeext
                   4197: if { (eval echo "$as_me:4197: \"$ac_link\"") >&5
                   4198:   (eval $ac_link) 2>&5
                   4199:   ac_status=$?
                   4200:   echo "$as_me:4200: \$? = $ac_status" >&5
                   4201:   (exit $ac_status); } &&
                   4202:          { ac_try='test -s conftest$ac_exeext'
                   4203:   { (eval echo "$as_me:4203: \"$ac_try\"") >&5
                   4204:   (eval $ac_try) 2>&5
                   4205:   ac_status=$?
                   4206:   echo "$as_me:4206: \$? = $ac_status" >&5
                   4207:   (exit $ac_status); }; }; then
                   4208:   ac_cv_lib_sec_getprpwnam=yes
                   4209: else
                   4210:   echo "$as_me: failed program was:" >&5
                   4211: cat conftest.$ac_ext >&5
                   4212: ac_cv_lib_sec_getprpwnam=no
                   4213: fi
                   4214: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4215: LIBS=$ac_check_lib_save_LIBS
                   4216: fi
                   4217: echo "$as_me:4217: result: $ac_cv_lib_sec_getprpwnam" >&5
                   4218: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
                   4219: if test $ac_cv_lib_sec_getprpwnam = yes; then
                   4220:   cat >>confdefs.h <<\EOF
1.1       millert  4221: #define HAVE_GETPRPWNAM 1
                   4222: EOF
                   4223:  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
                   4224: else
1.9       millert  4225:   echo "$as_me:4225: checking for getprpwnam in -lsecurity" >&5
                   4226: echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
                   4227: if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
                   4228:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4229: else
1.9       millert  4230:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  4231: LIBS="-lsecurity  $LIBS"
1.9       millert  4232: cat >conftest.$ac_ext <<_ACEOF
                   4233: #line 4233 "configure"
1.1       millert  4234: #include "confdefs.h"
1.9       millert  4235:
1.1       millert  4236: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  4237: #ifdef __cplusplus
                   4238: extern "C"
                   4239: #endif
1.1       millert  4240: /* We use char because int might match the return type of a gcc2
1.9       millert  4241:    builtin and then its argument prototype would still apply.  */
                   4242: char getprpwnam ();
                   4243: int
                   4244: main ()
                   4245: {
                   4246: getprpwnam ();
                   4247:   ;
                   4248:   return 0;
                   4249: }
                   4250: _ACEOF
                   4251: rm -f conftest.$ac_objext conftest$ac_exeext
                   4252: if { (eval echo "$as_me:4252: \"$ac_link\"") >&5
                   4253:   (eval $ac_link) 2>&5
                   4254:   ac_status=$?
                   4255:   echo "$as_me:4255: \$? = $ac_status" >&5
                   4256:   (exit $ac_status); } &&
                   4257:          { ac_try='test -s conftest$ac_exeext'
                   4258:   { (eval echo "$as_me:4258: \"$ac_try\"") >&5
                   4259:   (eval $ac_try) 2>&5
                   4260:   ac_status=$?
                   4261:   echo "$as_me:4261: \$? = $ac_status" >&5
                   4262:   (exit $ac_status); }; }; then
                   4263:   ac_cv_lib_security_getprpwnam=yes
                   4264: else
                   4265:   echo "$as_me: failed program was:" >&5
                   4266: cat conftest.$ac_ext >&5
                   4267: ac_cv_lib_security_getprpwnam=no
                   4268: fi
                   4269: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4270: LIBS=$ac_check_lib_save_LIBS
                   4271: fi
                   4272: echo "$as_me:4272: result: $ac_cv_lib_security_getprpwnam" >&5
                   4273: echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
                   4274: if test $ac_cv_lib_security_getprpwnam = yes; then
                   4275:   cat >>confdefs.h <<\EOF
1.1       millert  4276: #define HAVE_GETPRPWNAM 1
                   4277: EOF
                   4278:  SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"; SECUREWARE=1
                   4279: fi
                   4280:
                   4281: fi
                   4282:
                   4283:                    CHECKSHADOW="false"
                   4284:                fi
1.9       millert  4285:                test -n "$mansectsu" || mansectsu=1m
                   4286:                test -n "$mansectform" || mansectform=4
1.1       millert  4287:                ;;
                   4288:     *-*-hpux1[0-9]*)
                   4289:                if test "$CHECKSHADOW" = "true"; then
1.9       millert  4290:                    echo "$as_me:4290: checking for getprpwnam in -lsec" >&5
                   4291: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
                   4292: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
                   4293:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4294: else
1.9       millert  4295:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  4296: LIBS="-lsec  $LIBS"
1.9       millert  4297: cat >conftest.$ac_ext <<_ACEOF
                   4298: #line 4298 "configure"
1.1       millert  4299: #include "confdefs.h"
1.9       millert  4300:
1.1       millert  4301: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  4302: #ifdef __cplusplus
                   4303: extern "C"
                   4304: #endif
1.1       millert  4305: /* We use char because int might match the return type of a gcc2
1.9       millert  4306:    builtin and then its argument prototype would still apply.  */
                   4307: char getprpwnam ();
                   4308: int
                   4309: main ()
                   4310: {
                   4311: getprpwnam ();
                   4312:   ;
                   4313:   return 0;
                   4314: }
                   4315: _ACEOF
                   4316: rm -f conftest.$ac_objext conftest$ac_exeext
                   4317: if { (eval echo "$as_me:4317: \"$ac_link\"") >&5
                   4318:   (eval $ac_link) 2>&5
                   4319:   ac_status=$?
                   4320:   echo "$as_me:4320: \$? = $ac_status" >&5
                   4321:   (exit $ac_status); } &&
                   4322:          { ac_try='test -s conftest$ac_exeext'
                   4323:   { (eval echo "$as_me:4323: \"$ac_try\"") >&5
                   4324:   (eval $ac_try) 2>&5
                   4325:   ac_status=$?
                   4326:   echo "$as_me:4326: \$? = $ac_status" >&5
                   4327:   (exit $ac_status); }; }; then
                   4328:   ac_cv_lib_sec_getprpwnam=yes
                   4329: else
                   4330:   echo "$as_me: failed program was:" >&5
                   4331: cat conftest.$ac_ext >&5
                   4332: ac_cv_lib_sec_getprpwnam=no
                   4333: fi
                   4334: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4335: LIBS=$ac_check_lib_save_LIBS
                   4336: fi
                   4337: echo "$as_me:4337: result: $ac_cv_lib_sec_getprpwnam" >&5
                   4338: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
                   4339: if test $ac_cv_lib_sec_getprpwnam = yes; then
                   4340:   cat >>confdefs.h <<\EOF
1.1       millert  4341: #define HAVE_GETPRPWNAM 1
                   4342: EOF
1.9       millert  4343:  echo "$as_me:4343: checking for iscomsec in -lsec" >&5
                   4344: echo $ECHO_N "checking for iscomsec in -lsec... $ECHO_C" >&6
                   4345: if test "${ac_cv_lib_sec_iscomsec+set}" = set; then
                   4346:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4347: else
1.9       millert  4348:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  4349: LIBS="-lsec  $LIBS"
1.9       millert  4350: cat >conftest.$ac_ext <<_ACEOF
                   4351: #line 4351 "configure"
1.1       millert  4352: #include "confdefs.h"
1.9       millert  4353:
1.1       millert  4354: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  4355: #ifdef __cplusplus
                   4356: extern "C"
                   4357: #endif
1.1       millert  4358: /* We use char because int might match the return type of a gcc2
1.9       millert  4359:    builtin and then its argument prototype would still apply.  */
                   4360: char iscomsec ();
                   4361: int
                   4362: main ()
                   4363: {
                   4364: iscomsec ();
                   4365:   ;
                   4366:   return 0;
                   4367: }
                   4368: _ACEOF
                   4369: rm -f conftest.$ac_objext conftest$ac_exeext
                   4370: if { (eval echo "$as_me:4370: \"$ac_link\"") >&5
                   4371:   (eval $ac_link) 2>&5
                   4372:   ac_status=$?
                   4373:   echo "$as_me:4373: \$? = $ac_status" >&5
                   4374:   (exit $ac_status); } &&
                   4375:          { ac_try='test -s conftest$ac_exeext'
                   4376:   { (eval echo "$as_me:4376: \"$ac_try\"") >&5
                   4377:   (eval $ac_try) 2>&5
                   4378:   ac_status=$?
                   4379:   echo "$as_me:4379: \$? = $ac_status" >&5
                   4380:   (exit $ac_status); }; }; then
                   4381:   ac_cv_lib_sec_iscomsec=yes
                   4382: else
                   4383:   echo "$as_me: failed program was:" >&5
                   4384: cat conftest.$ac_ext >&5
                   4385: ac_cv_lib_sec_iscomsec=no
                   4386: fi
                   4387: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4388: LIBS=$ac_check_lib_save_LIBS
                   4389: fi
                   4390: echo "$as_me:4390: result: $ac_cv_lib_sec_iscomsec" >&5
                   4391: echo "${ECHO_T}$ac_cv_lib_sec_iscomsec" >&6
                   4392: if test $ac_cv_lib_sec_iscomsec = yes; then
1.1       millert  4393:
1.9       millert  4394: cat >>confdefs.h <<\EOF
1.1       millert  4395: #define HAVE_ISCOMSEC 1
                   4396: EOF
                   4397:
                   4398: fi
                   4399:  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
                   4400: fi
                   4401:
                   4402:                    CHECKSHADOW="false"
                   4403:                fi
                   4404:
                   4405:                # AFS support needs -lBSD
                   4406:                if test "$with_AFS" = "yes"; then
                   4407:                    AFS_LIBS="-lc -lBSD"
                   4408:                fi
1.9       millert  4409:                test -n "$mansectsu" || mansectsu=1m
                   4410:                test -n "$mansectform" || mansectform=4
1.1       millert  4411:                ;;
                   4412:     *-*-hpux9*)
1.4       millert  4413:
1.9       millert  4414: cat >>confdefs.h <<\EOF
1.1       millert  4415: #define BROKEN_SYSLOG 1
                   4416: EOF
                   4417:
1.9       millert  4418:                if test "$CHECKSHADOW" = "true"; then
1.1       millert  4419:
1.9       millert  4420: for ac_func in getspwuid
1.1       millert  4421: do
1.9       millert  4422: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   4423: echo "$as_me:4423: checking for $ac_func" >&5
                   4424: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   4425: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   4426:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4427: else
1.9       millert  4428:   cat >conftest.$ac_ext <<_ACEOF
                   4429: #line 4429 "configure"
1.1       millert  4430: #include "confdefs.h"
                   4431: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  4432:     which can conflict with char $ac_func (); below.  */
1.1       millert  4433: #include <assert.h>
                   4434: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  4435: #ifdef __cplusplus
                   4436: extern "C"
                   4437: #endif
1.1       millert  4438: /* We use char because int might match the return type of a gcc2
1.9       millert  4439:    builtin and then its argument prototype would still apply.  */
                   4440: char $ac_func ();
                   4441: char (*f) ();
1.1       millert  4442:
1.9       millert  4443: int
                   4444: main ()
                   4445: {
1.1       millert  4446: /* The GNU C library defines this for functions which it implements
                   4447:     to always fail with ENOSYS.  Some functions are actually named
                   4448:     something starting with __ and the normal name is an alias.  */
                   4449: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   4450: choke me
                   4451: #else
1.9       millert  4452: f = $ac_func;
1.1       millert  4453: #endif
                   4454:
1.9       millert  4455:   ;
                   4456:   return 0;
                   4457: }
                   4458: _ACEOF
                   4459: rm -f conftest.$ac_objext conftest$ac_exeext
                   4460: if { (eval echo "$as_me:4460: \"$ac_link\"") >&5
                   4461:   (eval $ac_link) 2>&5
                   4462:   ac_status=$?
                   4463:   echo "$as_me:4463: \$? = $ac_status" >&5
                   4464:   (exit $ac_status); } &&
                   4465:          { ac_try='test -s conftest$ac_exeext'
                   4466:   { (eval echo "$as_me:4466: \"$ac_try\"") >&5
                   4467:   (eval $ac_try) 2>&5
                   4468:   ac_status=$?
                   4469:   echo "$as_me:4469: \$? = $ac_status" >&5
                   4470:   (exit $ac_status); }; }; then
                   4471:   eval "$as_ac_var=yes"
                   4472: else
                   4473:   echo "$as_me: failed program was:" >&5
                   4474: cat conftest.$ac_ext >&5
                   4475: eval "$as_ac_var=no"
                   4476: fi
                   4477: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4478: fi
                   4479: echo "$as_me:4479: result: `eval echo '${'$as_ac_var'}'`" >&5
                   4480: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   4481: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   4482:   cat >>confdefs.h <<EOF
                   4483: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       millert  4484: EOF
                   4485:
                   4486: fi
                   4487: done
                   4488:
                   4489:                    CHECKSHADOW="false"
                   4490:                fi
                   4491:
                   4492:                # DCE support (requires ANSI C compiler)
                   4493:                if test "$with_DCE" = "yes"; then
                   4494:                    # order of libs in 9.X is important. -lc_r must be last
                   4495:                    SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
                   4496:                    LIBS="${LIBS} -ldce -lM -lc_r"
1.4       millert  4497:                    CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
1.1       millert  4498:                fi
                   4499:
                   4500:                # AFS support needs -lBSD
                   4501:                if test "$with_AFS" = "yes"; then
                   4502:                    AFS_LIBS="-lc -lBSD"
                   4503:                fi
1.9       millert  4504:                test -n "$mansectsu" || mansectsu=1m
                   4505:                test -n "$mansectform" || mansectform=4
1.1       millert  4506:                ;;
                   4507:     *-*-hpux*)
1.9       millert  4508:                cat >>confdefs.h <<\EOF
1.1       millert  4509: #define BROKEN_SYSLOG 1
                   4510: EOF
                   4511:
                   4512:                # Not sure if setuid binaries are safe in < 9.x
                   4513:                if test -n "$GCC"; then
                   4514:                    SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
                   4515:                else
                   4516:                    SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
                   4517:                fi
                   4518:
                   4519:                # AFS support needs -lBSD
                   4520:                if test "$with_AFS" = "yes"; then
                   4521:                    AFS_LIBS="-lc -lBSD"
                   4522:                fi
1.9       millert  4523:                test -n "$mansectsu" || mansectsu=1m
                   4524:                test -n "$mansectform" || mansectform=4
1.1       millert  4525:                ;;
                   4526:     *-dec-osf*)
                   4527:                # ignore envariables wrt dynamic lib path
                   4528:                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
                   4529:
1.9       millert  4530:                echo "$as_me:4530: checking whether to disable sia support on Digital UNIX" >&5
                   4531: echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6
1.1       millert  4532:                # Check whether --enable-sia or --disable-sia was given.
                   4533: if test "${enable_sia+set}" = set; then
                   4534:   enableval="$enable_sia"
                   4535:    case "$enableval" in
1.9       millert  4536:                    yes)        echo "$as_me:4536: result: no" >&5
                   4537: echo "${ECHO_T}no" >&6
1.1       millert  4538:                                ;;
1.9       millert  4539:                    no)         echo "$as_me:4539: result: yes" >&5
                   4540: echo "${ECHO_T}yes" >&6
1.1       millert  4541:                                CHECKSIA=false
                   4542:                                ;;
1.9       millert  4543:                    *)          echo "$as_me:4543: result: no" >&5
                   4544: echo "${ECHO_T}no" >&6
1.1       millert  4545:                                echo "Ignoring unknown argument to --enable-sia: $enableval"
                   4546:                                ;;
                   4547:                  esac
1.9       millert  4548:
1.1       millert  4549: else
1.9       millert  4550:   echo "$as_me:4550: result: no" >&5
                   4551: echo "${ECHO_T}no" >&6
                   4552: fi;
1.1       millert  4553:
                   4554:                # use SIA by default, if we have it, else SecureWare
                   4555:                # unless overridden on the command line
                   4556:                if test "$CHECKSIA" = "true"; then
1.9       millert  4557:                    echo "$as_me:4557: checking for sia_ses_init" >&5
                   4558: echo $ECHO_N "checking for sia_ses_init... $ECHO_C" >&6
                   4559: if test "${ac_cv_func_sia_ses_init+set}" = set; then
                   4560:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4561: else
1.9       millert  4562:   cat >conftest.$ac_ext <<_ACEOF
                   4563: #line 4563 "configure"
1.1       millert  4564: #include "confdefs.h"
                   4565: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  4566:     which can conflict with char sia_ses_init (); below.  */
1.1       millert  4567: #include <assert.h>
                   4568: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  4569: #ifdef __cplusplus
                   4570: extern "C"
                   4571: #endif
1.1       millert  4572: /* We use char because int might match the return type of a gcc2
1.9       millert  4573:    builtin and then its argument prototype would still apply.  */
                   4574: char sia_ses_init ();
                   4575: char (*f) ();
1.1       millert  4576:
1.9       millert  4577: int
                   4578: main ()
                   4579: {
1.1       millert  4580: /* The GNU C library defines this for functions which it implements
                   4581:     to always fail with ENOSYS.  Some functions are actually named
                   4582:     something starting with __ and the normal name is an alias.  */
                   4583: #if defined (__stub_sia_ses_init) || defined (__stub___sia_ses_init)
                   4584: choke me
                   4585: #else
1.9       millert  4586: f = sia_ses_init;
1.1       millert  4587: #endif
                   4588:
1.9       millert  4589:   ;
                   4590:   return 0;
                   4591: }
                   4592: _ACEOF
                   4593: rm -f conftest.$ac_objext conftest$ac_exeext
                   4594: if { (eval echo "$as_me:4594: \"$ac_link\"") >&5
                   4595:   (eval $ac_link) 2>&5
                   4596:   ac_status=$?
                   4597:   echo "$as_me:4597: \$? = $ac_status" >&5
                   4598:   (exit $ac_status); } &&
                   4599:          { ac_try='test -s conftest$ac_exeext'
                   4600:   { (eval echo "$as_me:4600: \"$ac_try\"") >&5
                   4601:   (eval $ac_try) 2>&5
                   4602:   ac_status=$?
                   4603:   echo "$as_me:4603: \$? = $ac_status" >&5
                   4604:   (exit $ac_status); }; }; then
                   4605:   ac_cv_func_sia_ses_init=yes
                   4606: else
                   4607:   echo "$as_me: failed program was:" >&5
                   4608: cat conftest.$ac_ext >&5
                   4609: ac_cv_func_sia_ses_init=no
                   4610: fi
                   4611: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4612: fi
                   4613: echo "$as_me:4613: result: $ac_cv_func_sia_ses_init" >&5
                   4614: echo "${ECHO_T}$ac_cv_func_sia_ses_init" >&6
                   4615: if test $ac_cv_func_sia_ses_init = yes; then
1.1       millert  4616:
1.9       millert  4617: cat >>confdefs.h <<\EOF
1.1       millert  4618: #define HAVE_SIA 1
                   4619: EOF
1.9       millert  4620:
1.1       millert  4621:                    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.9       millert  4622:                        { { echo "$as_me:4622: error: \"you cannot mix SIA and other authentication schemes.  You can turn off SIA support via the --disable-sia option\"" >&5
                   4623: echo "$as_me: error: \"you cannot mix SIA and other authentication schemes.  You can turn off SIA support via the --disable-sia option\"" >&2;}
                   4624:    { (exit 1); exit 1; }; }
1.1       millert  4625:                    fi; CHECKSHADOW=false
                   4626: fi
                   4627:
                   4628:                fi
                   4629:                if test "$CHECKSHADOW" = "true"; then
1.9       millert  4630:                    echo "$as_me:4630: checking for getprpwnam in -lsecurity" >&5
                   4631: echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
                   4632: if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
                   4633:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4634: else
1.9       millert  4635:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  4636: LIBS="-lsecurity  $LIBS"
1.9       millert  4637: cat >conftest.$ac_ext <<_ACEOF
                   4638: #line 4638 "configure"
1.1       millert  4639: #include "confdefs.h"
1.9       millert  4640:
1.1       millert  4641: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  4642: #ifdef __cplusplus
                   4643: extern "C"
                   4644: #endif
1.1       millert  4645: /* We use char because int might match the return type of a gcc2
1.9       millert  4646:    builtin and then its argument prototype would still apply.  */
                   4647: char getprpwnam ();
                   4648: int
                   4649: main ()
                   4650: {
                   4651: getprpwnam ();
                   4652:   ;
                   4653:   return 0;
                   4654: }
                   4655: _ACEOF
                   4656: rm -f conftest.$ac_objext conftest$ac_exeext
                   4657: if { (eval echo "$as_me:4657: \"$ac_link\"") >&5
                   4658:   (eval $ac_link) 2>&5
                   4659:   ac_status=$?
                   4660:   echo "$as_me:4660: \$? = $ac_status" >&5
                   4661:   (exit $ac_status); } &&
                   4662:          { ac_try='test -s conftest$ac_exeext'
                   4663:   { (eval echo "$as_me:4663: \"$ac_try\"") >&5
                   4664:   (eval $ac_try) 2>&5
                   4665:   ac_status=$?
                   4666:   echo "$as_me:4666: \$? = $ac_status" >&5
                   4667:   (exit $ac_status); }; }; then
                   4668:   ac_cv_lib_security_getprpwnam=yes
                   4669: else
                   4670:   echo "$as_me: failed program was:" >&5
                   4671: cat conftest.$ac_ext >&5
                   4672: ac_cv_lib_security_getprpwnam=no
                   4673: fi
                   4674: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4675: LIBS=$ac_check_lib_save_LIBS
                   4676: fi
                   4677: echo "$as_me:4677: result: $ac_cv_lib_security_getprpwnam" >&5
                   4678: echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
                   4679: if test $ac_cv_lib_security_getprpwnam = yes; then
1.1       millert  4680:   SECUREWARE=1
                   4681: fi
                   4682:
                   4683:                    CHECKSHADOW="false"
                   4684:                fi
                   4685:
                   4686:                if test -n "$SECUREWARE"; then
1.9       millert  4687:
                   4688: cat >>confdefs.h <<\EOF
1.1       millert  4689: #define HAVE_GETPRPWNAM 1
                   4690: EOF
                   4691:
                   4692:                    # -ldb includes bogus versions of snprintf/vsnprintf
1.9       millert  4693:
                   4694: for ac_func in snprintf
                   4695: do
                   4696: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   4697: echo "$as_me:4697: checking for $ac_func" >&5
                   4698: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   4699: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   4700:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4701: else
1.9       millert  4702:   cat >conftest.$ac_ext <<_ACEOF
                   4703: #line 4703 "configure"
1.1       millert  4704: #include "confdefs.h"
                   4705: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  4706:     which can conflict with char $ac_func (); below.  */
1.1       millert  4707: #include <assert.h>
                   4708: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  4709: #ifdef __cplusplus
                   4710: extern "C"
                   4711: #endif
1.1       millert  4712: /* We use char because int might match the return type of a gcc2
1.9       millert  4713:    builtin and then its argument prototype would still apply.  */
                   4714: char $ac_func ();
                   4715: char (*f) ();
1.1       millert  4716:
1.9       millert  4717: int
                   4718: main ()
                   4719: {
1.1       millert  4720: /* The GNU C library defines this for functions which it implements
                   4721:     to always fail with ENOSYS.  Some functions are actually named
                   4722:     something starting with __ and the normal name is an alias.  */
1.9       millert  4723: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  4724: choke me
                   4725: #else
1.9       millert  4726: f = $ac_func;
1.1       millert  4727: #endif
                   4728:
1.9       millert  4729:   ;
                   4730:   return 0;
                   4731: }
                   4732: _ACEOF
                   4733: rm -f conftest.$ac_objext conftest$ac_exeext
                   4734: if { (eval echo "$as_me:4734: \"$ac_link\"") >&5
                   4735:   (eval $ac_link) 2>&5
                   4736:   ac_status=$?
                   4737:   echo "$as_me:4737: \$? = $ac_status" >&5
                   4738:   (exit $ac_status); } &&
                   4739:          { ac_try='test -s conftest$ac_exeext'
                   4740:   { (eval echo "$as_me:4740: \"$ac_try\"") >&5
                   4741:   (eval $ac_try) 2>&5
                   4742:   ac_status=$?
                   4743:   echo "$as_me:4743: \$? = $ac_status" >&5
                   4744:   (exit $ac_status); }; }; then
                   4745:   eval "$as_ac_var=yes"
                   4746: else
                   4747:   echo "$as_me: failed program was:" >&5
                   4748: cat conftest.$ac_ext >&5
                   4749: eval "$as_ac_var=no"
                   4750: fi
                   4751: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4752: fi
                   4753: echo "$as_me:4753: result: `eval echo '${'$as_ac_var'}'`" >&5
                   4754: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   4755: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   4756:   cat >>confdefs.h <<EOF
                   4757: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       millert  4758: EOF
                   4759:
                   4760: else
1.9       millert  4761:   NEED_SNPRINTF=1
1.1       millert  4762: fi
1.9       millert  4763: done
1.1       millert  4764:
1.9       millert  4765: for ac_func in vsnprintf
                   4766: do
                   4767: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   4768: echo "$as_me:4768: checking for $ac_func" >&5
                   4769: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   4770: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   4771:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4772: else
1.9       millert  4773:   cat >conftest.$ac_ext <<_ACEOF
                   4774: #line 4774 "configure"
1.1       millert  4775: #include "confdefs.h"
                   4776: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  4777:     which can conflict with char $ac_func (); below.  */
1.1       millert  4778: #include <assert.h>
                   4779: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  4780: #ifdef __cplusplus
                   4781: extern "C"
                   4782: #endif
1.1       millert  4783: /* We use char because int might match the return type of a gcc2
1.9       millert  4784:    builtin and then its argument prototype would still apply.  */
                   4785: char $ac_func ();
                   4786: char (*f) ();
1.1       millert  4787:
1.9       millert  4788: int
                   4789: main ()
                   4790: {
1.1       millert  4791: /* The GNU C library defines this for functions which it implements
                   4792:     to always fail with ENOSYS.  Some functions are actually named
                   4793:     something starting with __ and the normal name is an alias.  */
1.9       millert  4794: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  4795: choke me
                   4796: #else
1.9       millert  4797: f = $ac_func;
1.1       millert  4798: #endif
                   4799:
1.9       millert  4800:   ;
                   4801:   return 0;
                   4802: }
                   4803: _ACEOF
                   4804: rm -f conftest.$ac_objext conftest$ac_exeext
                   4805: if { (eval echo "$as_me:4805: \"$ac_link\"") >&5
                   4806:   (eval $ac_link) 2>&5
                   4807:   ac_status=$?
                   4808:   echo "$as_me:4808: \$? = $ac_status" >&5
                   4809:   (exit $ac_status); } &&
                   4810:          { ac_try='test -s conftest$ac_exeext'
                   4811:   { (eval echo "$as_me:4811: \"$ac_try\"") >&5
                   4812:   (eval $ac_try) 2>&5
                   4813:   ac_status=$?
                   4814:   echo "$as_me:4814: \$? = $ac_status" >&5
                   4815:   (exit $ac_status); }; }; then
                   4816:   eval "$as_ac_var=yes"
                   4817: else
                   4818:   echo "$as_me: failed program was:" >&5
                   4819: cat conftest.$ac_ext >&5
                   4820: eval "$as_ac_var=no"
                   4821: fi
                   4822: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4823: fi
                   4824: echo "$as_me:4824: result: `eval echo '${'$as_ac_var'}'`" >&5
                   4825: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   4826: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   4827:   cat >>confdefs.h <<EOF
                   4828: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       millert  4829: EOF
                   4830:
                   4831: else
1.9       millert  4832:   NEED_SNPRINTF=1
1.1       millert  4833: fi
1.9       millert  4834: done
1.1       millert  4835:
                   4836:                    # 4.x and higher need -ldb too...
1.9       millert  4837:                    echo "$as_me:4837: checking for dbopen in -ldb" >&5
                   4838: echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6
                   4839: if test "${ac_cv_lib_db_dbopen+set}" = set; then
                   4840:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4841: else
1.9       millert  4842:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  4843: LIBS="-ldb  $LIBS"
1.9       millert  4844: cat >conftest.$ac_ext <<_ACEOF
                   4845: #line 4845 "configure"
1.1       millert  4846: #include "confdefs.h"
1.9       millert  4847:
1.1       millert  4848: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  4849: #ifdef __cplusplus
                   4850: extern "C"
                   4851: #endif
1.1       millert  4852: /* We use char because int might match the return type of a gcc2
1.9       millert  4853:    builtin and then its argument prototype would still apply.  */
                   4854: char dbopen ();
                   4855: int
                   4856: main ()
                   4857: {
                   4858: dbopen ();
                   4859:   ;
                   4860:   return 0;
                   4861: }
                   4862: _ACEOF
                   4863: rm -f conftest.$ac_objext conftest$ac_exeext
                   4864: if { (eval echo "$as_me:4864: \"$ac_link\"") >&5
                   4865:   (eval $ac_link) 2>&5
                   4866:   ac_status=$?
                   4867:   echo "$as_me:4867: \$? = $ac_status" >&5
                   4868:   (exit $ac_status); } &&
                   4869:          { ac_try='test -s conftest$ac_exeext'
                   4870:   { (eval echo "$as_me:4870: \"$ac_try\"") >&5
                   4871:   (eval $ac_try) 2>&5
                   4872:   ac_status=$?
                   4873:   echo "$as_me:4873: \$? = $ac_status" >&5
                   4874:   (exit $ac_status); }; }; then
                   4875:   ac_cv_lib_db_dbopen=yes
                   4876: else
                   4877:   echo "$as_me: failed program was:" >&5
                   4878: cat conftest.$ac_ext >&5
                   4879: ac_cv_lib_db_dbopen=no
                   4880: fi
                   4881: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4882: LIBS=$ac_check_lib_save_LIBS
                   4883: fi
                   4884: echo "$as_me:4884: result: $ac_cv_lib_db_dbopen" >&5
                   4885: echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6
                   4886: if test $ac_cv_lib_db_dbopen = yes; then
                   4887:   SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
1.1       millert  4888: else
                   4889:   SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
                   4890: fi
                   4891:
1.9       millert  4892: for ac_func in dispcrypt
1.1       millert  4893: do
1.9       millert  4894: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   4895: echo "$as_me:4895: checking for $ac_func" >&5
                   4896: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   4897: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   4898:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4899: else
1.9       millert  4900:   cat >conftest.$ac_ext <<_ACEOF
                   4901: #line 4901 "configure"
1.1       millert  4902: #include "confdefs.h"
                   4903: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  4904:     which can conflict with char $ac_func (); below.  */
1.1       millert  4905: #include <assert.h>
                   4906: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  4907: #ifdef __cplusplus
                   4908: extern "C"
                   4909: #endif
1.1       millert  4910: /* We use char because int might match the return type of a gcc2
1.9       millert  4911:    builtin and then its argument prototype would still apply.  */
                   4912: char $ac_func ();
                   4913: char (*f) ();
1.1       millert  4914:
1.9       millert  4915: int
                   4916: main ()
                   4917: {
1.1       millert  4918: /* The GNU C library defines this for functions which it implements
                   4919:     to always fail with ENOSYS.  Some functions are actually named
                   4920:     something starting with __ and the normal name is an alias.  */
                   4921: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   4922: choke me
                   4923: #else
1.9       millert  4924: f = $ac_func;
1.1       millert  4925: #endif
                   4926:
1.9       millert  4927:   ;
                   4928:   return 0;
                   4929: }
                   4930: _ACEOF
                   4931: rm -f conftest.$ac_objext conftest$ac_exeext
                   4932: if { (eval echo "$as_me:4932: \"$ac_link\"") >&5
                   4933:   (eval $ac_link) 2>&5
                   4934:   ac_status=$?
                   4935:   echo "$as_me:4935: \$? = $ac_status" >&5
                   4936:   (exit $ac_status); } &&
                   4937:          { ac_try='test -s conftest$ac_exeext'
                   4938:   { (eval echo "$as_me:4938: \"$ac_try\"") >&5
                   4939:   (eval $ac_try) 2>&5
                   4940:   ac_status=$?
                   4941:   echo "$as_me:4941: \$? = $ac_status" >&5
                   4942:   (exit $ac_status); }; }; then
                   4943:   eval "$as_ac_var=yes"
                   4944: else
                   4945:   echo "$as_me: failed program was:" >&5
                   4946: cat conftest.$ac_ext >&5
                   4947: eval "$as_ac_var=no"
                   4948: fi
                   4949: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   4950: fi
                   4951: echo "$as_me:4951: result: `eval echo '${'$as_ac_var'}'`" >&5
                   4952: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   4953: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   4954:   cat >>confdefs.h <<EOF
                   4955: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       millert  4956: EOF
                   4957:
                   4958: fi
                   4959: done
                   4960:
1.9       millert  4961:                    echo "$as_me:4961: checking for broken /usr/include/prot.h" >&5
                   4962: echo $ECHO_N "checking for broken /usr/include/prot.h... $ECHO_C" >&6
                   4963:                    cat >conftest.$ac_ext <<_ACEOF
                   4964: #line 4964 "configure"
1.1       millert  4965: #include "confdefs.h"
                   4966:
                   4967: #include <sys/types.h>
                   4968: #include <sys/security.h>
                   4969: #include <prot.h>
1.9       millert  4970:
                   4971: int
                   4972: main ()
                   4973: {
1.1       millert  4974: exit(0);
1.9       millert  4975:   ;
                   4976:   return 0;
                   4977: }
                   4978: _ACEOF
                   4979: rm -f conftest.$ac_objext
                   4980: if { (eval echo "$as_me:4980: \"$ac_compile\"") >&5
                   4981:   (eval $ac_compile) 2>&5
                   4982:   ac_status=$?
                   4983:   echo "$as_me:4983: \$? = $ac_status" >&5
                   4984:   (exit $ac_status); } &&
                   4985:          { ac_try='test -s conftest.$ac_objext'
                   4986:   { (eval echo "$as_me:4986: \"$ac_try\"") >&5
                   4987:   (eval $ac_try) 2>&5
                   4988:   ac_status=$?
                   4989:   echo "$as_me:4989: \$? = $ac_status" >&5
                   4990:   (exit $ac_status); }; }; then
                   4991:   echo "$as_me:4991: result: no" >&5
                   4992: echo "${ECHO_T}no" >&6
                   4993: else
                   4994:   echo "$as_me: failed program was:" >&5
                   4995: cat conftest.$ac_ext >&5
                   4996: echo "$as_me:4996: result: yes, fixing locally" >&5
                   4997: echo "${ECHO_T}yes, fixing locally" >&6
1.1       millert  4998:                    sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
1.9       millert  4999:
1.1       millert  5000: fi
1.9       millert  5001: rm -f conftest.$ac_objext conftest.$ac_ext
                   5002:                elif test "$CHECKSIA" = "true"; then
1.1       millert  5003:                    with_passwd=no
                   5004:                    AUTH_OBJS="sia.o"
                   5005:                fi
1.9       millert  5006:                test -n "$mansectsu" || mansectsu=8
                   5007:                test -n "$mansectform" || mansectform=4
1.1       millert  5008:                ;;
                   5009:     *-*-irix*)
                   5010:                CPPFLAGS="${CPPFLAGS} -D_BSD_TYPES"
                   5011:                if test -z "$NROFFPROG"; then
                   5012:                    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)'
                   5013:                    if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
                   5014:                        if test -d /usr/share/catman/local; then
                   5015:                            mandir="/usr/share/catman/local"
                   5016:                        else
                   5017:                            mandir="/usr/catman/local"
                   5018:                        fi
                   5019:                    fi
                   5020:                else
                   5021:                    if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
                   5022:                        if test -d "/usr/share/man/local"; then
                   5023:                            mandir="/usr/share/man/local"
                   5024:                        else
                   5025:                            mandir="/usr/man/local"
                   5026:                        fi
                   5027:                    fi
                   5028:                fi
                   5029:                # IRIX <= 4 needs -lsun
                   5030:                if test "$OSREV" -le 4; then
1.9       millert  5031:                    echo "$as_me:5031: checking for getpwnam in -lsun" >&5
                   5032: echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
                   5033: if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
                   5034:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5035: else
1.9       millert  5036:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  5037: LIBS="-lsun  $LIBS"
1.9       millert  5038: cat >conftest.$ac_ext <<_ACEOF
                   5039: #line 5039 "configure"
1.1       millert  5040: #include "confdefs.h"
1.9       millert  5041:
1.1       millert  5042: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5043: #ifdef __cplusplus
                   5044: extern "C"
                   5045: #endif
1.1       millert  5046: /* We use char because int might match the return type of a gcc2
1.9       millert  5047:    builtin and then its argument prototype would still apply.  */
                   5048: char getpwnam ();
                   5049: int
                   5050: main ()
                   5051: {
                   5052: getpwnam ();
                   5053:   ;
                   5054:   return 0;
                   5055: }
                   5056: _ACEOF
                   5057: rm -f conftest.$ac_objext conftest$ac_exeext
                   5058: if { (eval echo "$as_me:5058: \"$ac_link\"") >&5
                   5059:   (eval $ac_link) 2>&5
                   5060:   ac_status=$?
                   5061:   echo "$as_me:5061: \$? = $ac_status" >&5
                   5062:   (exit $ac_status); } &&
                   5063:          { ac_try='test -s conftest$ac_exeext'
                   5064:   { (eval echo "$as_me:5064: \"$ac_try\"") >&5
                   5065:   (eval $ac_try) 2>&5
                   5066:   ac_status=$?
                   5067:   echo "$as_me:5067: \$? = $ac_status" >&5
                   5068:   (exit $ac_status); }; }; then
                   5069:   ac_cv_lib_sun_getpwnam=yes
                   5070: else
                   5071:   echo "$as_me: failed program was:" >&5
                   5072: cat conftest.$ac_ext >&5
                   5073: ac_cv_lib_sun_getpwnam=no
                   5074: fi
                   5075: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5076: LIBS=$ac_check_lib_save_LIBS
                   5077: fi
                   5078: echo "$as_me:5078: result: $ac_cv_lib_sun_getpwnam" >&5
                   5079: echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
                   5080: if test $ac_cv_lib_sun_getpwnam = yes; then
1.1       millert  5081:   LIBS="${LIBS} -lsun"
                   5082: fi
                   5083:
                   5084:                fi
1.9       millert  5085:                test -n "$mansectsu" || mansectsu=1m
                   5086:                test -n "$mansectform" || mansectform=4
1.1       millert  5087:                ;;
                   5088:     *-*-linux*)
                   5089:                # Some Linux versions need to link with -lshadow
                   5090:                if test "$CHECKSHADOW" = "true"; then
1.9       millert  5091:
                   5092: for ac_func in getspnam
                   5093: do
                   5094: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   5095: echo "$as_me:5095: checking for $ac_func" >&5
                   5096: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   5097: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   5098:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5099: else
1.9       millert  5100:   cat >conftest.$ac_ext <<_ACEOF
                   5101: #line 5101 "configure"
1.1       millert  5102: #include "confdefs.h"
                   5103: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  5104:     which can conflict with char $ac_func (); below.  */
1.1       millert  5105: #include <assert.h>
                   5106: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5107: #ifdef __cplusplus
                   5108: extern "C"
                   5109: #endif
1.1       millert  5110: /* We use char because int might match the return type of a gcc2
1.9       millert  5111:    builtin and then its argument prototype would still apply.  */
                   5112: char $ac_func ();
                   5113: char (*f) ();
1.1       millert  5114:
1.9       millert  5115: int
                   5116: main ()
                   5117: {
1.1       millert  5118: /* The GNU C library defines this for functions which it implements
                   5119:     to always fail with ENOSYS.  Some functions are actually named
                   5120:     something starting with __ and the normal name is an alias.  */
1.9       millert  5121: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  5122: choke me
                   5123: #else
1.9       millert  5124: f = $ac_func;
1.1       millert  5125: #endif
                   5126:
1.9       millert  5127:   ;
                   5128:   return 0;
                   5129: }
                   5130: _ACEOF
                   5131: rm -f conftest.$ac_objext conftest$ac_exeext
                   5132: if { (eval echo "$as_me:5132: \"$ac_link\"") >&5
                   5133:   (eval $ac_link) 2>&5
                   5134:   ac_status=$?
                   5135:   echo "$as_me:5135: \$? = $ac_status" >&5
                   5136:   (exit $ac_status); } &&
                   5137:          { ac_try='test -s conftest$ac_exeext'
                   5138:   { (eval echo "$as_me:5138: \"$ac_try\"") >&5
                   5139:   (eval $ac_try) 2>&5
                   5140:   ac_status=$?
                   5141:   echo "$as_me:5141: \$? = $ac_status" >&5
                   5142:   (exit $ac_status); }; }; then
                   5143:   eval "$as_ac_var=yes"
                   5144: else
                   5145:   echo "$as_me: failed program was:" >&5
                   5146: cat conftest.$ac_ext >&5
                   5147: eval "$as_ac_var=no"
                   5148: fi
                   5149: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5150: fi
                   5151: echo "$as_me:5151: result: `eval echo '${'$as_ac_var'}'`" >&5
                   5152: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   5153: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   5154:   cat >>confdefs.h <<EOF
                   5155: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       millert  5156: EOF
                   5157:
                   5158: else
1.9       millert  5159:   echo "$as_me:5159: checking for getspnam in -lshadow" >&5
                   5160: echo $ECHO_N "checking for getspnam in -lshadow... $ECHO_C" >&6
                   5161: if test "${ac_cv_lib_shadow_getspnam+set}" = set; then
                   5162:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5163: else
1.9       millert  5164:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  5165: LIBS="-lshadow  $LIBS"
1.9       millert  5166: cat >conftest.$ac_ext <<_ACEOF
                   5167: #line 5167 "configure"
1.1       millert  5168: #include "confdefs.h"
1.9       millert  5169:
1.1       millert  5170: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5171: #ifdef __cplusplus
                   5172: extern "C"
                   5173: #endif
1.1       millert  5174: /* We use char because int might match the return type of a gcc2
1.9       millert  5175:    builtin and then its argument prototype would still apply.  */
                   5176: char getspnam ();
                   5177: int
                   5178: main ()
                   5179: {
                   5180: getspnam ();
                   5181:   ;
                   5182:   return 0;
                   5183: }
                   5184: _ACEOF
                   5185: rm -f conftest.$ac_objext conftest$ac_exeext
                   5186: if { (eval echo "$as_me:5186: \"$ac_link\"") >&5
                   5187:   (eval $ac_link) 2>&5
                   5188:   ac_status=$?
                   5189:   echo "$as_me:5189: \$? = $ac_status" >&5
                   5190:   (exit $ac_status); } &&
                   5191:          { ac_try='test -s conftest$ac_exeext'
                   5192:   { (eval echo "$as_me:5192: \"$ac_try\"") >&5
                   5193:   (eval $ac_try) 2>&5
                   5194:   ac_status=$?
                   5195:   echo "$as_me:5195: \$? = $ac_status" >&5
                   5196:   (exit $ac_status); }; }; then
                   5197:   ac_cv_lib_shadow_getspnam=yes
                   5198: else
                   5199:   echo "$as_me: failed program was:" >&5
                   5200: cat conftest.$ac_ext >&5
                   5201: ac_cv_lib_shadow_getspnam=no
                   5202: fi
                   5203: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5204: LIBS=$ac_check_lib_save_LIBS
                   5205: fi
                   5206: echo "$as_me:5206: result: $ac_cv_lib_shadow_getspnam" >&5
                   5207: echo "${ECHO_T}$ac_cv_lib_shadow_getspnam" >&6
                   5208: if test $ac_cv_lib_shadow_getspnam = yes; then
                   5209:   cat >>confdefs.h <<\EOF
1.1       millert  5210: #define HAVE_GETSPNAM 1
                   5211: EOF
                   5212:  SUDO_LIBS="${SUDO_LIBS} -lshadow"; LIBS="${LIBS} -lshadow"
                   5213: fi
                   5214:
                   5215: fi
1.9       millert  5216: done
1.1       millert  5217:
                   5218:                    CHECKSHADOW="false"
                   5219:                fi
                   5220:                ;;
                   5221:     *-convex-bsd*)
1.9       millert  5222:                cat >>confdefs.h <<\EOF
1.1       millert  5223: #define _CONVEX_SOURCE 1
                   5224: EOF
                   5225:
                   5226:                if test -z "$GCC"; then
                   5227:                    CFLAGS="${CFLAGS} -D__STDC__"
                   5228:                fi
                   5229:
                   5230:                if test "$CHECKSHADOW" = "true"; then
1.9       millert  5231:                    echo "$as_me:5231: checking for getprpwnam in -lsec" >&5
                   5232: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
                   5233: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
                   5234:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5235: else
1.9       millert  5236:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  5237: LIBS="-lsec  $LIBS"
1.9       millert  5238: cat >conftest.$ac_ext <<_ACEOF
                   5239: #line 5239 "configure"
1.1       millert  5240: #include "confdefs.h"
1.9       millert  5241:
1.1       millert  5242: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5243: #ifdef __cplusplus
                   5244: extern "C"
                   5245: #endif
1.1       millert  5246: /* We use char because int might match the return type of a gcc2
1.9       millert  5247:    builtin and then its argument prototype would still apply.  */
                   5248: char getprpwnam ();
                   5249: int
                   5250: main ()
                   5251: {
                   5252: getprpwnam ();
                   5253:   ;
                   5254:   return 0;
                   5255: }
                   5256: _ACEOF
                   5257: rm -f conftest.$ac_objext conftest$ac_exeext
                   5258: if { (eval echo "$as_me:5258: \"$ac_link\"") >&5
                   5259:   (eval $ac_link) 2>&5
                   5260:   ac_status=$?
                   5261:   echo "$as_me:5261: \$? = $ac_status" >&5
                   5262:   (exit $ac_status); } &&
                   5263:          { ac_try='test -s conftest$ac_exeext'
                   5264:   { (eval echo "$as_me:5264: \"$ac_try\"") >&5
                   5265:   (eval $ac_try) 2>&5
                   5266:   ac_status=$?
                   5267:   echo "$as_me:5267: \$? = $ac_status" >&5
                   5268:   (exit $ac_status); }; }; then
                   5269:   ac_cv_lib_sec_getprpwnam=yes
                   5270: else
                   5271:   echo "$as_me: failed program was:" >&5
                   5272: cat conftest.$ac_ext >&5
                   5273: ac_cv_lib_sec_getprpwnam=no
                   5274: fi
                   5275: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5276: LIBS=$ac_check_lib_save_LIBS
                   5277: fi
                   5278: echo "$as_me:5278: result: $ac_cv_lib_sec_getprpwnam" >&5
                   5279: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
                   5280: if test $ac_cv_lib_sec_getprpwnam = yes; then
                   5281:   cat >>confdefs.h <<\EOF
1.1       millert  5282: #define HAVE_GETPRPWNAM 1
                   5283: EOF
                   5284:  SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"; OSDEFS="${OSDEFS} -D_AUDIT -D_ACL -DSecureWare"; SECUREWARE=1
                   5285: fi
                   5286:
                   5287:                    CHECKSHADOW="false"
                   5288:                fi
                   5289:                ;;
                   5290:     *-*-ultrix*)
                   5291:                OS="ultrix"
                   5292:                if test "$CHECKSHADOW" = "true"; then
1.9       millert  5293:                    echo "$as_me:5293: checking for getauthuid in -lauth" >&5
                   5294: echo $ECHO_N "checking for getauthuid in -lauth... $ECHO_C" >&6
                   5295: if test "${ac_cv_lib_auth_getauthuid+set}" = set; then
                   5296:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5297: else
1.9       millert  5298:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  5299: LIBS="-lauth  $LIBS"
1.9       millert  5300: cat >conftest.$ac_ext <<_ACEOF
                   5301: #line 5301 "configure"
1.1       millert  5302: #include "confdefs.h"
1.9       millert  5303:
1.1       millert  5304: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5305: #ifdef __cplusplus
                   5306: extern "C"
                   5307: #endif
1.1       millert  5308: /* We use char because int might match the return type of a gcc2
1.9       millert  5309:    builtin and then its argument prototype would still apply.  */
                   5310: char getauthuid ();
                   5311: int
                   5312: main ()
                   5313: {
                   5314: getauthuid ();
                   5315:   ;
                   5316:   return 0;
                   5317: }
                   5318: _ACEOF
                   5319: rm -f conftest.$ac_objext conftest$ac_exeext
                   5320: if { (eval echo "$as_me:5320: \"$ac_link\"") >&5
                   5321:   (eval $ac_link) 2>&5
                   5322:   ac_status=$?
                   5323:   echo "$as_me:5323: \$? = $ac_status" >&5
                   5324:   (exit $ac_status); } &&
                   5325:          { ac_try='test -s conftest$ac_exeext'
                   5326:   { (eval echo "$as_me:5326: \"$ac_try\"") >&5
                   5327:   (eval $ac_try) 2>&5
                   5328:   ac_status=$?
                   5329:   echo "$as_me:5329: \$? = $ac_status" >&5
                   5330:   (exit $ac_status); }; }; then
                   5331:   ac_cv_lib_auth_getauthuid=yes
                   5332: else
                   5333:   echo "$as_me: failed program was:" >&5
                   5334: cat conftest.$ac_ext >&5
                   5335: ac_cv_lib_auth_getauthuid=no
                   5336: fi
                   5337: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5338: LIBS=$ac_check_lib_save_LIBS
                   5339: fi
                   5340: echo "$as_me:5340: result: $ac_cv_lib_auth_getauthuid" >&5
                   5341: echo "${ECHO_T}$ac_cv_lib_auth_getauthuid" >&6
                   5342: if test $ac_cv_lib_auth_getauthuid = yes; then
1.1       millert  5343:
1.9       millert  5344: cat >>confdefs.h <<\EOF
1.1       millert  5345: #define HAVE_GETAUTHUID 1
                   5346: EOF
                   5347:  SUDO_LIBS="${SUDO_LIBS} -lauth"; LIBS="${LIBS} -lauth"
                   5348: fi
                   5349:
                   5350:                    CHECKSHADOW="false"
                   5351:                fi
                   5352:                ;;
                   5353:     *-*-riscos*)
                   5354:                LIBS="${LIBS} -lsun -lbsd"
                   5355:                CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
                   5356:                OSDEFS="${OSDEFS} -D_MIPS"
1.9       millert  5357:                test -n "$mansectsu" || mansectsu=1m
                   5358:                test -n "$mansectform" || mansectform=4
1.1       millert  5359:                ;;
                   5360:     *-*-isc*)
                   5361:                OSDEFS="${OSDEFS} -D_ISC"
                   5362:                LIB_CRYPT=1
                   5363:                SUDO_LIBS="${SUDO_LIBS} -lcrypt"
                   5364:                LIBS="${LIBS} -lcrypt"
                   5365:
                   5366:                if test "$CHECKSHADOW" = "true"; then
1.9       millert  5367:                    echo "$as_me:5367: checking for getspnam in -lsec" >&5
                   5368: echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
                   5369: if test "${ac_cv_lib_sec_getspnam+set}" = set; then
                   5370:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5371: else
1.9       millert  5372:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  5373: LIBS="-lsec  $LIBS"
1.9       millert  5374: cat >conftest.$ac_ext <<_ACEOF
                   5375: #line 5375 "configure"
1.1       millert  5376: #include "confdefs.h"
1.9       millert  5377:
1.1       millert  5378: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5379: #ifdef __cplusplus
                   5380: extern "C"
                   5381: #endif
1.1       millert  5382: /* We use char because int might match the return type of a gcc2
1.9       millert  5383:    builtin and then its argument prototype would still apply.  */
                   5384: char getspnam ();
                   5385: int
                   5386: main ()
                   5387: {
                   5388: getspnam ();
                   5389:   ;
                   5390:   return 0;
                   5391: }
                   5392: _ACEOF
                   5393: rm -f conftest.$ac_objext conftest$ac_exeext
                   5394: if { (eval echo "$as_me:5394: \"$ac_link\"") >&5
                   5395:   (eval $ac_link) 2>&5
                   5396:   ac_status=$?
                   5397:   echo "$as_me:5397: \$? = $ac_status" >&5
                   5398:   (exit $ac_status); } &&
                   5399:          { ac_try='test -s conftest$ac_exeext'
                   5400:   { (eval echo "$as_me:5400: \"$ac_try\"") >&5
                   5401:   (eval $ac_try) 2>&5
                   5402:   ac_status=$?
                   5403:   echo "$as_me:5403: \$? = $ac_status" >&5
                   5404:   (exit $ac_status); }; }; then
                   5405:   ac_cv_lib_sec_getspnam=yes
                   5406: else
                   5407:   echo "$as_me: failed program was:" >&5
                   5408: cat conftest.$ac_ext >&5
                   5409: ac_cv_lib_sec_getspnam=no
                   5410: fi
                   5411: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5412: LIBS=$ac_check_lib_save_LIBS
                   5413: fi
                   5414: echo "$as_me:5414: result: $ac_cv_lib_sec_getspnam" >&5
                   5415: echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
                   5416: if test $ac_cv_lib_sec_getspnam = yes; then
                   5417:   cat >>confdefs.h <<\EOF
1.1       millert  5418: #define HAVE_GETSPNAM 1
                   5419: EOF
                   5420:  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
                   5421: fi
                   5422:
                   5423:                    CHECKSHADOW="false"
                   5424:                fi
1.9       millert  5425:                test -n "$mansectsu" || mansectsu=1m
                   5426:                test -n "$mansectform" || mansectform=4
1.1       millert  5427:                ;;
1.9       millert  5428:     *-*-sco*|*-sco-*)
1.1       millert  5429:                if test "$CHECKSHADOW" = "true"; then
1.9       millert  5430:                    echo "$as_me:5430: checking for getprpwnam in -lprot" >&5
                   5431: echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
                   5432: if test "${ac_cv_lib_prot_getprpwnam_lx+set}" = set; then
                   5433:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5434: else
1.9       millert  5435:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  5436: LIBS="-lprot -lx $LIBS"
1.9       millert  5437: cat >conftest.$ac_ext <<_ACEOF
                   5438: #line 5438 "configure"
1.1       millert  5439: #include "confdefs.h"
1.9       millert  5440:
1.1       millert  5441: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5442: #ifdef __cplusplus
                   5443: extern "C"
                   5444: #endif
1.1       millert  5445: /* We use char because int might match the return type of a gcc2
1.9       millert  5446:    builtin and then its argument prototype would still apply.  */
                   5447: char getprpwnam ();
                   5448: int
                   5449: main ()
                   5450: {
                   5451: getprpwnam ();
                   5452:   ;
                   5453:   return 0;
                   5454: }
                   5455: _ACEOF
                   5456: rm -f conftest.$ac_objext conftest$ac_exeext
                   5457: if { (eval echo "$as_me:5457: \"$ac_link\"") >&5
                   5458:   (eval $ac_link) 2>&5
                   5459:   ac_status=$?
                   5460:   echo "$as_me:5460: \$? = $ac_status" >&5
                   5461:   (exit $ac_status); } &&
                   5462:          { ac_try='test -s conftest$ac_exeext'
                   5463:   { (eval echo "$as_me:5463: \"$ac_try\"") >&5
                   5464:   (eval $ac_try) 2>&5
                   5465:   ac_status=$?
                   5466:   echo "$as_me:5466: \$? = $ac_status" >&5
                   5467:   (exit $ac_status); }; }; then
                   5468:   ac_cv_lib_prot_getprpwnam_lx=yes
                   5469: else
                   5470:   echo "$as_me: failed program was:" >&5
                   5471: cat conftest.$ac_ext >&5
                   5472: ac_cv_lib_prot_getprpwnam_lx=no
                   5473: fi
                   5474: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5475: LIBS=$ac_check_lib_save_LIBS
                   5476: fi
                   5477: echo "$as_me:5477: result: $ac_cv_lib_prot_getprpwnam_lx" >&5
                   5478: echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam_lx" >&6
                   5479: if test $ac_cv_lib_prot_getprpwnam_lx = yes; then
                   5480:   cat >>confdefs.h <<\EOF
1.1       millert  5481: #define HAVE_GETPRPWNAM 1
                   5482: EOF
                   5483:  SUDO_LIBS="${SUDO_LIBS} -lprot -lx"; LIBS="${LIBS} -lprot -lx"; SECUREWARE=1
                   5484: fi
                   5485:
1.9       millert  5486:                    echo "$as_me:5486: checking for getspnam in -lgen" >&5
                   5487: echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
                   5488: if test "${ac_cv_lib_gen_getspnam+set}" = set; then
                   5489:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5490: else
1.9       millert  5491:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  5492: LIBS="-lgen  $LIBS"
1.9       millert  5493: cat >conftest.$ac_ext <<_ACEOF
                   5494: #line 5494 "configure"
1.1       millert  5495: #include "confdefs.h"
1.9       millert  5496:
1.1       millert  5497: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5498: #ifdef __cplusplus
                   5499: extern "C"
                   5500: #endif
1.1       millert  5501: /* We use char because int might match the return type of a gcc2
1.9       millert  5502:    builtin and then its argument prototype would still apply.  */
                   5503: char getspnam ();
                   5504: int
                   5505: main ()
                   5506: {
                   5507: getspnam ();
                   5508:   ;
                   5509:   return 0;
                   5510: }
                   5511: _ACEOF
                   5512: rm -f conftest.$ac_objext conftest$ac_exeext
                   5513: if { (eval echo "$as_me:5513: \"$ac_link\"") >&5
                   5514:   (eval $ac_link) 2>&5
                   5515:   ac_status=$?
                   5516:   echo "$as_me:5516: \$? = $ac_status" >&5
                   5517:   (exit $ac_status); } &&
                   5518:          { ac_try='test -s conftest$ac_exeext'
                   5519:   { (eval echo "$as_me:5519: \"$ac_try\"") >&5
                   5520:   (eval $ac_try) 2>&5
                   5521:   ac_status=$?
                   5522:   echo "$as_me:5522: \$? = $ac_status" >&5
                   5523:   (exit $ac_status); }; }; then
                   5524:   ac_cv_lib_gen_getspnam=yes
                   5525: else
                   5526:   echo "$as_me: failed program was:" >&5
                   5527: cat conftest.$ac_ext >&5
                   5528: ac_cv_lib_gen_getspnam=no
                   5529: fi
                   5530: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5531: LIBS=$ac_check_lib_save_LIBS
                   5532: fi
                   5533: echo "$as_me:5533: result: $ac_cv_lib_gen_getspnam" >&5
                   5534: echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
                   5535: if test $ac_cv_lib_gen_getspnam = yes; then
                   5536:   cat >>confdefs.h <<\EOF
1.1       millert  5537: #define HAVE_GETSPNAM 1
                   5538: EOF
                   5539:  SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
                   5540: fi
                   5541:
                   5542:                    CHECKSHADOW="false"
                   5543:                fi
1.9       millert  5544:                test -n "$mansectsu" || mansectsu=1m
                   5545:                test -n "$mansectform" || mansectform=4
1.1       millert  5546:                ;;
1.10    ! millert  5547:     m88k-motorola-sysv*)
        !          5548:                # motorolla's cc (a variant of gcc) does -O but not -O2
        !          5549:                CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
        !          5550:                test -n "$mansectsu" || mansectsu=1m
        !          5551:                test -n "$mansectform" || mansectform=4
        !          5552:                ;;
1.1       millert  5553:     *-sequent-sysv*)
                   5554:                if test "$CHECKSHADOW" = "true"; then
1.10    ! millert  5555:                    echo "$as_me:5555: checking for getspnam in -lsec" >&5
1.9       millert  5556: echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
                   5557: if test "${ac_cv_lib_sec_getspnam+set}" = set; then
                   5558:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5559: else
1.9       millert  5560:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  5561: LIBS="-lsec  $LIBS"
1.9       millert  5562: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  5563: #line 5563 "configure"
1.1       millert  5564: #include "confdefs.h"
1.9       millert  5565:
1.1       millert  5566: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5567: #ifdef __cplusplus
                   5568: extern "C"
                   5569: #endif
1.1       millert  5570: /* We use char because int might match the return type of a gcc2
1.9       millert  5571:    builtin and then its argument prototype would still apply.  */
                   5572: char getspnam ();
                   5573: int
                   5574: main ()
                   5575: {
                   5576: getspnam ();
                   5577:   ;
                   5578:   return 0;
                   5579: }
                   5580: _ACEOF
                   5581: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  5582: if { (eval echo "$as_me:5582: \"$ac_link\"") >&5
1.9       millert  5583:   (eval $ac_link) 2>&5
                   5584:   ac_status=$?
1.10    ! millert  5585:   echo "$as_me:5585: \$? = $ac_status" >&5
1.9       millert  5586:   (exit $ac_status); } &&
                   5587:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  5588:   { (eval echo "$as_me:5588: \"$ac_try\"") >&5
1.9       millert  5589:   (eval $ac_try) 2>&5
                   5590:   ac_status=$?
1.10    ! millert  5591:   echo "$as_me:5591: \$? = $ac_status" >&5
1.9       millert  5592:   (exit $ac_status); }; }; then
                   5593:   ac_cv_lib_sec_getspnam=yes
                   5594: else
                   5595:   echo "$as_me: failed program was:" >&5
                   5596: cat conftest.$ac_ext >&5
                   5597: ac_cv_lib_sec_getspnam=no
                   5598: fi
                   5599: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5600: LIBS=$ac_check_lib_save_LIBS
                   5601: fi
1.10    ! millert  5602: echo "$as_me:5602: result: $ac_cv_lib_sec_getspnam" >&5
1.9       millert  5603: echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
                   5604: if test $ac_cv_lib_sec_getspnam = yes; then
                   5605:   cat >>confdefs.h <<\EOF
1.1       millert  5606: #define HAVE_GETSPNAM 1
                   5607: EOF
                   5608:  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
                   5609: fi
                   5610:
                   5611:                    CHECKSHADOW="false"
                   5612:                fi
1.9       millert  5613:                test -n "$mansectsu" || mansectsu=1m
                   5614:                test -n "$mansectform" || mansectform=4
                   5615:                ;;
                   5616:     *-ncr-sysv4*|*-ncr-sysvr4*)
1.10    ! millert  5617:                echo "$as_me:5617: checking for strcasecmp in -lc89" >&5
1.9       millert  5618: echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6
                   5619: if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
                   5620:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5621: else
                   5622:   ac_check_lib_save_LIBS=$LIBS
                   5623: LIBS="-lc89  $LIBS"
                   5624: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  5625: #line 5625 "configure"
1.9       millert  5626: #include "confdefs.h"
                   5627:
                   5628: /* Override any gcc2 internal prototype to avoid an error.  */
                   5629: #ifdef __cplusplus
                   5630: extern "C"
                   5631: #endif
                   5632: /* We use char because int might match the return type of a gcc2
                   5633:    builtin and then its argument prototype would still apply.  */
                   5634: char strcasecmp ();
                   5635: int
                   5636: main ()
                   5637: {
                   5638: strcasecmp ();
                   5639:   ;
                   5640:   return 0;
                   5641: }
                   5642: _ACEOF
                   5643: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  5644: if { (eval echo "$as_me:5644: \"$ac_link\"") >&5
1.9       millert  5645:   (eval $ac_link) 2>&5
                   5646:   ac_status=$?
1.10    ! millert  5647:   echo "$as_me:5647: \$? = $ac_status" >&5
1.9       millert  5648:   (exit $ac_status); } &&
                   5649:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  5650:   { (eval echo "$as_me:5650: \"$ac_try\"") >&5
1.9       millert  5651:   (eval $ac_try) 2>&5
                   5652:   ac_status=$?
1.10    ! millert  5653:   echo "$as_me:5653: \$? = $ac_status" >&5
1.9       millert  5654:   (exit $ac_status); }; }; then
                   5655:   ac_cv_lib_c89_strcasecmp=yes
                   5656: else
                   5657:   echo "$as_me: failed program was:" >&5
                   5658: cat conftest.$ac_ext >&5
                   5659: ac_cv_lib_c89_strcasecmp=no
                   5660: fi
                   5661: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5662: LIBS=$ac_check_lib_save_LIBS
                   5663: fi
1.10    ! millert  5664: echo "$as_me:5664: result: $ac_cv_lib_c89_strcasecmp" >&5
1.9       millert  5665: echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6
                   5666: if test $ac_cv_lib_c89_strcasecmp = yes; then
                   5667:   cat >>confdefs.h <<\EOF
                   5668: #define HAVE_STRCASECMP 1
                   5669: EOF
                   5670:  LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
                   5671: fi
                   5672:
                   5673:                test -n "$mansectsu" || mansectsu=1m
                   5674:                test -n "$mansectform" || mansectform=4
1.1       millert  5675:                ;;
1.9       millert  5676:     *-ccur-sysv4*|*-ccur-sysvr4*)
1.1       millert  5677:                LIBS="${LIBS} -lgen"
                   5678:                SUDO_LIBS="${SUDO_LIBS} -lgen"
1.9       millert  5679:                test -n "$mansectsu" || mansectsu=1m
                   5680:                test -n "$mansectform" || mansectform=4
1.1       millert  5681:                ;;
                   5682:     *-*-bsdi*)
1.6       millert  5683:                # Use shlicc for BSD/OS [23].x unless asked to do otherwise
                   5684:                if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
                   5685:                    case "$OSREV" in
                   5686:                        2|3)    echo 'using shlicc as CC'
                   5687:                                ac_cv_prog_CC=shlicc
                   5688:                                CC="$ac_cv_prog_CC"
                   5689:                                ;;
                   5690:                    esac
                   5691:                fi
                   5692:                ;;
                   5693:     *-*-freebsd*)
1.7       millert  5694:                if test "$with_logincap" = "yes"; then
                   5695:                    SUDO_LIBS="${SUDO_LIBS} -lutil"
                   5696:                fi
1.6       millert  5697:                if test "$with_skey" = "yes"; then
                   5698:                     SUDO_LIBS="${SUDO_LIBS} -lmd"
                   5699:                fi
                   5700:                if test "$CHECKSHADOW" = "true"; then
                   5701:                    CHECKSHADOW="false"
1.1       millert  5702:                fi
                   5703:                ;;
1.9       millert  5704:     *-*-*openbsd*)
                   5705:                BROKEN_SETREUID=yes
                   5706:                if test "$CHECKSHADOW" = "true"; then
                   5707:                    CHECKSHADOW="false"
                   5708:                fi
                   5709:                ;;
                   5710:     *-*-*netbsd*)
                   5711:                BROKEN_SETREUID=yes
                   5712:                if test "$CHECKSHADOW" = "true"; then
                   5713:                    CHECKSHADOW="false"
                   5714:                fi
                   5715:                ;;
1.1       millert  5716:     *-*-*bsd*)
                   5717:                if test "$CHECKSHADOW" = "true"; then
                   5718:                    CHECKSHADOW="false"
                   5719:                fi
                   5720:                ;;
1.9       millert  5721:     *-*-nextstep*)
                   5722:                # lockf() on is broken on the NeXT -- use flock instead
                   5723:                ac_cv_func_lockf=no
                   5724:                ac_cv_func_flock=yes
                   5725:                ;;
1.6       millert  5726:     *-*-sysv*)
1.9       millert  5727:                test -n "$mansectsu" || mansectsu=1m
                   5728:                test -n "$mansectform" || mansectform=4
1.6       millert  5729:                ;;
1.1       millert  5730: esac
                   5731:
1.6       millert  5732: test -n "$mansectsu" || mansectsu=8
                   5733: test -n "$mansectform" || mansectform=5
                   5734:
1.1       millert  5735: if test "$CHECKSHADOW" = "true"; then
1.9       millert  5736:
                   5737: for ac_func in getspnam
                   5738: do
                   5739: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.10    ! millert  5740: echo "$as_me:5740: checking for $ac_func" >&5
1.9       millert  5741: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   5742: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   5743:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5744: else
1.9       millert  5745:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  5746: #line 5746 "configure"
1.1       millert  5747: #include "confdefs.h"
                   5748: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  5749:     which can conflict with char $ac_func (); below.  */
1.1       millert  5750: #include <assert.h>
                   5751: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5752: #ifdef __cplusplus
                   5753: extern "C"
                   5754: #endif
1.1       millert  5755: /* We use char because int might match the return type of a gcc2
1.9       millert  5756:    builtin and then its argument prototype would still apply.  */
                   5757: char $ac_func ();
                   5758: char (*f) ();
1.1       millert  5759:
1.9       millert  5760: int
                   5761: main ()
                   5762: {
1.1       millert  5763: /* The GNU C library defines this for functions which it implements
                   5764:     to always fail with ENOSYS.  Some functions are actually named
                   5765:     something starting with __ and the normal name is an alias.  */
1.9       millert  5766: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  5767: choke me
                   5768: #else
1.9       millert  5769: f = $ac_func;
1.1       millert  5770: #endif
                   5771:
1.9       millert  5772:   ;
                   5773:   return 0;
                   5774: }
                   5775: _ACEOF
                   5776: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  5777: if { (eval echo "$as_me:5777: \"$ac_link\"") >&5
1.9       millert  5778:   (eval $ac_link) 2>&5
                   5779:   ac_status=$?
1.10    ! millert  5780:   echo "$as_me:5780: \$? = $ac_status" >&5
1.9       millert  5781:   (exit $ac_status); } &&
                   5782:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  5783:   { (eval echo "$as_me:5783: \"$ac_try\"") >&5
1.9       millert  5784:   (eval $ac_try) 2>&5
                   5785:   ac_status=$?
1.10    ! millert  5786:   echo "$as_me:5786: \$? = $ac_status" >&5
1.9       millert  5787:   (exit $ac_status); }; }; then
                   5788:   eval "$as_ac_var=yes"
                   5789: else
                   5790:   echo "$as_me: failed program was:" >&5
                   5791: cat conftest.$ac_ext >&5
                   5792: eval "$as_ac_var=no"
                   5793: fi
                   5794: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5795: fi
1.10    ! millert  5796: echo "$as_me:5796: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  5797: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   5798: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   5799:   cat >>confdefs.h <<EOF
                   5800: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       millert  5801: EOF
1.9       millert  5802:  CHECKSHADOW="false"
1.1       millert  5803: else
1.10    ! millert  5804:   echo "$as_me:5804: checking for getspnam in -lgen" >&5
1.9       millert  5805: echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
                   5806: if test "${ac_cv_lib_gen_getspnam+set}" = set; then
                   5807:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5808: else
                   5809:   ac_check_lib_save_LIBS=$LIBS
                   5810: LIBS="-lgen  $LIBS"
                   5811: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  5812: #line 5812 "configure"
1.9       millert  5813: #include "confdefs.h"
                   5814:
                   5815: /* Override any gcc2 internal prototype to avoid an error.  */
                   5816: #ifdef __cplusplus
                   5817: extern "C"
                   5818: #endif
                   5819: /* We use char because int might match the return type of a gcc2
                   5820:    builtin and then its argument prototype would still apply.  */
                   5821: char getspnam ();
                   5822: int
                   5823: main ()
                   5824: {
                   5825: getspnam ();
                   5826:   ;
                   5827:   return 0;
                   5828: }
                   5829: _ACEOF
                   5830: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  5831: if { (eval echo "$as_me:5831: \"$ac_link\"") >&5
1.9       millert  5832:   (eval $ac_link) 2>&5
                   5833:   ac_status=$?
1.10    ! millert  5834:   echo "$as_me:5834: \$? = $ac_status" >&5
1.9       millert  5835:   (exit $ac_status); } &&
                   5836:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  5837:   { (eval echo "$as_me:5837: \"$ac_try\"") >&5
1.9       millert  5838:   (eval $ac_try) 2>&5
                   5839:   ac_status=$?
1.10    ! millert  5840:   echo "$as_me:5840: \$? = $ac_status" >&5
1.9       millert  5841:   (exit $ac_status); }; }; then
                   5842:   ac_cv_lib_gen_getspnam=yes
                   5843: else
                   5844:   echo "$as_me: failed program was:" >&5
                   5845: cat conftest.$ac_ext >&5
                   5846: ac_cv_lib_gen_getspnam=no
                   5847: fi
                   5848: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5849: LIBS=$ac_check_lib_save_LIBS
                   5850: fi
1.10    ! millert  5851: echo "$as_me:5851: result: $ac_cv_lib_gen_getspnam" >&5
1.9       millert  5852: echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
                   5853: if test $ac_cv_lib_gen_getspnam = yes; then
1.1       millert  5854:
1.9       millert  5855: cat >>confdefs.h <<\EOF
1.1       millert  5856: #define HAVE_GETSPNAM 1
                   5857: EOF
1.9       millert  5858:  SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
                   5859: fi
                   5860:
1.1       millert  5861: fi
1.9       millert  5862: done
1.1       millert  5863:
                   5864: fi
                   5865: if test "$CHECKSHADOW" = "true"; then
1.10    ! millert  5866:     echo "$as_me:5866: checking for getprpwnam" >&5
1.9       millert  5867: echo $ECHO_N "checking for getprpwnam... $ECHO_C" >&6
                   5868: if test "${ac_cv_func_getprpwnam+set}" = set; then
                   5869:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5870: else
1.9       millert  5871:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  5872: #line 5872 "configure"
1.1       millert  5873: #include "confdefs.h"
                   5874: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  5875:     which can conflict with char getprpwnam (); below.  */
1.1       millert  5876: #include <assert.h>
                   5877: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5878: #ifdef __cplusplus
                   5879: extern "C"
                   5880: #endif
1.1       millert  5881: /* We use char because int might match the return type of a gcc2
1.9       millert  5882:    builtin and then its argument prototype would still apply.  */
                   5883: char getprpwnam ();
                   5884: char (*f) ();
1.1       millert  5885:
1.9       millert  5886: int
                   5887: main ()
                   5888: {
1.1       millert  5889: /* The GNU C library defines this for functions which it implements
                   5890:     to always fail with ENOSYS.  Some functions are actually named
                   5891:     something starting with __ and the normal name is an alias.  */
                   5892: #if defined (__stub_getprpwnam) || defined (__stub___getprpwnam)
                   5893: choke me
                   5894: #else
1.9       millert  5895: f = getprpwnam;
1.1       millert  5896: #endif
                   5897:
1.9       millert  5898:   ;
                   5899:   return 0;
                   5900: }
                   5901: _ACEOF
                   5902: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  5903: if { (eval echo "$as_me:5903: \"$ac_link\"") >&5
1.9       millert  5904:   (eval $ac_link) 2>&5
                   5905:   ac_status=$?
1.10    ! millert  5906:   echo "$as_me:5906: \$? = $ac_status" >&5
1.9       millert  5907:   (exit $ac_status); } &&
                   5908:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  5909:   { (eval echo "$as_me:5909: \"$ac_try\"") >&5
1.9       millert  5910:   (eval $ac_try) 2>&5
                   5911:   ac_status=$?
1.10    ! millert  5912:   echo "$as_me:5912: \$? = $ac_status" >&5
1.9       millert  5913:   (exit $ac_status); }; }; then
                   5914:   ac_cv_func_getprpwnam=yes
                   5915: else
                   5916:   echo "$as_me: failed program was:" >&5
                   5917: cat conftest.$ac_ext >&5
                   5918: ac_cv_func_getprpwnam=no
                   5919: fi
                   5920: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5921: fi
1.10    ! millert  5922: echo "$as_me:5922: result: $ac_cv_func_getprpwnam" >&5
1.9       millert  5923: echo "${ECHO_T}$ac_cv_func_getprpwnam" >&6
                   5924: if test $ac_cv_func_getprpwnam = yes; then
                   5925:   cat >>confdefs.h <<\EOF
1.1       millert  5926: #define HAVE_GETPRPWNAM 1
                   5927: EOF
1.10    ! millert  5928:  CHECKSHADOW="false"; SECUREWARE=1, echo "$as_me:5928: checking for getprpwnam in -lsec" >&5
1.9       millert  5929: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
                   5930: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
                   5931:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5932: else
1.9       millert  5933:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  5934: LIBS="-lsec  $LIBS"
1.9       millert  5935: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  5936: #line 5936 "configure"
1.1       millert  5937: #include "confdefs.h"
1.9       millert  5938:
1.1       millert  5939: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5940: #ifdef __cplusplus
                   5941: extern "C"
                   5942: #endif
1.1       millert  5943: /* We use char because int might match the return type of a gcc2
1.9       millert  5944:    builtin and then its argument prototype would still apply.  */
                   5945: char getprpwnam ();
                   5946: int
                   5947: main ()
                   5948: {
                   5949: getprpwnam ();
                   5950:   ;
                   5951:   return 0;
                   5952: }
                   5953: _ACEOF
                   5954: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  5955: if { (eval echo "$as_me:5955: \"$ac_link\"") >&5
1.9       millert  5956:   (eval $ac_link) 2>&5
                   5957:   ac_status=$?
1.10    ! millert  5958:   echo "$as_me:5958: \$? = $ac_status" >&5
1.9       millert  5959:   (exit $ac_status); } &&
                   5960:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  5961:   { (eval echo "$as_me:5961: \"$ac_try\"") >&5
1.9       millert  5962:   (eval $ac_try) 2>&5
                   5963:   ac_status=$?
1.10    ! millert  5964:   echo "$as_me:5964: \$? = $ac_status" >&5
1.9       millert  5965:   (exit $ac_status); }; }; then
                   5966:   ac_cv_lib_sec_getprpwnam=yes
                   5967: else
                   5968:   echo "$as_me: failed program was:" >&5
                   5969: cat conftest.$ac_ext >&5
                   5970: ac_cv_lib_sec_getprpwnam=no
                   5971: fi
                   5972: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   5973: LIBS=$ac_check_lib_save_LIBS
                   5974: fi
1.10    ! millert  5975: echo "$as_me:5975: result: $ac_cv_lib_sec_getprpwnam" >&5
1.9       millert  5976: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
                   5977: if test $ac_cv_lib_sec_getprpwnam = yes; then
                   5978:   cat >>confdefs.h <<\EOF
1.1       millert  5979: #define HAVE_GETPRPWNAM 1
                   5980: EOF
                   5981:  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
                   5982: else
1.10    ! millert  5983:   echo "$as_me:5983: checking for getprpwnam in -lsecurity" >&5
1.9       millert  5984: echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
                   5985: if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
                   5986:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5987: else
1.9       millert  5988:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  5989: LIBS="-lsecurity  $LIBS"
1.9       millert  5990: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  5991: #line 5991 "configure"
1.1       millert  5992: #include "confdefs.h"
1.9       millert  5993:
1.1       millert  5994: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  5995: #ifdef __cplusplus
                   5996: extern "C"
                   5997: #endif
1.1       millert  5998: /* We use char because int might match the return type of a gcc2
1.9       millert  5999:    builtin and then its argument prototype would still apply.  */
                   6000: char getprpwnam ();
                   6001: int
                   6002: main ()
                   6003: {
                   6004: getprpwnam ();
                   6005:   ;
                   6006:   return 0;
                   6007: }
                   6008: _ACEOF
                   6009: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  6010: if { (eval echo "$as_me:6010: \"$ac_link\"") >&5
1.9       millert  6011:   (eval $ac_link) 2>&5
                   6012:   ac_status=$?
1.10    ! millert  6013:   echo "$as_me:6013: \$? = $ac_status" >&5
1.9       millert  6014:   (exit $ac_status); } &&
                   6015:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  6016:   { (eval echo "$as_me:6016: \"$ac_try\"") >&5
1.9       millert  6017:   (eval $ac_try) 2>&5
                   6018:   ac_status=$?
1.10    ! millert  6019:   echo "$as_me:6019: \$? = $ac_status" >&5
1.9       millert  6020:   (exit $ac_status); }; }; then
                   6021:   ac_cv_lib_security_getprpwnam=yes
                   6022: else
                   6023:   echo "$as_me: failed program was:" >&5
                   6024: cat conftest.$ac_ext >&5
                   6025: ac_cv_lib_security_getprpwnam=no
                   6026: fi
                   6027: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   6028: LIBS=$ac_check_lib_save_LIBS
                   6029: fi
1.10    ! millert  6030: echo "$as_me:6030: result: $ac_cv_lib_security_getprpwnam" >&5
1.9       millert  6031: echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
                   6032: if test $ac_cv_lib_security_getprpwnam = yes; then
                   6033:   cat >>confdefs.h <<\EOF
1.1       millert  6034: #define HAVE_GETPRPWNAM 1
                   6035: EOF
                   6036:  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"
                   6037: else
1.10    ! millert  6038:   echo "$as_me:6038: checking for getprpwnam in -lprot" >&5
1.9       millert  6039: echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
                   6040: if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
                   6041:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  6042: else
1.9       millert  6043:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  6044: LIBS="-lprot  $LIBS"
1.9       millert  6045: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  6046: #line 6046 "configure"
1.1       millert  6047: #include "confdefs.h"
1.9       millert  6048:
1.1       millert  6049: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  6050: #ifdef __cplusplus
                   6051: extern "C"
                   6052: #endif
1.1       millert  6053: /* We use char because int might match the return type of a gcc2
1.9       millert  6054:    builtin and then its argument prototype would still apply.  */
                   6055: char getprpwnam ();
                   6056: int
                   6057: main ()
                   6058: {
                   6059: getprpwnam ();
                   6060:   ;
                   6061:   return 0;
                   6062: }
                   6063: _ACEOF
                   6064: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  6065: if { (eval echo "$as_me:6065: \"$ac_link\"") >&5
1.9       millert  6066:   (eval $ac_link) 2>&5
                   6067:   ac_status=$?
1.10    ! millert  6068:   echo "$as_me:6068: \$? = $ac_status" >&5
1.9       millert  6069:   (exit $ac_status); } &&
                   6070:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  6071:   { (eval echo "$as_me:6071: \"$ac_try\"") >&5
1.9       millert  6072:   (eval $ac_try) 2>&5
                   6073:   ac_status=$?
1.10    ! millert  6074:   echo "$as_me:6074: \$? = $ac_status" >&5
1.9       millert  6075:   (exit $ac_status); }; }; then
                   6076:   ac_cv_lib_prot_getprpwnam=yes
                   6077: else
                   6078:   echo "$as_me: failed program was:" >&5
                   6079: cat conftest.$ac_ext >&5
                   6080: ac_cv_lib_prot_getprpwnam=no
                   6081: fi
                   6082: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   6083: LIBS=$ac_check_lib_save_LIBS
                   6084: fi
1.10    ! millert  6085: echo "$as_me:6085: result: $ac_cv_lib_prot_getprpwnam" >&5
1.9       millert  6086: echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
                   6087: if test $ac_cv_lib_prot_getprpwnam = yes; then
                   6088:   cat >>confdefs.h <<\EOF
1.1       millert  6089: #define HAVE_GETPRPWNAM 1
                   6090: EOF
                   6091:  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"
                   6092: fi
                   6093:
                   6094: fi
                   6095:
                   6096: fi
                   6097:
                   6098: fi
                   6099:
                   6100: fi
                   6101:
1.9       millert  6102: if test $ac_cv_c_compiler_gnu = yes; then
1.10    ! millert  6103:     echo "$as_me:6103: checking whether $CC needs -traditional" >&5
1.9       millert  6104: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
                   6105: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
                   6106:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  6107: else
                   6108:     ac_pattern="Autoconf.*'x'"
1.9       millert  6109:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  6110: #line 6110 "configure"
1.1       millert  6111: #include "confdefs.h"
                   6112: #include <sgtty.h>
                   6113: Autoconf TIOCGETP
1.9       millert  6114: _ACEOF
1.1       millert  6115: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6116:   egrep "$ac_pattern" >/dev/null 2>&1; then
                   6117:   ac_cv_prog_gcc_traditional=yes
                   6118: else
                   6119:   ac_cv_prog_gcc_traditional=no
                   6120: fi
                   6121: rm -f conftest*
                   6122:
                   6123:   if test $ac_cv_prog_gcc_traditional = no; then
1.9       millert  6124:     cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  6125: #line 6125 "configure"
1.1       millert  6126: #include "confdefs.h"
                   6127: #include <termio.h>
                   6128: Autoconf TCGETA
1.9       millert  6129: _ACEOF
1.1       millert  6130: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6131:   egrep "$ac_pattern" >/dev/null 2>&1; then
                   6132:   ac_cv_prog_gcc_traditional=yes
                   6133: fi
                   6134: rm -f conftest*
                   6135:
                   6136:   fi
                   6137: fi
1.10    ! millert  6138: echo "$as_me:6138: result: $ac_cv_prog_gcc_traditional" >&5
1.9       millert  6139: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
1.1       millert  6140:   if test $ac_cv_prog_gcc_traditional = yes; then
                   6141:     CC="$CC -traditional"
                   6142:   fi
                   6143: fi
                   6144:
1.10    ! millert  6145: echo "$as_me:6145: checking for an ANSI C-conforming const" >&5
1.9       millert  6146: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
                   6147: if test "${ac_cv_c_const+set}" = set; then
                   6148:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6149: else
                   6150:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  6151: #line 6151 "configure"
1.9       millert  6152: #include "confdefs.h"
                   6153:
                   6154: int
                   6155: main ()
                   6156: {
                   6157: /* FIXME: Include the comments suggested by Paul. */
                   6158: #ifndef __cplusplus
                   6159:   /* Ultrix mips cc rejects this.  */
                   6160:   typedef int charset[2];
                   6161:   const charset x;
                   6162:   /* SunOS 4.1.1 cc rejects this.  */
                   6163:   char const *const *ccp;
                   6164:   char **p;
                   6165:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   6166:   struct point {int x, y;};
                   6167:   static struct point const zero = {0,0};
                   6168:   /* AIX XL C 1.02.0.0 rejects this.
                   6169:      It does not let you subtract one const X* pointer from another in
                   6170:      an arm of an if-expression whose if-part is not a constant
                   6171:      expression */
                   6172:   const char *g = "string";
                   6173:   ccp = &g + (g ? g-g : 0);
                   6174:   /* HPUX 7.0 cc rejects these. */
                   6175:   ++ccp;
                   6176:   p = (char**) ccp;
                   6177:   ccp = (char const *const *) p;
                   6178:   { /* SCO 3.2v4 cc rejects this.  */
                   6179:     char *t;
                   6180:     char const *s = 0 ? (char *) 0 : (char const *) 0;
                   6181:
                   6182:     *t++ = 0;
                   6183:   }
                   6184:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   6185:     int x[] = {25, 17};
                   6186:     const int *foo = &x[0];
                   6187:     ++foo;
                   6188:   }
                   6189:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   6190:     typedef const int *iptr;
                   6191:     iptr p = 0;
                   6192:     ++p;
                   6193:   }
                   6194:   { /* AIX XL C 1.02.0.0 rejects this saying
                   6195:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   6196:     struct s { int j; const int *ap[3]; };
                   6197:     struct s *b; b->j = 5;
                   6198:   }
                   6199:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   6200:     const int foo = 10;
                   6201:   }
                   6202: #endif
                   6203:
                   6204:   ;
                   6205:   return 0;
1.1       millert  6206: }
1.9       millert  6207: _ACEOF
                   6208: rm -f conftest.$ac_objext
1.10    ! millert  6209: if { (eval echo "$as_me:6209: \"$ac_compile\"") >&5
1.9       millert  6210:   (eval $ac_compile) 2>&5
                   6211:   ac_status=$?
1.10    ! millert  6212:   echo "$as_me:6212: \$? = $ac_status" >&5
1.9       millert  6213:   (exit $ac_status); } &&
                   6214:          { ac_try='test -s conftest.$ac_objext'
1.10    ! millert  6215:   { (eval echo "$as_me:6215: \"$ac_try\"") >&5
1.9       millert  6216:   (eval $ac_try) 2>&5
                   6217:   ac_status=$?
1.10    ! millert  6218:   echo "$as_me:6218: \$? = $ac_status" >&5
1.9       millert  6219:   (exit $ac_status); }; }; then
1.1       millert  6220:   ac_cv_c_const=yes
                   6221: else
1.9       millert  6222:   echo "$as_me: failed program was:" >&5
                   6223: cat conftest.$ac_ext >&5
                   6224: ac_cv_c_const=no
                   6225: fi
                   6226: rm -f conftest.$ac_objext conftest.$ac_ext
1.1       millert  6227: fi
1.10    ! millert  6228: echo "$as_me:6228: result: $ac_cv_c_const" >&5
1.9       millert  6229: echo "${ECHO_T}$ac_cv_c_const" >&6
                   6230: if test $ac_cv_c_const = no; then
                   6231:
                   6232: cat >>confdefs.h <<\EOF
                   6233: #define const
                   6234: EOF
                   6235:
1.1       millert  6236: fi
                   6237:
1.10    ! millert  6238: echo "$as_me:6238: checking for working volatile" >&5
1.9       millert  6239: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
                   6240: if test "${ac_cv_c_volatile+set}" = set; then
                   6241:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6242: else
                   6243:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  6244: #line 6244 "configure"
1.9       millert  6245: #include "confdefs.h"
                   6246:
                   6247: int
                   6248: main ()
                   6249: {
                   6250:
                   6251: volatile int x;
                   6252: int * volatile y;
                   6253:   ;
                   6254:   return 0;
                   6255: }
                   6256: _ACEOF
                   6257: rm -f conftest.$ac_objext
1.10    ! millert  6258: if { (eval echo "$as_me:6258: \"$ac_compile\"") >&5
1.9       millert  6259:   (eval $ac_compile) 2>&5
                   6260:   ac_status=$?
1.10    ! millert  6261:   echo "$as_me:6261: \$? = $ac_status" >&5
1.9       millert  6262:   (exit $ac_status); } &&
                   6263:          { ac_try='test -s conftest.$ac_objext'
1.10    ! millert  6264:   { (eval echo "$as_me:6264: \"$ac_try\"") >&5
1.9       millert  6265:   (eval $ac_try) 2>&5
                   6266:   ac_status=$?
1.10    ! millert  6267:   echo "$as_me:6267: \$? = $ac_status" >&5
1.9       millert  6268:   (exit $ac_status); }; }; then
                   6269:   ac_cv_c_volatile=yes
                   6270: else
                   6271:   echo "$as_me: failed program was:" >&5
                   6272: cat conftest.$ac_ext >&5
                   6273: ac_cv_c_volatile=no
                   6274: fi
                   6275: rm -f conftest.$ac_objext conftest.$ac_ext
                   6276: fi
1.10    ! millert  6277: echo "$as_me:6277: result: $ac_cv_c_volatile" >&5
1.9       millert  6278: echo "${ECHO_T}$ac_cv_c_volatile" >&6
                   6279: if test $ac_cv_c_volatile = no; then
                   6280:
                   6281: cat >>confdefs.h <<\EOF
                   6282: #define volatile
1.1       millert  6283: EOF
                   6284:
                   6285: fi
                   6286:
                   6287: for ac_prog in 'bison -y' byacc
                   6288: do
1.9       millert  6289:   # Extract the first word of "$ac_prog", so it can be a program name with args.
1.1       millert  6290: set dummy $ac_prog; ac_word=$2
1.10    ! millert  6291: echo "$as_me:6291: checking for $ac_word" >&5
1.9       millert  6292: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
                   6293: if test "${ac_cv_prog_YACC+set}" = set; then
                   6294:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  6295: else
                   6296:   if test -n "$YACC"; then
                   6297:   ac_cv_prog_YACC="$YACC" # Let the user override the test.
                   6298: else
1.9       millert  6299:   ac_save_IFS=$IFS; IFS=$ac_path_separator
                   6300: ac_dummy="$PATH"
                   6301: for ac_dir in $ac_dummy; do
                   6302:   IFS=$ac_save_IFS
                   6303:   test -z "$ac_dir" && ac_dir=.
                   6304:   $as_executable_p "$ac_dir/$ac_word" || continue
                   6305: ac_cv_prog_YACC="$ac_prog"
1.10    ! millert  6306: echo "$as_me:6306: found $ac_dir/$ac_word" >&5
1.9       millert  6307: break
                   6308: done
                   6309:
1.1       millert  6310: fi
                   6311: fi
1.9       millert  6312: YACC=$ac_cv_prog_YACC
1.1       millert  6313: if test -n "$YACC"; then
1.10    ! millert  6314:   echo "$as_me:6314: result: $YACC" >&5
1.9       millert  6315: echo "${ECHO_T}$YACC" >&6
1.1       millert  6316: else
1.10    ! millert  6317:   echo "$as_me:6317: result: no" >&5
1.9       millert  6318: echo "${ECHO_T}no" >&6
1.1       millert  6319: fi
                   6320:
1.9       millert  6321:   test -n "$YACC" && break
1.1       millert  6322: done
                   6323: test -n "$YACC" || YACC="yacc"
                   6324:
1.10    ! millert  6325: echo "$as_me:6325: checking for mv" >&5
1.9       millert  6326: echo $ECHO_N "checking for mv... $ECHO_C" >&6
1.1       millert  6327: if test -f "/usr/bin/mv"; then
1.10    ! millert  6328:     echo "$as_me:6328: result: /usr/bin/mv" >&5
1.9       millert  6329: echo "${ECHO_T}/usr/bin/mv" >&6
                   6330:     cat >>confdefs.h <<\EOF
1.1       millert  6331: #define _PATH_MV "/usr/bin/mv"
                   6332: EOF
                   6333:
                   6334: elif test -f "/bin/mv"; then
1.10    ! millert  6335:     echo "$as_me:6335: result: /bin/mv" >&5
1.9       millert  6336: echo "${ECHO_T}/bin/mv" >&6
                   6337:     cat >>confdefs.h <<\EOF
1.1       millert  6338: #define _PATH_MV "/bin/mv"
                   6339: EOF
                   6340:
                   6341: elif test -f "/usr/ucb/mv"; then
1.10    ! millert  6342:     echo "$as_me:6342: result: /usr/ucb/mv" >&5
1.9       millert  6343: echo "${ECHO_T}/usr/ucb/mv" >&6
                   6344:     cat >>confdefs.h <<\EOF
1.1       millert  6345: #define _PATH_MV "/usr/ucb/mv"
                   6346: EOF
                   6347:
                   6348: elif test -f "/usr/sbin/mv"; then
1.10    ! millert  6349:     echo "$as_me:6349: result: /usr/sbin/mv" >&5
1.9       millert  6350: echo "${ECHO_T}/usr/sbin/mv" >&6
                   6351:     cat >>confdefs.h <<\EOF
1.1       millert  6352: #define _PATH_MV "/usr/sbin/mv"
                   6353: EOF
                   6354:
                   6355: else
1.10    ! millert  6356:     echo "$as_me:6356: result: not found" >&5
1.9       millert  6357: echo "${ECHO_T}not found" >&6
1.1       millert  6358: fi
                   6359:
1.10    ! millert  6360: echo "$as_me:6360: checking for bourne shell" >&5
1.9       millert  6361: echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6
1.1       millert  6362: if test -f "/bin/sh"; then
1.10    ! millert  6363:     echo "$as_me:6363: result: /bin/sh" >&5
1.9       millert  6364: echo "${ECHO_T}/bin/sh" >&6
                   6365:     cat >>confdefs.h <<\EOF
1.1       millert  6366: #define _PATH_BSHELL "/bin/sh"
                   6367: EOF
                   6368:
                   6369: elif test -f "/usr/bin/sh"; then
1.10    ! millert  6370:     echo "$as_me:6370: result: /usr/bin/sh" >&5
1.9       millert  6371: echo "${ECHO_T}/usr/bin/sh" >&6
                   6372:     cat >>confdefs.h <<\EOF
1.1       millert  6373: #define _PATH_BSHELL "/usr/bin/sh"
                   6374: EOF
                   6375:
                   6376: elif test -f "/sbin/sh"; then
1.10    ! millert  6377:     echo "$as_me:6377: result: /sbin/sh" >&5
1.9       millert  6378: echo "${ECHO_T}/sbin/sh" >&6
                   6379:     cat >>confdefs.h <<\EOF
1.1       millert  6380: #define _PATH_BSHELL "/sbin/sh"
                   6381: EOF
                   6382:
                   6383: elif test -f "/usr/sbin/sh"; then
1.10    ! millert  6384:     echo "$as_me:6384: result: /usr/sbin/sh" >&5
1.9       millert  6385: echo "${ECHO_T}/usr/sbin/sh" >&6
                   6386:     cat >>confdefs.h <<\EOF
1.1       millert  6387: #define _PATH_BSHELL "/usr/sbin/sh"
                   6388: EOF
                   6389:
                   6390: elif test -f "/bin/ksh"; then
1.10    ! millert  6391:     echo "$as_me:6391: result: /bin/ksh" >&5
1.9       millert  6392: echo "${ECHO_T}/bin/ksh" >&6
                   6393:     cat >>confdefs.h <<\EOF
1.1       millert  6394: #define _PATH_BSHELL "/bin/ksh"
                   6395: EOF
                   6396:
                   6397: elif test -f "/usr/bin/ksh"; then
1.10    ! millert  6398:     echo "$as_me:6398: result: /usr/bin/ksh" >&5
1.9       millert  6399: echo "${ECHO_T}/usr/bin/ksh" >&6
                   6400:     cat >>confdefs.h <<\EOF
1.1       millert  6401: #define _PATH_BSHELL "/usr/bin/ksh"
                   6402: EOF
                   6403:
                   6404: elif test -f "/bin/bash"; then
1.10    ! millert  6405:     echo "$as_me:6405: result: /bin/bash" >&5
1.9       millert  6406: echo "${ECHO_T}/bin/bash" >&6
                   6407:     cat >>confdefs.h <<\EOF
1.1       millert  6408: #define _PATH_BSHELL "/bin/bash"
                   6409: EOF
                   6410:
                   6411: elif test -f "/usr/bin/bash"; then
1.10    ! millert  6412:     echo "$as_me:6412: result: /usr/bin/bash" >&5
1.9       millert  6413: echo "${ECHO_T}/usr/bin/bash" >&6
                   6414:     cat >>confdefs.h <<\EOF
1.1       millert  6415: #define _PATH_BSHELL "/usr/bin/bash"
                   6416: EOF
                   6417:
                   6418: else
1.10    ! millert  6419:     echo "$as_me:6419: result: not found" >&5
1.9       millert  6420: echo "${ECHO_T}not found" >&6
                   6421: fi
                   6422:
                   6423: if test -z "$with_sendmail"; then
1.10    ! millert  6424:     echo "$as_me:6424: checking for sendmail" >&5
1.9       millert  6425: echo $ECHO_N "checking for sendmail... $ECHO_C" >&6
                   6426: if test -f "/usr/sbin/sendmail"; then
1.10    ! millert  6427:     echo "$as_me:6427: result: /usr/sbin/sendmail" >&5
1.9       millert  6428: echo "${ECHO_T}/usr/sbin/sendmail" >&6
                   6429:     cat >>confdefs.h <<\EOF
                   6430: #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
                   6431: EOF
                   6432:
                   6433: elif test -f "/usr/lib/sendmail"; then
1.10    ! millert  6434:     echo "$as_me:6434: result: /usr/lib/sendmail" >&5
1.9       millert  6435: echo "${ECHO_T}/usr/lib/sendmail" >&6
                   6436:     cat >>confdefs.h <<\EOF
                   6437: #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
                   6438: EOF
                   6439:
                   6440: elif test -f "/usr/etc/sendmail"; then
1.10    ! millert  6441:     echo "$as_me:6441: result: /usr/etc/sendmail" >&5
1.9       millert  6442: echo "${ECHO_T}/usr/etc/sendmail" >&6
                   6443:     cat >>confdefs.h <<\EOF
                   6444: #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
                   6445: EOF
                   6446:
                   6447: elif test -f "/usr/ucblib/sendmail"; then
1.10    ! millert  6448:     echo "$as_me:6448: result: /usr/ucblib/sendmail" >&5
1.9       millert  6449: echo "${ECHO_T}/usr/ucblib/sendmail" >&6
                   6450:     cat >>confdefs.h <<\EOF
                   6451: #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
                   6452: EOF
                   6453:
                   6454: elif test -f "/usr/local/lib/sendmail"; then
1.10    ! millert  6455:     echo "$as_me:6455: result: /usr/local/lib/sendmail" >&5
1.9       millert  6456: echo "${ECHO_T}/usr/local/lib/sendmail" >&6
                   6457:     cat >>confdefs.h <<\EOF
                   6458: #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
                   6459: EOF
                   6460:
                   6461: elif test -f "/usr/local/bin/sendmail"; then
1.10    ! millert  6462:     echo "$as_me:6462: result: /usr/local/bin/sendmail" >&5
1.9       millert  6463: echo "${ECHO_T}/usr/local/bin/sendmail" >&6
                   6464:     cat >>confdefs.h <<\EOF
                   6465: #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
                   6466: EOF
                   6467:
                   6468: else
1.10    ! millert  6469:     echo "$as_me:6469: result: not found" >&5
1.9       millert  6470: echo "${ECHO_T}not found" >&6
1.1       millert  6471: fi
                   6472:
1.9       millert  6473: fi
                   6474: if test -z "$with_editor"; then
1.10    ! millert  6475:     echo "$as_me:6475: checking for vi" >&5
1.9       millert  6476: echo $ECHO_N "checking for vi... $ECHO_C" >&6
1.1       millert  6477: if test -f "/usr/bin/vi"; then
1.10    ! millert  6478:     echo "$as_me:6478: result: /usr/bin/vi" >&5
1.9       millert  6479: echo "${ECHO_T}/usr/bin/vi" >&6
                   6480:     cat >>confdefs.h <<\EOF
1.1       millert  6481: #define _PATH_VI "/usr/bin/vi"
                   6482: EOF
                   6483:
                   6484: elif test -f "/usr/ucb/vi"; then
1.10    ! millert  6485:     echo "$as_me:6485: result: /usr/ucb/vi" >&5
1.9       millert  6486: echo "${ECHO_T}/usr/ucb/vi" >&6
                   6487:     cat >>confdefs.h <<\EOF
1.1       millert  6488: #define _PATH_VI "/usr/ucb/vi"
                   6489: EOF
                   6490:
                   6491: elif test -f "/usr/bsd/vi"; then
1.10    ! millert  6492:     echo "$as_me:6492: result: /usr/bsd/vi" >&5
1.9       millert  6493: echo "${ECHO_T}/usr/bsd/vi" >&6
                   6494:     cat >>confdefs.h <<\EOF
1.1       millert  6495: #define _PATH_VI "/usr/bsd/vi"
                   6496: EOF
                   6497:
                   6498: elif test -f "/bin/vi"; then
1.10    ! millert  6499:     echo "$as_me:6499: result: /bin/vi" >&5
1.9       millert  6500: echo "${ECHO_T}/bin/vi" >&6
                   6501:     cat >>confdefs.h <<\EOF
1.1       millert  6502: #define _PATH_VI "/bin/vi"
                   6503: EOF
                   6504:
                   6505: elif test -f "/usr/local/bin/vi"; then
1.10    ! millert  6506:     echo "$as_me:6506: result: /usr/local/bin/vi" >&5
1.9       millert  6507: echo "${ECHO_T}/usr/local/bin/vi" >&6
                   6508:     cat >>confdefs.h <<\EOF
1.1       millert  6509: #define _PATH_VI "/usr/local/bin/vi"
                   6510: EOF
                   6511:
                   6512: else
1.10    ! millert  6513:     echo "$as_me:6513: result: not found" >&5
1.9       millert  6514: echo "${ECHO_T}not found" >&6
1.1       millert  6515: fi
                   6516:
1.9       millert  6517: fi
1.10    ! millert  6518: echo "$as_me:6518: checking for ANSI C header files" >&5
1.9       millert  6519: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
                   6520: if test "${ac_cv_header_stdc+set}" = set; then
                   6521:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  6522: else
1.9       millert  6523:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  6524: #line 6524 "configure"
1.1       millert  6525: #include "confdefs.h"
                   6526: #include <stdlib.h>
                   6527: #include <stdarg.h>
                   6528: #include <string.h>
                   6529: #include <float.h>
1.9       millert  6530:
                   6531: _ACEOF
1.10    ! millert  6532: if { (eval echo "$as_me:6532: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9       millert  6533:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   6534:   ac_status=$?
                   6535:   egrep -v '^ *\+' conftest.er1 >conftest.err
                   6536:   rm -f conftest.er1
                   6537:   cat conftest.err >&5
1.10    ! millert  6538:   echo "$as_me:6538: \$? = $ac_status" >&5
1.9       millert  6539:   (exit $ac_status); } >/dev/null; then
                   6540:   if test -s conftest.err; then
                   6541:     ac_cpp_err=$ac_c_preproc_warn_flag
                   6542:   else
                   6543:     ac_cpp_err=
                   6544:   fi
                   6545: else
                   6546:   ac_cpp_err=yes
                   6547: fi
                   6548: if test -z "$ac_cpp_err"; then
1.1       millert  6549:   ac_cv_header_stdc=yes
                   6550: else
1.9       millert  6551:   echo "$as_me: failed program was:" >&5
1.1       millert  6552:   cat conftest.$ac_ext >&5
                   6553:   ac_cv_header_stdc=no
                   6554: fi
1.9       millert  6555: rm -f conftest.err conftest.$ac_ext
1.1       millert  6556:
                   6557: if test $ac_cv_header_stdc = yes; then
                   6558:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.9       millert  6559:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  6560: #line 6560 "configure"
1.1       millert  6561: #include "confdefs.h"
                   6562: #include <string.h>
1.9       millert  6563:
                   6564: _ACEOF
1.1       millert  6565: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6566:   egrep "memchr" >/dev/null 2>&1; then
                   6567:   :
                   6568: else
                   6569:   ac_cv_header_stdc=no
                   6570: fi
                   6571: rm -f conftest*
                   6572:
                   6573: fi
                   6574:
                   6575: if test $ac_cv_header_stdc = yes; then
                   6576:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.9       millert  6577:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  6578: #line 6578 "configure"
1.1       millert  6579: #include "confdefs.h"
                   6580: #include <stdlib.h>
1.9       millert  6581:
                   6582: _ACEOF
1.1       millert  6583: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6584:   egrep "free" >/dev/null 2>&1; then
                   6585:   :
                   6586: else
                   6587:   ac_cv_header_stdc=no
                   6588: fi
                   6589: rm -f conftest*
                   6590:
                   6591: fi
                   6592:
                   6593: if test $ac_cv_header_stdc = yes; then
                   6594:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.9       millert  6595:   if test "$cross_compiling" = yes; then
1.1       millert  6596:   :
                   6597: else
1.9       millert  6598:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  6599: #line 6599 "configure"
1.1       millert  6600: #include "confdefs.h"
                   6601: #include <ctype.h>
1.9       millert  6602: #if ((' ' & 0x0FF) == 0x020)
                   6603: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   6604: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   6605: #else
                   6606: # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
                   6607:                      || ('j' <= (c) && (c) <= 'r') \
                   6608:                      || ('s' <= (c) && (c) <= 'z'))
                   6609: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   6610: #endif
                   6611:
1.1       millert  6612: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.9       millert  6613: int
                   6614: main ()
                   6615: {
                   6616:   int i;
                   6617:   for (i = 0; i < 256; i++)
                   6618:     if (XOR (islower (i), ISLOWER (i))
                   6619:         || toupper (i) != TOUPPER (i))
                   6620:       exit(2);
                   6621:   exit (0);
                   6622: }
                   6623: _ACEOF
                   6624: rm -f conftest$ac_exeext
1.10    ! millert  6625: if { (eval echo "$as_me:6625: \"$ac_link\"") >&5
1.9       millert  6626:   (eval $ac_link) 2>&5
                   6627:   ac_status=$?
1.10    ! millert  6628:   echo "$as_me:6628: \$? = $ac_status" >&5
1.9       millert  6629:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.10    ! millert  6630:   { (eval echo "$as_me:6630: \"$ac_try\"") >&5
1.9       millert  6631:   (eval $ac_try) 2>&5
                   6632:   ac_status=$?
1.10    ! millert  6633:   echo "$as_me:6633: \$? = $ac_status" >&5
1.9       millert  6634:   (exit $ac_status); }; }; then
1.1       millert  6635:   :
                   6636: else
1.9       millert  6637:   echo "$as_me: program exited with status $ac_status" >&5
                   6638: echo "$as_me: failed program was:" >&5
                   6639: cat conftest.$ac_ext >&5
                   6640: ac_cv_header_stdc=no
1.1       millert  6641: fi
1.9       millert  6642: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       millert  6643: fi
                   6644: fi
                   6645: fi
1.10    ! millert  6646: echo "$as_me:6646: result: $ac_cv_header_stdc" >&5
1.9       millert  6647: echo "${ECHO_T}$ac_cv_header_stdc" >&6
                   6648: if test $ac_cv_header_stdc = yes; then
1.1       millert  6649:
1.9       millert  6650: cat >>confdefs.h <<\EOF
1.1       millert  6651: #define STDC_HEADERS 1
                   6652: EOF
                   6653:
                   6654: fi
                   6655:
                   6656: ac_header_dirent=no
1.9       millert  6657: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   6658:   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
1.10    ! millert  6659: echo "$as_me:6659: checking for $ac_hdr that defines DIR" >&5
1.9       millert  6660: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
                   6661: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   6662:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  6663: else
1.9       millert  6664:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  6665: #line 6665 "configure"
1.1       millert  6666: #include "confdefs.h"
                   6667: #include <sys/types.h>
                   6668: #include <$ac_hdr>
1.9       millert  6669:
                   6670: int
                   6671: main ()
                   6672: {
                   6673: if ((DIR *) 0)
                   6674: return 0;
                   6675:   ;
                   6676:   return 0;
                   6677: }
                   6678: _ACEOF
                   6679: rm -f conftest.$ac_objext
1.10    ! millert  6680: if { (eval echo "$as_me:6680: \"$ac_compile\"") >&5
1.9       millert  6681:   (eval $ac_compile) 2>&5
                   6682:   ac_status=$?
1.10    ! millert  6683:   echo "$as_me:6683: \$? = $ac_status" >&5
1.9       millert  6684:   (exit $ac_status); } &&
                   6685:          { ac_try='test -s conftest.$ac_objext'
1.10    ! millert  6686:   { (eval echo "$as_me:6686: \"$ac_try\"") >&5
1.9       millert  6687:   (eval $ac_try) 2>&5
                   6688:   ac_status=$?
1.10    ! millert  6689:   echo "$as_me:6689: \$? = $ac_status" >&5
1.9       millert  6690:   (exit $ac_status); }; }; then
                   6691:   eval "$as_ac_Header=yes"
                   6692: else
                   6693:   echo "$as_me: failed program was:" >&5
                   6694: cat conftest.$ac_ext >&5
                   6695: eval "$as_ac_Header=no"
                   6696: fi
                   6697: rm -f conftest.$ac_objext conftest.$ac_ext
                   6698: fi
1.10    ! millert  6699: echo "$as_me:6699: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9       millert  6700: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
                   6701: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   6702:   cat >>confdefs.h <<EOF
                   6703: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
1.1       millert  6704: EOF
1.9       millert  6705:
                   6706: ac_header_dirent=$ac_hdr; break
1.1       millert  6707: fi
1.9       millert  6708:
1.1       millert  6709: done
                   6710: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   6711: if test $ac_header_dirent = dirent.h; then
1.10    ! millert  6712:   echo "$as_me:6712: checking for opendir in -ldir" >&5
1.9       millert  6713: echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
                   6714: if test "${ac_cv_lib_dir_opendir+set}" = set; then
                   6715:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  6716: else
1.9       millert  6717:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  6718: LIBS="-ldir  $LIBS"
1.9       millert  6719: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  6720: #line 6720 "configure"
1.1       millert  6721: #include "confdefs.h"
1.9       millert  6722:
1.1       millert  6723: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  6724: #ifdef __cplusplus
                   6725: extern "C"
                   6726: #endif
1.1       millert  6727: /* We use char because int might match the return type of a gcc2
1.9       millert  6728:    builtin and then its argument prototype would still apply.  */
                   6729: char opendir ();
                   6730: int
                   6731: main ()
                   6732: {
                   6733: opendir ();
                   6734:   ;
                   6735:   return 0;
                   6736: }
                   6737: _ACEOF
                   6738: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  6739: if { (eval echo "$as_me:6739: \"$ac_link\"") >&5
1.9       millert  6740:   (eval $ac_link) 2>&5
                   6741:   ac_status=$?
1.10    ! millert  6742:   echo "$as_me:6742: \$? = $ac_status" >&5
1.9       millert  6743:   (exit $ac_status); } &&
                   6744:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  6745:   { (eval echo "$as_me:6745: \"$ac_try\"") >&5
1.9       millert  6746:   (eval $ac_try) 2>&5
                   6747:   ac_status=$?
1.10    ! millert  6748:   echo "$as_me:6748: \$? = $ac_status" >&5
1.9       millert  6749:   (exit $ac_status); }; }; then
                   6750:   ac_cv_lib_dir_opendir=yes
                   6751: else
                   6752:   echo "$as_me: failed program was:" >&5
                   6753: cat conftest.$ac_ext >&5
                   6754: ac_cv_lib_dir_opendir=no
                   6755: fi
                   6756: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   6757: LIBS=$ac_check_lib_save_LIBS
                   6758: fi
1.10    ! millert  6759: echo "$as_me:6759: result: $ac_cv_lib_dir_opendir" >&5
1.9       millert  6760: echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
                   6761: if test $ac_cv_lib_dir_opendir = yes; then
1.1       millert  6762:   LIBS="$LIBS -ldir"
                   6763: fi
                   6764:
                   6765: else
1.10    ! millert  6766:   echo "$as_me:6766: checking for opendir in -lx" >&5
1.9       millert  6767: echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
                   6768: if test "${ac_cv_lib_x_opendir+set}" = set; then
                   6769:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  6770: else
1.9       millert  6771:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  6772: LIBS="-lx  $LIBS"
1.9       millert  6773: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  6774: #line 6774 "configure"
1.1       millert  6775: #include "confdefs.h"
1.9       millert  6776:
1.1       millert  6777: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  6778: #ifdef __cplusplus
                   6779: extern "C"
                   6780: #endif
1.1       millert  6781: /* We use char because int might match the return type of a gcc2
1.9       millert  6782:    builtin and then its argument prototype would still apply.  */
                   6783: char opendir ();
                   6784: int
                   6785: main ()
                   6786: {
                   6787: opendir ();
                   6788:   ;
                   6789:   return 0;
                   6790: }
                   6791: _ACEOF
                   6792: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  6793: if { (eval echo "$as_me:6793: \"$ac_link\"") >&5
1.9       millert  6794:   (eval $ac_link) 2>&5
                   6795:   ac_status=$?
1.10    ! millert  6796:   echo "$as_me:6796: \$? = $ac_status" >&5
1.9       millert  6797:   (exit $ac_status); } &&
                   6798:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  6799:   { (eval echo "$as_me:6799: \"$ac_try\"") >&5
1.9       millert  6800:   (eval $ac_try) 2>&5
                   6801:   ac_status=$?
1.10    ! millert  6802:   echo "$as_me:6802: \$? = $ac_status" >&5
1.9       millert  6803:   (exit $ac_status); }; }; then
                   6804:   ac_cv_lib_x_opendir=yes
                   6805: else
                   6806:   echo "$as_me: failed program was:" >&5
                   6807: cat conftest.$ac_ext >&5
                   6808: ac_cv_lib_x_opendir=no
                   6809: fi
                   6810: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   6811: LIBS=$ac_check_lib_save_LIBS
                   6812: fi
1.10    ! millert  6813: echo "$as_me:6813: result: $ac_cv_lib_x_opendir" >&5
1.9       millert  6814: echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
                   6815: if test $ac_cv_lib_x_opendir = yes; then
1.1       millert  6816:   LIBS="$LIBS -lx"
                   6817: fi
                   6818:
                   6819: fi
                   6820:
1.9       millert  6821: for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
1.1       millert  6822: do
1.9       millert  6823: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.10    ! millert  6824: echo "$as_me:6824: checking for $ac_header" >&5
1.9       millert  6825: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   6826: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   6827:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6828: else
                   6829:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  6830: #line 6830 "configure"
1.9       millert  6831: #include "confdefs.h"
                   6832: #include <$ac_header>
                   6833: _ACEOF
1.10    ! millert  6834: if { (eval echo "$as_me:6834: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9       millert  6835:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   6836:   ac_status=$?
                   6837:   egrep -v '^ *\+' conftest.er1 >conftest.err
                   6838:   rm -f conftest.er1
                   6839:   cat conftest.err >&5
1.10    ! millert  6840:   echo "$as_me:6840: \$? = $ac_status" >&5
1.9       millert  6841:   (exit $ac_status); } >/dev/null; then
                   6842:   if test -s conftest.err; then
                   6843:     ac_cpp_err=$ac_c_preproc_warn_flag
                   6844:   else
                   6845:     ac_cpp_err=
                   6846:   fi
1.1       millert  6847: else
1.9       millert  6848:   ac_cpp_err=yes
                   6849: fi
                   6850: if test -z "$ac_cpp_err"; then
                   6851:   eval "$as_ac_Header=yes"
1.1       millert  6852: else
1.9       millert  6853:   echo "$as_me: failed program was:" >&5
1.1       millert  6854:   cat conftest.$ac_ext >&5
1.9       millert  6855:   eval "$as_ac_Header=no"
1.1       millert  6856: fi
1.9       millert  6857: rm -f conftest.err conftest.$ac_ext
1.1       millert  6858: fi
1.10    ! millert  6859: echo "$as_me:6859: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9       millert  6860: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
                   6861: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   6862:   cat >>confdefs.h <<EOF
                   6863: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1       millert  6864: EOF
1.9       millert  6865:
1.1       millert  6866: fi
                   6867: done
                   6868:
                   6869: if test "$OS" != "ultrix"; then
1.10    ! millert  6870:     echo "$as_me:6870: checking POSIX termios" >&5
1.9       millert  6871: echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
                   6872: if test "${ac_cv_sys_posix_termios+set}" = set; then
                   6873:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  6874: else
1.9       millert  6875:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  6876: #line 6876 "configure"
1.1       millert  6877: #include "confdefs.h"
1.9       millert  6878: #include <sys/types.h>
                   6879: #include <unistd.h>
                   6880: #include <termios.h>
                   6881: int
                   6882: main ()
                   6883: {
                   6884: /* SunOS 4.0.3 has termios.h but not the library calls.  */
                   6885:    tcgetattr(0, 0);
                   6886:   ;
                   6887:   return 0;
                   6888: }
                   6889: _ACEOF
                   6890: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  6891: if { (eval echo "$as_me:6891: \"$ac_link\"") >&5
1.9       millert  6892:   (eval $ac_link) 2>&5
                   6893:   ac_status=$?
1.10    ! millert  6894:   echo "$as_me:6894: \$? = $ac_status" >&5
1.9       millert  6895:   (exit $ac_status); } &&
                   6896:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  6897:   { (eval echo "$as_me:6897: \"$ac_try\"") >&5
1.9       millert  6898:   (eval $ac_try) 2>&5
                   6899:   ac_status=$?
1.10    ! millert  6900:   echo "$as_me:6900: \$? = $ac_status" >&5
1.9       millert  6901:   (exit $ac_status); }; }; then
                   6902:   ac_cv_sys_posix_termios=yes
                   6903: else
                   6904:   echo "$as_me: failed program was:" >&5
                   6905: cat conftest.$ac_ext >&5
                   6906: ac_cv_sys_posix_termios=no
                   6907: fi
                   6908: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   6909: fi
1.10    ! millert  6910: echo "$as_me:6910: result: $ac_cv_sys_posix_termios" >&5
1.9       millert  6911: echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
                   6912:
                   6913:     if test "$ac_cv_sys_posix_termios" = "yes"; then
                   6914:
                   6915: cat >>confdefs.h <<\EOF
                   6916: #define HAVE_TERMIOS_H 1
1.1       millert  6917: EOF
1.9       millert  6918:
                   6919:     else
                   6920:
                   6921: for ac_header in termio.h
                   6922: do
                   6923: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.10    ! millert  6924: echo "$as_me:6924: checking for $ac_header" >&5
1.9       millert  6925: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   6926: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   6927:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6928: else
                   6929:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  6930: #line 6930 "configure"
1.9       millert  6931: #include "confdefs.h"
                   6932: #include <$ac_header>
                   6933: _ACEOF
1.10    ! millert  6934: if { (eval echo "$as_me:6934: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9       millert  6935:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   6936:   ac_status=$?
                   6937:   egrep -v '^ *\+' conftest.er1 >conftest.err
                   6938:   rm -f conftest.er1
                   6939:   cat conftest.err >&5
1.10    ! millert  6940:   echo "$as_me:6940: \$? = $ac_status" >&5
1.9       millert  6941:   (exit $ac_status); } >/dev/null; then
                   6942:   if test -s conftest.err; then
                   6943:     ac_cpp_err=$ac_c_preproc_warn_flag
                   6944:   else
                   6945:     ac_cpp_err=
                   6946:   fi
                   6947: else
                   6948:   ac_cpp_err=yes
                   6949: fi
                   6950: if test -z "$ac_cpp_err"; then
                   6951:   eval "$as_ac_Header=yes"
1.1       millert  6952: else
1.9       millert  6953:   echo "$as_me: failed program was:" >&5
1.1       millert  6954:   cat conftest.$ac_ext >&5
1.9       millert  6955:   eval "$as_ac_Header=no"
1.1       millert  6956: fi
1.9       millert  6957: rm -f conftest.err conftest.$ac_ext
1.1       millert  6958: fi
1.10    ! millert  6959: echo "$as_me:6959: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9       millert  6960: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
                   6961: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   6962:   cat >>confdefs.h <<EOF
                   6963: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1       millert  6964: EOF
1.9       millert  6965:
1.1       millert  6966: fi
                   6967: done
                   6968:
1.9       millert  6969:     fi
                   6970: fi
                   6971: if test "$with_logincap" = "yes"; then
                   6972:
                   6973: for ac_header in login_cap.h
1.1       millert  6974: do
1.9       millert  6975: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.10    ! millert  6976: echo "$as_me:6976: checking for $ac_header" >&5
1.9       millert  6977: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   6978: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   6979:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6980: else
                   6981:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  6982: #line 6982 "configure"
1.9       millert  6983: #include "confdefs.h"
                   6984: #include <$ac_header>
                   6985: _ACEOF
1.10    ! millert  6986: if { (eval echo "$as_me:6986: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9       millert  6987:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   6988:   ac_status=$?
                   6989:   egrep -v '^ *\+' conftest.er1 >conftest.err
                   6990:   rm -f conftest.er1
                   6991:   cat conftest.err >&5
1.10    ! millert  6992:   echo "$as_me:6992: \$? = $ac_status" >&5
1.9       millert  6993:   (exit $ac_status); } >/dev/null; then
                   6994:   if test -s conftest.err; then
                   6995:     ac_cpp_err=$ac_c_preproc_warn_flag
                   6996:   else
                   6997:     ac_cpp_err=
                   6998:   fi
1.1       millert  6999: else
1.9       millert  7000:   ac_cpp_err=yes
                   7001: fi
                   7002: if test -z "$ac_cpp_err"; then
                   7003:   eval "$as_ac_Header=yes"
1.1       millert  7004: else
1.9       millert  7005:   echo "$as_me: failed program was:" >&5
1.1       millert  7006:   cat conftest.$ac_ext >&5
1.9       millert  7007:   eval "$as_ac_Header=no"
1.1       millert  7008: fi
1.9       millert  7009: rm -f conftest.err conftest.$ac_ext
1.1       millert  7010: fi
1.10    ! millert  7011: echo "$as_me:7011: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9       millert  7012: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
                   7013: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   7014:   cat >>confdefs.h <<EOF
                   7015: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1       millert  7016: EOF
1.9       millert  7017:
                   7018: fi
                   7019: done
                   7020:
                   7021: fi
                   7022: if test "$with_bsdauth" = "yes"; then
1.10    ! millert  7023:     echo "$as_me:7023: checking for bsd_auth.h" >&5
1.9       millert  7024: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6
                   7025: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
                   7026:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  7027: else
1.9       millert  7028:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  7029: #line 7029 "configure"
1.1       millert  7030: #include "confdefs.h"
1.9       millert  7031: #include <bsd_auth.h>
                   7032: _ACEOF
1.10    ! millert  7033: if { (eval echo "$as_me:7033: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9       millert  7034:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   7035:   ac_status=$?
                   7036:   egrep -v '^ *\+' conftest.er1 >conftest.err
                   7037:   rm -f conftest.er1
                   7038:   cat conftest.err >&5
1.10    ! millert  7039:   echo "$as_me:7039: \$? = $ac_status" >&5
1.9       millert  7040:   (exit $ac_status); } >/dev/null; then
                   7041:   if test -s conftest.err; then
                   7042:     ac_cpp_err=$ac_c_preproc_warn_flag
                   7043:   else
                   7044:     ac_cpp_err=
                   7045:   fi
                   7046: else
                   7047:   ac_cpp_err=yes
                   7048: fi
                   7049: if test -z "$ac_cpp_err"; then
                   7050:   ac_cv_header_bsd_auth_h=yes
1.1       millert  7051: else
1.9       millert  7052:   echo "$as_me: failed program was:" >&5
1.1       millert  7053:   cat conftest.$ac_ext >&5
1.9       millert  7054:   ac_cv_header_bsd_auth_h=no
1.1       millert  7055: fi
1.9       millert  7056: rm -f conftest.err conftest.$ac_ext
1.1       millert  7057: fi
1.10    ! millert  7058: echo "$as_me:7058: result: $ac_cv_header_bsd_auth_h" >&5
1.9       millert  7059: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6
                   7060: if test $ac_cv_header_bsd_auth_h = yes; then
1.1       millert  7061:
1.9       millert  7062: cat >>confdefs.h <<\EOF
                   7063: #define HAVE_BSD_AUTH_H 1
1.1       millert  7064: EOF
1.9       millert  7065:  with_passwd=no; AUTH_OBJS=bsdauth.o
                   7066: fi
                   7067:
1.1       millert  7068: fi
1.9       millert  7069: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
                   7070:
                   7071: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   7072:                   inttypes.h stdint.h unistd.h
                   7073: do
                   7074: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.10    ! millert  7075: echo "$as_me:7075: checking for $ac_header" >&5
1.9       millert  7076: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
                   7077: if eval "test \"\${$as_ac_Header+set}\" = set"; then
                   7078:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7079: else
                   7080:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  7081: #line 7081 "configure"
1.9       millert  7082: #include "confdefs.h"
                   7083: $ac_includes_default
                   7084: #include <$ac_header>
                   7085: _ACEOF
                   7086: rm -f conftest.$ac_objext
1.10    ! millert  7087: if { (eval echo "$as_me:7087: \"$ac_compile\"") >&5
1.9       millert  7088:   (eval $ac_compile) 2>&5
                   7089:   ac_status=$?
1.10    ! millert  7090:   echo "$as_me:7090: \$? = $ac_status" >&5
1.9       millert  7091:   (exit $ac_status); } &&
                   7092:          { ac_try='test -s conftest.$ac_objext'
1.10    ! millert  7093:   { (eval echo "$as_me:7093: \"$ac_try\"") >&5
1.9       millert  7094:   (eval $ac_try) 2>&5
                   7095:   ac_status=$?
1.10    ! millert  7096:   echo "$as_me:7096: \$? = $ac_status" >&5
1.9       millert  7097:   (exit $ac_status); }; }; then
                   7098:   eval "$as_ac_Header=yes"
                   7099: else
                   7100:   echo "$as_me: failed program was:" >&5
                   7101: cat conftest.$ac_ext >&5
                   7102: eval "$as_ac_Header=no"
                   7103: fi
                   7104: rm -f conftest.$ac_objext conftest.$ac_ext
                   7105: fi
1.10    ! millert  7106: echo "$as_me:7106: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9       millert  7107: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
                   7108: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   7109:   cat >>confdefs.h <<EOF
                   7110: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   7111: EOF
1.1       millert  7112:
                   7113: fi
                   7114: done
                   7115:
1.10    ! millert  7116: echo "$as_me:7116: checking for mode_t" >&5
1.9       millert  7117: echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
                   7118: if test "${ac_cv_type_mode_t+set}" = set; then
                   7119:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.7       millert  7120: else
1.9       millert  7121:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  7122: #line 7122 "configure"
1.7       millert  7123: #include "confdefs.h"
1.9       millert  7124: $ac_includes_default
                   7125: int
                   7126: main ()
                   7127: {
                   7128: if ((mode_t *) 0)
                   7129:   return 0;
                   7130: if (sizeof (mode_t))
                   7131:   return 0;
                   7132:   ;
                   7133:   return 0;
                   7134: }
                   7135: _ACEOF
                   7136: rm -f conftest.$ac_objext
1.10    ! millert  7137: if { (eval echo "$as_me:7137: \"$ac_compile\"") >&5
1.9       millert  7138:   (eval $ac_compile) 2>&5
                   7139:   ac_status=$?
1.10    ! millert  7140:   echo "$as_me:7140: \$? = $ac_status" >&5
1.9       millert  7141:   (exit $ac_status); } &&
                   7142:          { ac_try='test -s conftest.$ac_objext'
1.10    ! millert  7143:   { (eval echo "$as_me:7143: \"$ac_try\"") >&5
1.9       millert  7144:   (eval $ac_try) 2>&5
                   7145:   ac_status=$?
1.10    ! millert  7146:   echo "$as_me:7146: \$? = $ac_status" >&5
1.9       millert  7147:   (exit $ac_status); }; }; then
                   7148:   ac_cv_type_mode_t=yes
                   7149: else
                   7150:   echo "$as_me: failed program was:" >&5
                   7151: cat conftest.$ac_ext >&5
                   7152: ac_cv_type_mode_t=no
                   7153: fi
                   7154: rm -f conftest.$ac_objext conftest.$ac_ext
                   7155: fi
1.10    ! millert  7156: echo "$as_me:7156: result: $ac_cv_type_mode_t" >&5
1.9       millert  7157: echo "${ECHO_T}$ac_cv_type_mode_t" >&6
                   7158: if test $ac_cv_type_mode_t = yes; then
                   7159:   :
1.7       millert  7160: else
1.9       millert  7161:
                   7162: cat >>confdefs.h <<EOF
                   7163: #define mode_t int
1.7       millert  7164: EOF
1.9       millert  7165:
1.7       millert  7166: fi
                   7167:
1.10    ! millert  7168: echo "$as_me:7168: checking for uid_t in sys/types.h" >&5
1.9       millert  7169: echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
                   7170: if test "${ac_cv_type_uid_t+set}" = set; then
                   7171:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.7       millert  7172: else
1.9       millert  7173:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  7174: #line 7174 "configure"
1.7       millert  7175: #include "confdefs.h"
1.9       millert  7176: #include <sys/types.h>
                   7177:
                   7178: _ACEOF
                   7179: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   7180:   egrep "uid_t" >/dev/null 2>&1; then
                   7181:   ac_cv_type_uid_t=yes
1.7       millert  7182: else
1.9       millert  7183:   ac_cv_type_uid_t=no
1.7       millert  7184: fi
                   7185: rm -f conftest*
1.9       millert  7186:
1.7       millert  7187: fi
1.10    ! millert  7188: echo "$as_me:7188: result: $ac_cv_type_uid_t" >&5
1.9       millert  7189: echo "${ECHO_T}$ac_cv_type_uid_t" >&6
                   7190: if test $ac_cv_type_uid_t = no; then
                   7191:
                   7192: cat >>confdefs.h <<\EOF
                   7193: #define uid_t int
                   7194: EOF
                   7195:
                   7196: cat >>confdefs.h <<\EOF
                   7197: #define gid_t int
1.7       millert  7198: EOF
1.9       millert  7199:
                   7200: fi
                   7201:
1.10    ! millert  7202: echo "$as_me:7202: checking for sig_atomic_t" >&5
1.9       millert  7203: echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
                   7204: if test "${ac_cv_type_sig_atomic_t+set}" = set; then
                   7205:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7206: else
                   7207:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  7208: #line 7208 "configure"
1.9       millert  7209: #include "confdefs.h"
                   7210: #include <sys/types.h>
                   7211: #include <signal.h>
                   7212:
                   7213: int
                   7214: main ()
                   7215: {
                   7216: if ((sig_atomic_t *) 0)
                   7217:   return 0;
                   7218: if (sizeof (sig_atomic_t))
                   7219:   return 0;
                   7220:   ;
                   7221:   return 0;
                   7222: }
                   7223: _ACEOF
                   7224: rm -f conftest.$ac_objext
1.10    ! millert  7225: if { (eval echo "$as_me:7225: \"$ac_compile\"") >&5
1.9       millert  7226:   (eval $ac_compile) 2>&5
                   7227:   ac_status=$?
1.10    ! millert  7228:   echo "$as_me:7228: \$? = $ac_status" >&5
1.9       millert  7229:   (exit $ac_status); } &&
                   7230:          { ac_try='test -s conftest.$ac_objext'
1.10    ! millert  7231:   { (eval echo "$as_me:7231: \"$ac_try\"") >&5
1.9       millert  7232:   (eval $ac_try) 2>&5
                   7233:   ac_status=$?
1.10    ! millert  7234:   echo "$as_me:7234: \$? = $ac_status" >&5
1.9       millert  7235:   (exit $ac_status); }; }; then
                   7236:   ac_cv_type_sig_atomic_t=yes
1.7       millert  7237: else
1.9       millert  7238:   echo "$as_me: failed program was:" >&5
                   7239: cat conftest.$ac_ext >&5
                   7240: ac_cv_type_sig_atomic_t=no
1.7       millert  7241: fi
1.9       millert  7242: rm -f conftest.$ac_objext conftest.$ac_ext
1.7       millert  7243: fi
1.10    ! millert  7244: echo "$as_me:7244: result: $ac_cv_type_sig_atomic_t" >&5
1.9       millert  7245: echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
                   7246: if test $ac_cv_type_sig_atomic_t = yes; then
1.7       millert  7247:
1.9       millert  7248: cat >>confdefs.h <<EOF
                   7249: #define HAVE_SIG_ATOMIC_T 1
1.1       millert  7250: EOF
1.9       millert  7251:
1.1       millert  7252: else
                   7253:
1.9       millert  7254: cat >>confdefs.h <<\EOF
                   7255: #define sig_atomic_t int
1.1       millert  7256: EOF
                   7257:
                   7258: fi
                   7259:
1.10    ! millert  7260: echo "$as_me:7260: checking for sigaction_t" >&5
1.9       millert  7261: echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6
                   7262: if test "${ac_cv_type_sigaction_t+set}" = set; then
                   7263:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  7264: else
1.9       millert  7265:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  7266: #line 7266 "configure"
1.1       millert  7267: #include "confdefs.h"
                   7268: #include <sys/types.h>
1.9       millert  7269: #include <signal.h>
                   7270:
                   7271: int
                   7272: main ()
                   7273: {
                   7274: if ((sigaction_t *) 0)
                   7275:   return 0;
                   7276: if (sizeof (sigaction_t))
                   7277:   return 0;
                   7278:   ;
                   7279:   return 0;
                   7280: }
                   7281: _ACEOF
                   7282: rm -f conftest.$ac_objext
1.10    ! millert  7283: if { (eval echo "$as_me:7283: \"$ac_compile\"") >&5
1.9       millert  7284:   (eval $ac_compile) 2>&5
                   7285:   ac_status=$?
1.10    ! millert  7286:   echo "$as_me:7286: \$? = $ac_status" >&5
1.9       millert  7287:   (exit $ac_status); } &&
                   7288:          { ac_try='test -s conftest.$ac_objext'
1.10    ! millert  7289:   { (eval echo "$as_me:7289: \"$ac_try\"") >&5
1.9       millert  7290:   (eval $ac_try) 2>&5
                   7291:   ac_status=$?
1.10    ! millert  7292:   echo "$as_me:7292: \$? = $ac_status" >&5
1.9       millert  7293:   (exit $ac_status); }; }; then
                   7294:   ac_cv_type_sigaction_t=yes
1.1       millert  7295: else
1.9       millert  7296:   echo "$as_me: failed program was:" >&5
                   7297: cat conftest.$ac_ext >&5
                   7298: ac_cv_type_sigaction_t=no
1.1       millert  7299: fi
1.9       millert  7300: rm -f conftest.$ac_objext conftest.$ac_ext
1.1       millert  7301: fi
1.10    ! millert  7302: echo "$as_me:7302: result: $ac_cv_type_sigaction_t" >&5
1.9       millert  7303: echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6
                   7304: if test $ac_cv_type_sigaction_t = yes; then
1.1       millert  7305:
1.9       millert  7306: cat >>confdefs.h <<EOF
                   7307: #define HAVE_SIGACTION_T 1
1.1       millert  7308: EOF
                   7309:
1.9       millert  7310: cat >>confdefs.h <<\EOF
                   7311: #define HAVE_SIGACTION_T 1
1.1       millert  7312: EOF
                   7313:
                   7314: fi
                   7315:
1.10    ! millert  7316: echo "$as_me:7316: checking for size_t" >&5
1.9       millert  7317: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
                   7318: if test "${sudo_cv_type_size_t+set}" = set; then
                   7319:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  7320: else
1.9       millert  7321:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  7322: #line 7322 "configure"
1.1       millert  7323: #include "confdefs.h"
                   7324: #include <sys/types.h>
1.9       millert  7325: #include <stdio.h>
1.1       millert  7326: #if STDC_HEADERS
                   7327: #include <stdlib.h>
                   7328: #endif
                   7329: #if HAVE_UNISTD_H
                   7330: #include <unistd.h>
                   7331: #endif
1.9       millert  7332: _ACEOF
1.1       millert  7333: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   7334:   egrep "size_t" >/dev/null 2>&1; then
                   7335:   sudo_cv_type_size_t=yes
                   7336: else
                   7337:   sudo_cv_type_size_t=no
                   7338: fi
                   7339: rm -f conftest*
                   7340:
                   7341: fi
1.10    ! millert  7342: echo "$as_me:7342: result: $sudo_cv_type_size_t" >&5
1.9       millert  7343: echo "${ECHO_T}$sudo_cv_type_size_t" >&6
1.1       millert  7344: if test $sudo_cv_type_size_t = no; then
1.9       millert  7345:
                   7346: cat >>confdefs.h <<\EOF
1.1       millert  7347: #define size_t int
                   7348: EOF
                   7349:
                   7350: fi
                   7351:
1.10    ! millert  7352: echo "$as_me:7352: checking for ssize_t" >&5
1.9       millert  7353: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
                   7354: if test "${sudo_cv_type_ssize_t+set}" = set; then
                   7355:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  7356: else
1.9       millert  7357:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  7358: #line 7358 "configure"
1.1       millert  7359: #include "confdefs.h"
                   7360: #include <sys/types.h>
1.9       millert  7361: #include <stdio.h>
1.1       millert  7362: #if STDC_HEADERS
                   7363: #include <stdlib.h>
                   7364: #endif
                   7365: #if HAVE_UNISTD_H
                   7366: #include <unistd.h>
                   7367: #endif
1.9       millert  7368: _ACEOF
1.1       millert  7369: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   7370:   egrep "ssize_t" >/dev/null 2>&1; then
                   7371:   sudo_cv_type_ssize_t=yes
                   7372: else
                   7373:   sudo_cv_type_ssize_t=no
                   7374: fi
                   7375: rm -f conftest*
                   7376:
                   7377: fi
1.10    ! millert  7378: echo "$as_me:7378: result: $sudo_cv_type_ssize_t" >&5
1.9       millert  7379: echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6
1.1       millert  7380: if test $sudo_cv_type_ssize_t = no; then
1.9       millert  7381:
                   7382: cat >>confdefs.h <<\EOF
1.1       millert  7383: #define ssize_t int
                   7384: EOF
                   7385:
                   7386: fi
                   7387:
1.10    ! millert  7388: echo "$as_me:7388: checking for dev_t" >&5
1.9       millert  7389: echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
                   7390: if test "${sudo_cv_type_dev_t+set}" = set; then
                   7391:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  7392: else
1.9       millert  7393:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  7394: #line 7394 "configure"
1.1       millert  7395: #include "confdefs.h"
                   7396: #include <sys/types.h>
1.9       millert  7397: #include <stdio.h>
1.1       millert  7398: #if STDC_HEADERS
                   7399: #include <stdlib.h>
                   7400: #endif
                   7401: #if HAVE_UNISTD_H
                   7402: #include <unistd.h>
                   7403: #endif
1.9       millert  7404: _ACEOF
1.1       millert  7405: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   7406:   egrep "dev_t" >/dev/null 2>&1; then
                   7407:   sudo_cv_type_dev_t=yes
                   7408: else
                   7409:   sudo_cv_type_dev_t=no
                   7410: fi
                   7411: rm -f conftest*
                   7412:
                   7413: fi
1.10    ! millert  7414: echo "$as_me:7414: result: $sudo_cv_type_dev_t" >&5
1.9       millert  7415: echo "${ECHO_T}$sudo_cv_type_dev_t" >&6
1.1       millert  7416: if test $sudo_cv_type_dev_t = no; then
1.9       millert  7417:
                   7418: cat >>confdefs.h <<\EOF
1.1       millert  7419: #define dev_t int
                   7420: EOF
                   7421:
                   7422: fi
                   7423:
1.10    ! millert  7424: echo "$as_me:7424: checking for ino_t" >&5
1.9       millert  7425: echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
                   7426: if test "${sudo_cv_type_ino_t+set}" = set; then
                   7427:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  7428: else
1.9       millert  7429:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  7430: #line 7430 "configure"
1.1       millert  7431: #include "confdefs.h"
                   7432: #include <sys/types.h>
1.9       millert  7433: #include <stdio.h>
1.1       millert  7434: #if STDC_HEADERS
                   7435: #include <stdlib.h>
                   7436: #endif
                   7437: #if HAVE_UNISTD_H
                   7438: #include <unistd.h>
                   7439: #endif
1.9       millert  7440: _ACEOF
1.1       millert  7441: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   7442:   egrep "ino_t" >/dev/null 2>&1; then
                   7443:   sudo_cv_type_ino_t=yes
                   7444: else
                   7445:   sudo_cv_type_ino_t=no
                   7446: fi
                   7447: rm -f conftest*
                   7448:
                   7449: fi
1.10    ! millert  7450: echo "$as_me:7450: result: $sudo_cv_type_ino_t" >&5
1.9       millert  7451: echo "${ECHO_T}$sudo_cv_type_ino_t" >&6
1.1       millert  7452: if test $sudo_cv_type_ino_t = no; then
1.9       millert  7453:
                   7454: cat >>confdefs.h <<\EOF
1.1       millert  7455: #define ino_t unsigned int
                   7456: EOF
                   7457:
                   7458: fi
                   7459:
1.10    ! millert  7460: echo "$as_me:7460: checking for full void implementation" >&5
1.9       millert  7461: echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6
                   7462: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  7463: #line 7463 "configure"
1.1       millert  7464: #include "confdefs.h"
                   7465:
1.9       millert  7466: int
                   7467: main ()
                   7468: {
1.1       millert  7469: void *foo;
                   7470: foo = (void *)0; (void *)"test";
1.9       millert  7471:   ;
                   7472:   return 0;
                   7473: }
                   7474: _ACEOF
                   7475: rm -f conftest.$ac_objext
1.10    ! millert  7476: if { (eval echo "$as_me:7476: \"$ac_compile\"") >&5
1.9       millert  7477:   (eval $ac_compile) 2>&5
                   7478:   ac_status=$?
1.10    ! millert  7479:   echo "$as_me:7479: \$? = $ac_status" >&5
1.9       millert  7480:   (exit $ac_status); } &&
                   7481:          { ac_try='test -s conftest.$ac_objext'
1.10    ! millert  7482:   { (eval echo "$as_me:7482: \"$ac_try\"") >&5
1.9       millert  7483:   (eval $ac_try) 2>&5
                   7484:   ac_status=$?
1.10    ! millert  7485:   echo "$as_me:7485: \$? = $ac_status" >&5
1.9       millert  7486:   (exit $ac_status); }; }; then
                   7487:
                   7488: cat >>confdefs.h <<\EOF
1.1       millert  7489: #define VOID void
                   7490: EOF
                   7491:
1.10    ! millert  7492: echo "$as_me:7492: result: yes" >&5
1.9       millert  7493: echo "${ECHO_T}yes" >&6
1.1       millert  7494: else
1.9       millert  7495:   echo "$as_me: failed program was:" >&5
                   7496: cat conftest.$ac_ext >&5
                   7497: cat >>confdefs.h <<\EOF
1.1       millert  7498: #define VOID char
                   7499: EOF
                   7500:
1.10    ! millert  7501: echo "$as_me:7501: result: no" >&5
1.9       millert  7502: echo "${ECHO_T}no" >&6
1.1       millert  7503: fi
1.9       millert  7504: rm -f conftest.$ac_objext conftest.$ac_ext
1.1       millert  7505:
1.10    ! millert  7506: echo "$as_me:7506: checking max length of uid_t" >&5
1.9       millert  7507: echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6
                   7508: if test "${sudo_cv_uid_t_len+set}" = set; then
                   7509:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  7510: else
                   7511:   rm -f conftestdata
                   7512: if test "$cross_compiling" = yes; then
1.10    ! millert  7513:   { { echo "$as_me:7513: error: cannot run test program while cross compiling" >&5
1.9       millert  7514: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
                   7515:    { (exit 1); exit 1; }; }
1.1       millert  7516: else
1.9       millert  7517:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  7518: #line 7518 "configure"
1.1       millert  7519: #include "confdefs.h"
                   7520: #include <stdio.h>
                   7521: #include <pwd.h>
                   7522: #include <limits.h>
                   7523: #include <sys/types.h>
                   7524: #include <sys/param.h>
                   7525: main() {
                   7526:   FILE *f;
                   7527:   char b[1024];
                   7528:   uid_t u = (uid_t) -1;
                   7529:
                   7530:   if ((f = fopen("conftestdata", "w")) == NULL)
                   7531:     exit(1);
                   7532:
                   7533:   (void) sprintf(b, "%u", u);
                   7534:   (void) fprintf(f, "%d\n", strlen(b));
                   7535:   (void) fclose(f);
                   7536:   exit(0);
                   7537: }
1.9       millert  7538: _ACEOF
                   7539: rm -f conftest$ac_exeext
1.10    ! millert  7540: if { (eval echo "$as_me:7540: \"$ac_link\"") >&5
1.9       millert  7541:   (eval $ac_link) 2>&5
                   7542:   ac_status=$?
1.10    ! millert  7543:   echo "$as_me:7543: \$? = $ac_status" >&5
1.9       millert  7544:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.10    ! millert  7545:   { (eval echo "$as_me:7545: \"$ac_try\"") >&5
1.9       millert  7546:   (eval $ac_try) 2>&5
                   7547:   ac_status=$?
1.10    ! millert  7548:   echo "$as_me:7548: \$? = $ac_status" >&5
1.9       millert  7549:   (exit $ac_status); }; }; then
1.1       millert  7550:   sudo_cv_uid_t_len=`cat conftestdata`
                   7551: else
1.9       millert  7552:   echo "$as_me: program exited with status $ac_status" >&5
                   7553: echo "$as_me: failed program was:" >&5
                   7554: cat conftest.$ac_ext >&5
                   7555: sudo_cv_uid_t_len=10
1.1       millert  7556: fi
1.9       millert  7557: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       millert  7558: fi
                   7559:
                   7560: fi
                   7561:
                   7562: rm -f conftestdata
1.10    ! millert  7563: echo "$as_me:7563: result: $sudo_cv_uid_t_len" >&5
1.9       millert  7564: echo "${ECHO_T}$sudo_cv_uid_t_len" >&6
                   7565:
                   7566: cat >>confdefs.h <<EOF
1.1       millert  7567: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
                   7568: EOF
                   7569:
1.10    ! millert  7570: echo "$as_me:7570: checking for long long support" >&5
1.9       millert  7571: echo $ECHO_N "checking for long long support... $ECHO_C" >&6
                   7572: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  7573: #line 7573 "configure"
1.1       millert  7574: #include "confdefs.h"
                   7575:
1.9       millert  7576: int
                   7577: main ()
                   7578: {
1.1       millert  7579: long long foo = 1000; foo /= 10;
1.9       millert  7580:   ;
                   7581:   return 0;
                   7582: }
                   7583: _ACEOF
                   7584: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  7585: if { (eval echo "$as_me:7585: \"$ac_link\"") >&5
1.9       millert  7586:   (eval $ac_link) 2>&5
                   7587:   ac_status=$?
1.10    ! millert  7588:   echo "$as_me:7588: \$? = $ac_status" >&5
1.9       millert  7589:   (exit $ac_status); } &&
                   7590:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  7591:   { (eval echo "$as_me:7591: \"$ac_try\"") >&5
1.9       millert  7592:   (eval $ac_try) 2>&5
                   7593:   ac_status=$?
1.10    ! millert  7594:   echo "$as_me:7594: \$? = $ac_status" >&5
1.9       millert  7595:   (exit $ac_status); }; }; then
                   7596:
                   7597: cat >>confdefs.h <<\EOF
1.1       millert  7598: #define HAVE_LONG_LONG 1
                   7599: EOF
                   7600:
                   7601: if test "$cross_compiling" = yes; then
1.10    ! millert  7602:   { { echo "$as_me:7602: error: cannot run test program while cross compiling" >&5
1.9       millert  7603: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
                   7604:    { (exit 1); exit 1; }; }
1.1       millert  7605: else
1.9       millert  7606:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  7607: #line 7607 "configure"
1.1       millert  7608: #include "confdefs.h"
                   7609: main() {if (sizeof(long long) == sizeof(long)) exit(0); else exit(1);}
1.9       millert  7610: _ACEOF
                   7611: rm -f conftest$ac_exeext
1.10    ! millert  7612: if { (eval echo "$as_me:7612: \"$ac_link\"") >&5
1.9       millert  7613:   (eval $ac_link) 2>&5
                   7614:   ac_status=$?
1.10    ! millert  7615:   echo "$as_me:7615: \$? = $ac_status" >&5
1.9       millert  7616:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.10    ! millert  7617:   { (eval echo "$as_me:7617: \"$ac_try\"") >&5
1.9       millert  7618:   (eval $ac_try) 2>&5
                   7619:   ac_status=$?
1.10    ! millert  7620:   echo "$as_me:7620: \$? = $ac_status" >&5
1.9       millert  7621:   (exit $ac_status); }; }; then
                   7622:
                   7623: cat >>confdefs.h <<\EOF
1.1       millert  7624: #define LONG_IS_QUAD 1
                   7625: EOF
                   7626:
                   7627: else
1.9       millert  7628:   echo "$as_me: program exited with status $ac_status" >&5
                   7629: echo "$as_me: failed program was:" >&5
                   7630: cat conftest.$ac_ext >&5
                   7631: fi
                   7632: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
                   7633: fi
1.10    ! millert  7634: echo "$as_me:7634: result: yes" >&5
1.9       millert  7635: echo "${ECHO_T}yes" >&6
                   7636: else
                   7637:   echo "$as_me: failed program was:" >&5
                   7638: cat conftest.$ac_ext >&5
1.10    ! millert  7639: echo "$as_me:7639: result: no" >&5
1.9       millert  7640: echo "${ECHO_T}no" >&6
                   7641: fi
                   7642: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.10    ! millert  7643: echo "$as_me:7643: checking for sa_len field in struct sockaddr" >&5
1.9       millert  7644: echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6
                   7645: if test "${sudo_cv_sock_sa_len+set}" = set; then
                   7646:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  7647: else
                   7648:   if test "$cross_compiling" = yes; then
                   7649:   sudo_cv_sock_sa_len=no
                   7650: else
1.9       millert  7651:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  7652: #line 7652 "configure"
1.1       millert  7653: #include "confdefs.h"
                   7654: #include <sys/types.h>
                   7655: #include <sys/socket.h>
                   7656: main() {
                   7657: struct sockaddr s;
                   7658: s.sa_len = 0;
                   7659: exit(0);
                   7660: }
1.9       millert  7661: _ACEOF
                   7662: rm -f conftest$ac_exeext
1.10    ! millert  7663: if { (eval echo "$as_me:7663: \"$ac_link\"") >&5
1.9       millert  7664:   (eval $ac_link) 2>&5
                   7665:   ac_status=$?
1.10    ! millert  7666:   echo "$as_me:7666: \$? = $ac_status" >&5
1.9       millert  7667:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.10    ! millert  7668:   { (eval echo "$as_me:7668: \"$ac_try\"") >&5
1.9       millert  7669:   (eval $ac_try) 2>&5
                   7670:   ac_status=$?
1.10    ! millert  7671:   echo "$as_me:7671: \$? = $ac_status" >&5
1.9       millert  7672:   (exit $ac_status); }; }; then
1.1       millert  7673:   sudo_cv_sock_sa_len=yes
                   7674: else
1.9       millert  7675:   echo "$as_me: program exited with status $ac_status" >&5
                   7676: echo "$as_me: failed program was:" >&5
                   7677: cat conftest.$ac_ext >&5
                   7678: sudo_cv_sock_sa_len=no
1.1       millert  7679: fi
1.9       millert  7680: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       millert  7681: fi
                   7682: rm -f core core.* *.core
                   7683: fi
1.10    ! millert  7684: echo "$as_me:7684: result: $sudo_cv_sock_sa_len" >&5
1.9       millert  7685: echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6
1.1       millert  7686: if test $sudo_cv_sock_sa_len = yes; then
1.9       millert  7687:
                   7688: cat >>confdefs.h <<\EOF
1.1       millert  7689: #define HAVE_SA_LEN 1
                   7690: EOF
                   7691:
                   7692: fi
                   7693:
                   7694: case "$DEFS" in
                   7695:     *"RETSIGTYPE"*)    ;;
1.10    ! millert  7696:     *)                 echo "$as_me:7696: checking return type of signal handlers" >&5
1.9       millert  7697: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
                   7698: if test "${ac_cv_type_signal+set}" = set; then
                   7699:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  7700: else
1.9       millert  7701:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  7702: #line 7702 "configure"
1.1       millert  7703: #include "confdefs.h"
                   7704: #include <sys/types.h>
                   7705: #include <signal.h>
                   7706: #ifdef signal
1.9       millert  7707: # undef signal
1.1       millert  7708: #endif
                   7709: #ifdef __cplusplus
                   7710: extern "C" void (*signal (int, void (*)(int)))(int);
                   7711: #else
                   7712: void (*signal ()) ();
                   7713: #endif
                   7714:
1.9       millert  7715: int
                   7716: main ()
                   7717: {
1.1       millert  7718: int i;
1.9       millert  7719:   ;
                   7720:   return 0;
                   7721: }
                   7722: _ACEOF
                   7723: rm -f conftest.$ac_objext
1.10    ! millert  7724: if { (eval echo "$as_me:7724: \"$ac_compile\"") >&5
1.9       millert  7725:   (eval $ac_compile) 2>&5
                   7726:   ac_status=$?
1.10    ! millert  7727:   echo "$as_me:7727: \$? = $ac_status" >&5
1.9       millert  7728:   (exit $ac_status); } &&
                   7729:          { ac_try='test -s conftest.$ac_objext'
1.10    ! millert  7730:   { (eval echo "$as_me:7730: \"$ac_try\"") >&5
1.9       millert  7731:   (eval $ac_try) 2>&5
                   7732:   ac_status=$?
1.10    ! millert  7733:   echo "$as_me:7733: \$? = $ac_status" >&5
1.9       millert  7734:   (exit $ac_status); }; }; then
1.1       millert  7735:   ac_cv_type_signal=void
                   7736: else
1.9       millert  7737:   echo "$as_me: failed program was:" >&5
                   7738: cat conftest.$ac_ext >&5
                   7739: ac_cv_type_signal=int
1.1       millert  7740: fi
1.9       millert  7741: rm -f conftest.$ac_objext conftest.$ac_ext
1.1       millert  7742: fi
1.10    ! millert  7743: echo "$as_me:7743: result: $ac_cv_type_signal" >&5
1.9       millert  7744: echo "${ECHO_T}$ac_cv_type_signal" >&6
1.1       millert  7745:
1.9       millert  7746: cat >>confdefs.h <<EOF
1.1       millert  7747: #define RETSIGTYPE $ac_cv_type_signal
                   7748: EOF
                   7749:
                   7750: ;;
                   7751: esac
1.9       millert  7752:
                   7753: for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
                   7754:               seteuid setegid strftime setrlimit initgroups fstat
1.1       millert  7755: do
1.9       millert  7756: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.10    ! millert  7757: echo "$as_me:7757: checking for $ac_func" >&5
1.9       millert  7758: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   7759: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   7760:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  7761: else
1.9       millert  7762:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  7763: #line 7763 "configure"
1.1       millert  7764: #include "confdefs.h"
                   7765: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  7766:     which can conflict with char $ac_func (); below.  */
1.1       millert  7767: #include <assert.h>
                   7768: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  7769: #ifdef __cplusplus
                   7770: extern "C"
                   7771: #endif
1.1       millert  7772: /* We use char because int might match the return type of a gcc2
1.9       millert  7773:    builtin and then its argument prototype would still apply.  */
                   7774: char $ac_func ();
                   7775: char (*f) ();
1.1       millert  7776:
1.9       millert  7777: int
                   7778: main ()
                   7779: {
1.1       millert  7780: /* The GNU C library defines this for functions which it implements
                   7781:     to always fail with ENOSYS.  Some functions are actually named
                   7782:     something starting with __ and the normal name is an alias.  */
                   7783: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   7784: choke me
                   7785: #else
1.9       millert  7786: f = $ac_func;
1.1       millert  7787: #endif
                   7788:
1.9       millert  7789:   ;
                   7790:   return 0;
                   7791: }
                   7792: _ACEOF
                   7793: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  7794: if { (eval echo "$as_me:7794: \"$ac_link\"") >&5
1.9       millert  7795:   (eval $ac_link) 2>&5
                   7796:   ac_status=$?
1.10    ! millert  7797:   echo "$as_me:7797: \$? = $ac_status" >&5
1.9       millert  7798:   (exit $ac_status); } &&
                   7799:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  7800:   { (eval echo "$as_me:7800: \"$ac_try\"") >&5
1.9       millert  7801:   (eval $ac_try) 2>&5
                   7802:   ac_status=$?
1.10    ! millert  7803:   echo "$as_me:7803: \$? = $ac_status" >&5
1.9       millert  7804:   (exit $ac_status); }; }; then
                   7805:   eval "$as_ac_var=yes"
                   7806: else
                   7807:   echo "$as_me: failed program was:" >&5
                   7808: cat conftest.$ac_ext >&5
                   7809: eval "$as_ac_var=no"
                   7810: fi
                   7811: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   7812: fi
1.10    ! millert  7813: echo "$as_me:7813: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  7814: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   7815: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   7816:   cat >>confdefs.h <<EOF
                   7817: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       millert  7818: EOF
                   7819:
                   7820: fi
                   7821: done
                   7822:
1.9       millert  7823: if test -z "$BROKEN_SETREUID"; then
                   7824:
                   7825: for ac_func in setreuid
1.1       millert  7826: do
1.9       millert  7827: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.10    ! millert  7828: echo "$as_me:7828: checking for $ac_func" >&5
1.9       millert  7829: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   7830: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   7831:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  7832: else
1.9       millert  7833:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  7834: #line 7834 "configure"
1.1       millert  7835: #include "confdefs.h"
                   7836: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  7837:     which can conflict with char $ac_func (); below.  */
1.1       millert  7838: #include <assert.h>
                   7839: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  7840: #ifdef __cplusplus
                   7841: extern "C"
                   7842: #endif
1.1       millert  7843: /* We use char because int might match the return type of a gcc2
1.9       millert  7844:    builtin and then its argument prototype would still apply.  */
                   7845: char $ac_func ();
                   7846: char (*f) ();
1.1       millert  7847:
1.9       millert  7848: int
                   7849: main ()
                   7850: {
1.1       millert  7851: /* The GNU C library defines this for functions which it implements
                   7852:     to always fail with ENOSYS.  Some functions are actually named
                   7853:     something starting with __ and the normal name is an alias.  */
                   7854: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   7855: choke me
                   7856: #else
1.9       millert  7857: f = $ac_func;
1.1       millert  7858: #endif
                   7859:
1.9       millert  7860:   ;
                   7861:   return 0;
                   7862: }
                   7863: _ACEOF
                   7864: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  7865: if { (eval echo "$as_me:7865: \"$ac_link\"") >&5
1.9       millert  7866:   (eval $ac_link) 2>&5
                   7867:   ac_status=$?
1.10    ! millert  7868:   echo "$as_me:7868: \$? = $ac_status" >&5
1.9       millert  7869:   (exit $ac_status); } &&
                   7870:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  7871:   { (eval echo "$as_me:7871: \"$ac_try\"") >&5
1.9       millert  7872:   (eval $ac_try) 2>&5
                   7873:   ac_status=$?
1.10    ! millert  7874:   echo "$as_me:7874: \$? = $ac_status" >&5
1.9       millert  7875:   (exit $ac_status); }; }; then
                   7876:   eval "$as_ac_var=yes"
                   7877: else
                   7878:   echo "$as_me: failed program was:" >&5
                   7879: cat conftest.$ac_ext >&5
                   7880: eval "$as_ac_var=no"
                   7881: fi
                   7882: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   7883: fi
1.10    ! millert  7884: echo "$as_me:7884: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  7885: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   7886: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   7887:   cat >>confdefs.h <<EOF
                   7888: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       millert  7889: EOF
                   7890:
                   7891: fi
                   7892: done
                   7893:
                   7894: fi
1.9       millert  7895: if test X"$with_interfaces" != X"no"; then
1.1       millert  7896:
1.9       millert  7897: for ac_func in getifaddrs
1.1       millert  7898: do
1.9       millert  7899: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.10    ! millert  7900: echo "$as_me:7900: checking for $ac_func" >&5
1.9       millert  7901: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   7902: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   7903:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  7904: else
1.9       millert  7905:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  7906: #line 7906 "configure"
1.1       millert  7907: #include "confdefs.h"
                   7908: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  7909:     which can conflict with char $ac_func (); below.  */
1.1       millert  7910: #include <assert.h>
                   7911: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  7912: #ifdef __cplusplus
                   7913: extern "C"
                   7914: #endif
1.1       millert  7915: /* We use char because int might match the return type of a gcc2
1.9       millert  7916:    builtin and then its argument prototype would still apply.  */
                   7917: char $ac_func ();
                   7918: char (*f) ();
1.1       millert  7919:
1.9       millert  7920: int
                   7921: main ()
                   7922: {
1.1       millert  7923: /* The GNU C library defines this for functions which it implements
                   7924:     to always fail with ENOSYS.  Some functions are actually named
                   7925:     something starting with __ and the normal name is an alias.  */
                   7926: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   7927: choke me
                   7928: #else
1.9       millert  7929: f = $ac_func;
1.1       millert  7930: #endif
                   7931:
1.9       millert  7932:   ;
                   7933:   return 0;
                   7934: }
                   7935: _ACEOF
                   7936: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  7937: if { (eval echo "$as_me:7937: \"$ac_link\"") >&5
1.9       millert  7938:   (eval $ac_link) 2>&5
                   7939:   ac_status=$?
1.10    ! millert  7940:   echo "$as_me:7940: \$? = $ac_status" >&5
1.9       millert  7941:   (exit $ac_status); } &&
                   7942:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  7943:   { (eval echo "$as_me:7943: \"$ac_try\"") >&5
1.9       millert  7944:   (eval $ac_try) 2>&5
                   7945:   ac_status=$?
1.10    ! millert  7946:   echo "$as_me:7946: \$? = $ac_status" >&5
1.9       millert  7947:   (exit $ac_status); }; }; then
                   7948:   eval "$as_ac_var=yes"
                   7949: else
                   7950:   echo "$as_me: failed program was:" >&5
                   7951: cat conftest.$ac_ext >&5
                   7952: eval "$as_ac_var=no"
                   7953: fi
                   7954: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   7955: fi
1.10    ! millert  7956: echo "$as_me:7956: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  7957: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   7958: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   7959:   cat >>confdefs.h <<EOF
                   7960: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       millert  7961: EOF
                   7962:
                   7963: fi
                   7964: done
                   7965:
                   7966: fi
1.9       millert  7967: if test -n "$SECUREWARE"; then
1.1       millert  7968:
1.9       millert  7969: for ac_func in bigcrypt set_auth_parameters initprivs
                   7970: do
                   7971: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.10    ! millert  7972: echo "$as_me:7972: checking for $ac_func" >&5
1.9       millert  7973: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   7974: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   7975:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  7976: else
1.9       millert  7977:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  7978: #line 7978 "configure"
1.1       millert  7979: #include "confdefs.h"
                   7980: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  7981:     which can conflict with char $ac_func (); below.  */
1.1       millert  7982: #include <assert.h>
                   7983: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  7984: #ifdef __cplusplus
                   7985: extern "C"
1.1       millert  7986: #endif
                   7987: /* We use char because int might match the return type of a gcc2
1.9       millert  7988:    builtin and then its argument prototype would still apply.  */
                   7989: char $ac_func ();
                   7990: char (*f) ();
1.1       millert  7991:
1.9       millert  7992: int
                   7993: main ()
                   7994: {
1.1       millert  7995: /* The GNU C library defines this for functions which it implements
                   7996:     to always fail with ENOSYS.  Some functions are actually named
                   7997:     something starting with __ and the normal name is an alias.  */
                   7998: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   7999: choke me
                   8000: #else
1.9       millert  8001: f = $ac_func;
1.1       millert  8002: #endif
                   8003:
1.9       millert  8004:   ;
                   8005:   return 0;
                   8006: }
                   8007: _ACEOF
                   8008: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  8009: if { (eval echo "$as_me:8009: \"$ac_link\"") >&5
1.9       millert  8010:   (eval $ac_link) 2>&5
                   8011:   ac_status=$?
1.10    ! millert  8012:   echo "$as_me:8012: \$? = $ac_status" >&5
1.9       millert  8013:   (exit $ac_status); } &&
                   8014:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  8015:   { (eval echo "$as_me:8015: \"$ac_try\"") >&5
1.9       millert  8016:   (eval $ac_try) 2>&5
                   8017:   ac_status=$?
1.10    ! millert  8018:   echo "$as_me:8018: \$? = $ac_status" >&5
1.9       millert  8019:   (exit $ac_status); }; }; then
                   8020:   eval "$as_ac_var=yes"
                   8021: else
                   8022:   echo "$as_me: failed program was:" >&5
                   8023: cat conftest.$ac_ext >&5
                   8024: eval "$as_ac_var=no"
                   8025: fi
                   8026: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   8027: fi
1.10    ! millert  8028: echo "$as_me:8028: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  8029: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   8030: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   8031:   cat >>confdefs.h <<EOF
                   8032: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       millert  8033: EOF
                   8034:
                   8035: fi
                   8036: done
                   8037:
                   8038: fi
1.9       millert  8039: if test -z "$BROKEN_GETCWD"; then
1.1       millert  8040:
1.9       millert  8041: for ac_func in getcwd
                   8042: do
                   8043: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.10    ! millert  8044: echo "$as_me:8044: checking for $ac_func" >&5
1.9       millert  8045: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   8046: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   8047:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  8048: else
1.9       millert  8049:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  8050: #line 8050 "configure"
1.1       millert  8051: #include "confdefs.h"
                   8052: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  8053:     which can conflict with char $ac_func (); below.  */
1.1       millert  8054: #include <assert.h>
                   8055: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  8056: #ifdef __cplusplus
                   8057: extern "C"
1.1       millert  8058: #endif
                   8059: /* We use char because int might match the return type of a gcc2
1.9       millert  8060:    builtin and then its argument prototype would still apply.  */
                   8061: char $ac_func ();
                   8062: char (*f) ();
1.1       millert  8063:
1.9       millert  8064: int
                   8065: main ()
                   8066: {
1.1       millert  8067: /* The GNU C library defines this for functions which it implements
                   8068:     to always fail with ENOSYS.  Some functions are actually named
                   8069:     something starting with __ and the normal name is an alias.  */
                   8070: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   8071: choke me
                   8072: #else
1.9       millert  8073: f = $ac_func;
1.1       millert  8074: #endif
                   8075:
1.9       millert  8076:   ;
                   8077:   return 0;
                   8078: }
                   8079: _ACEOF
                   8080: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  8081: if { (eval echo "$as_me:8081: \"$ac_link\"") >&5
1.9       millert  8082:   (eval $ac_link) 2>&5
                   8083:   ac_status=$?
1.10    ! millert  8084:   echo "$as_me:8084: \$? = $ac_status" >&5
1.9       millert  8085:   (exit $ac_status); } &&
                   8086:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  8087:   { (eval echo "$as_me:8087: \"$ac_try\"") >&5
1.9       millert  8088:   (eval $ac_try) 2>&5
                   8089:   ac_status=$?
1.10    ! millert  8090:   echo "$as_me:8090: \$? = $ac_status" >&5
1.9       millert  8091:   (exit $ac_status); }; }; then
                   8092:   eval "$as_ac_var=yes"
                   8093: else
                   8094:   echo "$as_me: failed program was:" >&5
                   8095: cat conftest.$ac_ext >&5
                   8096: eval "$as_ac_var=no"
                   8097: fi
                   8098: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   8099: fi
1.10    ! millert  8100: echo "$as_me:8100: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  8101: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   8102: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   8103:   cat >>confdefs.h <<EOF
                   8104: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       millert  8105: EOF
                   8106:
                   8107: else
1.9       millert  8108:   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
1.1       millert  8109: fi
                   8110: done
                   8111:
                   8112: fi
                   8113:
1.9       millert  8114: for ac_func in lockf flock
                   8115: do
                   8116: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.10    ! millert  8117: echo "$as_me:8117: checking for $ac_func" >&5
1.9       millert  8118: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   8119: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   8120:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  8121: else
1.9       millert  8122:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  8123: #line 8123 "configure"
1.1       millert  8124: #include "confdefs.h"
                   8125: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  8126:     which can conflict with char $ac_func (); below.  */
1.1       millert  8127: #include <assert.h>
                   8128: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  8129: #ifdef __cplusplus
                   8130: extern "C"
                   8131: #endif
1.1       millert  8132: /* We use char because int might match the return type of a gcc2
1.9       millert  8133:    builtin and then its argument prototype would still apply.  */
                   8134: char $ac_func ();
                   8135: char (*f) ();
1.1       millert  8136:
1.9       millert  8137: int
                   8138: main ()
                   8139: {
1.1       millert  8140: /* The GNU C library defines this for functions which it implements
                   8141:     to always fail with ENOSYS.  Some functions are actually named
                   8142:     something starting with __ and the normal name is an alias.  */
1.9       millert  8143: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  8144: choke me
                   8145: #else
1.9       millert  8146: f = $ac_func;
1.1       millert  8147: #endif
                   8148:
1.9       millert  8149:   ;
                   8150:   return 0;
                   8151: }
                   8152: _ACEOF
                   8153: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  8154: if { (eval echo "$as_me:8154: \"$ac_link\"") >&5
1.9       millert  8155:   (eval $ac_link) 2>&5
                   8156:   ac_status=$?
1.10    ! millert  8157:   echo "$as_me:8157: \$? = $ac_status" >&5
1.9       millert  8158:   (exit $ac_status); } &&
                   8159:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  8160:   { (eval echo "$as_me:8160: \"$ac_try\"") >&5
1.9       millert  8161:   (eval $ac_try) 2>&5
                   8162:   ac_status=$?
1.10    ! millert  8163:   echo "$as_me:8163: \$? = $ac_status" >&5
1.9       millert  8164:   (exit $ac_status); }; }; then
                   8165:   eval "$as_ac_var=yes"
                   8166: else
                   8167:   echo "$as_me: failed program was:" >&5
                   8168: cat conftest.$ac_ext >&5
                   8169: eval "$as_ac_var=no"
                   8170: fi
                   8171: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   8172: fi
1.10    ! millert  8173: echo "$as_me:8173: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  8174: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   8175: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   8176:   cat >>confdefs.h <<EOF
                   8177: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       millert  8178: EOF
1.9       millert  8179:  break
1.1       millert  8180: fi
1.9       millert  8181: done
1.1       millert  8182:
1.9       millert  8183: for ac_func in waitpid wait3
1.1       millert  8184: do
1.9       millert  8185: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.10    ! millert  8186: echo "$as_me:8186: checking for $ac_func" >&5
1.9       millert  8187: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   8188: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   8189:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  8190: else
1.9       millert  8191:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  8192: #line 8192 "configure"
1.1       millert  8193: #include "confdefs.h"
                   8194: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  8195:     which can conflict with char $ac_func (); below.  */
1.1       millert  8196: #include <assert.h>
                   8197: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  8198: #ifdef __cplusplus
                   8199: extern "C"
                   8200: #endif
1.1       millert  8201: /* We use char because int might match the return type of a gcc2
1.9       millert  8202:    builtin and then its argument prototype would still apply.  */
                   8203: char $ac_func ();
                   8204: char (*f) ();
1.1       millert  8205:
1.9       millert  8206: int
                   8207: main ()
                   8208: {
1.1       millert  8209: /* The GNU C library defines this for functions which it implements
                   8210:     to always fail with ENOSYS.  Some functions are actually named
                   8211:     something starting with __ and the normal name is an alias.  */
                   8212: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   8213: choke me
                   8214: #else
1.9       millert  8215: f = $ac_func;
1.1       millert  8216: #endif
                   8217:
1.9       millert  8218:   ;
                   8219:   return 0;
                   8220: }
                   8221: _ACEOF
                   8222: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  8223: if { (eval echo "$as_me:8223: \"$ac_link\"") >&5
1.9       millert  8224:   (eval $ac_link) 2>&5
                   8225:   ac_status=$?
1.10    ! millert  8226:   echo "$as_me:8226: \$? = $ac_status" >&5
1.9       millert  8227:   (exit $ac_status); } &&
                   8228:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  8229:   { (eval echo "$as_me:8229: \"$ac_try\"") >&5
1.9       millert  8230:   (eval $ac_try) 2>&5
                   8231:   ac_status=$?
1.10    ! millert  8232:   echo "$as_me:8232: \$? = $ac_status" >&5
1.9       millert  8233:   (exit $ac_status); }; }; then
                   8234:   eval "$as_ac_var=yes"
                   8235: else
                   8236:   echo "$as_me: failed program was:" >&5
                   8237: cat conftest.$ac_ext >&5
                   8238: eval "$as_ac_var=no"
                   8239: fi
                   8240: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   8241: fi
1.10    ! millert  8242: echo "$as_me:8242: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  8243: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   8244: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   8245:   cat >>confdefs.h <<EOF
                   8246: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       millert  8247: EOF
1.9       millert  8248:  break
1.1       millert  8249: fi
                   8250: done
                   8251:
1.9       millert  8252: for ac_func in innetgr _innetgr
                   8253: do
                   8254: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.10    ! millert  8255: echo "$as_me:8255: checking for $ac_func" >&5
1.9       millert  8256: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   8257: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   8258:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  8259: else
1.9       millert  8260:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  8261: #line 8261 "configure"
1.1       millert  8262: #include "confdefs.h"
                   8263: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  8264:     which can conflict with char $ac_func (); below.  */
1.1       millert  8265: #include <assert.h>
                   8266: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  8267: #ifdef __cplusplus
                   8268: extern "C"
                   8269: #endif
1.1       millert  8270: /* We use char because int might match the return type of a gcc2
1.9       millert  8271:    builtin and then its argument prototype would still apply.  */
                   8272: char $ac_func ();
                   8273: char (*f) ();
1.1       millert  8274:
1.9       millert  8275: int
                   8276: main ()
                   8277: {
1.1       millert  8278: /* The GNU C library defines this for functions which it implements
                   8279:     to always fail with ENOSYS.  Some functions are actually named
                   8280:     something starting with __ and the normal name is an alias.  */
1.9       millert  8281: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  8282: choke me
                   8283: #else
1.9       millert  8284: f = $ac_func;
1.1       millert  8285: #endif
                   8286:
1.9       millert  8287:   ;
                   8288:   return 0;
                   8289: }
                   8290: _ACEOF
                   8291: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  8292: if { (eval echo "$as_me:8292: \"$ac_link\"") >&5
1.9       millert  8293:   (eval $ac_link) 2>&5
                   8294:   ac_status=$?
1.10    ! millert  8295:   echo "$as_me:8295: \$? = $ac_status" >&5
1.9       millert  8296:   (exit $ac_status); } &&
                   8297:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  8298:   { (eval echo "$as_me:8298: \"$ac_try\"") >&5
1.9       millert  8299:   (eval $ac_try) 2>&5
                   8300:   ac_status=$?
1.10    ! millert  8301:   echo "$as_me:8301: \$? = $ac_status" >&5
1.9       millert  8302:   (exit $ac_status); }; }; then
                   8303:   eval "$as_ac_var=yes"
                   8304: else
                   8305:   echo "$as_me: failed program was:" >&5
                   8306: cat conftest.$ac_ext >&5
                   8307: eval "$as_ac_var=no"
                   8308: fi
                   8309: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   8310: fi
1.10    ! millert  8311: echo "$as_me:8311: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  8312: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   8313: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   8314:   cat >>confdefs.h <<EOF
                   8315: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       millert  8316: EOF
                   8317:
1.9       millert  8318: for ac_func in getdomainname
                   8319: do
                   8320: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.10    ! millert  8321: echo "$as_me:8321: checking for $ac_func" >&5
1.9       millert  8322: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   8323: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   8324:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  8325: else
1.9       millert  8326:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  8327: #line 8327 "configure"
1.1       millert  8328: #include "confdefs.h"
1.9       millert  8329: /* System header to define __stub macros and hopefully few prototypes
1.1       millert  8330: else
1.9       millert  8331:   which can conflict with char $ac_func (); below.  */
1.1       millert  8332: #include <assert.h>
                   8333: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  8334: #ifdef __cplusplus
                   8335: extern "C"
                   8336: #endif
1.1       millert  8337: /* We use char because int might match the return type of a gcc2
1.9       millert  8338:    builtin and then its argument prototype would still apply.  */
                   8339: char $ac_func ();
                   8340: char (*f) ();
1.1       millert  8341:
1.9       millert  8342: int
                   8343: main ()
                   8344: {
1.1       millert  8345: /* The GNU C library defines this for functions which it implements
                   8346:     to always fail with ENOSYS.  Some functions are actually named
                   8347:     something starting with __ and the normal name is an alias.  */
1.9       millert  8348: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  8349: choke me
                   8350: #else
1.9       millert  8351: f = $ac_func;
1.1       millert  8352: #endif
                   8353:
1.9       millert  8354:   ;
                   8355:   return 0;
                   8356: }
                   8357: _ACEOF
                   8358: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  8359: if { (eval echo "$as_me:8359: \"$ac_link\"") >&5
1.9       millert  8360:   (eval $ac_link) 2>&5
                   8361:   ac_status=$?
1.10    ! millert  8362:   echo "$as_me:8362: \$? = $ac_status" >&5
1.9       millert  8363:   (exit $ac_status); } &&
                   8364:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  8365:   { (eval echo "$as_me:8365: \"$ac_try\"") >&5
1.9       millert  8366:   (eval $ac_try) 2>&5
                   8367:   ac_status=$?
1.10    ! millert  8368:   echo "$as_me:8368: \$? = $ac_status" >&5
1.9       millert  8369:   (exit $ac_status); }; }; then
                   8370:   eval "$as_ac_var=yes"
                   8371: else
                   8372:   echo "$as_me: failed program was:" >&5
                   8373: cat conftest.$ac_ext >&5
                   8374: eval "$as_ac_var=no"
                   8375: fi
                   8376: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   8377: fi
1.10    ! millert  8378: echo "$as_me:8378: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  8379: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   8380: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   8381:   cat >>confdefs.h <<EOF
                   8382: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       millert  8383: EOF
1.9       millert  8384:
1.1       millert  8385: fi
1.9       millert  8386: done
                   8387:  break
1.1       millert  8388: fi
1.9       millert  8389: done
1.1       millert  8390:
1.9       millert  8391: for ac_func in lsearch
                   8392: do
                   8393: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.10    ! millert  8394: echo "$as_me:8394: checking for $ac_func" >&5
1.9       millert  8395: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   8396: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   8397:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  8398: else
1.9       millert  8399:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  8400: #line 8400 "configure"
1.1       millert  8401: #include "confdefs.h"
                   8402: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  8403:     which can conflict with char $ac_func (); below.  */
1.1       millert  8404: #include <assert.h>
                   8405: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  8406: #ifdef __cplusplus
                   8407: extern "C"
                   8408: #endif
1.1       millert  8409: /* We use char because int might match the return type of a gcc2
1.9       millert  8410:    builtin and then its argument prototype would still apply.  */
                   8411: char $ac_func ();
                   8412: char (*f) ();
1.1       millert  8413:
1.9       millert  8414: int
                   8415: main ()
                   8416: {
1.1       millert  8417: /* The GNU C library defines this for functions which it implements
                   8418:     to always fail with ENOSYS.  Some functions are actually named
                   8419:     something starting with __ and the normal name is an alias.  */
1.9       millert  8420: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  8421: choke me
                   8422: #else
1.9       millert  8423: f = $ac_func;
1.1       millert  8424: #endif
                   8425:
1.9       millert  8426:   ;
                   8427:   return 0;
                   8428: }
                   8429: _ACEOF
                   8430: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  8431: if { (eval echo "$as_me:8431: \"$ac_link\"") >&5
1.9       millert  8432:   (eval $ac_link) 2>&5
                   8433:   ac_status=$?
1.10    ! millert  8434:   echo "$as_me:8434: \$? = $ac_status" >&5
1.9       millert  8435:   (exit $ac_status); } &&
                   8436:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  8437:   { (eval echo "$as_me:8437: \"$ac_try\"") >&5
1.9       millert  8438:   (eval $ac_try) 2>&5
                   8439:   ac_status=$?
1.10    ! millert  8440:   echo "$as_me:8440: \$? = $ac_status" >&5
1.9       millert  8441:   (exit $ac_status); }; }; then
                   8442:   eval "$as_ac_var=yes"
                   8443: else
                   8444:   echo "$as_me: failed program was:" >&5
                   8445: cat conftest.$ac_ext >&5
                   8446: eval "$as_ac_var=no"
                   8447: fi
                   8448: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   8449: fi
1.10    ! millert  8450: echo "$as_me:8450: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  8451: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   8452: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   8453:   cat >>confdefs.h <<EOF
                   8454: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       millert  8455: EOF
1.9       millert  8456:
                   8457: else
1.10    ! millert  8458:   echo "$as_me:8458: checking for lsearch in -lcompat" >&5
1.9       millert  8459: echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6
                   8460: if test "${ac_cv_lib_compat_lsearch+set}" = set; then
                   8461:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8462: else
                   8463:   ac_check_lib_save_LIBS=$LIBS
                   8464: LIBS="-lcompat  $LIBS"
                   8465: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  8466: #line 8466 "configure"
1.9       millert  8467: #include "confdefs.h"
                   8468:
                   8469: /* Override any gcc2 internal prototype to avoid an error.  */
                   8470: #ifdef __cplusplus
                   8471: extern "C"
                   8472: #endif
                   8473: /* We use char because int might match the return type of a gcc2
                   8474:    builtin and then its argument prototype would still apply.  */
                   8475: char lsearch ();
                   8476: int
                   8477: main ()
                   8478: {
                   8479: lsearch ();
                   8480:   ;
                   8481:   return 0;
                   8482: }
                   8483: _ACEOF
                   8484: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  8485: if { (eval echo "$as_me:8485: \"$ac_link\"") >&5
1.9       millert  8486:   (eval $ac_link) 2>&5
                   8487:   ac_status=$?
1.10    ! millert  8488:   echo "$as_me:8488: \$? = $ac_status" >&5
1.9       millert  8489:   (exit $ac_status); } &&
                   8490:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  8491:   { (eval echo "$as_me:8491: \"$ac_try\"") >&5
1.9       millert  8492:   (eval $ac_try) 2>&5
                   8493:   ac_status=$?
1.10    ! millert  8494:   echo "$as_me:8494: \$? = $ac_status" >&5
1.9       millert  8495:   (exit $ac_status); }; }; then
                   8496:   ac_cv_lib_compat_lsearch=yes
                   8497: else
                   8498:   echo "$as_me: failed program was:" >&5
                   8499: cat conftest.$ac_ext >&5
                   8500: ac_cv_lib_compat_lsearch=no
                   8501: fi
                   8502: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   8503: LIBS=$ac_check_lib_save_LIBS
                   8504: fi
1.10    ! millert  8505: echo "$as_me:8505: result: $ac_cv_lib_compat_lsearch" >&5
1.9       millert  8506: echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6
                   8507: if test $ac_cv_lib_compat_lsearch = yes; then
1.10    ! millert  8508:   echo "$as_me:8508: checking for search.h" >&5
1.9       millert  8509: echo $ECHO_N "checking for search.h... $ECHO_C" >&6
                   8510: if test "${ac_cv_header_search_h+set}" = set; then
                   8511:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  8512: else
1.9       millert  8513:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  8514: #line 8514 "configure"
1.9       millert  8515: #include "confdefs.h"
                   8516: #include <search.h>
                   8517: _ACEOF
1.10    ! millert  8518: if { (eval echo "$as_me:8518: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9       millert  8519:   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
                   8520:   ac_status=$?
                   8521:   egrep -v '^ *\+' conftest.er1 >conftest.err
                   8522:   rm -f conftest.er1
                   8523:   cat conftest.err >&5
1.10    ! millert  8524:   echo "$as_me:8524: \$? = $ac_status" >&5
1.9       millert  8525:   (exit $ac_status); } >/dev/null; then
                   8526:   if test -s conftest.err; then
                   8527:     ac_cpp_err=$ac_c_preproc_warn_flag
                   8528:   else
                   8529:     ac_cpp_err=
                   8530:   fi
                   8531: else
                   8532:   ac_cpp_err=yes
                   8533: fi
                   8534: if test -z "$ac_cpp_err"; then
                   8535:   ac_cv_header_search_h=yes
                   8536: else
                   8537:   echo "$as_me: failed program was:" >&5
1.1       millert  8538:   cat conftest.$ac_ext >&5
1.9       millert  8539:   ac_cv_header_search_h=no
1.1       millert  8540: fi
1.9       millert  8541: rm -f conftest.err conftest.$ac_ext
1.1       millert  8542: fi
1.10    ! millert  8543: echo "$as_me:8543: result: $ac_cv_header_search_h" >&5
1.9       millert  8544: echo "${ECHO_T}$ac_cv_header_search_h" >&6
                   8545: if test $ac_cv_header_search_h = yes; then
                   8546:   cat >>confdefs.h <<\EOF
                   8547: #define HAVE_LSEARCH 1
1.1       millert  8548: EOF
1.9       millert  8549:  LIBS="${LIBS} -lcompat"
                   8550: else
                   8551:   LIBOBJS="$LIBOBJS lsearch.$ac_objext"
                   8552: fi
1.1       millert  8553:
                   8554: else
1.9       millert  8555:   LIBOBJS="$LIBOBJS lsearch.$ac_objext"
1.1       millert  8556: fi
                   8557:
                   8558: fi
1.9       millert  8559: done
1.1       millert  8560:
1.9       millert  8561: for ac_func in utime
                   8562: do
                   8563: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.10    ! millert  8564: echo "$as_me:8564: checking for $ac_func" >&5
1.9       millert  8565: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   8566: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   8567:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  8568: else
1.9       millert  8569:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  8570: #line 8570 "configure"
1.1       millert  8571: #include "confdefs.h"
                   8572: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  8573:     which can conflict with char $ac_func (); below.  */
1.1       millert  8574: #include <assert.h>
                   8575: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  8576: #ifdef __cplusplus
                   8577: extern "C"
                   8578: #endif
1.1       millert  8579: /* We use char because int might match the return type of a gcc2
1.9       millert  8580:    builtin and then its argument prototype would still apply.  */
                   8581: char $ac_func ();
                   8582: char (*f) ();
1.1       millert  8583:
1.9       millert  8584: int
                   8585: main ()
                   8586: {
1.1       millert  8587: /* The GNU C library defines this for functions which it implements
                   8588:     to always fail with ENOSYS.  Some functions are actually named
                   8589:     something starting with __ and the normal name is an alias.  */
1.9       millert  8590: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  8591: choke me
                   8592: #else
1.9       millert  8593: f = $ac_func;
1.1       millert  8594: #endif
                   8595:
1.9       millert  8596:   ;
                   8597:   return 0;
                   8598: }
                   8599: _ACEOF
                   8600: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  8601: if { (eval echo "$as_me:8601: \"$ac_link\"") >&5
1.9       millert  8602:   (eval $ac_link) 2>&5
                   8603:   ac_status=$?
1.10    ! millert  8604:   echo "$as_me:8604: \$? = $ac_status" >&5
1.9       millert  8605:   (exit $ac_status); } &&
                   8606:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  8607:   { (eval echo "$as_me:8607: \"$ac_try\"") >&5
1.9       millert  8608:   (eval $ac_try) 2>&5
                   8609:   ac_status=$?
1.10    ! millert  8610:   echo "$as_me:8610: \$? = $ac_status" >&5
1.9       millert  8611:   (exit $ac_status); }; }; then
                   8612:   eval "$as_ac_var=yes"
                   8613: else
                   8614:   echo "$as_me: failed program was:" >&5
                   8615: cat conftest.$ac_ext >&5
                   8616: eval "$as_ac_var=no"
                   8617: fi
                   8618: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   8619: fi
1.10    ! millert  8620: echo "$as_me:8620: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  8621: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   8622: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   8623:   cat >>confdefs.h <<EOF
                   8624: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   8625: EOF
1.10    ! millert  8626:  echo "$as_me:8626: checking for POSIX utime" >&5
1.9       millert  8627: echo $ECHO_N "checking for POSIX utime... $ECHO_C" >&6
                   8628: if test "${sudo_cv_func_utime_posix+set}" = set; then
                   8629:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  8630: else
                   8631:   rm -f conftestdata; > conftestdata
                   8632: if test "$cross_compiling" = yes; then
                   8633:   sudo_cv_func_utime_posix=no
                   8634: else
1.9       millert  8635:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  8636: #line 8636 "configure"
1.1       millert  8637: #include "confdefs.h"
                   8638: #include <sys/types.h>
                   8639: #include <sys/time.h>
                   8640: #include <utime.h>
                   8641: main() {
                   8642: struct utimbuf ut;
                   8643: ut.actime = ut.modtime = time(0);
                   8644: utime("conftestdata", &ut);
                   8645: exit(0);
                   8646: }
1.9       millert  8647: _ACEOF
                   8648: rm -f conftest$ac_exeext
1.10    ! millert  8649: if { (eval echo "$as_me:8649: \"$ac_link\"") >&5
1.9       millert  8650:   (eval $ac_link) 2>&5
                   8651:   ac_status=$?
1.10    ! millert  8652:   echo "$as_me:8652: \$? = $ac_status" >&5
1.9       millert  8653:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.10    ! millert  8654:   { (eval echo "$as_me:8654: \"$ac_try\"") >&5
1.9       millert  8655:   (eval $ac_try) 2>&5
                   8656:   ac_status=$?
1.10    ! millert  8657:   echo "$as_me:8657: \$? = $ac_status" >&5
1.9       millert  8658:   (exit $ac_status); }; }; then
1.1       millert  8659:   sudo_cv_func_utime_posix=yes
                   8660: else
1.9       millert  8661:   echo "$as_me: program exited with status $ac_status" >&5
                   8662: echo "$as_me: failed program was:" >&5
                   8663: cat conftest.$ac_ext >&5
                   8664: sudo_cv_func_utime_posix=no
1.1       millert  8665: fi
1.9       millert  8666: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       millert  8667: fi
                   8668: rm -f core core.* *.core
                   8669: fi
1.10    ! millert  8670: echo "$as_me:8670: result: $sudo_cv_func_utime_posix" >&5
1.9       millert  8671: echo "${ECHO_T}$sudo_cv_func_utime_posix" >&6
1.1       millert  8672: if test $sudo_cv_func_utime_posix = yes; then
1.9       millert  8673:
                   8674: cat >>confdefs.h <<\EOF
1.1       millert  8675: #define HAVE_UTIME_POSIX 1
                   8676: EOF
                   8677:
                   8678: fi
                   8679:
                   8680: else
1.9       millert  8681:   LIBOBJS="$LIBOBJS utime.$ac_objext"
1.1       millert  8682: fi
1.9       millert  8683: done
1.1       millert  8684:
1.10    ! millert  8685: echo "$as_me:8685: checking for working fnmatch with FNM_CASEFOLD" >&5
1.9       millert  8686: echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6
                   8687: if test "${sudo_cv_func_fnmatch+set}" = set; then
                   8688:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  8689: else
                   8690:   rm -f conftestdata; > conftestdata
                   8691: if test "$cross_compiling" = yes; then
                   8692:   sudo_cv_func_fnmatch=no
                   8693: else
1.9       millert  8694:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  8695: #line 8695 "configure"
1.1       millert  8696: #include "confdefs.h"
1.3       millert  8697: #include <fnmatch.h>
1.6       millert  8698: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
1.3       millert  8699:
1.9       millert  8700: _ACEOF
                   8701: rm -f conftest$ac_exeext
1.10    ! millert  8702: if { (eval echo "$as_me:8702: \"$ac_link\"") >&5
1.9       millert  8703:   (eval $ac_link) 2>&5
                   8704:   ac_status=$?
1.10    ! millert  8705:   echo "$as_me:8705: \$? = $ac_status" >&5
1.9       millert  8706:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.10    ! millert  8707:   { (eval echo "$as_me:8707: \"$ac_try\"") >&5
1.9       millert  8708:   (eval $ac_try) 2>&5
                   8709:   ac_status=$?
1.10    ! millert  8710:   echo "$as_me:8710: \$? = $ac_status" >&5
1.9       millert  8711:   (exit $ac_status); }; }; then
1.1       millert  8712:   sudo_cv_func_fnmatch=yes
                   8713: else
1.9       millert  8714:   echo "$as_me: program exited with status $ac_status" >&5
                   8715: echo "$as_me: failed program was:" >&5
                   8716: cat conftest.$ac_ext >&5
                   8717: sudo_cv_func_fnmatch=no
1.1       millert  8718: fi
1.9       millert  8719: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       millert  8720: fi
                   8721: rm -f core core.* *.core
                   8722: fi
1.10    ! millert  8723: echo "$as_me:8723: result: $sudo_cv_func_fnmatch" >&5
1.9       millert  8724: echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6
1.1       millert  8725: if test $sudo_cv_func_fnmatch = yes; then
1.9       millert  8726:
                   8727: cat >>confdefs.h <<\EOF
1.1       millert  8728: #define HAVE_FNMATCH 1
                   8729: EOF
                   8730:
                   8731: else
1.9       millert  8732:   LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
1.1       millert  8733: fi
                   8734:
1.10    ! millert  8735: echo "$as_me:8735: checking for isblank" >&5
1.9       millert  8736: echo $ECHO_N "checking for isblank... $ECHO_C" >&6
                   8737: if test "${sudo_cv_func_isblank+set}" = set; then
                   8738:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  8739: else
1.9       millert  8740:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  8741: #line 8741 "configure"
1.1       millert  8742: #include "confdefs.h"
1.9       millert  8743: #include <ctype.h>
                   8744: int
                   8745: main ()
                   8746: {
                   8747: (void)isblank(1);
                   8748:   ;
                   8749:   return 0;
                   8750: }
                   8751: _ACEOF
                   8752: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  8753: if { (eval echo "$as_me:8753: \"$ac_link\"") >&5
1.9       millert  8754:   (eval $ac_link) 2>&5
                   8755:   ac_status=$?
1.10    ! millert  8756:   echo "$as_me:8756: \$? = $ac_status" >&5
1.9       millert  8757:   (exit $ac_status); } &&
                   8758:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  8759:   { (eval echo "$as_me:8759: \"$ac_try\"") >&5
1.9       millert  8760:   (eval $ac_try) 2>&5
                   8761:   ac_status=$?
1.10    ! millert  8762:   echo "$as_me:8762: \$? = $ac_status" >&5
1.9       millert  8763:   (exit $ac_status); }; }; then
                   8764:   sudo_cv_func_isblank=yes
                   8765: else
                   8766:   echo "$as_me: failed program was:" >&5
                   8767: cat conftest.$ac_ext >&5
                   8768: sudo_cv_func_isblank=no
                   8769: fi
                   8770: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1       millert  8771: fi
1.10    ! millert  8772: echo "$as_me:8772: result: $sudo_cv_func_isblank" >&5
1.9       millert  8773: echo "${ECHO_T}$sudo_cv_func_isblank" >&6
1.1       millert  8774:
1.9       millert  8775:   if test "$sudo_cv_func_isblank" = "yes"; then
1.1       millert  8776:
1.9       millert  8777: cat >>confdefs.h <<\EOF
                   8778: #define HAVE_ISBLANK 1
1.1       millert  8779: EOF
                   8780:
1.9       millert  8781:   fi
1.1       millert  8782:
1.9       millert  8783: for ac_func in strerror strcasecmp sigaction
                   8784: do
                   8785: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.10    ! millert  8786: echo "$as_me:8786: checking for $ac_func" >&5
1.9       millert  8787: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   8788: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   8789:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  8790: else
1.9       millert  8791:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  8792: #line 8792 "configure"
1.1       millert  8793: #include "confdefs.h"
                   8794: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  8795:     which can conflict with char $ac_func (); below.  */
1.1       millert  8796: #include <assert.h>
                   8797: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  8798: #ifdef __cplusplus
                   8799: extern "C"
1.1       millert  8800: #endif
                   8801: /* We use char because int might match the return type of a gcc2
1.9       millert  8802:    builtin and then its argument prototype would still apply.  */
                   8803: char $ac_func ();
                   8804: char (*f) ();
1.1       millert  8805:
1.9       millert  8806: int
                   8807: main ()
                   8808: {
1.1       millert  8809: /* The GNU C library defines this for functions which it implements
                   8810:     to always fail with ENOSYS.  Some functions are actually named
                   8811:     something starting with __ and the normal name is an alias.  */
1.9       millert  8812: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  8813: choke me
                   8814: #else
1.9       millert  8815: f = $ac_func;
1.1       millert  8816: #endif
                   8817:
1.9       millert  8818:   ;
                   8819:   return 0;
                   8820: }
                   8821: _ACEOF
                   8822: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  8823: if { (eval echo "$as_me:8823: \"$ac_link\"") >&5
1.9       millert  8824:   (eval $ac_link) 2>&5
                   8825:   ac_status=$?
1.10    ! millert  8826:   echo "$as_me:8826: \$? = $ac_status" >&5
1.9       millert  8827:   (exit $ac_status); } &&
                   8828:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  8829:   { (eval echo "$as_me:8829: \"$ac_try\"") >&5
1.9       millert  8830:   (eval $ac_try) 2>&5
                   8831:   ac_status=$?
1.10    ! millert  8832:   echo "$as_me:8832: \$? = $ac_status" >&5
1.9       millert  8833:   (exit $ac_status); }; }; then
                   8834:   eval "$as_ac_var=yes"
                   8835: else
                   8836:   echo "$as_me: failed program was:" >&5
                   8837: cat conftest.$ac_ext >&5
                   8838: eval "$as_ac_var=no"
                   8839: fi
                   8840: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   8841: fi
1.10    ! millert  8842: echo "$as_me:8842: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  8843: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   8844: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   8845:   cat >>confdefs.h <<EOF
                   8846: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       millert  8847: EOF
                   8848:
                   8849: else
1.9       millert  8850:   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
1.1       millert  8851: fi
1.9       millert  8852: done
1.1       millert  8853:
1.9       millert  8854: for ac_func in snprintf vsnprintf asprintf vasprintf
                   8855: do
                   8856: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.10    ! millert  8857: echo "$as_me:8857: checking for $ac_func" >&5
1.9       millert  8858: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   8859: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   8860:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  8861: else
1.9       millert  8862:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  8863: #line 8863 "configure"
1.1       millert  8864: #include "confdefs.h"
                   8865: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  8866:     which can conflict with char $ac_func (); below.  */
1.1       millert  8867: #include <assert.h>
                   8868: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  8869: #ifdef __cplusplus
                   8870: extern "C"
                   8871: #endif
1.1       millert  8872: /* We use char because int might match the return type of a gcc2
1.9       millert  8873:    builtin and then its argument prototype would still apply.  */
                   8874: char $ac_func ();
                   8875: char (*f) ();
1.1       millert  8876:
1.9       millert  8877: int
                   8878: main ()
                   8879: {
1.1       millert  8880: /* The GNU C library defines this for functions which it implements
                   8881:     to always fail with ENOSYS.  Some functions are actually named
                   8882:     something starting with __ and the normal name is an alias.  */
1.9       millert  8883: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1       millert  8884: choke me
                   8885: #else
1.9       millert  8886: f = $ac_func;
1.1       millert  8887: #endif
                   8888:
1.9       millert  8889:   ;
                   8890:   return 0;
                   8891: }
                   8892: _ACEOF
                   8893: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  8894: if { (eval echo "$as_me:8894: \"$ac_link\"") >&5
1.9       millert  8895:   (eval $ac_link) 2>&5
                   8896:   ac_status=$?
1.10    ! millert  8897:   echo "$as_me:8897: \$? = $ac_status" >&5
1.9       millert  8898:   (exit $ac_status); } &&
                   8899:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  8900:   { (eval echo "$as_me:8900: \"$ac_try\"") >&5
1.9       millert  8901:   (eval $ac_try) 2>&5
                   8902:   ac_status=$?
1.10    ! millert  8903:   echo "$as_me:8903: \$? = $ac_status" >&5
1.9       millert  8904:   (exit $ac_status); }; }; then
                   8905:   eval "$as_ac_var=yes"
                   8906: else
                   8907:   echo "$as_me: failed program was:" >&5
                   8908: cat conftest.$ac_ext >&5
                   8909: eval "$as_ac_var=no"
                   8910: fi
                   8911: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   8912: fi
1.10    ! millert  8913: echo "$as_me:8913: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  8914: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   8915: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   8916:   cat >>confdefs.h <<EOF
                   8917: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1       millert  8918: EOF
                   8919:
                   8920: else
1.9       millert  8921:   NEED_SNPRINTF=1
1.1       millert  8922: fi
1.9       millert  8923: done
1.1       millert  8924:
                   8925: if test -n "$NEED_SNPRINTF"; then
1.9       millert  8926:     LIBOBJS="$LIBOBJS snprintf.$ac_objext"
1.1       millert  8927: fi
                   8928: if test -z "$LIB_CRYPT"; then
1.10    ! millert  8929:     echo "$as_me:8929: checking for crypt" >&5
1.9       millert  8930: echo $ECHO_N "checking for crypt... $ECHO_C" >&6
                   8931: if test "${ac_cv_func_crypt+set}" = set; then
                   8932:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  8933: else
1.9       millert  8934:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  8935: #line 8935 "configure"
1.1       millert  8936: #include "confdefs.h"
                   8937: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  8938:     which can conflict with char crypt (); below.  */
1.1       millert  8939: #include <assert.h>
                   8940: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  8941: #ifdef __cplusplus
                   8942: extern "C"
                   8943: #endif
1.1       millert  8944: /* We use char because int might match the return type of a gcc2
1.9       millert  8945:    builtin and then its argument prototype would still apply.  */
                   8946: char crypt ();
                   8947: char (*f) ();
1.1       millert  8948:
1.9       millert  8949: int
                   8950: main ()
                   8951: {
1.1       millert  8952: /* The GNU C library defines this for functions which it implements
                   8953:     to always fail with ENOSYS.  Some functions are actually named
                   8954:     something starting with __ and the normal name is an alias.  */
                   8955: #if defined (__stub_crypt) || defined (__stub___crypt)
                   8956: choke me
                   8957: #else
1.9       millert  8958: f = crypt;
1.1       millert  8959: #endif
                   8960:
1.9       millert  8961:   ;
                   8962:   return 0;
                   8963: }
                   8964: _ACEOF
                   8965: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  8966: if { (eval echo "$as_me:8966: \"$ac_link\"") >&5
1.9       millert  8967:   (eval $ac_link) 2>&5
                   8968:   ac_status=$?
1.10    ! millert  8969:   echo "$as_me:8969: \$? = $ac_status" >&5
1.9       millert  8970:   (exit $ac_status); } &&
                   8971:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  8972:   { (eval echo "$as_me:8972: \"$ac_try\"") >&5
1.9       millert  8973:   (eval $ac_try) 2>&5
                   8974:   ac_status=$?
1.10    ! millert  8975:   echo "$as_me:8975: \$? = $ac_status" >&5
1.9       millert  8976:   (exit $ac_status); }; }; then
                   8977:   ac_cv_func_crypt=yes
                   8978: else
                   8979:   echo "$as_me: failed program was:" >&5
                   8980: cat conftest.$ac_ext >&5
                   8981: ac_cv_func_crypt=no
                   8982: fi
                   8983: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   8984: fi
1.10    ! millert  8985: echo "$as_me:8985: result: $ac_cv_func_crypt" >&5
1.9       millert  8986: echo "${ECHO_T}$ac_cv_func_crypt" >&6
                   8987: if test $ac_cv_func_crypt = yes; then
1.1       millert  8988:   :
                   8989: else
1.10    ! millert  8990:   echo "$as_me:8990: checking for crypt in -lcrypt" >&5
1.9       millert  8991: echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
                   8992: if test "${ac_cv_lib_crypt_crypt+set}" = set; then
                   8993:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  8994: else
1.9       millert  8995:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  8996: LIBS="-lcrypt  $LIBS"
1.9       millert  8997: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  8998: #line 8998 "configure"
1.1       millert  8999: #include "confdefs.h"
1.9       millert  9000:
1.1       millert  9001: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  9002: #ifdef __cplusplus
                   9003: extern "C"
                   9004: #endif
1.1       millert  9005: /* We use char because int might match the return type of a gcc2
1.9       millert  9006:    builtin and then its argument prototype would still apply.  */
                   9007: char crypt ();
                   9008: int
                   9009: main ()
                   9010: {
                   9011: crypt ();
                   9012:   ;
                   9013:   return 0;
                   9014: }
                   9015: _ACEOF
                   9016: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  9017: if { (eval echo "$as_me:9017: \"$ac_link\"") >&5
1.9       millert  9018:   (eval $ac_link) 2>&5
                   9019:   ac_status=$?
1.10    ! millert  9020:   echo "$as_me:9020: \$? = $ac_status" >&5
1.9       millert  9021:   (exit $ac_status); } &&
                   9022:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  9023:   { (eval echo "$as_me:9023: \"$ac_try\"") >&5
1.9       millert  9024:   (eval $ac_try) 2>&5
                   9025:   ac_status=$?
1.10    ! millert  9026:   echo "$as_me:9026: \$? = $ac_status" >&5
1.9       millert  9027:   (exit $ac_status); }; }; then
                   9028:   ac_cv_lib_crypt_crypt=yes
                   9029: else
                   9030:   echo "$as_me: failed program was:" >&5
                   9031: cat conftest.$ac_ext >&5
                   9032: ac_cv_lib_crypt_crypt=no
                   9033: fi
                   9034: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9035: LIBS=$ac_check_lib_save_LIBS
                   9036: fi
1.10    ! millert  9037: echo "$as_me:9037: result: $ac_cv_lib_crypt_crypt" >&5
1.9       millert  9038: echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
                   9039: if test $ac_cv_lib_crypt_crypt = yes; then
1.1       millert  9040:   SUDO_LIBS="${SUDO_LIBS} -lcrypt"; LIBS="${LIBS} -lcrypt"
                   9041: else
1.10    ! millert  9042:   echo "$as_me:9042: checking for crypt in -lcrypt_d" >&5
1.9       millert  9043: echo $ECHO_N "checking for crypt in -lcrypt_d... $ECHO_C" >&6
                   9044: if test "${ac_cv_lib_crypt_d_crypt+set}" = set; then
                   9045:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9046: else
1.9       millert  9047:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  9048: LIBS="-lcrypt_d  $LIBS"
1.9       millert  9049: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  9050: #line 9050 "configure"
1.1       millert  9051: #include "confdefs.h"
1.9       millert  9052:
1.1       millert  9053: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  9054: #ifdef __cplusplus
                   9055: extern "C"
                   9056: #endif
1.1       millert  9057: /* We use char because int might match the return type of a gcc2
1.9       millert  9058:    builtin and then its argument prototype would still apply.  */
                   9059: char crypt ();
                   9060: int
                   9061: main ()
                   9062: {
                   9063: crypt ();
                   9064:   ;
                   9065:   return 0;
                   9066: }
                   9067: _ACEOF
                   9068: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  9069: if { (eval echo "$as_me:9069: \"$ac_link\"") >&5
1.9       millert  9070:   (eval $ac_link) 2>&5
                   9071:   ac_status=$?
1.10    ! millert  9072:   echo "$as_me:9072: \$? = $ac_status" >&5
1.9       millert  9073:   (exit $ac_status); } &&
                   9074:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  9075:   { (eval echo "$as_me:9075: \"$ac_try\"") >&5
1.9       millert  9076:   (eval $ac_try) 2>&5
                   9077:   ac_status=$?
1.10    ! millert  9078:   echo "$as_me:9078: \$? = $ac_status" >&5
1.9       millert  9079:   (exit $ac_status); }; }; then
                   9080:   ac_cv_lib_crypt_d_crypt=yes
                   9081: else
                   9082:   echo "$as_me: failed program was:" >&5
                   9083: cat conftest.$ac_ext >&5
                   9084: ac_cv_lib_crypt_d_crypt=no
                   9085: fi
                   9086: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9087: LIBS=$ac_check_lib_save_LIBS
                   9088: fi
1.10    ! millert  9089: echo "$as_me:9089: result: $ac_cv_lib_crypt_d_crypt" >&5
1.9       millert  9090: echo "${ECHO_T}$ac_cv_lib_crypt_d_crypt" >&6
                   9091: if test $ac_cv_lib_crypt_d_crypt = yes; then
1.1       millert  9092:   SUDO_LIBS="${SUDO_LIBS} -lcrypt_d"; LIBS="${LIBS} -lcrypt_d"
                   9093: else
1.10    ! millert  9094:   echo "$as_me:9094: checking for crypt in -lufc" >&5
1.9       millert  9095: echo $ECHO_N "checking for crypt in -lufc... $ECHO_C" >&6
                   9096: if test "${ac_cv_lib_ufc_crypt+set}" = set; then
                   9097:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9098: else
1.9       millert  9099:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  9100: LIBS="-lufc  $LIBS"
1.9       millert  9101: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  9102: #line 9102 "configure"
1.1       millert  9103: #include "confdefs.h"
1.9       millert  9104:
1.1       millert  9105: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  9106: #ifdef __cplusplus
                   9107: extern "C"
                   9108: #endif
1.1       millert  9109: /* We use char because int might match the return type of a gcc2
1.9       millert  9110:    builtin and then its argument prototype would still apply.  */
                   9111: char crypt ();
                   9112: int
                   9113: main ()
                   9114: {
                   9115: crypt ();
                   9116:   ;
                   9117:   return 0;
                   9118: }
                   9119: _ACEOF
                   9120: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  9121: if { (eval echo "$as_me:9121: \"$ac_link\"") >&5
1.9       millert  9122:   (eval $ac_link) 2>&5
                   9123:   ac_status=$?
1.10    ! millert  9124:   echo "$as_me:9124: \$? = $ac_status" >&5
1.9       millert  9125:   (exit $ac_status); } &&
                   9126:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  9127:   { (eval echo "$as_me:9127: \"$ac_try\"") >&5
1.9       millert  9128:   (eval $ac_try) 2>&5
                   9129:   ac_status=$?
1.10    ! millert  9130:   echo "$as_me:9130: \$? = $ac_status" >&5
1.9       millert  9131:   (exit $ac_status); }; }; then
                   9132:   ac_cv_lib_ufc_crypt=yes
                   9133: else
                   9134:   echo "$as_me: failed program was:" >&5
                   9135: cat conftest.$ac_ext >&5
                   9136: ac_cv_lib_ufc_crypt=no
                   9137: fi
                   9138: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9139: LIBS=$ac_check_lib_save_LIBS
                   9140: fi
1.10    ! millert  9141: echo "$as_me:9141: result: $ac_cv_lib_ufc_crypt" >&5
1.9       millert  9142: echo "${ECHO_T}$ac_cv_lib_ufc_crypt" >&6
                   9143: if test $ac_cv_lib_ufc_crypt = yes; then
1.1       millert  9144:   SUDO_LIBS="${SUDO_LIBS} -lufc"; LIBS="${LIBS} -lufc"
                   9145: fi
                   9146:
                   9147: fi
                   9148:
                   9149: fi
                   9150:
                   9151: fi
                   9152:
                   9153: fi
1.10    ! millert  9154: echo "$as_me:9154: checking for socket" >&5
1.9       millert  9155: echo $ECHO_N "checking for socket... $ECHO_C" >&6
                   9156: if test "${ac_cv_func_socket+set}" = set; then
                   9157:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9158: else
1.9       millert  9159:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  9160: #line 9160 "configure"
1.1       millert  9161: #include "confdefs.h"
                   9162: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  9163:     which can conflict with char socket (); below.  */
1.1       millert  9164: #include <assert.h>
                   9165: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  9166: #ifdef __cplusplus
                   9167: extern "C"
                   9168: #endif
1.1       millert  9169: /* We use char because int might match the return type of a gcc2
1.9       millert  9170:    builtin and then its argument prototype would still apply.  */
                   9171: char socket ();
                   9172: char (*f) ();
1.1       millert  9173:
1.9       millert  9174: int
                   9175: main ()
                   9176: {
1.1       millert  9177: /* The GNU C library defines this for functions which it implements
                   9178:     to always fail with ENOSYS.  Some functions are actually named
                   9179:     something starting with __ and the normal name is an alias.  */
                   9180: #if defined (__stub_socket) || defined (__stub___socket)
                   9181: choke me
                   9182: #else
1.9       millert  9183: f = socket;
1.1       millert  9184: #endif
                   9185:
1.9       millert  9186:   ;
                   9187:   return 0;
                   9188: }
                   9189: _ACEOF
                   9190: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  9191: if { (eval echo "$as_me:9191: \"$ac_link\"") >&5
1.9       millert  9192:   (eval $ac_link) 2>&5
                   9193:   ac_status=$?
1.10    ! millert  9194:   echo "$as_me:9194: \$? = $ac_status" >&5
1.9       millert  9195:   (exit $ac_status); } &&
                   9196:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  9197:   { (eval echo "$as_me:9197: \"$ac_try\"") >&5
1.9       millert  9198:   (eval $ac_try) 2>&5
                   9199:   ac_status=$?
1.10    ! millert  9200:   echo "$as_me:9200: \$? = $ac_status" >&5
1.9       millert  9201:   (exit $ac_status); }; }; then
                   9202:   ac_cv_func_socket=yes
                   9203: else
                   9204:   echo "$as_me: failed program was:" >&5
                   9205: cat conftest.$ac_ext >&5
                   9206: ac_cv_func_socket=no
                   9207: fi
                   9208: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9209: fi
1.10    ! millert  9210: echo "$as_me:9210: result: $ac_cv_func_socket" >&5
1.9       millert  9211: echo "${ECHO_T}$ac_cv_func_socket" >&6
                   9212: if test $ac_cv_func_socket = yes; then
1.1       millert  9213:   :
                   9214: else
1.10    ! millert  9215:   echo "$as_me:9215: checking for socket in -lsocket" >&5
1.9       millert  9216: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
                   9217: if test "${ac_cv_lib_socket_socket+set}" = set; then
                   9218:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9219: else
1.9       millert  9220:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  9221: LIBS="-lsocket  $LIBS"
1.9       millert  9222: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  9223: #line 9223 "configure"
1.1       millert  9224: #include "confdefs.h"
1.9       millert  9225:
1.1       millert  9226: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  9227: #ifdef __cplusplus
                   9228: extern "C"
                   9229: #endif
1.1       millert  9230: /* We use char because int might match the return type of a gcc2
1.9       millert  9231:    builtin and then its argument prototype would still apply.  */
                   9232: char socket ();
                   9233: int
                   9234: main ()
                   9235: {
                   9236: socket ();
                   9237:   ;
                   9238:   return 0;
                   9239: }
                   9240: _ACEOF
                   9241: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  9242: if { (eval echo "$as_me:9242: \"$ac_link\"") >&5
1.9       millert  9243:   (eval $ac_link) 2>&5
                   9244:   ac_status=$?
1.10    ! millert  9245:   echo "$as_me:9245: \$? = $ac_status" >&5
1.9       millert  9246:   (exit $ac_status); } &&
                   9247:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  9248:   { (eval echo "$as_me:9248: \"$ac_try\"") >&5
1.9       millert  9249:   (eval $ac_try) 2>&5
                   9250:   ac_status=$?
1.10    ! millert  9251:   echo "$as_me:9251: \$? = $ac_status" >&5
1.9       millert  9252:   (exit $ac_status); }; }; then
                   9253:   ac_cv_lib_socket_socket=yes
                   9254: else
                   9255:   echo "$as_me: failed program was:" >&5
                   9256: cat conftest.$ac_ext >&5
                   9257: ac_cv_lib_socket_socket=no
                   9258: fi
                   9259: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9260: LIBS=$ac_check_lib_save_LIBS
                   9261: fi
1.10    ! millert  9262: echo "$as_me:9262: result: $ac_cv_lib_socket_socket" >&5
1.9       millert  9263: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
                   9264: if test $ac_cv_lib_socket_socket = yes; then
1.1       millert  9265:   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
                   9266: else
1.10    ! millert  9267:   echo "$as_me:9267: checking for socket in -linet" >&5
1.9       millert  9268: echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
                   9269: if test "${ac_cv_lib_inet_socket+set}" = set; then
                   9270:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9271: else
1.9       millert  9272:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  9273: LIBS="-linet  $LIBS"
1.9       millert  9274: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  9275: #line 9275 "configure"
1.1       millert  9276: #include "confdefs.h"
1.9       millert  9277:
1.1       millert  9278: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  9279: #ifdef __cplusplus
                   9280: extern "C"
                   9281: #endif
1.1       millert  9282: /* We use char because int might match the return type of a gcc2
1.9       millert  9283:    builtin and then its argument prototype would still apply.  */
                   9284: char socket ();
                   9285: int
                   9286: main ()
                   9287: {
                   9288: socket ();
                   9289:   ;
                   9290:   return 0;
                   9291: }
                   9292: _ACEOF
                   9293: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  9294: if { (eval echo "$as_me:9294: \"$ac_link\"") >&5
1.9       millert  9295:   (eval $ac_link) 2>&5
                   9296:   ac_status=$?
1.10    ! millert  9297:   echo "$as_me:9297: \$? = $ac_status" >&5
1.9       millert  9298:   (exit $ac_status); } &&
                   9299:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  9300:   { (eval echo "$as_me:9300: \"$ac_try\"") >&5
1.9       millert  9301:   (eval $ac_try) 2>&5
                   9302:   ac_status=$?
1.10    ! millert  9303:   echo "$as_me:9303: \$? = $ac_status" >&5
1.9       millert  9304:   (exit $ac_status); }; }; then
                   9305:   ac_cv_lib_inet_socket=yes
                   9306: else
                   9307:   echo "$as_me: failed program was:" >&5
                   9308: cat conftest.$ac_ext >&5
                   9309: ac_cv_lib_inet_socket=no
                   9310: fi
                   9311: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9312: LIBS=$ac_check_lib_save_LIBS
                   9313: fi
1.10    ! millert  9314: echo "$as_me:9314: result: $ac_cv_lib_inet_socket" >&5
1.9       millert  9315: echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
                   9316: if test $ac_cv_lib_inet_socket = yes; then
1.1       millert  9317:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   9318: else
1.10    ! millert  9319:   { echo "$as_me:9319: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
1.9       millert  9320: echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
1.10    ! millert  9321: echo "$as_me:9321: checking for socket in -lsocket" >&5
1.9       millert  9322: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
                   9323: if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
                   9324:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9325: else
1.9       millert  9326:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  9327: LIBS="-lsocket -lnsl $LIBS"
1.9       millert  9328: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  9329: #line 9329 "configure"
1.1       millert  9330: #include "confdefs.h"
1.9       millert  9331:
1.1       millert  9332: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  9333: #ifdef __cplusplus
                   9334: extern "C"
                   9335: #endif
1.1       millert  9336: /* We use char because int might match the return type of a gcc2
1.9       millert  9337:    builtin and then its argument prototype would still apply.  */
                   9338: char socket ();
                   9339: int
                   9340: main ()
                   9341: {
                   9342: socket ();
                   9343:   ;
                   9344:   return 0;
                   9345: }
                   9346: _ACEOF
                   9347: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  9348: if { (eval echo "$as_me:9348: \"$ac_link\"") >&5
1.9       millert  9349:   (eval $ac_link) 2>&5
                   9350:   ac_status=$?
1.10    ! millert  9351:   echo "$as_me:9351: \$? = $ac_status" >&5
1.9       millert  9352:   (exit $ac_status); } &&
                   9353:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  9354:   { (eval echo "$as_me:9354: \"$ac_try\"") >&5
1.9       millert  9355:   (eval $ac_try) 2>&5
                   9356:   ac_status=$?
1.10    ! millert  9357:   echo "$as_me:9357: \$? = $ac_status" >&5
1.9       millert  9358:   (exit $ac_status); }; }; then
                   9359:   ac_cv_lib_socket_socket_lnsl=yes
                   9360: else
                   9361:   echo "$as_me: failed program was:" >&5
                   9362: cat conftest.$ac_ext >&5
                   9363: ac_cv_lib_socket_socket_lnsl=no
                   9364: fi
                   9365: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9366: LIBS=$ac_check_lib_save_LIBS
                   9367: fi
1.10    ! millert  9368: echo "$as_me:9368: result: $ac_cv_lib_socket_socket_lnsl" >&5
1.9       millert  9369: echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6
                   9370: if test $ac_cv_lib_socket_socket_lnsl = yes; then
1.1       millert  9371:   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
                   9372: fi
                   9373:
                   9374: fi
                   9375:
                   9376: fi
                   9377:
                   9378: fi
                   9379:
1.10    ! millert  9380: echo "$as_me:9380: checking for inet_addr" >&5
1.9       millert  9381: echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6
                   9382: if test "${ac_cv_func_inet_addr+set}" = set; then
                   9383:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9384: else
1.9       millert  9385:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  9386: #line 9386 "configure"
1.1       millert  9387: #include "confdefs.h"
                   9388: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  9389:     which can conflict with char inet_addr (); below.  */
1.1       millert  9390: #include <assert.h>
                   9391: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  9392: #ifdef __cplusplus
                   9393: extern "C"
                   9394: #endif
1.1       millert  9395: /* We use char because int might match the return type of a gcc2
1.9       millert  9396:    builtin and then its argument prototype would still apply.  */
                   9397: char inet_addr ();
                   9398: char (*f) ();
1.1       millert  9399:
1.9       millert  9400: int
                   9401: main ()
                   9402: {
1.1       millert  9403: /* The GNU C library defines this for functions which it implements
                   9404:     to always fail with ENOSYS.  Some functions are actually named
                   9405:     something starting with __ and the normal name is an alias.  */
                   9406: #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
                   9407: choke me
                   9408: #else
1.9       millert  9409: f = inet_addr;
1.1       millert  9410: #endif
                   9411:
1.9       millert  9412:   ;
                   9413:   return 0;
                   9414: }
                   9415: _ACEOF
                   9416: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  9417: if { (eval echo "$as_me:9417: \"$ac_link\"") >&5
1.9       millert  9418:   (eval $ac_link) 2>&5
                   9419:   ac_status=$?
1.10    ! millert  9420:   echo "$as_me:9420: \$? = $ac_status" >&5
1.9       millert  9421:   (exit $ac_status); } &&
                   9422:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  9423:   { (eval echo "$as_me:9423: \"$ac_try\"") >&5
1.9       millert  9424:   (eval $ac_try) 2>&5
                   9425:   ac_status=$?
1.10    ! millert  9426:   echo "$as_me:9426: \$? = $ac_status" >&5
1.9       millert  9427:   (exit $ac_status); }; }; then
                   9428:   ac_cv_func_inet_addr=yes
                   9429: else
                   9430:   echo "$as_me: failed program was:" >&5
                   9431: cat conftest.$ac_ext >&5
                   9432: ac_cv_func_inet_addr=no
                   9433: fi
                   9434: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9435: fi
1.10    ! millert  9436: echo "$as_me:9436: result: $ac_cv_func_inet_addr" >&5
1.9       millert  9437: echo "${ECHO_T}$ac_cv_func_inet_addr" >&6
                   9438: if test $ac_cv_func_inet_addr = yes; then
1.1       millert  9439:   :
                   9440: else
1.10    ! millert  9441:   echo "$as_me:9441: checking for __inet_addr" >&5
1.9       millert  9442: echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6
                   9443: if test "${ac_cv_func___inet_addr+set}" = set; then
                   9444:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.6       millert  9445: else
1.9       millert  9446:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  9447: #line 9447 "configure"
1.6       millert  9448: #include "confdefs.h"
                   9449: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  9450:     which can conflict with char __inet_addr (); below.  */
1.6       millert  9451: #include <assert.h>
                   9452: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  9453: #ifdef __cplusplus
                   9454: extern "C"
                   9455: #endif
1.6       millert  9456: /* We use char because int might match the return type of a gcc2
1.9       millert  9457:    builtin and then its argument prototype would still apply.  */
                   9458: char __inet_addr ();
                   9459: char (*f) ();
1.6       millert  9460:
1.9       millert  9461: int
                   9462: main ()
                   9463: {
1.6       millert  9464: /* The GNU C library defines this for functions which it implements
                   9465:     to always fail with ENOSYS.  Some functions are actually named
                   9466:     something starting with __ and the normal name is an alias.  */
                   9467: #if defined (__stub___inet_addr) || defined (__stub_____inet_addr)
                   9468: choke me
                   9469: #else
1.9       millert  9470: f = __inet_addr;
1.6       millert  9471: #endif
                   9472:
1.9       millert  9473:   ;
                   9474:   return 0;
                   9475: }
                   9476: _ACEOF
                   9477: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  9478: if { (eval echo "$as_me:9478: \"$ac_link\"") >&5
1.9       millert  9479:   (eval $ac_link) 2>&5
                   9480:   ac_status=$?
1.10    ! millert  9481:   echo "$as_me:9481: \$? = $ac_status" >&5
1.9       millert  9482:   (exit $ac_status); } &&
                   9483:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  9484:   { (eval echo "$as_me:9484: \"$ac_try\"") >&5
1.9       millert  9485:   (eval $ac_try) 2>&5
                   9486:   ac_status=$?
1.10    ! millert  9487:   echo "$as_me:9487: \$? = $ac_status" >&5
1.9       millert  9488:   (exit $ac_status); }; }; then
                   9489:   ac_cv_func___inet_addr=yes
                   9490: else
                   9491:   echo "$as_me: failed program was:" >&5
                   9492: cat conftest.$ac_ext >&5
                   9493: ac_cv_func___inet_addr=no
                   9494: fi
                   9495: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9496: fi
1.10    ! millert  9497: echo "$as_me:9497: result: $ac_cv_func___inet_addr" >&5
1.9       millert  9498: echo "${ECHO_T}$ac_cv_func___inet_addr" >&6
                   9499: if test $ac_cv_func___inet_addr = yes; then
1.6       millert  9500:   :
                   9501: else
1.10    ! millert  9502:   echo "$as_me:9502: checking for inet_addr in -lnsl" >&5
1.9       millert  9503: echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
                   9504: if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
                   9505:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9506: else
1.9       millert  9507:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  9508: LIBS="-lnsl  $LIBS"
1.9       millert  9509: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  9510: #line 9510 "configure"
1.1       millert  9511: #include "confdefs.h"
1.9       millert  9512:
1.1       millert  9513: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  9514: #ifdef __cplusplus
                   9515: extern "C"
                   9516: #endif
1.1       millert  9517: /* We use char because int might match the return type of a gcc2
1.9       millert  9518:    builtin and then its argument prototype would still apply.  */
                   9519: char inet_addr ();
                   9520: int
                   9521: main ()
                   9522: {
                   9523: inet_addr ();
                   9524:   ;
                   9525:   return 0;
                   9526: }
                   9527: _ACEOF
                   9528: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  9529: if { (eval echo "$as_me:9529: \"$ac_link\"") >&5
1.9       millert  9530:   (eval $ac_link) 2>&5
                   9531:   ac_status=$?
1.10    ! millert  9532:   echo "$as_me:9532: \$? = $ac_status" >&5
1.9       millert  9533:   (exit $ac_status); } &&
                   9534:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  9535:   { (eval echo "$as_me:9535: \"$ac_try\"") >&5
1.9       millert  9536:   (eval $ac_try) 2>&5
                   9537:   ac_status=$?
1.10    ! millert  9538:   echo "$as_me:9538: \$? = $ac_status" >&5
1.9       millert  9539:   (exit $ac_status); }; }; then
                   9540:   ac_cv_lib_nsl_inet_addr=yes
                   9541: else
                   9542:   echo "$as_me: failed program was:" >&5
                   9543: cat conftest.$ac_ext >&5
                   9544: ac_cv_lib_nsl_inet_addr=no
                   9545: fi
                   9546: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9547: LIBS=$ac_check_lib_save_LIBS
                   9548: fi
1.10    ! millert  9549: echo "$as_me:9549: result: $ac_cv_lib_nsl_inet_addr" >&5
1.9       millert  9550: echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
                   9551: if test $ac_cv_lib_nsl_inet_addr = yes; then
1.1       millert  9552:   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
                   9553: else
1.10    ! millert  9554:   echo "$as_me:9554: checking for inet_addr in -linet" >&5
1.9       millert  9555: echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6
                   9556: if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
                   9557:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9558: else
1.9       millert  9559:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  9560: LIBS="-linet  $LIBS"
1.9       millert  9561: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  9562: #line 9562 "configure"
1.1       millert  9563: #include "confdefs.h"
1.9       millert  9564:
1.1       millert  9565: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  9566: #ifdef __cplusplus
                   9567: extern "C"
                   9568: #endif
1.1       millert  9569: /* We use char because int might match the return type of a gcc2
1.9       millert  9570:    builtin and then its argument prototype would still apply.  */
                   9571: char inet_addr ();
                   9572: int
                   9573: main ()
                   9574: {
                   9575: inet_addr ();
                   9576:   ;
                   9577:   return 0;
                   9578: }
                   9579: _ACEOF
                   9580: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  9581: if { (eval echo "$as_me:9581: \"$ac_link\"") >&5
1.9       millert  9582:   (eval $ac_link) 2>&5
                   9583:   ac_status=$?
1.10    ! millert  9584:   echo "$as_me:9584: \$? = $ac_status" >&5
1.9       millert  9585:   (exit $ac_status); } &&
                   9586:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  9587:   { (eval echo "$as_me:9587: \"$ac_try\"") >&5
1.9       millert  9588:   (eval $ac_try) 2>&5
                   9589:   ac_status=$?
1.10    ! millert  9590:   echo "$as_me:9590: \$? = $ac_status" >&5
1.9       millert  9591:   (exit $ac_status); }; }; then
                   9592:   ac_cv_lib_inet_inet_addr=yes
                   9593: else
                   9594:   echo "$as_me: failed program was:" >&5
                   9595: cat conftest.$ac_ext >&5
                   9596: ac_cv_lib_inet_inet_addr=no
                   9597: fi
                   9598: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9599: LIBS=$ac_check_lib_save_LIBS
                   9600: fi
1.10    ! millert  9601: echo "$as_me:9601: result: $ac_cv_lib_inet_inet_addr" >&5
1.9       millert  9602: echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6
                   9603: if test $ac_cv_lib_inet_inet_addr = yes; then
1.1       millert  9604:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   9605: else
1.10    ! millert  9606:   { echo "$as_me:9606: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
1.9       millert  9607: echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
1.10    ! millert  9608: echo "$as_me:9608: checking for inet_addr in -lsocket" >&5
1.9       millert  9609: echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
                   9610: if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
                   9611:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9612: else
1.9       millert  9613:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  9614: LIBS="-lsocket -lnsl $LIBS"
1.9       millert  9615: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  9616: #line 9616 "configure"
1.1       millert  9617: #include "confdefs.h"
1.9       millert  9618:
1.1       millert  9619: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  9620: #ifdef __cplusplus
                   9621: extern "C"
                   9622: #endif
1.1       millert  9623: /* We use char because int might match the return type of a gcc2
1.9       millert  9624:    builtin and then its argument prototype would still apply.  */
                   9625: char inet_addr ();
                   9626: int
                   9627: main ()
                   9628: {
                   9629: inet_addr ();
                   9630:   ;
                   9631:   return 0;
                   9632: }
                   9633: _ACEOF
                   9634: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  9635: if { (eval echo "$as_me:9635: \"$ac_link\"") >&5
1.9       millert  9636:   (eval $ac_link) 2>&5
                   9637:   ac_status=$?
1.10    ! millert  9638:   echo "$as_me:9638: \$? = $ac_status" >&5
1.9       millert  9639:   (exit $ac_status); } &&
                   9640:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  9641:   { (eval echo "$as_me:9641: \"$ac_try\"") >&5
1.9       millert  9642:   (eval $ac_try) 2>&5
                   9643:   ac_status=$?
1.10    ! millert  9644:   echo "$as_me:9644: \$? = $ac_status" >&5
1.9       millert  9645:   (exit $ac_status); }; }; then
                   9646:   ac_cv_lib_socket_inet_addr_lnsl=yes
                   9647: else
                   9648:   echo "$as_me: failed program was:" >&5
                   9649: cat conftest.$ac_ext >&5
                   9650: ac_cv_lib_socket_inet_addr_lnsl=no
                   9651: fi
                   9652: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9653: LIBS=$ac_check_lib_save_LIBS
                   9654: fi
1.10    ! millert  9655: echo "$as_me:9655: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
1.9       millert  9656: echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6
                   9657: if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
1.1       millert  9658:   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
                   9659: fi
                   9660:
                   9661: fi
                   9662:
                   9663: fi
                   9664:
                   9665: fi
                   9666:
1.6       millert  9667: fi
                   9668:
1.10    ! millert  9669: echo "$as_me:9669: checking for syslog" >&5
1.9       millert  9670: echo $ECHO_N "checking for syslog... $ECHO_C" >&6
                   9671: if test "${ac_cv_func_syslog+set}" = set; then
                   9672:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9673: else
1.9       millert  9674:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  9675: #line 9675 "configure"
1.1       millert  9676: #include "confdefs.h"
                   9677: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  9678:     which can conflict with char syslog (); below.  */
1.1       millert  9679: #include <assert.h>
                   9680: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  9681: #ifdef __cplusplus
                   9682: extern "C"
                   9683: #endif
1.1       millert  9684: /* We use char because int might match the return type of a gcc2
1.9       millert  9685:    builtin and then its argument prototype would still apply.  */
                   9686: char syslog ();
                   9687: char (*f) ();
1.1       millert  9688:
1.9       millert  9689: int
                   9690: main ()
                   9691: {
1.1       millert  9692: /* The GNU C library defines this for functions which it implements
                   9693:     to always fail with ENOSYS.  Some functions are actually named
                   9694:     something starting with __ and the normal name is an alias.  */
                   9695: #if defined (__stub_syslog) || defined (__stub___syslog)
                   9696: choke me
                   9697: #else
1.9       millert  9698: f = syslog;
1.1       millert  9699: #endif
                   9700:
1.9       millert  9701:   ;
                   9702:   return 0;
                   9703: }
                   9704: _ACEOF
                   9705: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  9706: if { (eval echo "$as_me:9706: \"$ac_link\"") >&5
1.9       millert  9707:   (eval $ac_link) 2>&5
                   9708:   ac_status=$?
1.10    ! millert  9709:   echo "$as_me:9709: \$? = $ac_status" >&5
1.9       millert  9710:   (exit $ac_status); } &&
                   9711:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  9712:   { (eval echo "$as_me:9712: \"$ac_try\"") >&5
1.9       millert  9713:   (eval $ac_try) 2>&5
                   9714:   ac_status=$?
1.10    ! millert  9715:   echo "$as_me:9715: \$? = $ac_status" >&5
1.9       millert  9716:   (exit $ac_status); }; }; then
                   9717:   ac_cv_func_syslog=yes
                   9718: else
                   9719:   echo "$as_me: failed program was:" >&5
                   9720: cat conftest.$ac_ext >&5
                   9721: ac_cv_func_syslog=no
                   9722: fi
                   9723: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9724: fi
1.10    ! millert  9725: echo "$as_me:9725: result: $ac_cv_func_syslog" >&5
1.9       millert  9726: echo "${ECHO_T}$ac_cv_func_syslog" >&6
                   9727: if test $ac_cv_func_syslog = yes; then
1.1       millert  9728:   :
                   9729: else
1.10    ! millert  9730:   echo "$as_me:9730: checking for syslog in -lsocket" >&5
1.9       millert  9731: echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6
                   9732: if test "${ac_cv_lib_socket_syslog+set}" = set; then
                   9733:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9734: else
1.9       millert  9735:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  9736: LIBS="-lsocket  $LIBS"
1.9       millert  9737: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  9738: #line 9738 "configure"
1.1       millert  9739: #include "confdefs.h"
1.9       millert  9740:
1.1       millert  9741: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  9742: #ifdef __cplusplus
                   9743: extern "C"
                   9744: #endif
1.1       millert  9745: /* We use char because int might match the return type of a gcc2
1.9       millert  9746:    builtin and then its argument prototype would still apply.  */
                   9747: char syslog ();
                   9748: int
                   9749: main ()
                   9750: {
                   9751: syslog ();
                   9752:   ;
                   9753:   return 0;
                   9754: }
                   9755: _ACEOF
                   9756: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  9757: if { (eval echo "$as_me:9757: \"$ac_link\"") >&5
1.9       millert  9758:   (eval $ac_link) 2>&5
                   9759:   ac_status=$?
1.10    ! millert  9760:   echo "$as_me:9760: \$? = $ac_status" >&5
1.9       millert  9761:   (exit $ac_status); } &&
                   9762:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  9763:   { (eval echo "$as_me:9763: \"$ac_try\"") >&5
1.9       millert  9764:   (eval $ac_try) 2>&5
                   9765:   ac_status=$?
1.10    ! millert  9766:   echo "$as_me:9766: \$? = $ac_status" >&5
1.9       millert  9767:   (exit $ac_status); }; }; then
                   9768:   ac_cv_lib_socket_syslog=yes
                   9769: else
                   9770:   echo "$as_me: failed program was:" >&5
                   9771: cat conftest.$ac_ext >&5
                   9772: ac_cv_lib_socket_syslog=no
                   9773: fi
                   9774: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9775: LIBS=$ac_check_lib_save_LIBS
                   9776: fi
1.10    ! millert  9777: echo "$as_me:9777: result: $ac_cv_lib_socket_syslog" >&5
1.9       millert  9778: echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6
                   9779: if test $ac_cv_lib_socket_syslog = yes; then
1.1       millert  9780:   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
                   9781: else
1.10    ! millert  9782:   echo "$as_me:9782: checking for syslog in -lnsl" >&5
1.9       millert  9783: echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6
                   9784: if test "${ac_cv_lib_nsl_syslog+set}" = set; then
                   9785:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9786: else
1.9       millert  9787:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  9788: LIBS="-lnsl  $LIBS"
1.9       millert  9789: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  9790: #line 9790 "configure"
1.1       millert  9791: #include "confdefs.h"
                   9792:
1.9       millert  9793: /* Override any gcc2 internal prototype to avoid an error.  */
                   9794: #ifdef __cplusplus
                   9795: extern "C"
                   9796: #endif
                   9797: /* We use char because int might match the return type of a gcc2
                   9798:    builtin and then its argument prototype would still apply.  */
                   9799: char syslog ();
                   9800: int
                   9801: main ()
                   9802: {
                   9803: syslog ();
                   9804:   ;
                   9805:   return 0;
                   9806: }
                   9807: _ACEOF
                   9808: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  9809: if { (eval echo "$as_me:9809: \"$ac_link\"") >&5
1.9       millert  9810:   (eval $ac_link) 2>&5
                   9811:   ac_status=$?
1.10    ! millert  9812:   echo "$as_me:9812: \$? = $ac_status" >&5
1.9       millert  9813:   (exit $ac_status); } &&
                   9814:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  9815:   { (eval echo "$as_me:9815: \"$ac_try\"") >&5
1.9       millert  9816:   (eval $ac_try) 2>&5
                   9817:   ac_status=$?
1.10    ! millert  9818:   echo "$as_me:9818: \$? = $ac_status" >&5
1.9       millert  9819:   (exit $ac_status); }; }; then
                   9820:   ac_cv_lib_nsl_syslog=yes
                   9821: else
                   9822:   echo "$as_me: failed program was:" >&5
                   9823: cat conftest.$ac_ext >&5
                   9824: ac_cv_lib_nsl_syslog=no
                   9825: fi
                   9826: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9827: LIBS=$ac_check_lib_save_LIBS
                   9828: fi
1.10    ! millert  9829: echo "$as_me:9829: result: $ac_cv_lib_nsl_syslog" >&5
1.9       millert  9830: echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6
                   9831: if test $ac_cv_lib_nsl_syslog = yes; then
1.1       millert  9832:   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
                   9833: else
1.10    ! millert  9834:   echo "$as_me:9834: checking for syslog in -linet" >&5
1.9       millert  9835: echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6
                   9836: if test "${ac_cv_lib_inet_syslog+set}" = set; then
                   9837:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9838: else
1.9       millert  9839:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  9840: LIBS="-linet  $LIBS"
1.9       millert  9841: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  9842: #line 9842 "configure"
1.1       millert  9843: #include "confdefs.h"
1.9       millert  9844:
1.1       millert  9845: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  9846: #ifdef __cplusplus
                   9847: extern "C"
                   9848: #endif
1.1       millert  9849: /* We use char because int might match the return type of a gcc2
1.9       millert  9850:    builtin and then its argument prototype would still apply.  */
                   9851: char syslog ();
                   9852: int
                   9853: main ()
                   9854: {
                   9855: syslog ();
                   9856:   ;
                   9857:   return 0;
                   9858: }
                   9859: _ACEOF
                   9860: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  9861: if { (eval echo "$as_me:9861: \"$ac_link\"") >&5
1.9       millert  9862:   (eval $ac_link) 2>&5
                   9863:   ac_status=$?
1.10    ! millert  9864:   echo "$as_me:9864: \$? = $ac_status" >&5
1.9       millert  9865:   (exit $ac_status); } &&
                   9866:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  9867:   { (eval echo "$as_me:9867: \"$ac_try\"") >&5
1.9       millert  9868:   (eval $ac_try) 2>&5
                   9869:   ac_status=$?
1.10    ! millert  9870:   echo "$as_me:9870: \$? = $ac_status" >&5
1.9       millert  9871:   (exit $ac_status); }; }; then
                   9872:   ac_cv_lib_inet_syslog=yes
                   9873: else
                   9874:   echo "$as_me: failed program was:" >&5
                   9875: cat conftest.$ac_ext >&5
                   9876: ac_cv_lib_inet_syslog=no
                   9877: fi
                   9878: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9879: LIBS=$ac_check_lib_save_LIBS
                   9880: fi
1.10    ! millert  9881: echo "$as_me:9881: result: $ac_cv_lib_inet_syslog" >&5
1.9       millert  9882: echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6
                   9883: if test $ac_cv_lib_inet_syslog = yes; then
1.1       millert  9884:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   9885: fi
                   9886:
                   9887: fi
                   9888:
                   9889: fi
                   9890:
                   9891: fi
                   9892:
                   9893: if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
                   9894:     # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
                   9895: # for constant arguments.  Useless!
1.10    ! millert  9896: echo "$as_me:9896: checking for working alloca.h" >&5
1.9       millert  9897: echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
                   9898: if test "${ac_cv_working_alloca_h+set}" = set; then
                   9899:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9900: else
1.9       millert  9901:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  9902: #line 9902 "configure"
1.1       millert  9903: #include "confdefs.h"
                   9904: #include <alloca.h>
1.9       millert  9905: int
                   9906: main ()
                   9907: {
                   9908: char *p = (char *) alloca (2 * sizeof (int));
                   9909:   ;
                   9910:   return 0;
                   9911: }
                   9912: _ACEOF
                   9913: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  9914: if { (eval echo "$as_me:9914: \"$ac_link\"") >&5
1.9       millert  9915:   (eval $ac_link) 2>&5
                   9916:   ac_status=$?
1.10    ! millert  9917:   echo "$as_me:9917: \$? = $ac_status" >&5
1.9       millert  9918:   (exit $ac_status); } &&
                   9919:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  9920:   { (eval echo "$as_me:9920: \"$ac_try\"") >&5
1.9       millert  9921:   (eval $ac_try) 2>&5
                   9922:   ac_status=$?
1.10    ! millert  9923:   echo "$as_me:9923: \$? = $ac_status" >&5
1.9       millert  9924:   (exit $ac_status); }; }; then
                   9925:   ac_cv_working_alloca_h=yes
                   9926: else
                   9927:   echo "$as_me: failed program was:" >&5
                   9928: cat conftest.$ac_ext >&5
                   9929: ac_cv_working_alloca_h=no
                   9930: fi
                   9931: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   9932: fi
1.10    ! millert  9933: echo "$as_me:9933: result: $ac_cv_working_alloca_h" >&5
1.9       millert  9934: echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
                   9935: if test $ac_cv_working_alloca_h = yes; then
1.1       millert  9936:
1.9       millert  9937: cat >>confdefs.h <<\EOF
1.1       millert  9938: #define HAVE_ALLOCA_H 1
                   9939: EOF
                   9940:
                   9941: fi
                   9942:
1.10    ! millert  9943: echo "$as_me:9943: checking for alloca" >&5
1.9       millert  9944: echo $ECHO_N "checking for alloca... $ECHO_C" >&6
                   9945: if test "${ac_cv_func_alloca_works+set}" = set; then
                   9946:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  9947: else
1.9       millert  9948:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  9949: #line 9949 "configure"
1.1       millert  9950: #include "confdefs.h"
                   9951: #ifdef __GNUC__
                   9952: # define alloca __builtin_alloca
                   9953: #else
1.9       millert  9954: # ifdef _MSC_VER
                   9955: #  include <malloc.h>
                   9956: #  define alloca _alloca
1.1       millert  9957: # else
1.9       millert  9958: #  if HAVE_ALLOCA_H
                   9959: #   include <alloca.h>
                   9960: #  else
                   9961: #   ifdef _AIX
1.1       millert  9962:  #pragma alloca
1.9       millert  9963: #   else
                   9964: #    ifndef alloca /* predefined by HP cc +Olibcalls */
1.1       millert  9965: char *alloca ();
1.9       millert  9966: #    endif
1.1       millert  9967: #   endif
                   9968: #  endif
                   9969: # endif
                   9970: #endif
                   9971:
1.9       millert  9972: int
                   9973: main ()
                   9974: {
                   9975: char *p = (char *) alloca (1);
                   9976:   ;
                   9977:   return 0;
                   9978: }
                   9979: _ACEOF
                   9980: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  9981: if { (eval echo "$as_me:9981: \"$ac_link\"") >&5
1.9       millert  9982:   (eval $ac_link) 2>&5
                   9983:   ac_status=$?
1.10    ! millert  9984:   echo "$as_me:9984: \$? = $ac_status" >&5
1.9       millert  9985:   (exit $ac_status); } &&
                   9986:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  9987:   { (eval echo "$as_me:9987: \"$ac_try\"") >&5
1.9       millert  9988:   (eval $ac_try) 2>&5
                   9989:   ac_status=$?
1.10    ! millert  9990:   echo "$as_me:9990: \$? = $ac_status" >&5
1.9       millert  9991:   (exit $ac_status); }; }; then
1.1       millert  9992:   ac_cv_func_alloca_works=yes
                   9993: else
1.9       millert  9994:   echo "$as_me: failed program was:" >&5
                   9995: cat conftest.$ac_ext >&5
                   9996: ac_cv_func_alloca_works=no
1.1       millert  9997: fi
1.9       millert  9998: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1       millert  9999: fi
1.10    ! millert  10000: echo "$as_me:10000: result: $ac_cv_func_alloca_works" >&5
1.9       millert  10001: echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
1.1       millert  10002:
                   10003: if test $ac_cv_func_alloca_works = yes; then
1.9       millert  10004:
                   10005: cat >>confdefs.h <<\EOF
1.1       millert  10006: #define HAVE_ALLOCA 1
                   10007: EOF
                   10008:
1.9       millert  10009: else
                   10010:   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
                   10011: # that cause trouble.  Some versions do not even contain alloca or
                   10012: # contain a buggy version.  If you still want to use their alloca,
                   10013: # use ar to extract alloca.o from them instead of compiling alloca.c.
                   10014:
                   10015: ALLOCA=alloca.$ac_objext
1.1       millert  10016:
1.9       millert  10017: cat >>confdefs.h <<\EOF
1.1       millert  10018: #define C_ALLOCA 1
                   10019: EOF
                   10020:
1.10    ! millert  10021: echo "$as_me:10021: checking whether \`alloca.c' needs Cray hooks" >&5
1.9       millert  10022: echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
                   10023: if test "${ac_cv_os_cray+set}" = set; then
                   10024:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  10025: else
1.9       millert  10026:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  10027: #line 10027 "configure"
1.1       millert  10028: #include "confdefs.h"
                   10029: #if defined(CRAY) && ! defined(CRAY2)
                   10030: webecray
                   10031: #else
                   10032: wenotbecray
                   10033: #endif
                   10034:
1.9       millert  10035: _ACEOF
1.1       millert  10036: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   10037:   egrep "webecray" >/dev/null 2>&1; then
                   10038:   ac_cv_os_cray=yes
                   10039: else
                   10040:   ac_cv_os_cray=no
                   10041: fi
                   10042: rm -f conftest*
                   10043:
                   10044: fi
1.10    ! millert  10045: echo "$as_me:10045: result: $ac_cv_os_cray" >&5
1.9       millert  10046: echo "${ECHO_T}$ac_cv_os_cray" >&6
1.1       millert  10047: if test $ac_cv_os_cray = yes; then
1.9       millert  10048:   for ac_func in _getb67 GETB67 getb67; do
                   10049:     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.10    ! millert  10050: echo "$as_me:10050: checking for $ac_func" >&5
1.9       millert  10051: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
                   10052: if eval "test \"\${$as_ac_var+set}\" = set"; then
                   10053:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  10054: else
1.9       millert  10055:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  10056: #line 10056 "configure"
1.1       millert  10057: #include "confdefs.h"
                   10058: /* System header to define __stub macros and hopefully few prototypes,
1.9       millert  10059:     which can conflict with char $ac_func (); below.  */
1.1       millert  10060: #include <assert.h>
                   10061: /* Override any gcc2 internal prototype to avoid an error.  */
1.9       millert  10062: #ifdef __cplusplus
                   10063: extern "C"
                   10064: #endif
1.1       millert  10065: /* We use char because int might match the return type of a gcc2
1.9       millert  10066:    builtin and then its argument prototype would still apply.  */
                   10067: char $ac_func ();
                   10068: char (*f) ();
1.1       millert  10069:
1.9       millert  10070: int
                   10071: main ()
                   10072: {
1.1       millert  10073: /* The GNU C library defines this for functions which it implements
                   10074:     to always fail with ENOSYS.  Some functions are actually named
                   10075:     something starting with __ and the normal name is an alias.  */
                   10076: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   10077: choke me
                   10078: #else
1.9       millert  10079: f = $ac_func;
1.1       millert  10080: #endif
                   10081:
1.9       millert  10082:   ;
                   10083:   return 0;
                   10084: }
                   10085: _ACEOF
                   10086: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  10087: if { (eval echo "$as_me:10087: \"$ac_link\"") >&5
1.9       millert  10088:   (eval $ac_link) 2>&5
                   10089:   ac_status=$?
1.10    ! millert  10090:   echo "$as_me:10090: \$? = $ac_status" >&5
1.9       millert  10091:   (exit $ac_status); } &&
                   10092:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  10093:   { (eval echo "$as_me:10093: \"$ac_try\"") >&5
1.9       millert  10094:   (eval $ac_try) 2>&5
                   10095:   ac_status=$?
1.10    ! millert  10096:   echo "$as_me:10096: \$? = $ac_status" >&5
1.9       millert  10097:   (exit $ac_status); }; }; then
                   10098:   eval "$as_ac_var=yes"
                   10099: else
                   10100:   echo "$as_me: failed program was:" >&5
                   10101: cat conftest.$ac_ext >&5
                   10102: eval "$as_ac_var=no"
                   10103: fi
                   10104: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   10105: fi
1.10    ! millert  10106: echo "$as_me:10106: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9       millert  10107: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
                   10108: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1       millert  10109:
1.9       millert  10110: cat >>confdefs.h <<EOF
1.1       millert  10111: #define CRAY_STACKSEG_END $ac_func
                   10112: EOF
                   10113:
1.9       millert  10114:     break
1.1       millert  10115: fi
                   10116:
1.9       millert  10117:   done
1.1       millert  10118: fi
                   10119:
1.10    ! millert  10120: echo "$as_me:10120: checking stack direction for C alloca" >&5
1.9       millert  10121: echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
                   10122: if test "${ac_cv_c_stack_direction+set}" = set; then
                   10123:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  10124: else
                   10125:   if test "$cross_compiling" = yes; then
                   10126:   ac_cv_c_stack_direction=0
                   10127: else
1.9       millert  10128:   cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  10129: #line 10129 "configure"
1.1       millert  10130: #include "confdefs.h"
1.9       millert  10131: int
1.1       millert  10132: find_stack_direction ()
                   10133: {
                   10134:   static char *addr = 0;
                   10135:   auto char dummy;
                   10136:   if (addr == 0)
                   10137:     {
                   10138:       addr = &dummy;
                   10139:       return find_stack_direction ();
                   10140:     }
                   10141:   else
                   10142:     return (&dummy > addr) ? 1 : -1;
                   10143: }
1.9       millert  10144:
                   10145: int
1.1       millert  10146: main ()
                   10147: {
1.9       millert  10148:   exit (find_stack_direction () < 0);
1.1       millert  10149: }
1.9       millert  10150: _ACEOF
                   10151: rm -f conftest$ac_exeext
1.10    ! millert  10152: if { (eval echo "$as_me:10152: \"$ac_link\"") >&5
1.9       millert  10153:   (eval $ac_link) 2>&5
                   10154:   ac_status=$?
1.10    ! millert  10155:   echo "$as_me:10155: \$? = $ac_status" >&5
1.9       millert  10156:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.10    ! millert  10157:   { (eval echo "$as_me:10157: \"$ac_try\"") >&5
1.9       millert  10158:   (eval $ac_try) 2>&5
                   10159:   ac_status=$?
1.10    ! millert  10160:   echo "$as_me:10160: \$? = $ac_status" >&5
1.9       millert  10161:   (exit $ac_status); }; }; then
1.1       millert  10162:   ac_cv_c_stack_direction=1
                   10163: else
1.9       millert  10164:   echo "$as_me: program exited with status $ac_status" >&5
                   10165: echo "$as_me: failed program was:" >&5
                   10166: cat conftest.$ac_ext >&5
                   10167: ac_cv_c_stack_direction=-1
1.1       millert  10168: fi
1.9       millert  10169: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       millert  10170: fi
                   10171: fi
1.10    ! millert  10172: echo "$as_me:10172: result: $ac_cv_c_stack_direction" >&5
1.9       millert  10173: echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
1.1       millert  10174:
1.9       millert  10175: cat >>confdefs.h <<EOF
1.1       millert  10176: #define STACK_DIRECTION $ac_cv_c_stack_direction
                   10177: EOF
                   10178:
                   10179: fi
                   10180:
                   10181: fi
                   10182:
                   10183: if test "$with_kerb5" = "yes"; then
1.9       millert  10184:
                   10185: cat >>confdefs.h <<\EOF
1.1       millert  10186: #define HAVE_KERB5 1
                   10187: EOF
                   10188:
                   10189:     if test -f "/usr/local/include/krb5.h"; then
                   10190:        CPPFLAGS="$CPPFLAGS -I/usr/local/include"
                   10191:     elif test -f "/usr/local/kerberos/include/krb5.h"; then
                   10192:        CPPFLAGS="$CPPFLAGS -I/usr/local/kerberos/include"
1.9       millert  10193:     elif test -f "/usr/krb5/include/krb5.h"; then
                   10194:        CPPFLAGS="$CPPFLAGS -I/usr/krb5/include"
1.1       millert  10195:     elif test -f "/usr/local/krb5/include/krb5.h"; then
                   10196:        CPPFLAGS="$CPPFLAGS -I/usr/local/krb5/include"
                   10197:     else
                   10198:        echo 'Unable to locate kerberos 5 include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS'
                   10199:     fi
                   10200:
                   10201:     if test -f "/usr/local/lib/libkrb5.a"; then
                   10202:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
                   10203:     elif test -f "/usr/local/kerberos/lib/libkrb5.a"; then
                   10204:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/kerberos/lib"
1.9       millert  10205:     elif test -f "/usr/krb5/lib/libkrb5.a"; then
                   10206:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/krb5/lib"
1.1       millert  10207:     elif test -f "/usr/local/krb5/lib/libkrb5.a"; then
                   10208:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/krb5/lib"
                   10209:     else
                   10210:        echo 'Unable to locate kerberos 5 libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS'
                   10211:     fi
                   10212:
                   10213:     SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
                   10214:     AUTH_OBJS="${AUTH_OBJS} kerb5.o"
                   10215: fi
                   10216:
1.5       millert  10217: if test "$with_pam" = "yes"; then
1.10    ! millert  10218:     echo "$as_me:10218: checking for main in -ldl" >&5
1.9       millert  10219: echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
                   10220: if test "${ac_cv_lib_dl_main+set}" = set; then
                   10221:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.5       millert  10222: else
1.9       millert  10223:   ac_check_lib_save_LIBS=$LIBS
1.5       millert  10224: LIBS="-ldl  $LIBS"
1.9       millert  10225: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  10226: #line 10226 "configure"
1.5       millert  10227: #include "confdefs.h"
                   10228:
1.9       millert  10229: int
                   10230: main ()
                   10231: {
                   10232: main ();
                   10233:   ;
                   10234:   return 0;
                   10235: }
                   10236: _ACEOF
                   10237: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  10238: if { (eval echo "$as_me:10238: \"$ac_link\"") >&5
1.9       millert  10239:   (eval $ac_link) 2>&5
                   10240:   ac_status=$?
1.10    ! millert  10241:   echo "$as_me:10241: \$? = $ac_status" >&5
1.9       millert  10242:   (exit $ac_status); } &&
                   10243:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  10244:   { (eval echo "$as_me:10244: \"$ac_try\"") >&5
1.9       millert  10245:   (eval $ac_try) 2>&5
                   10246:   ac_status=$?
1.10    ! millert  10247:   echo "$as_me:10247: \$? = $ac_status" >&5
1.9       millert  10248:   (exit $ac_status); }; }; then
                   10249:   ac_cv_lib_dl_main=yes
                   10250: else
                   10251:   echo "$as_me: failed program was:" >&5
                   10252: cat conftest.$ac_ext >&5
                   10253: ac_cv_lib_dl_main=no
                   10254: fi
                   10255: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   10256: LIBS=$ac_check_lib_save_LIBS
                   10257: fi
1.10    ! millert  10258: echo "$as_me:10258: result: $ac_cv_lib_dl_main" >&5
1.9       millert  10259: echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
                   10260: if test $ac_cv_lib_dl_main = yes; then
1.5       millert  10261:   SUDO_LIBS="${SUDO_LIBS} -ldl -lpam"
                   10262: else
                   10263:   SUDO_LIBS="${SUDO_LIBS} -lpam"
                   10264: fi
1.9       millert  10265: ac_cv_lib_dl=ac_cv_lib_dl_main
1.5       millert  10266:
                   10267: fi
                   10268:
1.1       millert  10269: if test "$with_kerb4" = "yes"; then
1.9       millert  10270:
                   10271: cat >>confdefs.h <<\EOF
1.1       millert  10272: #define HAVE_KERB4 1
                   10273: EOF
                   10274:
                   10275:     if test -f "/usr/include/kerberosIV/krb.h"; then
                   10276:        CPPFLAGS="${CPPFLAGS} -I/usr/include/kerberosIV"
                   10277:     elif test -f "/usr/local/include/kerberosIV/krb.h"; then
                   10278:        CPPFLAGS="${CPPFLAGS} -I/usr/local/include/kerberosIV"
                   10279:     elif test -f "/usr/kerberos/include/krb.h"; then
                   10280:        CPPFLAGS="${CPPFLAGS} -I/usr/kerberos/include"
                   10281:     elif test -f "/usr/local/kerberos/include/krb.h"; then
                   10282:        CPPFLAGS="${CPPFLAGS} -I/usr/local/kerberos/include"
                   10283:     else
                   10284:        echo 'Unable to locate kerberos 4 include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS'
                   10285:     fi
                   10286:
                   10287:     if test -d "/usr/kerberos/lib"; then
                   10288:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/kerberos/lib"
                   10289:     elif test -d "/usr/lib/kerberos"; then
                   10290:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/lib/kerberos"
                   10291:     elif test -f "/usr/local/lib/libkrb.a"; then
                   10292:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
                   10293:     elif test ! -f "/usr/lib/libkrb.a"; then
                   10294:        echo 'Unable to locate kerberos 4 libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS'
                   10295:     fi
                   10296:
1.10    ! millert  10297:     echo "$as_me:10297: checking for main in -ldes" >&5
1.9       millert  10298: echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
                   10299: if test "${ac_cv_lib_des_main+set}" = set; then
                   10300:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  10301: else
1.9       millert  10302:   ac_check_lib_save_LIBS=$LIBS
1.1       millert  10303: LIBS="-ldes  $LIBS"
1.9       millert  10304: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  10305: #line 10305 "configure"
1.1       millert  10306: #include "confdefs.h"
                   10307:
1.9       millert  10308: int
                   10309: main ()
                   10310: {
                   10311: main ();
                   10312:   ;
                   10313:   return 0;
                   10314: }
                   10315: _ACEOF
                   10316: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  10317: if { (eval echo "$as_me:10317: \"$ac_link\"") >&5
1.9       millert  10318:   (eval $ac_link) 2>&5
                   10319:   ac_status=$?
1.10    ! millert  10320:   echo "$as_me:10320: \$? = $ac_status" >&5
1.9       millert  10321:   (exit $ac_status); } &&
                   10322:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  10323:   { (eval echo "$as_me:10323: \"$ac_try\"") >&5
1.9       millert  10324:   (eval $ac_try) 2>&5
                   10325:   ac_status=$?
1.10    ! millert  10326:   echo "$as_me:10326: \$? = $ac_status" >&5
1.9       millert  10327:   (exit $ac_status); }; }; then
                   10328:   ac_cv_lib_des_main=yes
                   10329: else
                   10330:   echo "$as_me: failed program was:" >&5
                   10331: cat conftest.$ac_ext >&5
                   10332: ac_cv_lib_des_main=no
                   10333: fi
                   10334: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   10335: LIBS=$ac_check_lib_save_LIBS
                   10336: fi
1.10    ! millert  10337: echo "$as_me:10337: result: $ac_cv_lib_des_main" >&5
1.9       millert  10338: echo "${ECHO_T}$ac_cv_lib_des_main" >&6
                   10339: if test $ac_cv_lib_des_main = yes; then
1.1       millert  10340:   SUDO_LIBS="${SUDO_LIBS} -lkrb -ldes"
                   10341: else
                   10342:   SUDO_LIBS="${SUDO_LIBS} -lkrb"
                   10343: fi
1.9       millert  10344: ac_cv_lib_des=ac_cv_lib_des_main
1.1       millert  10345:
                   10346:     AUTH_OBJS="${AUTH_OBJS} kerb4.o"
                   10347: fi
                   10348:
                   10349: if test "$with_AFS" = "yes"; then
                   10350:
                   10351:     # looks like the "standard" place for AFS libs is /usr/afsws/lib
                   10352:     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
                   10353:     for i in $AFSLIBDIRS; do
                   10354:        if test -d ${i}; then
                   10355:            SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${i}"
                   10356:            FOUND_AFSLIBDIR=true
                   10357:        fi
                   10358:     done
                   10359:     if test -z "$FOUND_AFSLIBDIR"; then
                   10360:        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.'
                   10361:     fi
                   10362:
                   10363:     # Order is important here.  Note that we build AFS_LIBS from right to left
                   10364:     # since AFS_LIBS may be initialized with BSD compat libs that must go last
                   10365:     AFS_LIBS="-laudit ${AFS_LIBS}"
                   10366:     for i in $AFSLIBDIRS; do
                   10367:        if test -f ${i}/util.a; then
                   10368:            AFS_LIBS="${i}/util.a ${AFS_LIBS}"
                   10369:            FOUND_UTIL_A=true
                   10370:            break;
                   10371:        fi
                   10372:     done
                   10373:     if test -z "$FOUND_UTIL_A"; then
                   10374:        AFS_LIBS="-lutil ${AFS_LIBS}"
                   10375:     fi
                   10376:     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
                   10377:
                   10378:     # AFS includes may live in /usr/include on some machines...
                   10379:     for i in /usr/afsws/include; do
                   10380:        if test -d ${i}; then
                   10381:            CPPFLAGS="${CPPFLAGS} -I${i}"
                   10382:            FOUND_AFSINCDIR=true
                   10383:        fi
                   10384:     done
                   10385:
                   10386:     if test -z "$FOUND_AFSLIBDIR"; then
                   10387:        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.'
                   10388:     fi
                   10389: fi
                   10390:
                   10391: if test "$with_DCE" = "yes"; then
                   10392:     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
                   10393:     SUDO_LIBS="${SUDO_LIBS} -ldce"
                   10394: fi
                   10395:
                   10396: if test "$with_skey" = "yes"; then
                   10397:     SUDO_LIBS="${SUDO_LIBS} -lskey"
                   10398:     if test -f /usr/include/skey.h -a -f /usr/lib/libskey.a; then
                   10399:        :
                   10400:     elif test -f /usr/local/include/skey.h; then
                   10401:        CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
                   10402:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
                   10403:     elif test "$with_csops" = "yes" -a -f /tools/cs/skey/include/skey.h -a -f /tools/cs/skey/lib/libskey.a; then
                   10404:        CPPFLAGS="${CPPFLAGS} -I/tools/cs/skey/include"
                   10405:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/tools/cs/skey/lib"
                   10406:     else
                   10407:        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'
                   10408:     fi
1.10    ! millert  10409:     echo "$as_me:10409: checking for skeyaccess in -lskey" >&5
1.9       millert  10410: echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6
                   10411: if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
                   10412:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10413: else
                   10414:   ac_check_lib_save_LIBS=$LIBS
                   10415: LIBS="-lskey  $LIBS"
                   10416: cat >conftest.$ac_ext <<_ACEOF
1.10    ! millert  10417: #line 10417 "configure"
1.9       millert  10418: #include "confdefs.h"
                   10419:
                   10420: /* Override any gcc2 internal prototype to avoid an error.  */
                   10421: #ifdef __cplusplus
                   10422: extern "C"
                   10423: #endif
                   10424: /* We use char because int might match the return type of a gcc2
                   10425:    builtin and then its argument prototype would still apply.  */
                   10426: char skeyaccess ();
                   10427: int
                   10428: main ()
                   10429: {
                   10430: skeyaccess ();
                   10431:   ;
                   10432:   return 0;
                   10433: }
                   10434: _ACEOF
                   10435: rm -f conftest.$ac_objext conftest$ac_exeext
1.10    ! millert  10436: if { (eval echo "$as_me:10436: \"$ac_link\"") >&5
1.9       millert  10437:   (eval $ac_link) 2>&5
                   10438:   ac_status=$?
1.10    ! millert  10439:   echo "$as_me:10439: \$? = $ac_status" >&5
1.9       millert  10440:   (exit $ac_status); } &&
                   10441:          { ac_try='test -s conftest$ac_exeext'
1.10    ! millert  10442:   { (eval echo "$as_me:10442: \"$ac_try\"") >&5
1.9       millert  10443:   (eval $ac_try) 2>&5
                   10444:   ac_status=$?
1.10    ! millert  10445:   echo "$as_me:10445: \$? = $ac_status" >&5
1.9       millert  10446:   (exit $ac_status); }; }; then
                   10447:   ac_cv_lib_skey_skeyaccess=yes
                   10448: else
                   10449:   echo "$as_me: failed program was:" >&5
                   10450: cat conftest.$ac_ext >&5
                   10451: ac_cv_lib_skey_skeyaccess=no
                   10452: fi
                   10453: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
                   10454: LIBS=$ac_check_lib_save_LIBS
                   10455: fi
1.10    ! millert  10456: echo "$as_me:10456: result: $ac_cv_lib_skey_skeyaccess" >&5
1.9       millert  10457: echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6
                   10458: if test $ac_cv_lib_skey_skeyaccess = yes; then
                   10459:
                   10460: cat >>confdefs.h <<\EOF
                   10461: #define HAVE_SKEYACCESS 1
                   10462: EOF
                   10463:
                   10464: fi
                   10465:
1.1       millert  10466: fi
                   10467:
                   10468: if test "$with_opie" = "yes"; then
                   10469:     SUDO_LIBS="${SUDO_LIBS} -lopie"
                   10470:     if test -f /usr/include/opie.h -a -f /usr/lib/libopie.a; then
                   10471:        :
                   10472:     elif test -f /usr/local/include/opie.h; then
                   10473:        CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
                   10474:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
                   10475:     else
                   10476:        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'
                   10477:     fi
                   10478: fi
                   10479:
                   10480: if test -n "$with_SecurID" -a "$with_SecurID" != "no"; then
                   10481:     if test "$with_SecurID" != "yes"; then
                   10482:        SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
                   10483:        CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
                   10484:     elif test -f /usr/ace/examples/sdiclient.a; then
                   10485:        SUDO_LIBS="${SUDO_LIBS} /usr/ace/examples/sdiclient.a"
                   10486:        CPPFLAGS="${CPPFLAGS} -I/usr/ace/examples"
                   10487:     else
                   10488:        SUDO_LIBS="${SUDO_LIBS} /usr/ace/sdiclient.a"
                   10489:        CPPFLAGS="${CPPFLAGS} -I/usr/ace"
                   10490:     fi
                   10491: fi
                   10492:
                   10493: if test "$with_fwtk" = "yes"; then
                   10494:     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
                   10495: fi
                   10496:
                   10497: if test "$with_authenticate" = "yes"; then
                   10498:     SUDO_LIBS="${SUDO_LIBS} -ls"
                   10499: fi
                   10500:
1.10    ! millert  10501: echo "$as_me:10501: checking for log file location" >&5
1.9       millert  10502: echo $ECHO_N "checking for log file location... $ECHO_C" >&6
1.1       millert  10503: if test -n "$with_logpath"; then
1.10    ! millert  10504:     echo "$as_me:10504: result: $with_logpath" >&5
1.9       millert  10505: echo "${ECHO_T}$with_logpath" >&6
                   10506:     cat >>confdefs.h <<EOF
1.1       millert  10507: #define _PATH_SUDO_LOGFILE "$with_logpath"
                   10508: EOF
                   10509:
                   10510: elif test -d "/var/log"; then
1.10    ! millert  10511:     echo "$as_me:10511: result: /var/log/sudo.log" >&5
1.9       millert  10512: echo "${ECHO_T}/var/log/sudo.log" >&6
                   10513:     cat >>confdefs.h <<\EOF
1.1       millert  10514: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
                   10515: EOF
                   10516:
                   10517: elif test -d "/var/adm"; then
1.10    ! millert  10518:     echo "$as_me:10518: result: /var/adm/sudo.log" >&5
1.9       millert  10519: echo "${ECHO_T}/var/adm/sudo.log" >&6
                   10520:     cat >>confdefs.h <<\EOF
1.1       millert  10521: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
                   10522: EOF
                   10523:
                   10524: elif test -d "/usr/adm"; then
1.10    ! millert  10525:     echo "$as_me:10525: result: /usr/adm/sudo.log" >&5
1.9       millert  10526: echo "${ECHO_T}/usr/adm/sudo.log" >&6
                   10527:     cat >>confdefs.h <<\EOF
1.1       millert  10528: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
                   10529: EOF
                   10530:
                   10531: else
1.10    ! millert  10532:     echo "$as_me:10532: result: unknown" >&5
1.9       millert  10533: echo "${ECHO_T}unknown" >&6
1.1       millert  10534: fi
                   10535:
1.10    ! millert  10536: echo "$as_me:10536: checking for timestamp file location" >&5
1.9       millert  10537: echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6
1.1       millert  10538: if test -n "$with_timedir"; then
1.10    ! millert  10539:     echo "$as_me:10539: result: $with_timedir" >&5
1.9       millert  10540: echo "${ECHO_T}$with_timedir" >&6
                   10541:     cat >>confdefs.h <<EOF
1.1       millert  10542: #define _PATH_SUDO_TIMEDIR "$with_timedir"
                   10543: EOF
                   10544:
1.9       millert  10545:     timedir="$with_timedir"
1.1       millert  10546: elif test -d "/var/run"; then
1.10    ! millert  10547:     echo "$as_me:10547: result: /var/run/sudo" >&5
1.9       millert  10548: echo "${ECHO_T}/var/run/sudo" >&6
                   10549:     cat >>confdefs.h <<\EOF
1.1       millert  10550: #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
                   10551: EOF
                   10552:
1.9       millert  10553:     timedir="/var/run/sudo"
1.6       millert  10554: else
1.10    ! millert  10555:     echo "$as_me:10555: result: /tmp/.odus" >&5
1.9       millert  10556: echo "${ECHO_T}/tmp/.odus" >&6
                   10557:     cat >>confdefs.h <<\EOF
1.1       millert  10558: #define _PATH_SUDO_TIMEDIR "/tmp/.odus"
                   10559: EOF
                   10560:
1.9       millert  10561:     timedir="/tmp/.odus"
1.1       millert  10562: fi
                   10563:
                   10564: if test "$with_passwd" = "no"; then
1.9       millert  10565:     cat >>confdefs.h <<\EOF
                   10566: #define WITHOUT_PASSWD 1. Define to avoid using the passwd/shadow file for authentication.
1.1       millert  10567: EOF
                   10568:
                   10569:     if test -z "$AUTH_OBJS"; then
1.10    ! millert  10570:        { { echo "$as_me:10570: error: no authentication methods defined." >&5
1.9       millert  10571: echo "$as_me: error: no authentication methods defined." >&2;}
                   10572:    { (exit 1); exit 1; }; }
1.1       millert  10573:     fi
                   10574: else
                   10575:     if test -n "$SECUREWARE"; then
                   10576:        AUTH_OBJS="${AUTH_OBJS} passwd.o secureware.o"
                   10577:     else
                   10578:        AUTH_OBJS="${AUTH_OBJS} passwd.o"
                   10579:     fi
                   10580: fi
                   10581:
                   10582: if test -n "$LIBS"; then
                   10583:     L="$LIBS"
                   10584:     LIBS=
                   10585:     for l in ${L}; do
                   10586:        dupe=0
                   10587:        for sl in ${SUDO_LIBS} ${NET_LIBS}; do
                   10588:            test $l = $sl && dupe=1
                   10589:        done
                   10590:        test $dupe = 0 && LIBS="${LIBS} $l"
                   10591:     done
                   10592: fi
                   10593:
                   10594: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
                   10595:
1.9       millert  10596: ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
                   10597: cat >confcache <<\_ACEOF
1.1       millert  10598: # This file is a shell script that caches the results of configure
                   10599: # tests run on this system so they can be shared between configure
1.9       millert  10600: # scripts and configure runs, see configure's option --config-cache.
                   10601: # It is not useful on other systems.  If it contains results you don't
                   10602: # want to keep, you may remove or edit it.
1.1       millert  10603: #
1.9       millert  10604: # config.status only pays attention to the cache file if you give it
                   10605: # the --recheck option to rerun configure.
1.1       millert  10606: #
1.9       millert  10607: # `ac_cv_env_foo' variables (set or unset) will be overriden when
                   10608: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   10609: # following values.
                   10610:
                   10611: _ACEOF
                   10612:
1.1       millert  10613: # The following way of writing the cache mishandles newlines in values,
                   10614: # but we know of no workaround that is simple, portable, and efficient.
                   10615: # So, don't put newlines in cache variables' values.
                   10616: # Ultrix sh set writes to stderr and can't be redirected directly,
                   10617: # and sets the high bit in the cache file unless we assign to the vars.
1.9       millert  10618: {
                   10619:   (set) 2>&1 |
                   10620:     case `(ac_space=' '; set | grep ac_space) 2>&1` in
                   10621:     *ac_space=\ *)
                   10622:       # `set' does not quote correctly, so add quotes (double-quote
                   10623:       # substitution turns \\\\ into \\, and sed turns \\ into \).
                   10624:       sed -n \
                   10625:         "s/'/'\\\\''/g;
                   10626:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   10627:       ;;
                   10628:     *)
                   10629:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   10630:       sed -n \
                   10631:         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
                   10632:       ;;
                   10633:     esac;
                   10634: } |
                   10635:   sed '
                   10636:      t clear
                   10637:      : clear
                   10638:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   10639:      t end
                   10640:      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   10641:      : end' >>confcache
                   10642: if cmp -s $cache_file confcache; then :; else
1.1       millert  10643:   if test -w $cache_file; then
1.9       millert  10644:     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
                   10645:     cat confcache >$cache_file
1.1       millert  10646:   else
                   10647:     echo "not updating unwritable cache $cache_file"
                   10648:   fi
                   10649: fi
                   10650: rm -f confcache
                   10651:
                   10652: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   10653: # Let make expand exec_prefix.
                   10654: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   10655:
1.9       millert  10656: # VPATH may cause trouble with some makes, so we remove $(srcdir),
                   10657: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
                   10658: # trailing colons and then remove the whole line if VPATH becomes empty
                   10659: # (actually we leave an empty line to preserve line numbers).
1.1       millert  10660: if test "x$srcdir" = x.; then
1.9       millert  10661:   ac_vpsub='/^[        ]*VPATH[        ]*=/{
                   10662: s/:*\$(srcdir):*/:/;
                   10663: s/:*\${srcdir}:*/:/;
                   10664: s/:*@srcdir@:*/:/;
                   10665: s/^\([^=]*=[   ]*\):*/\1/;
                   10666: s/:*$//;
                   10667: s/^[^=]*=[     ]*$//;
                   10668: }'
1.1       millert  10669: fi
                   10670:
                   10671: DEFS=-DHAVE_CONFIG_H
                   10672:
                   10673: : ${CONFIG_STATUS=./config.status}
1.9       millert  10674: ac_clean_files_save=$ac_clean_files
                   10675: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.10    ! millert  10676: { echo "$as_me:10676: creating $CONFIG_STATUS" >&5
1.9       millert  10677: echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   10678: cat >$CONFIG_STATUS <<_ACEOF
                   10679: #! $SHELL
1.1       millert  10680: # Generated automatically by configure.
                   10681: # Run this file to recreate the current configuration.
                   10682: # Compiler output produced by configure, useful for debugging
1.9       millert  10683: # configure, is in config.log if it exists.
                   10684:
                   10685: debug=false
                   10686: SHELL=\${CONFIG_SHELL-$SHELL}
                   10687: ac_cs_invocation="\$0 \$@"
1.1       millert  10688:
1.9       millert  10689: _ACEOF
                   10690:
                   10691: cat >>$CONFIG_STATUS <<\_ACEOF
                   10692: # Be Bourne compatible
                   10693: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                   10694:   emulate sh
                   10695:   NULLCMD=:
                   10696: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
                   10697:   set -o posix
                   10698: fi
                   10699:
                   10700: # Name of the executable.
                   10701: as_me=`echo "$0" |sed 's,.*[\\/],,'`
                   10702:
                   10703: if expr a : '\(a\)' >/dev/null 2>&1; then
                   10704:   as_expr=expr
                   10705: else
                   10706:   as_expr=false
                   10707: fi
                   10708:
                   10709: rm -f conf$$ conf$$.exe conf$$.file
                   10710: echo >conf$$.file
                   10711: if ln -s conf$$.file conf$$ 2>/dev/null; then
                   10712:   # We could just check for DJGPP; but this test a) works b) is more generic
                   10713:   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
                   10714:   if test -f conf$$.exe; then
                   10715:     # Don't use ln at all; we don't have any links
                   10716:     as_ln_s='cp -p'
                   10717:   else
                   10718:     as_ln_s='ln -s'
                   10719:   fi
                   10720: elif ln conf$$.file conf$$ 2>/dev/null; then
                   10721:   as_ln_s=ln
                   10722: else
                   10723:   as_ln_s='cp -p'
                   10724: fi
                   10725: rm -f conf$$ conf$$.exe conf$$.file
                   10726:
                   10727: as_executable_p="test -f"
                   10728:
                   10729: # Support unset when possible.
                   10730: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
                   10731:   as_unset=unset
                   10732: else
                   10733:   as_unset=false
                   10734: fi
                   10735:
                   10736: # NLS nuisances.
                   10737: $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
                   10738: $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
                   10739: $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
                   10740: $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
                   10741: $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
                   10742: $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
                   10743: $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
                   10744: $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
                   10745:
                   10746: # IFS
                   10747: # We need space, tab and new line, in precisely that order.
                   10748: as_nl='
                   10749: '
                   10750: IFS="  $as_nl"
                   10751:
                   10752: # CDPATH.
                   10753: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
                   10754:
                   10755: exec 6>&1
                   10756:
                   10757: _ACEOF
                   10758:
                   10759: # Files that config.status was made for.
                   10760: if test -n "$ac_config_files"; then
                   10761:   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
                   10762: fi
                   10763:
                   10764: if test -n "$ac_config_headers"; then
                   10765:   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
                   10766: fi
                   10767:
                   10768: if test -n "$ac_config_links"; then
                   10769:   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
                   10770: fi
                   10771:
                   10772: if test -n "$ac_config_commands"; then
                   10773:   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
                   10774: fi
                   10775:
                   10776: cat >>$CONFIG_STATUS <<\EOF
                   10777:
                   10778: ac_cs_usage="\
                   10779: \`$as_me' instantiates files from templates according to the
                   10780: current configuration.
                   10781:
                   10782: Usage: $0 [OPTIONS] [FILE]...
                   10783:
                   10784:   -h, --help       print this help, then exit
                   10785:   -V, --version    print version number, then exit
                   10786:   -d, --debug      don't remove temporary files
                   10787:       --recheck    update $as_me by reconfiguring in the same conditions
                   10788:   --file=FILE[:TEMPLATE]
                   10789:                    instantiate the configuration file FILE
                   10790:   --header=FILE[:TEMPLATE]
                   10791:                    instantiate the configuration header FILE
                   10792:
                   10793: Configuration files:
                   10794: $config_files
                   10795:
                   10796: Configuration headers:
                   10797: $config_headers
                   10798:
                   10799: Report bugs to <bug-autoconf@gnu.org>."
                   10800: EOF
                   10801:
                   10802: cat >>$CONFIG_STATUS <<EOF
                   10803: ac_cs_version="\\
                   10804: sudo config.status 1.6.4
                   10805: configured by $0, generated by GNU Autoconf 2.52,
                   10806:   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
                   10807:
                   10808: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
                   10809: Free Software Foundation, Inc.
                   10810: This config.status script is free software; the Free Software Foundation
                   10811: gives unlimited permission to copy, distribute and modify it."
                   10812: srcdir=$srcdir
                   10813: EOF
                   10814:
                   10815: cat >>$CONFIG_STATUS <<\EOF
                   10816: # If no file are specified by the user, then we need to provide default
                   10817: # value.  By we need to know if files were specified by the user.
                   10818: ac_need_defaults=:
                   10819: while test $# != 0
1.1       millert  10820: do
1.9       millert  10821:   case $1 in
                   10822:   --*=*)
                   10823:     ac_option=`expr "x$1" : 'x\([^=]*\)='`
                   10824:     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
                   10825:     shift
                   10826:     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
                   10827:     shift
                   10828:     ;;
                   10829:   -*);;
                   10830:   *) # This is not an option, so the user has probably given explicit
                   10831:      # arguments.
                   10832:      ac_need_defaults=false;;
                   10833:   esac
                   10834:
                   10835:   case $1 in
                   10836:   # Handling of the options.
                   10837: EOF
                   10838: cat >>$CONFIG_STATUS <<EOF
1.1       millert  10839:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.9       millert  10840:     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
                   10841:     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
                   10842: EOF
                   10843: cat >>$CONFIG_STATUS <<\EOF
                   10844:   --version | --vers* | -V )
                   10845:     echo "$ac_cs_version"; exit 0 ;;
                   10846:   --he | --h)
                   10847:     # Conflict between --help and --header
1.10    ! millert  10848:     { { echo "$as_me:10848: error: ambiguous option: $1
1.9       millert  10849: Try \`$0 --help' for more information." >&5
                   10850: echo "$as_me: error: ambiguous option: $1
                   10851: Try \`$0 --help' for more information." >&2;}
                   10852:    { (exit 1); exit 1; }; };;
                   10853:   --help | --hel | -h )
                   10854:     echo "$ac_cs_usage"; exit 0 ;;
                   10855:   --debug | --d* | -d )
                   10856:     debug=: ;;
                   10857:   --file | --fil | --fi | --f )
                   10858:     shift
                   10859:     CONFIG_FILES="$CONFIG_FILES $1"
                   10860:     ac_need_defaults=false;;
                   10861:   --header | --heade | --head | --hea )
                   10862:     shift
                   10863:     CONFIG_HEADERS="$CONFIG_HEADERS $1"
                   10864:     ac_need_defaults=false;;
                   10865:
                   10866:   # This is an error.
1.10    ! millert  10867:   -*) { { echo "$as_me:10867: error: unrecognized option: $1
1.9       millert  10868: Try \`$0 --help' for more information." >&5
                   10869: echo "$as_me: error: unrecognized option: $1
                   10870: Try \`$0 --help' for more information." >&2;}
                   10871:    { (exit 1); exit 1; }; } ;;
                   10872:
                   10873:   *) ac_config_targets="$ac_config_targets $1" ;;
                   10874:
                   10875:   esac
                   10876:   shift
                   10877: done
                   10878:
                   10879: exec 5>>config.log
                   10880: cat >&5 << _ACEOF
                   10881:
                   10882: ## ----------------------- ##
                   10883: ## Running config.status.  ##
                   10884: ## ----------------------- ##
                   10885:
                   10886: This file was extended by $as_me (sudo 1.6.4) 2.52, executed with
                   10887:   CONFIG_FILES    = $CONFIG_FILES
                   10888:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   10889:   CONFIG_LINKS    = $CONFIG_LINKS
                   10890:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   10891:   > $ac_cs_invocation
                   10892: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   10893:
                   10894: _ACEOF
                   10895: EOF
                   10896:
                   10897: cat >>$CONFIG_STATUS <<\EOF
                   10898: for ac_config_target in $ac_config_targets
                   10899: do
                   10900:   case "$ac_config_target" in
                   10901:   # Handling of arguments.
                   10902:   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   10903:   "sudo.man" ) CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
                   10904:   "visudo.man" ) CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
                   10905:   "sudoers.man" ) CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
                   10906:   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
                   10907:   "pathnames.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
1.10    ! millert  10908:   *) { { echo "$as_me:10908: error: invalid argument: $ac_config_target" >&5
1.9       millert  10909: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
                   10910:    { (exit 1); exit 1; }; };;
1.1       millert  10911:   esac
                   10912: done
                   10913:
1.9       millert  10914: # If the user did not use the arguments to specify the items to instantiate,
                   10915: # then the envvar interface is used.  Set only those that are not.
                   10916: # We use the long form for the default assignment because of an extremely
                   10917: # bizarre bug on SunOS 4.1.3.
                   10918: if $ac_need_defaults; then
                   10919:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   10920:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   10921: fi
                   10922:
                   10923: # Create a temporary directory, and hook for its removal unless debugging.
                   10924: $debug ||
                   10925: {
                   10926:   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
                   10927:   trap '{ (exit 1); exit 1; }' 1 2 13 15
                   10928: }
                   10929:
                   10930: # Create a (secure) tmp directory for tmp files.
                   10931: : ${TMPDIR=/tmp}
                   10932: {
                   10933:   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
                   10934:   test -n "$tmp" && test -d "$tmp"
                   10935: }  ||
                   10936: {
                   10937:   tmp=$TMPDIR/cs$$-$RANDOM
                   10938:   (umask 077 && mkdir $tmp)
                   10939: } ||
                   10940: {
                   10941:    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
                   10942:    { (exit 1); exit 1; }
                   10943: }
1.1       millert  10944:
                   10945: EOF
                   10946:
1.9       millert  10947: cat >>$CONFIG_STATUS <<EOF
                   10948:
                   10949: #
                   10950: # CONFIG_FILES section.
                   10951: #
1.1       millert  10952:
1.9       millert  10953: # No need to generate the scripts if there are no CONFIG_FILES.
                   10954: # This happens for instance when ./config.status config.h
                   10955: if test -n "\$CONFIG_FILES"; then
                   10956:   # Protect against being on the right side of a sed subst in config.status.
                   10957:   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
                   10958:    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
                   10959: s,@SHELL@,$SHELL,;t t
                   10960: s,@exec_prefix@,$exec_prefix,;t t
                   10961: s,@prefix@,$prefix,;t t
                   10962: s,@program_transform_name@,$program_transform_name,;t t
                   10963: s,@bindir@,$bindir,;t t
                   10964: s,@sbindir@,$sbindir,;t t
                   10965: s,@libexecdir@,$libexecdir,;t t
                   10966: s,@datadir@,$datadir,;t t
                   10967: s,@sysconfdir@,$sysconfdir,;t t
                   10968: s,@sharedstatedir@,$sharedstatedir,;t t
                   10969: s,@localstatedir@,$localstatedir,;t t
                   10970: s,@libdir@,$libdir,;t t
                   10971: s,@includedir@,$includedir,;t t
                   10972: s,@oldincludedir@,$oldincludedir,;t t
                   10973: s,@infodir@,$infodir,;t t
                   10974: s,@mandir@,$mandir,;t t
                   10975: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
                   10976: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
                   10977: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
                   10978: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
                   10979: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
                   10980: s,@build_alias@,$build_alias,;t t
                   10981: s,@host_alias@,$host_alias,;t t
                   10982: s,@target_alias@,$target_alias,;t t
                   10983: s,@ECHO_C@,$ECHO_C,;t t
                   10984: s,@ECHO_N@,$ECHO_N,;t t
                   10985: s,@ECHO_T@,$ECHO_T,;t t
                   10986: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
                   10987: s,@DEFS@,$DEFS,;t t
                   10988: s,@LIBS@,$LIBS,;t t
                   10989: s,@CFLAGS@,$CFLAGS,;t t
                   10990: s,@PROGS@,$PROGS,;t t
                   10991: s,@CPPFLAGS@,$CPPFLAGS,;t t
                   10992: s,@LDFLAGS@,$LDFLAGS,;t t
                   10993: s,@SUDO_LDFLAGS@,$SUDO_LDFLAGS,;t t
                   10994: s,@SUDO_LIBS@,$SUDO_LIBS,;t t
                   10995: s,@NET_LIBS@,$NET_LIBS,;t t
                   10996: s,@AFS_LIBS@,$AFS_LIBS,;t t
                   10997: s,@OSDEFS@,$OSDEFS,;t t
                   10998: s,@AUTH_OBJS@,$AUTH_OBJS,;t t
                   10999: s,@LIBOBJS@,$LIBOBJS,;t t
                   11000: s,@MANTYPE@,$MANTYPE,;t t
                   11001: s,@MAN_POSTINSTALL@,$MAN_POSTINSTALL,;t t
                   11002: s,@SUDOERS_MODE@,$SUDOERS_MODE,;t t
                   11003: s,@SUDOERS_UID@,$SUDOERS_UID,;t t
                   11004: s,@SUDOERS_GID@,$SUDOERS_GID,;t t
                   11005: s,@DEV@,$DEV,;t t
                   11006: s,@mansectsu@,$mansectsu,;t t
                   11007: s,@mansectform@,$mansectform,;t t
                   11008: s,@mansrcdir@,$mansrcdir,;t t
                   11009: s,@timedir@,$timedir,;t t
                   11010: s,@timeout@,$timeout,;t t
                   11011: s,@password_timeout@,$password_timeout,;t t
                   11012: s,@sudo_umask@,$sudo_umask,;t t
                   11013: s,@passprompt@,$passprompt,;t t
                   11014: s,@long_otp_prompt@,$long_otp_prompt,;t t
                   11015: s,@lecture@,$lecture,;t t
                   11016: s,@logfac@,$logfac,;t t
                   11017: s,@goodpri@,$goodpri,;t t
                   11018: s,@badpri@,$badpri,;t t
                   11019: s,@loglen@,$loglen,;t t
                   11020: s,@ignore_dot@,$ignore_dot,;t t
                   11021: s,@mail_no_user@,$mail_no_user,;t t
                   11022: s,@mail_no_host@,$mail_no_host,;t t
                   11023: s,@mail_no_perms@,$mail_no_perms,;t t
                   11024: s,@mailto@,$mailto,;t t
                   11025: s,@mailsub@,$mailsub,;t t
                   11026: s,@badpass_message@,$badpass_message,;t t
                   11027: s,@fqdn@,$fqdn,;t t
                   11028: s,@runas_default@,$runas_default,;t t
                   11029: s,@env_editor@,$env_editor,;t t
                   11030: s,@passwd_tries@,$passwd_tries,;t t
                   11031: s,@tty_tickets@,$tty_tickets,;t t
                   11032: s,@insults@,$insults,;t t
                   11033: s,@EGREPPROG@,$EGREPPROG,;t t
                   11034: s,@CC@,$CC,;t t
                   11035: s,@ac_ct_CC@,$ac_ct_CC,;t t
                   11036: s,@EXEEXT@,$EXEEXT,;t t
                   11037: s,@OBJEXT@,$OBJEXT,;t t
                   11038: s,@CPP@,$CPP,;t t
                   11039: s,@UNAMEPROG@,$UNAMEPROG,;t t
                   11040: s,@TRPROG@,$TRPROG,;t t
                   11041: s,@SEDPROG@,$SEDPROG,;t t
                   11042: s,@NROFFPROG@,$NROFFPROG,;t t
                   11043: s,@build@,$build,;t t
                   11044: s,@build_cpu@,$build_cpu,;t t
                   11045: s,@build_vendor@,$build_vendor,;t t
                   11046: s,@build_os@,$build_os,;t t
                   11047: s,@host@,$host,;t t
                   11048: s,@host_cpu@,$host_cpu,;t t
                   11049: s,@host_vendor@,$host_vendor,;t t
                   11050: s,@host_os@,$host_os,;t t
                   11051: s,@YACC@,$YACC,;t t
                   11052: s,@ALLOCA@,$ALLOCA,;t t
1.1       millert  11053: CEOF
1.9       millert  11054:
1.1       millert  11055: EOF
                   11056:
1.9       millert  11057:   cat >>$CONFIG_STATUS <<\EOF
                   11058:   # Split the substitutions into bite-sized pieces for seds with
                   11059:   # small command number limits, like on Digital OSF/1 and HP-UX.
                   11060:   ac_max_sed_lines=48
                   11061:   ac_sed_frag=1 # Number of current file.
                   11062:   ac_beg=1 # First line for current file.
                   11063:   ac_end=$ac_max_sed_lines # Line after last line for current file.
                   11064:   ac_more_lines=:
                   11065:   ac_sed_cmds=
                   11066:   while $ac_more_lines; do
                   11067:     if test $ac_beg -gt 1; then
                   11068:       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
                   11069:     else
                   11070:       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
                   11071:     fi
                   11072:     if test ! -s $tmp/subs.frag; then
                   11073:       ac_more_lines=false
1.1       millert  11074:     else
1.9       millert  11075:       # The purpose of the label and of the branching condition is to
                   11076:       # speed up the sed processing (if there are no `@' at all, there
                   11077:       # is no need to browse any of the substitutions).
                   11078:       # These are the two extra sed commands mentioned above.
                   11079:       (echo ':t
                   11080:   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
                   11081:       if test -z "$ac_sed_cmds"; then
                   11082:        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
                   11083:       else
                   11084:        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
                   11085:       fi
                   11086:       ac_sed_frag=`expr $ac_sed_frag + 1`
                   11087:       ac_beg=$ac_end
                   11088:       ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1       millert  11089:     fi
1.9       millert  11090:   done
                   11091:   if test -z "$ac_sed_cmds"; then
                   11092:     ac_sed_cmds=cat
1.1       millert  11093:   fi
1.9       millert  11094: fi # test -n "$CONFIG_FILES"
1.1       millert  11095:
                   11096: EOF
1.9       millert  11097: cat >>$CONFIG_STATUS <<\EOF
                   11098: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1.1       millert  11099:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.9       millert  11100:   case $ac_file in
                   11101:   - | *:- | *:-:* ) # input from stdin
                   11102:         cat >$tmp/stdin
                   11103:         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
                   11104:         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
                   11105:   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
                   11106:         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
                   11107:   * )   ac_file_in=$ac_file.in ;;
1.1       millert  11108:   esac
                   11109:
1.9       millert  11110:   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
                   11111:   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   11112:          X"$ac_file" : 'X\(//\)[^/]' \| \
                   11113:          X"$ac_file" : 'X\(//\)$' \| \
                   11114:          X"$ac_file" : 'X\(/\)' \| \
                   11115:          .     : '\(.\)' 2>/dev/null ||
                   11116: echo X"$ac_file" |
                   11117:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
                   11118:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
                   11119:          /^X\(\/\/\)$/{ s//\1/; q; }
                   11120:          /^X\(\/\).*/{ s//\1/; q; }
                   11121:          s/.*/./; q'`
                   11122:   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   11123:     { case "$ac_dir" in
                   11124:   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
                   11125:   *)                      as_incr_dir=.;;
                   11126: esac
                   11127: as_dummy="$ac_dir"
                   11128: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
                   11129:   case $as_mkdir_dir in
                   11130:     # Skip DOS drivespec
                   11131:     ?:) as_incr_dir=$as_mkdir_dir ;;
                   11132:     *)
                   11133:       as_incr_dir=$as_incr_dir/$as_mkdir_dir
                   11134:       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
                   11135:     ;;
                   11136:   esac
                   11137: done; }
1.1       millert  11138:
1.9       millert  11139:     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
1.1       millert  11140:     # A "../" for each directory in $ac_dir_suffix.
1.9       millert  11141:     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
1.1       millert  11142:   else
                   11143:     ac_dir_suffix= ac_dots=
                   11144:   fi
                   11145:
1.9       millert  11146:   case $srcdir in
                   11147:   .)  ac_srcdir=.
                   11148:       if test -z "$ac_dots"; then
                   11149:          ac_top_srcdir=.
                   11150:       else
                   11151:          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
                   11152:       fi ;;
                   11153:   [\\/]* | ?:[\\/]* )
                   11154:       ac_srcdir=$srcdir$ac_dir_suffix;
                   11155:       ac_top_srcdir=$srcdir ;;
1.1       millert  11156:   *) # Relative path.
1.9       millert  11157:     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
                   11158:     ac_top_srcdir=$ac_dots$srcdir ;;
1.1       millert  11159:   esac
                   11160:
1.9       millert  11161:   if test x"$ac_file" != x-; then
1.10    ! millert  11162:     { echo "$as_me:11162: creating $ac_file" >&5
1.9       millert  11163: echo "$as_me: creating $ac_file" >&6;}
                   11164:     rm -f "$ac_file"
                   11165:   fi
                   11166:   # Let's still pretend it is `configure' which instantiates (i.e., don't
                   11167:   # use $as_me), people would be surprised to read:
                   11168:   #    /* config.h.  Generated automatically by config.status.  */
                   11169:   configure_input="Generated automatically from `echo $ac_file_in |
                   11170:                                                  sed 's,.*/,,'` by configure."
                   11171:
                   11172:   # First look for the input files in the build tree, otherwise in the
                   11173:   # src tree.
                   11174:   ac_file_inputs=`IFS=:
                   11175:     for f in $ac_file_in; do
                   11176:       case $f in
                   11177:       -) echo $tmp/stdin ;;
                   11178:       [\\/$]*)
                   11179:          # Absolute (can't be DOS-style, as IFS=:)
1.10    ! millert  11180:          test -f "$f" || { { echo "$as_me:11180: error: cannot find input file: $f" >&5
1.9       millert  11181: echo "$as_me: error: cannot find input file: $f" >&2;}
                   11182:    { (exit 1); exit 1; }; }
                   11183:          echo $f;;
                   11184:       *) # Relative
                   11185:          if test -f "$f"; then
                   11186:            # Build tree
                   11187:            echo $f
                   11188:          elif test -f "$srcdir/$f"; then
                   11189:            # Source tree
                   11190:            echo $srcdir/$f
                   11191:          else
                   11192:            # /dev/null tree
1.10    ! millert  11193:            { { echo "$as_me:11193: error: cannot find input file: $f" >&5
1.9       millert  11194: echo "$as_me: error: cannot find input file: $f" >&2;}
                   11195:    { (exit 1); exit 1; }; }
                   11196:          fi;;
                   11197:       esac
                   11198:     done` || { (exit 1); exit 1; }
                   11199: EOF
                   11200: cat >>$CONFIG_STATUS <<EOF
                   11201:   sed "$ac_vpsub
                   11202: $extrasub
                   11203: EOF
                   11204: cat >>$CONFIG_STATUS <<\EOF
                   11205: :t
                   11206: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
                   11207: s,@configure_input@,$configure_input,;t t
                   11208: s,@srcdir@,$ac_srcdir,;t t
                   11209: s,@top_srcdir@,$ac_top_srcdir,;t t
                   11210: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
                   11211:   rm -f $tmp/stdin
                   11212:   if test x"$ac_file" != x-; then
                   11213:     mv $tmp/out $ac_file
                   11214:   else
                   11215:     cat $tmp/out
                   11216:     rm -f $tmp/out
                   11217:   fi
1.1       millert  11218:
1.9       millert  11219: done
                   11220: EOF
                   11221: cat >>$CONFIG_STATUS <<\EOF
1.1       millert  11222:
1.9       millert  11223: #
                   11224: # CONFIG_HEADER section.
                   11225: #
1.1       millert  11226:
                   11227: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
                   11228: # NAME is the cpp macro being defined and VALUE is the value it is being given.
                   11229: #
                   11230: # ac_d sets the value in "#define NAME VALUE" lines.
1.9       millert  11231: ac_dA='s,^\([  ]*\)#\([        ]*define[       ][      ]*\)'
                   11232: ac_dB='[       ].*$,\1#\2'
                   11233: ac_dC=' '
                   11234: ac_dD=',;t'
                   11235: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
                   11236: ac_uA='s,^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   11237: ac_uB='$,\1#\2define\3'
1.1       millert  11238: ac_uC=' '
1.9       millert  11239: ac_uD=',;t'
1.1       millert  11240:
1.9       millert  11241: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1       millert  11242:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.9       millert  11243:   case $ac_file in
                   11244:   - | *:- | *:-:* ) # input from stdin
                   11245:         cat >$tmp/stdin
                   11246:         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
                   11247:         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
                   11248:   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
                   11249:         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
                   11250:   * )   ac_file_in=$ac_file.in ;;
1.1       millert  11251:   esac
                   11252:
1.10    ! millert  11253:   test x"$ac_file" != x- && { echo "$as_me:11253: creating $ac_file" >&5
1.9       millert  11254: echo "$as_me: creating $ac_file" >&6;}
1.1       millert  11255:
1.9       millert  11256:   # First look for the input files in the build tree, otherwise in the
                   11257:   # src tree.
                   11258:   ac_file_inputs=`IFS=:
                   11259:     for f in $ac_file_in; do
                   11260:       case $f in
                   11261:       -) echo $tmp/stdin ;;
                   11262:       [\\/$]*)
                   11263:          # Absolute (can't be DOS-style, as IFS=:)
1.10    ! millert  11264:          test -f "$f" || { { echo "$as_me:11264: error: cannot find input file: $f" >&5
1.9       millert  11265: echo "$as_me: error: cannot find input file: $f" >&2;}
                   11266:    { (exit 1); exit 1; }; }
                   11267:          echo $f;;
                   11268:       *) # Relative
                   11269:          if test -f "$f"; then
                   11270:            # Build tree
                   11271:            echo $f
                   11272:          elif test -f "$srcdir/$f"; then
                   11273:            # Source tree
                   11274:            echo $srcdir/$f
                   11275:          else
                   11276:            # /dev/null tree
1.10    ! millert  11277:            { { echo "$as_me:11277: error: cannot find input file: $f" >&5
1.9       millert  11278: echo "$as_me: error: cannot find input file: $f" >&2;}
                   11279:    { (exit 1); exit 1; }; }
                   11280:          fi;;
                   11281:       esac
                   11282:     done` || { (exit 1); exit 1; }
                   11283:   # Remove the trailing spaces.
                   11284:   sed 's/[     ]*$//' $ac_file_inputs >$tmp/in
1.1       millert  11285:
                   11286: EOF
                   11287:
1.9       millert  11288: # Transform confdefs.h into two sed scripts, `conftest.defines' and
                   11289: # `conftest.undefs', that substitutes the proper values into
                   11290: # config.h.in to produce config.h.  The first handles `#define'
                   11291: # templates, and the second `#undef' templates.
                   11292: # And first: Protect against being on the right side of a sed subst in
                   11293: # config.status.  Protect against being in an unquoted here document
                   11294: # in config.status.
                   11295: rm -f conftest.defines conftest.undefs
                   11296: # Using a here document instead of a string reduces the quoting nightmare.
                   11297: # Putting comments in sed scripts is not portable.
                   11298: #
                   11299: # `end' is used to avoid that the second main sed command (meant for
                   11300: # 0-ary CPP macros) applies to n-ary macro definitions.
                   11301: # See the Autoconf documentation for `clear'.
                   11302: cat >confdef2sed.sed <<\EOF
                   11303: s/[\\&,]/\\&/g
                   11304: s,[\\$`],\\&,g
                   11305: t clear
                   11306: : clear
                   11307: s,^[   ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
                   11308: t end
                   11309: s,^[   ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
                   11310: : end
                   11311: EOF
                   11312: # If some macros were called several times there might be several times
                   11313: # the same #defines, which is useless.  Nevertheless, we may not want to
                   11314: # sort them, since we want the *last* AC-DEFINE to be honored.
                   11315: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
                   11316: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
                   11317: rm -f confdef2sed.sed
1.1       millert  11318:
                   11319: # This sed command replaces #undef with comments.  This is necessary, for
                   11320: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   11321: # on some systems where configure will not decide to define it.
1.9       millert  11322: cat >>conftest.undefs <<\EOF
                   11323: s,^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.1       millert  11324: EOF
                   11325:
1.9       millert  11326: # Break up conftest.defines because some shells have a limit on the size
                   11327: # of here documents, and old seds have small limits too (100 cmds).
                   11328: echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
                   11329: echo '  if egrep "^[   ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
                   11330: echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
                   11331: echo '  :' >>$CONFIG_STATUS
                   11332: rm -f conftest.tail
                   11333: while grep . conftest.defines >/dev/null
                   11334: do
                   11335:   # Write a limited-size here document to $tmp/defines.sed.
                   11336:   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
                   11337:   # Speed up: don't consider the non `#define' lines.
                   11338:   echo '/^[    ]*#[    ]*define/!b' >>$CONFIG_STATUS
                   11339:   # Work around the forget-to-reset-the-flag bug.
                   11340:   echo 't clr' >>$CONFIG_STATUS
                   11341:   echo ': clr' >>$CONFIG_STATUS
                   11342:   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
                   11343:   echo 'CEOF
                   11344:   sed -f $tmp/defines.sed $tmp/in >$tmp/out
                   11345:   rm -f $tmp/in
                   11346:   mv $tmp/out $tmp/in
                   11347: ' >>$CONFIG_STATUS
                   11348:   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
                   11349:   rm -f conftest.defines
                   11350:   mv conftest.tail conftest.defines
                   11351: done
                   11352: rm -f conftest.defines
                   11353: echo '  fi # egrep' >>$CONFIG_STATUS
                   11354: echo >>$CONFIG_STATUS
                   11355:
                   11356: # Break up conftest.undefs because some shells have a limit on the size
                   11357: # of here documents, and old seds have small limits too (100 cmds).
                   11358: echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
1.1       millert  11359: rm -f conftest.tail
1.9       millert  11360: while grep . conftest.undefs >/dev/null
1.1       millert  11361: do
1.9       millert  11362:   # Write a limited-size here document to $tmp/undefs.sed.
                   11363:   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
                   11364:   # Speed up: don't consider the non `#undef'
                   11365:   echo '/^[    ]*#[    ]*undef/!b' >>$CONFIG_STATUS
                   11366:   # Work around the forget-to-reset-the-flag bug.
                   11367:   echo 't clr' >>$CONFIG_STATUS
                   11368:   echo ': clr' >>$CONFIG_STATUS
                   11369:   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1       millert  11370:   echo 'CEOF
1.9       millert  11371:   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
                   11372:   rm -f $tmp/in
                   11373:   mv $tmp/out $tmp/in
                   11374: ' >>$CONFIG_STATUS
                   11375:   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
                   11376:   rm -f conftest.undefs
                   11377:   mv conftest.tail conftest.undefs
                   11378: done
                   11379: rm -f conftest.undefs
                   11380:
                   11381: cat >>$CONFIG_STATUS <<\EOF
                   11382:   # Let's still pretend it is `configure' which instantiates (i.e., don't
                   11383:   # use $as_me), people would be surprised to read:
                   11384:   #    /* config.h.  Generated automatically by config.status.  */
                   11385:   if test x"$ac_file" = x-; then
                   11386:     echo "/* Generated automatically by configure.  */" >$tmp/config.h
1.1       millert  11387:   else
1.9       millert  11388:     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
                   11389:   fi
                   11390:   cat $tmp/in >>$tmp/config.h
                   11391:   rm -f $tmp/in
                   11392:   if test x"$ac_file" != x-; then
                   11393:     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
1.10    ! millert  11394:       { echo "$as_me:11394: $ac_file is unchanged" >&5
1.9       millert  11395: echo "$as_me: $ac_file is unchanged" >&6;}
                   11396:     else
                   11397:       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   11398:          X"$ac_file" : 'X\(//\)[^/]' \| \
                   11399:          X"$ac_file" : 'X\(//\)$' \| \
                   11400:          X"$ac_file" : 'X\(/\)' \| \
                   11401:          .     : '\(.\)' 2>/dev/null ||
                   11402: echo X"$ac_file" |
                   11403:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
                   11404:          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
                   11405:          /^X\(\/\/\)$/{ s//\1/; q; }
                   11406:          /^X\(\/\).*/{ s//\1/; q; }
                   11407:          s/.*/./; q'`
1.1       millert  11408:       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1.9       millert  11409:         { case "$ac_dir" in
                   11410:   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
                   11411:   *)                      as_incr_dir=.;;
                   11412: esac
                   11413: as_dummy="$ac_dir"
                   11414: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
                   11415:   case $as_mkdir_dir in
                   11416:     # Skip DOS drivespec
                   11417:     ?:) as_incr_dir=$as_mkdir_dir ;;
                   11418:     *)
                   11419:       as_incr_dir=$as_incr_dir/$as_mkdir_dir
                   11420:       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
                   11421:     ;;
                   11422:   esac
                   11423: done; }
                   11424:
                   11425:       fi
                   11426:       rm -f $ac_file
                   11427:       mv $tmp/config.h $ac_file
1.1       millert  11428:     fi
1.9       millert  11429:   else
                   11430:     cat $tmp/config.h
                   11431:     rm -f $tmp/config.h
1.1       millert  11432:   fi
1.9       millert  11433: done
1.1       millert  11434: EOF
                   11435:
1.9       millert  11436: cat >>$CONFIG_STATUS <<\EOF
1.1       millert  11437:
1.9       millert  11438: { (exit 0); exit 0; }
1.1       millert  11439: EOF
                   11440: chmod +x $CONFIG_STATUS
1.9       millert  11441: ac_clean_files=$ac_clean_files_save
1.1       millert  11442:
1.9       millert  11443: # configure is writing to config.log, and then calls config.status.
                   11444: # config.status does its own redirection, appending to config.log.
                   11445: # Unfortunately, on DOS this fails, as config.log is still kept open
                   11446: # by configure, so config.status won't be able to write to it; its
                   11447: # output is simply discarded.  So we exec the FD to /dev/null,
                   11448: # effectively closing config.log, so it can be properly (re)opened and
                   11449: # appended to by config.status.  When coming back to configure, we
                   11450: # need to make the FD available again.
                   11451: if test "$no_create" != yes; then
                   11452:   ac_cs_success=:
                   11453:   exec 5>/dev/null
                   11454:   $SHELL $CONFIG_STATUS || ac_cs_success=false
                   11455:   exec 5>>config.log
                   11456:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   11457:   # would make configure fail if this is the last instruction.
                   11458:   $ac_cs_success || { (exit 1); exit 1; }
                   11459: fi
1.1       millert  11460:
                   11461: if test "$with_pam" = "yes"; then
                   11462:     echo ""
                   11463:     case $host in
                   11464:        *-*-linux*)
                   11465:            echo "You will need to customize sample.pam and install it as /etc/pam.d/sudo"
                   11466:            ;;
                   11467:     esac
                   11468:     echo ""
                   11469: fi
1.9       millert  11470: