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

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

1.1       millert     1: #! /bin/sh
                      2:
                      3: # Guess values for system-dependent variables and create Makefiles.
                      4: # Generated automatically using autoconf version 2.12
                      5: # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
                      6: #
                      7: # This configure script is free software; the Free Software Foundation
                      8: # gives unlimited permission to copy, distribute and modify it.
                      9:
                     10: # Defaults:
                     11: ac_help=
                     12: ac_default_prefix=/usr/local
                     13: # Any additions from configure.in:
                     14: ac_help="$ac_help
                     15:   --with-otp-only         deprecated"
                     16: ac_help="$ac_help
                     17:   --with-alertmail        deprecated"
                     18: ac_help="$ac_help
                     19:   --with-CC               C compiler to use"
                     20: ac_help="$ac_help
                     21:   --with-incpath          additional places to look for include files"
                     22: ac_help="$ac_help
                     23:   --with-libpath          additional places to look for libraries"
                     24: ac_help="$ac_help
                     25:   --with-libraries        additional libraries to link with"
                     26: ac_help="$ac_help
                     27:   --with-devel            add developement options"
                     28: ac_help="$ac_help
                     29:   --with-csops            add CSOps standard options"
                     30: ac_help="$ac_help
                     31:   --without-passwd        don't use passwd/shadow file for authentication"
                     32: ac_help="$ac_help
                     33:   --with-skey             enable S/Key support "
                     34: ac_help="$ac_help
                     35:   --with-opie             enable OPIE support "
                     36: ac_help="$ac_help
                     37:   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt"
                     38: ac_help="$ac_help
                     39:   --with-SecurID          enable SecurID support"
                     40: ac_help="$ac_help
                     41:   --with-fwtk             enable FWTK AuthSRV support"
                     42: ac_help="$ac_help
                     43:   --with-kerb4            enable kerberos v4 support"
                     44: ac_help="$ac_help
                     45:   --with-kerb5            enable kerberos v5 support"
                     46: ac_help="$ac_help
                     47:   --with-authenticate     enable AIX general authentication support"
                     48: ac_help="$ac_help
                     49:   --with-pam              enable PAM support"
                     50: ac_help="$ac_help
                     51:   --with-AFS              enable AFS support"
                     52: ac_help="$ac_help
                     53:   --with-DCE              enable DCE support"
                     54: ac_help="$ac_help
1.6     ! millert    55:   --with-logincap         enable login class support"
        !            56: ac_help="$ac_help
1.1       millert    57:   --without-lecture       don't print lecture for first-time sudoer"
                     58: ac_help="$ac_help
                     59:   --with-logging          log via syslog, file, or both"
                     60: ac_help="$ac_help
                     61:   --with-logfac           syslog facility to log with (default is local2)"
                     62: ac_help="$ac_help
                     63:   --with-goodpri          syslog priority for commands (def is notice)"
                     64: ac_help="$ac_help
                     65:   --with-badpri           syslog priority for failures (def is LOG_ALERT)"
                     66: ac_help="$ac_help
                     67:   --with-logpath          path to the sudo log file"
                     68: ac_help="$ac_help
                     69:   --with-loglen           maximum length of a log file line (default is 80)"
                     70: ac_help="$ac_help
                     71:   --with-ignore-dot       ignore '.' in the PATH"
                     72: ac_help="$ac_help
                     73:   --with-mailto           who should get sudo mail (default is "root")"
                     74: ac_help="$ac_help
                     75:   --with-mailsubject      subject of sudo mail"
                     76: ac_help="$ac_help
                     77:   --without-mail-if-no-user do not send mail if user not in sudoers"
                     78: ac_help="$ac_help
                     79:   --with-mail-if-no-host  send mail if user in sudoers but not for this host"
                     80: ac_help="$ac_help
                     81:   --with-mail-if-noperms  send mail if user not allowed to run command"
                     82: ac_help="$ac_help
                     83:   --with-passprompt       default password prompt"
                     84: ac_help="$ac_help
                     85:   --with-badpass-message  message the user sees when the password is wrong"
                     86: ac_help="$ac_help
                     87:   --with-fqdn             expect fully qualified hosts in sudoers"
                     88: ac_help="$ac_help
                     89:   --with-timedir          path to the sudo timestamp dir"
                     90: ac_help="$ac_help
                     91:   --with-sendmail=path    set path to sendmail
                     92:   --without-sendmail      do not send mail at all"
                     93: ac_help="$ac_help
                     94:   --with-sudoers-mode     mode of sudoers file (defaults to 0440)"
                     95: ac_help="$ac_help
                     96:   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)"
                     97: ac_help="$ac_help
                     98:   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)"
                     99: ac_help="$ac_help
                    100:   --with-umask            umask with which the prog should run (default is 0022)
                    101:   --without-umask         Preserves the umask of the user invoking sudo."
                    102: ac_help="$ac_help
                    103:   --with-runas-default    User to run commands as (default is "root""
                    104: ac_help="$ac_help
                    105:   --with-exempt=group     no passwd needed for users in this group"
                    106: ac_help="$ac_help
                    107:   --with-editor=path      Default editor for visudo (defaults to vi)"
                    108: ac_help="$ac_help
                    109:   --with-env-editor       Use the environment variable EDITOR for visudo"
                    110: ac_help="$ac_help
                    111:   --with-passwd-tries     number of tries to enter password (default is 3)"
                    112: ac_help="$ac_help
                    113:   --with-timeout          minutes before sudo asks for passwd again (def is 5)"
                    114: ac_help="$ac_help
                    115:   --with-password-timeout passwd prompt timeout in minutes (default is 5)"
                    116: ac_help="$ac_help
                    117:   --with-execv            use execv() instead of execvp()"
                    118: ac_help="$ac_help
                    119:   --with-tty-tickets      use a different ticket file for each tty"
                    120: ac_help="$ac_help
                    121:   --with-insults          insult the user for entering an incorrect password"
                    122: ac_help="$ac_help
                    123:   --with-all-insults      include all the sudo insult sets"
                    124: ac_help="$ac_help
                    125:   --with-classic-insults  include the insults from the "classic" sudo"
                    126: ac_help="$ac_help
                    127:   --with-csops-insults    include CSOps insults"
                    128: ac_help="$ac_help
                    129:   --with-hal-insults      include 2001-like insults"
                    130: ac_help="$ac_help
                    131:   --with-goons-insults    include the insults from the \"Goon Show\""
                    132: ac_help="$ac_help
                    133:   --with-secure-path      override the user's path with a builtin one"
                    134: ac_help="$ac_help
                    135:   --without-interfaces    don't try to read the ip addr of ether interfaces"
                    136: ac_help="$ac_help
                    137:   --disable-authentication
                    138:                           Do not require authentication by default"
                    139: ac_help="$ac_help
                    140:   --disable-shadow        Never use shadow passwords"
                    141: ac_help="$ac_help
                    142:   --disable-root-sudo     don't allow root to run sudo"
                    143: ac_help="$ac_help
                    144:   --enable-log-host       Log the hostname in the log file"
                    145: ac_help="$ac_help
                    146:   --enable-noargs-shell   If sudo is given no arguments run a shell"
                    147: ac_help="$ac_help
                    148:   --enable-shell-sets-home
                    149:                           set \$HOME to target user in shell mode"
                    150: ac_help="$ac_help
                    151:   --disable-path-info     Print 'command not allowed' not 'command not found'"
                    152: ac_help="$ac_help
                    153:   --disable-sia           Never use SIA on Digital UNIX"
                    154:
                    155: # Initialize some variables set by options.
                    156: # The variables have the same names as the options, with
                    157: # dashes changed to underlines.
                    158: build=NONE
                    159: cache_file=./config.cache
                    160: exec_prefix=NONE
                    161: host=NONE
                    162: no_create=
                    163: nonopt=NONE
                    164: no_recursion=
                    165: prefix=NONE
                    166: program_prefix=NONE
                    167: program_suffix=NONE
                    168: program_transform_name=s,x,x,
                    169: silent=
                    170: site=
                    171: srcdir=
                    172: target=NONE
                    173: verbose=
                    174: x_includes=NONE
                    175: x_libraries=NONE
                    176: bindir='${exec_prefix}/bin'
                    177: sbindir='${exec_prefix}/sbin'
                    178: libexecdir='${exec_prefix}/libexec'
                    179: datadir='${prefix}/share'
                    180: sysconfdir='${prefix}/etc'
                    181: sharedstatedir='${prefix}/com'
                    182: localstatedir='${prefix}/var'
                    183: libdir='${exec_prefix}/lib'
                    184: includedir='${prefix}/include'
                    185: oldincludedir='/usr/include'
                    186: infodir='${prefix}/info'
                    187: mandir='${prefix}/man'
                    188:
                    189: # Initialize some other variables.
                    190: subdirs=
                    191: MFLAGS= MAKEFLAGS=
                    192: # Maximum number of lines to put in a shell here document.
                    193: ac_max_here_lines=12
                    194:
                    195: ac_prev=
                    196: for ac_option
                    197: do
                    198:
                    199:   # If the previous option needs an argument, assign it.
                    200:   if test -n "$ac_prev"; then
                    201:     eval "$ac_prev=\$ac_option"
                    202:     ac_prev=
                    203:     continue
                    204:   fi
                    205:
                    206:   case "$ac_option" in
                    207:   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
                    208:   *) ac_optarg= ;;
                    209:   esac
                    210:
                    211:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    212:
                    213:   case "$ac_option" in
                    214:
                    215:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    216:     ac_prev=bindir ;;
                    217:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    218:     bindir="$ac_optarg" ;;
                    219:
                    220:   -build | --build | --buil | --bui | --bu)
                    221:     ac_prev=build ;;
                    222:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    223:     build="$ac_optarg" ;;
                    224:
                    225:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    226:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    227:     ac_prev=cache_file ;;
                    228:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    229:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    230:     cache_file="$ac_optarg" ;;
                    231:
                    232:   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
                    233:     ac_prev=datadir ;;
                    234:   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
                    235:   | --da=*)
                    236:     datadir="$ac_optarg" ;;
                    237:
                    238:   -disable-* | --disable-*)
                    239:     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
                    240:     # Reject names that are not valid shell variable names.
                    241:     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    242:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    243:     fi
                    244:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    245:     eval "enable_${ac_feature}=no" ;;
                    246:
                    247:   -enable-* | --enable-*)
                    248:     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
                    249:     # Reject names that are not valid shell variable names.
                    250:     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    251:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    252:     fi
                    253:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    254:     case "$ac_option" in
                    255:       *=*) ;;
                    256:       *) ac_optarg=yes ;;
                    257:     esac
                    258:     eval enable_${ac_feature}='$ac_optarg' ;;
                    259:
                    260:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    261:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    262:   | --exec | --exe | --ex)
                    263:     ac_prev=exec_prefix ;;
                    264:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    265:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    266:   | --exec=* | --exe=* | --ex=*)
                    267:     exec_prefix="$ac_optarg" ;;
                    268:
                    269:   -gas | --gas | --ga | --g)
                    270:     # Obsolete; use --with-gas.
                    271:     with_gas=yes ;;
                    272:
                    273:   -help | --help | --hel | --he)
                    274:     # Omit some internal or obsolete options to make the list less imposing.
                    275:     # This message is too long to be a string in the A/UX 3.1 sh.
                    276:     cat << EOF
                    277: Usage: configure [options] [host]
                    278: Options: [defaults in brackets after descriptions]
                    279: Configuration:
                    280:   --cache-file=FILE       cache test results in FILE
                    281:   --help                  print this message
                    282:   --no-create             do not create output files
                    283:   --quiet, --silent       do not print \`checking...' messages
                    284:   --version               print the version of autoconf that created configure
                    285: Directory and file names:
                    286:   --prefix=PREFIX         install architecture-independent files in PREFIX
                    287:                           [$ac_default_prefix]
                    288:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                    289:                           [same as prefix]
                    290:   --bindir=DIR            user executables in DIR [EPREFIX/bin]
                    291:   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
                    292:   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
                    293:   --datadir=DIR           read-only architecture-independent data in DIR
                    294:                           [PREFIX/share]
                    295:   --sysconfdir=DIR        read-only single-machine data in DIR [/etc]
                    296:   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                    297:                           [PREFIX/com]
                    298:   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
                    299:   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
                    300:   --includedir=DIR        C header files in DIR [PREFIX/include]
                    301:   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
                    302:   --infodir=DIR           info documentation in DIR [PREFIX/info]
                    303:   --mandir=DIR            man documentation in DIR [PREFIX/man]
                    304:   --srcdir=DIR            find the sources in DIR [configure dir or ..]
                    305:   --program-prefix=PREFIX prepend PREFIX to installed program names
                    306:   --program-suffix=SUFFIX append SUFFIX to installed program names
                    307:   --program-transform-name=PROGRAM
                    308:                           run sed PROGRAM on installed program names
                    309: EOF
                    310:     cat << EOF
                    311: Host type:
                    312:   --build=BUILD           configure for building on BUILD [BUILD=HOST]
                    313:   --host=HOST             configure for HOST [guessed]
                    314:   --target=TARGET         configure for TARGET [TARGET=HOST]
                    315: Features and packages:
                    316:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                    317:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                    318:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                    319:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                    320:   --x-includes=DIR        X include files are in DIR
                    321:   --x-libraries=DIR       X library files are in DIR
                    322: EOF
                    323:     if test -n "$ac_help"; then
                    324:       echo "--enable and --with options recognized:$ac_help"
                    325:     fi
                    326:     exit 0 ;;
                    327:
                    328:   -host | --host | --hos | --ho)
                    329:     ac_prev=host ;;
                    330:   -host=* | --host=* | --hos=* | --ho=*)
                    331:     host="$ac_optarg" ;;
                    332:
                    333:   -includedir | --includedir | --includedi | --included | --include \
                    334:   | --includ | --inclu | --incl | --inc)
                    335:     ac_prev=includedir ;;
                    336:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    337:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                    338:     includedir="$ac_optarg" ;;
                    339:
                    340:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                    341:     ac_prev=infodir ;;
                    342:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                    343:     infodir="$ac_optarg" ;;
                    344:
                    345:   -libdir | --libdir | --libdi | --libd)
                    346:     ac_prev=libdir ;;
                    347:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                    348:     libdir="$ac_optarg" ;;
                    349:
                    350:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                    351:   | --libexe | --libex | --libe)
                    352:     ac_prev=libexecdir ;;
                    353:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                    354:   | --libexe=* | --libex=* | --libe=*)
                    355:     libexecdir="$ac_optarg" ;;
                    356:
                    357:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                    358:   | --localstate | --localstat | --localsta | --localst \
                    359:   | --locals | --local | --loca | --loc | --lo)
                    360:     ac_prev=localstatedir ;;
                    361:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                    362:   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
                    363:   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
                    364:     localstatedir="$ac_optarg" ;;
                    365:
                    366:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                    367:     ac_prev=mandir ;;
                    368:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                    369:     mandir="$ac_optarg" ;;
                    370:
                    371:   -nfp | --nfp | --nf)
                    372:     # Obsolete; use --without-fp.
                    373:     with_fp=no ;;
                    374:
                    375:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    376:   | --no-cr | --no-c)
                    377:     no_create=yes ;;
                    378:
                    379:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    380:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                    381:     no_recursion=yes ;;
                    382:
                    383:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                    384:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                    385:   | --oldin | --oldi | --old | --ol | --o)
                    386:     ac_prev=oldincludedir ;;
                    387:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                    388:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                    389:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                    390:     oldincludedir="$ac_optarg" ;;
                    391:
                    392:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    393:     ac_prev=prefix ;;
                    394:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                    395:     prefix="$ac_optarg" ;;
                    396:
                    397:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                    398:   | --program-pre | --program-pr | --program-p)
                    399:     ac_prev=program_prefix ;;
                    400:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                    401:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                    402:     program_prefix="$ac_optarg" ;;
                    403:
                    404:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                    405:   | --program-suf | --program-su | --program-s)
                    406:     ac_prev=program_suffix ;;
                    407:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                    408:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                    409:     program_suffix="$ac_optarg" ;;
                    410:
                    411:   -program-transform-name | --program-transform-name \
                    412:   | --program-transform-nam | --program-transform-na \
                    413:   | --program-transform-n | --program-transform- \
                    414:   | --program-transform | --program-transfor \
                    415:   | --program-transfo | --program-transf \
                    416:   | --program-trans | --program-tran \
                    417:   | --progr-tra | --program-tr | --program-t)
                    418:     ac_prev=program_transform_name ;;
                    419:   -program-transform-name=* | --program-transform-name=* \
                    420:   | --program-transform-nam=* | --program-transform-na=* \
                    421:   | --program-transform-n=* | --program-transform-=* \
                    422:   | --program-transform=* | --program-transfor=* \
                    423:   | --program-transfo=* | --program-transf=* \
                    424:   | --program-trans=* | --program-tran=* \
                    425:   | --progr-tra=* | --program-tr=* | --program-t=*)
                    426:     program_transform_name="$ac_optarg" ;;
                    427:
                    428:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                    429:   | -silent | --silent | --silen | --sile | --sil)
                    430:     silent=yes ;;
                    431:
                    432:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                    433:     ac_prev=sbindir ;;
                    434:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                    435:   | --sbi=* | --sb=*)
                    436:     sbindir="$ac_optarg" ;;
                    437:
                    438:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                    439:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                    440:   | --sharedst | --shareds | --shared | --share | --shar \
                    441:   | --sha | --sh)
                    442:     ac_prev=sharedstatedir ;;
                    443:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                    444:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                    445:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                    446:   | --sha=* | --sh=*)
                    447:     sharedstatedir="$ac_optarg" ;;
                    448:
                    449:   -site | --site | --sit)
                    450:     ac_prev=site ;;
                    451:   -site=* | --site=* | --sit=*)
                    452:     site="$ac_optarg" ;;
                    453:
                    454:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                    455:     ac_prev=srcdir ;;
                    456:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                    457:     srcdir="$ac_optarg" ;;
                    458:
                    459:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                    460:   | --syscon | --sysco | --sysc | --sys | --sy)
                    461:     ac_prev=sysconfdir ;;
                    462:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                    463:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                    464:     sysconfdir="$ac_optarg" ;;
                    465:
                    466:   -target | --target | --targe | --targ | --tar | --ta | --t)
                    467:     ac_prev=target ;;
                    468:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                    469:     target="$ac_optarg" ;;
                    470:
                    471:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                    472:     verbose=yes ;;
                    473:
                    474:   -version | --version | --versio | --versi | --vers)
                    475:     echo "configure generated by autoconf version 2.12"
                    476:     exit 0 ;;
                    477:
                    478:   -with-* | --with-*)
                    479:     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
                    480:     # Reject names that are not valid shell variable names.
                    481:     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    482:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    483:     fi
                    484:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    485:     case "$ac_option" in
                    486:       *=*) ;;
                    487:       *) ac_optarg=yes ;;
                    488:     esac
                    489:     eval with_${ac_package}='$ac_optarg' ;;
                    490:
                    491:   -without-* | --without-*)
                    492:     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
                    493:     # Reject names that are not valid shell variable names.
                    494:     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    495:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    496:     fi
                    497:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    498:     eval "with_${ac_package}=no" ;;
                    499:
                    500:   --x)
                    501:     # Obsolete; use --with-x.
                    502:     with_x=yes ;;
                    503:
                    504:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                    505:   | --x-incl | --x-inc | --x-in | --x-i)
                    506:     ac_prev=x_includes ;;
                    507:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                    508:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                    509:     x_includes="$ac_optarg" ;;
                    510:
                    511:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                    512:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                    513:     ac_prev=x_libraries ;;
                    514:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                    515:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                    516:     x_libraries="$ac_optarg" ;;
                    517:
                    518:   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
                    519:     ;;
                    520:
                    521:   *)
                    522:     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
                    523:       echo "configure: warning: $ac_option: invalid host type" 1>&2
                    524:     fi
                    525:     if test "x$nonopt" != xNONE; then
                    526:       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
                    527:     fi
                    528:     nonopt="$ac_option"
                    529:     ;;
                    530:
                    531:   esac
                    532: done
                    533:
                    534: if test -n "$ac_prev"; then
                    535:   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
                    536: fi
                    537:
                    538: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                    539:
                    540: # File descriptor usage:
                    541: # 0 standard input
                    542: # 1 file creation
                    543: # 2 errors and warnings
                    544: # 3 some systems may open it to /dev/tty
                    545: # 4 used on the Kubota Titan
                    546: # 6 checking for... messages and results
                    547: # 5 compiler messages saved in config.log
                    548: if test "$silent" = yes; then
                    549:   exec 6>/dev/null
                    550: else
                    551:   exec 6>&1
                    552: fi
                    553: exec 5>./config.log
                    554:
                    555: echo "\
                    556: This file contains any messages produced by compilers while
                    557: running configure, to aid debugging if configure makes a mistake.
                    558: " 1>&5
                    559:
                    560: # Strip out --no-create and --no-recursion so they do not pile up.
                    561: # Also quote any args containing shell metacharacters.
                    562: ac_configure_args=
                    563: for ac_arg
                    564: do
                    565:   case "$ac_arg" in
                    566:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    567:   | --no-cr | --no-c) ;;
                    568:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    569:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
                    570:   *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
                    571:   ac_configure_args="$ac_configure_args \"$ac_arg\"" ;;
                    572:   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
                    573:   esac
                    574: done
                    575:
                    576: # NLS nuisances.
                    577: # Only set these to C if already set.  These must not be set unconditionally
                    578: # because not all systems understand e.g. LANG=C (notably SCO).
                    579: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
                    580: # Non-C LC_CTYPE values break the ctype check.
                    581: if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
                    582: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
                    583: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
                    584: if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
                    585:
                    586: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                    587: rm -rf conftest* confdefs.h
                    588: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
                    589: echo > confdefs.h
                    590:
                    591: # A filename unique to this package, relative to the directory that
                    592: # configure is in, which we can look for to find out if srcdir is correct.
                    593: ac_unique_file=sudo.h
                    594:
                    595: # Find the source files, if location was not specified.
                    596: if test -z "$srcdir"; then
                    597:   ac_srcdir_defaulted=yes
                    598:   # Try the directory containing this script, then its parent.
                    599:   ac_prog=$0
                    600:   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
                    601:   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
                    602:   srcdir=$ac_confdir
                    603:   if test ! -r $srcdir/$ac_unique_file; then
                    604:     srcdir=..
                    605:   fi
                    606: else
                    607:   ac_srcdir_defaulted=no
                    608: fi
                    609: if test ! -r $srcdir/$ac_unique_file; then
                    610:   if test "$ac_srcdir_defaulted" = yes; then
                    611:     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
                    612:   else
                    613:     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
                    614:   fi
                    615: fi
                    616: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
                    617:
                    618: # Prefer explicitly selected file to automatically selected ones.
                    619: if test -z "$CONFIG_SITE"; then
                    620:   if test "x$prefix" != xNONE; then
                    621:     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
                    622:   else
                    623:     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
                    624:   fi
                    625: fi
                    626: for ac_site_file in $CONFIG_SITE; do
                    627:   if test -r "$ac_site_file"; then
                    628:     echo "loading site script $ac_site_file"
                    629:     . "$ac_site_file"
                    630:   fi
                    631: done
                    632:
                    633: if test -r "$cache_file"; then
                    634:   echo "loading cache $cache_file"
                    635:   . $cache_file
                    636: else
                    637:   echo "creating cache $cache_file"
                    638:   > $cache_file
                    639: fi
                    640:
                    641: ac_ext=c
                    642: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    643: ac_cpp='$CPP $CPPFLAGS'
                    644: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                    645: ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                    646: cross_compiling=$ac_cv_prog_cc_cross
                    647:
                    648: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
                    649:   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
                    650:   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
                    651:     ac_n= ac_c='
                    652: ' ac_t='       '
                    653:   else
                    654:     ac_n=-n ac_c= ac_t=
                    655:   fi
                    656: else
                    657:   ac_n= ac_c='\c' ac_t=
                    658: fi
                    659:
                    660:
                    661:
1.6     ! millert   662: echo "Configuring Sudo version 1.6.3"
        !           663:
        !           664:
        !           665:
        !           666:
        !           667:
1.1       millert   668: PROGS="sudo visudo"
1.6     ! millert   669: test -n "$MANTYPE" || MANTYPE="man"
        !           670: test -n "$mansrcdir" || mansrcdir="."
        !           671: test -n "$SUDOERS_MODE" || SUDOERS_MODE=0440
        !           672: test -n "$SUDOERS_UID" || SUDOERS_UID=0
        !           673: test -n "$SUDOERS_GID" || SUDOERS_GID=0
1.1       millert   674: DEV="#"
                    675:
                    676: CHECKSHADOW=true
                    677: CHECKSIA=true
                    678:
                    679: test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
                    680: test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
                    681: test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
                    682: test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
                    683:
                    684:
                    685: # Check whether --with-otp-only or --without-otp-only was given.
                    686: if test "${with_otp_only+set}" = set; then
                    687:   withval="$with_otp_only"
                    688:   case $with_otp_only in
                    689:     yes)       with_passwd=no
                    690:                cat >> confdefs.h <<\EOF
                    691: #define WITHOUT_PASSWD 1
                    692: EOF
                    693:
                    694:                echo "configure: warning: --with-otp-only option deprecated, treating as --without-passwd" 1>&2
                    695:                ;;
                    696: esac
                    697: fi
                    698:
                    699:
                    700: # Check whether --with-alertmail or --without-alertmail was given.
                    701: if test "${with_alertmail+set}" = set; then
                    702:   withval="$with_alertmail"
                    703:   case $with_alertmail in
                    704:     *)         with_mailto="$with_alertmail"
                    705:                cat >> confdefs.h <<\EOF
                    706: #define WITHOUT_PASSWD 1
                    707: EOF
                    708:
                    709:                echo "configure: warning: --with-alertmail option deprecated, treating as --mailto" 1>&2
                    710:                ;;
                    711: esac
                    712: fi
                    713:
                    714:
                    715:
                    716: # Check whether --with-CC or --without-CC was given.
                    717: if test "${with_CC+set}" = set; then
                    718:   withval="$with_CC"
                    719:   case $with_CC in
                    720:     yes)       { echo "configure: error: "must give --with-CC an argument."" 1>&2; exit 1; }
                    721:                ;;
                    722:     no)                { echo "configure: error: "illegal argument: --without-CC."" 1>&2; exit 1; }
                    723:                ;;
                    724:     *)         CC=$with_CC
                    725:                ;;
                    726: esac
                    727: fi
                    728:
                    729:
                    730: # Check whether --with-incpath or --without-incpath was given.
                    731: if test "${with_incpath+set}" = set; then
                    732:   withval="$with_incpath"
                    733:   case $with_incpath in
                    734:     yes)       { echo "configure: error: "must give --with-incpath an argument."" 1>&2; exit 1; }
                    735:                ;;
                    736:     no)                { echo "configure: error: "--without-incpath not supported."" 1>&2; exit 1; }
                    737:                ;;
                    738:     *)         echo "Adding ${with_incpath} to CPPFLAGS"
                    739:                for i in ${with_incpath}; do
                    740:                    CPPFLAGS="${CPPFLAGS} -I${i}"
                    741:                done
                    742:                ;;
                    743: esac
                    744: fi
                    745:
                    746:
                    747: # Check whether --with-libpath or --without-libpath was given.
                    748: if test "${with_libpath+set}" = set; then
                    749:   withval="$with_libpath"
                    750:   case $with_libpath in
                    751:     yes)       { echo "configure: error: "must give --with-libpath an argument."" 1>&2; exit 1; }
                    752:                ;;
                    753:     no)                { echo "configure: error: "--without-libpath not supported."" 1>&2; exit 1; }
                    754:                ;;
                    755:     *)         echo "Adding ${with_libpath} to LDFLAGS"
                    756:                for i in ${with_libpath}; do
                    757:                    LDFLAGS="${LDFLAGS} -L${i}"
                    758:                done
                    759:                ;;
                    760: esac
                    761: fi
                    762:
                    763:
                    764: # Check whether --with-libraries or --without-libraries was given.
                    765: if test "${with_libraries+set}" = set; then
                    766:   withval="$with_libraries"
                    767:   case $with_libraries in
                    768:     yes)       { echo "configure: error: "must give --with-libraries an argument."" 1>&2; exit 1; }
                    769:                ;;
                    770:     no)                { echo "configure: error: "--without-libraries not supported."" 1>&2; exit 1; }
                    771:                ;;
                    772:     *)         echo "Adding ${with_libraries} to LIBS"
                    773:                for i in ${with_libraries}; do
                    774:                    case $i in
                    775:                        -l*)    ;;
                    776:                        *.a)    ;;
                    777:                        *.o)    ;;
                    778:                        *)      i="-l${i}";;
                    779:                    esac
                    780:                    LIBS="${LIBS} ${i}"
                    781:                done
                    782:                ;;
                    783: esac
                    784: fi
                    785:
                    786:
                    787: # Check whether --with-devel or --without-devel was given.
                    788: if test "${with_devel+set}" = set; then
                    789:   withval="$with_devel"
                    790:   case $with_devel in
                    791:     yes)       echo 'Setting up for developement: -Wall, flex, yacc'
                    792:                PROGS="${PROGS} testsudoers"
                    793:                OSDEFS="${OSDEFS} -DSUDO_DEVEL"
                    794:                DEV=""
                    795:                ;;
                    796:     no)                ;;
1.6     ! millert   797:     *)         echo "Ignoring unknown argument to --with-devel: $with_devel"
1.1       millert   798:                ;;
                    799: esac
                    800: fi
                    801:
                    802:
                    803: # Check whether --with-csops or --without-csops was given.
                    804: if test "${with_csops+set}" = set; then
                    805:   withval="$with_csops"
                    806:   case $with_csops in
                    807:     yes)       echo 'Adding CSOps standard options'
                    808:                CHECKSIA=false
                    809:                with_ignore_dot=yes
                    810:                with_insults=yes
                    811:                with_classic_insults=yes
                    812:                with_csops_insults=yes
                    813:                with_env_editor=yes
                    814:                ;;
                    815:     no)                ;;
                    816:     *)         echo "Ignoring unknown argument to --with-csops: $with_csops"
                    817:                ;;
                    818: esac
                    819: fi
                    820:
                    821:
                    822: # Check whether --with-passwd or --without-passwd was given.
                    823: if test "${with_passwd+set}" = set; then
                    824:   withval="$with_passwd"
                    825:   case $with_passwd in
                    826:     yes)       ;;
                    827:     no)                cat >> confdefs.h <<\EOF
                    828: #define WITHOUT_PASSWD 1
                    829: EOF
                    830:
                    831:                echo $ac_n "checking whether to use shadow/passwd file authentication""... $ac_c" 1>&6
1.6     ! millert   832: echo "configure:833: checking whether to use shadow/passwd file authentication" >&5
1.1       millert   833:                echo "$ac_t""no" 1>&6
                    834:                ;;
                    835:     *)         { echo "configure: error: "Sorry, --with-passwd does not take an argument."" 1>&2; exit 1; }
                    836:                ;;
                    837: esac
                    838: fi
                    839:
                    840:
                    841: # Check whether --with-skey or --without-skey was given.
                    842: if test "${with_skey+set}" = set; then
                    843:   withval="$with_skey"
                    844:   case $with_skey in
                    845:     yes)       if test -n "$with_opie"; then
                    846:                    { echo "configure: error: "cannot use both S/Key and OPIE"" 1>&2; exit 1; }
                    847:                fi
                    848:                cat >> confdefs.h <<\EOF
                    849: #define HAVE_SKEY 1
                    850: EOF
                    851:
                    852:                echo $ac_n "checking whether to try S/Key authentication""... $ac_c" 1>&6
1.6     ! millert   853: echo "configure:854: checking whether to try S/Key authentication" >&5
1.1       millert   854:                echo "$ac_t""yes" 1>&6
                    855:                AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
                    856:                ;;
                    857:     no)                ;;
                    858:     *)         echo "Ignoring unknown argument to --with-skey: $with_skey"
                    859:                ;;
                    860: esac
                    861: fi
                    862:
                    863:
                    864: # Check whether --with-opie or --without-opie was given.
                    865: if test "${with_opie+set}" = set; then
                    866:   withval="$with_opie"
                    867:   case $with_opie in
                    868:     yes)       if test -n "$with_skey"; then
                    869:                    { echo "configure: error: "cannot use both S/Key and OPIE"" 1>&2; exit 1; }
                    870:                fi
                    871:                cat >> confdefs.h <<\EOF
                    872: #define HAVE_OPIE 1
                    873: EOF
                    874:
                    875:                echo $ac_n "checking whether to try NRL OPIE authentication""... $ac_c" 1>&6
1.6     ! millert   876: echo "configure:877: checking whether to try NRL OPIE authentication" >&5
1.1       millert   877:                echo "$ac_t""yes" 1>&6
                    878:                AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
                    879:                ;;
                    880:     no)                ;;
                    881:     *)         echo "Ignoring unknown argument to --with-opie: $with_opie"
                    882:                ;;
                    883: esac
                    884: fi
                    885:
                    886:
                    887: # Check whether --with-long-otp-prompt or --without-long-otp-prompt was given.
                    888: if test "${with_long_otp_prompt+set}" = set; then
                    889:   withval="$with_long_otp_prompt"
                    890:   case $with_long_otp_prompt in
                    891:     yes)       cat >> confdefs.h <<\EOF
                    892: #define LONG_OTP_PROMPT 1
                    893: EOF
                    894:
                    895:                echo $ac_n "checking whether to use a two line prompt for OTP authentication""... $ac_c" 1>&6
1.6     ! millert   896: echo "configure:897: checking whether to use a two line prompt for OTP authentication" >&5
1.1       millert   897:                echo "$ac_t""yes" 1>&6
                    898:                ;;
                    899:     no)                ;;
                    900:     *)         { echo "configure: error: "--with-long-otp-prompt does not take an argument."" 1>&2; exit 1; }
                    901:                ;;
                    902: esac
                    903: fi
                    904:
                    905:
                    906: # Check whether --with-SecurID or --without-SecurID was given.
                    907: if test "${with_SecurID+set}" = set; then
                    908:   withval="$with_SecurID"
                    909:   case $with_SecurID in
                    910:     no)                ;;
                    911:     *)         cat >> confdefs.h <<\EOF
                    912: #define HAVE_SECURID 1
                    913: EOF
                    914:
                    915:                echo $ac_n "checking whether to use SecurID for authentication""... $ac_c" 1>&6
1.6     ! millert   916: echo "configure:917: checking whether to use SecurID for authentication" >&5
1.1       millert   917:                echo "$ac_t""yes" 1>&6
                    918:                with_passwd=no
                    919:                AUTH_OBJS="securid.o"
                    920:                ;;
                    921: esac
                    922: fi
                    923:
                    924:
                    925: # Check whether --with-fwtk or --without-fwtk was given.
                    926: if test "${with_fwtk+set}" = set; then
                    927:   withval="$with_fwtk"
                    928:   case $with_fwtk in
                    929:     yes)       cat >> confdefs.h <<\EOF
                    930: #define HAVE_FWTK 1
                    931: EOF
                    932:
                    933:                echo $ac_n "checking whether to use FWTK AuthSRV for authentication""... $ac_c" 1>&6
1.6     ! millert   934: echo "configure:935: checking whether to use FWTK AuthSRV for authentication" >&5
1.1       millert   935:                echo "$ac_t""yes" 1>&6
                    936:                with_passwd=no
                    937:                AUTH_OBJS="fwtk.o"
                    938:                ;;
                    939:     no)                ;;
                    940:     *)         cat >> confdefs.h <<\EOF
                    941: #define HAVE_FWTK 1
                    942: EOF
                    943:
                    944:                echo $ac_n "checking whether to use FWTK AuthSRV for authentication""... $ac_c" 1>&6
1.6     ! millert   945: echo "configure:946: checking whether to use FWTK AuthSRV for authentication" >&5
1.1       millert   946:                echo "$ac_t""yes" 1>&6
                    947:                SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
                    948:                CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
                    949:                with_passwd=no
                    950:                AUTH_OBJS="fwtk.o"
                    951:                with_fwtk=yes
                    952:                ;;
                    953: esac
                    954: fi
                    955:
                    956:
                    957: # Check whether --with-kerb4 or --without-kerb4 was given.
                    958: if test "${with_kerb4+set}" = set; then
                    959:   withval="$with_kerb4"
                    960:   case $with_kerb4 in
                    961:     yes)       echo $ac_n "checking whether to try Kerberos 4 authentication""... $ac_c" 1>&6
1.6     ! millert   962: echo "configure:963: checking whether to try Kerberos 4 authentication" >&5
1.1       millert   963:                echo "$ac_t""yes" 1>&6
                    964:                ;;
                    965:     no)                ;;
                    966:     *)         { echo "configure: error: "--with-kerb4 does not take an argument."" 1>&2; exit 1; }
                    967:                ;;
                    968: esac
                    969: fi
                    970:
                    971:
                    972: # Check whether --with-kerb5 or --without-kerb5 was given.
                    973: if test "${with_kerb5+set}" = set; then
                    974:   withval="$with_kerb5"
                    975:   case $with_kerb5 in
                    976:     yes)       echo $ac_n "checking whether to try Kerberos 5 authentication""... $ac_c" 1>&6
1.6     ! millert   977: echo "configure:978: checking whether to try Kerberos 5 authentication" >&5
1.1       millert   978:                echo "$ac_t""yes" 1>&6
                    979:                ;;
                    980:     no)                ;;
                    981:     *)         { echo "configure: error: "--with-kerb5 does not take an argument."" 1>&2; exit 1; }
                    982:                ;;
                    983: esac
                    984: fi
                    985:
                    986:
                    987: # Check whether --with-authenticate or --without-authenticate was given.
                    988: if test "${with_authenticate+set}" = set; then
                    989:   withval="$with_authenticate"
                    990:   case $with_authenticate in
                    991:     yes)       cat >> confdefs.h <<\EOF
                    992: #define HAVE_AUTHENTICATE 1
                    993: EOF
                    994:
                    995:                echo $ac_n "checking whether to use AIX general authentication""... $ac_c" 1>&6
1.6     ! millert   996: echo "configure:997: checking whether to use AIX general authentication" >&5
1.1       millert   997:                echo "$ac_t""yes" 1>&6
                    998:                with_passwd=no
                    999:                AUTH_OBJS="aix_auth.o"
                   1000:                ;;
                   1001:     no)                ;;
                   1002:     *)         { echo "configure: error: "--with-authenticate does not take an argument."" 1>&2; exit 1; }
                   1003:                ;;
                   1004: esac
                   1005: fi
                   1006:
                   1007:
                   1008: # Check whether --with-pam or --without-pam was given.
                   1009: if test "${with_pam+set}" = set; then
                   1010:   withval="$with_pam"
                   1011:   case $with_pam in
                   1012:     yes)       cat >> confdefs.h <<\EOF
                   1013: #define HAVE_PAM 1
                   1014: EOF
                   1015:
                   1016:                echo $ac_n "checking whether to use PAM authentication""... $ac_c" 1>&6
1.6     ! millert  1017: echo "configure:1018: checking whether to use PAM authentication" >&5
1.1       millert  1018:                echo "$ac_t""yes" 1>&6
                   1019:                with_passwd=no
                   1020:                AUTH_OBJS="pam.o"
                   1021:                ;;
                   1022:     no)                ;;
                   1023:     *)         { echo "configure: error: "--with-pam does not take an argument."" 1>&2; exit 1; }
                   1024:                ;;
                   1025: esac
                   1026: fi
                   1027:
                   1028:
                   1029: # Check whether --with-AFS or --without-AFS was given.
                   1030: if test "${with_AFS+set}" = set; then
                   1031:   withval="$with_AFS"
                   1032:   case $with_AFS in
                   1033:     yes)       cat >> confdefs.h <<\EOF
                   1034: #define HAVE_AFS 1
                   1035: EOF
                   1036:
                   1037:                echo $ac_n "checking whether to try AFS (kerberos) authentication""... $ac_c" 1>&6
1.6     ! millert  1038: echo "configure:1039: checking whether to try AFS (kerberos) authentication" >&5
1.1       millert  1039:                echo "$ac_t""yes" 1>&6
                   1040:                AUTH_OBJS="${AUTH_OBJS} afs.o"
                   1041:                ;;
                   1042:     no)                ;;
                   1043:     *)         { echo "configure: error: "--with-AFS does not take an argument."" 1>&2; exit 1; }
                   1044:                ;;
                   1045: esac
                   1046: fi
                   1047:
                   1048:
                   1049: # Check whether --with-DCE or --without-DCE was given.
                   1050: if test "${with_DCE+set}" = set; then
                   1051:   withval="$with_DCE"
                   1052:   case $with_DCE in
                   1053:     yes)       cat >> confdefs.h <<\EOF
                   1054: #define HAVE_DCE 1
                   1055: EOF
                   1056:
                   1057:                echo $ac_n "checking whether to try DCE (kerberos) authentication""... $ac_c" 1>&6
1.6     ! millert  1058: echo "configure:1059: checking whether to try DCE (kerberos) authentication" >&5
1.1       millert  1059:                echo "$ac_t""yes" 1>&6
                   1060:                AUTH_OBJS="${AUTH_OBJS} dce.o"
                   1061:                ;;
                   1062:     no)                ;;
                   1063:     *)         { echo "configure: error: "--with-DCE does not take an argument."" 1>&2; exit 1; }
                   1064:                ;;
                   1065: esac
                   1066: fi
                   1067:
                   1068:
1.6     ! millert  1069: # Check whether --with-logincap or --without-logincap was given.
        !          1070: if test "${with_logincap+set}" = set; then
        !          1071:   withval="$with_logincap"
        !          1072:   case $with_logincap in
        !          1073:     yes)       cat >> confdefs.h <<\EOF
        !          1074: #define HAVE_LOGINCAP 1
        !          1075: EOF
        !          1076:
        !          1077:                echo $ac_n "checking whether to try BSD login capabilities database""... $ac_c" 1>&6
        !          1078: echo "configure:1079: checking whether to try BSD login capabilities database" >&5
        !          1079:                echo "$ac_t""yes" 1>&6
        !          1080:                ;;
        !          1081:     no)                ;;
        !          1082:     *)         { echo "configure: error: "--with-logincap does not take an argument."" 1>&2; exit 1; }
        !          1083:                ;;
        !          1084: esac
        !          1085: fi
        !          1086:
        !          1087:
1.1       millert  1088: echo $ac_n "checking whether to lecture users the first time they run sudo""... $ac_c" 1>&6
1.6     ! millert  1089: echo "configure:1090: checking whether to lecture users the first time they run sudo" >&5
1.1       millert  1090: # Check whether --with-lecture or --without-lecture was given.
                   1091: if test "${with_lecture+set}" = set; then
                   1092:   withval="$with_lecture"
                   1093:   case $with_lecture in
                   1094:     yes|short) echo "$ac_t""yes" 1>&6
                   1095:                ;;
                   1096:     no|none)   cat >> confdefs.h <<\EOF
                   1097: #define NO_LECTURE 1
                   1098: EOF
                   1099:
                   1100:                echo "$ac_t""no" 1>&6
                   1101:                ;;
                   1102:     *)         { echo "configure: error: "unknown argument to --with-lecture: $with_lecture"" 1>&2; exit 1; }
                   1103:                ;;
                   1104: esac
                   1105: else
                   1106:   echo "$ac_t""yes" 1>&6
                   1107: fi
                   1108:
                   1109:
                   1110: echo $ac_n "checking whether sudo should log via syslog or to a file by default""... $ac_c" 1>&6
1.6     ! millert  1111: echo "configure:1112: checking whether sudo should log via syslog or to a file by default" >&5
1.1       millert  1112: # Check whether --with-logging or --without-logging was given.
                   1113: if test "${with_logging+set}" = set; then
                   1114:   withval="$with_logging"
                   1115:   case $with_logging in
                   1116:     yes)       { echo "configure: error: "must give --with-logging an argument."" 1>&2; exit 1; }
                   1117:                ;;
                   1118:     no)                { echo "configure: error: "--without-logging not supported."" 1>&2; exit 1; }
                   1119:                ;;
                   1120:     syslog)    cat >> confdefs.h <<\EOF
                   1121: #define LOGGING SLOG_SYSLOG
                   1122: EOF
                   1123:
                   1124:                echo "$ac_t""syslog" 1>&6
                   1125:                ;;
                   1126:     file)      cat >> confdefs.h <<\EOF
                   1127: #define LOGGING SLOG_FILE
                   1128: EOF
                   1129:
                   1130:                echo "$ac_t""file" 1>&6
                   1131:                ;;
                   1132:     both)      cat >> confdefs.h <<\EOF
                   1133: #define LOGGING SLOG_BOTH
                   1134: EOF
                   1135:
                   1136:                echo "$ac_t""both" 1>&6
                   1137:                ;;
                   1138:     *)         { echo "configure: error: "unknown argument to --with-logging: $with_logging"" 1>&2; exit 1; }
                   1139:                ;;
                   1140: esac
                   1141: else
                   1142:   cat >> confdefs.h <<\EOF
                   1143: #define LOGGING SLOG_SYSLOG
                   1144: EOF
                   1145:  echo "$ac_t""syslog" 1>&6
                   1146: fi
                   1147:
                   1148:
                   1149: echo $ac_n "checking which syslog facility sudo should log with""... $ac_c" 1>&6
1.6     ! millert  1150: echo "configure:1151: checking which syslog facility sudo should log with" >&5
1.1       millert  1151: # Check whether --with-logfac or --without-logfac was given.
                   1152: if test "${with_logfac+set}" = set; then
                   1153:   withval="$with_logfac"
                   1154:   case $with_logfac in
                   1155:     yes)       { echo "configure: error: "must give --with-logfac an argument."" 1>&2; exit 1; }
                   1156:                ;;
                   1157:     no)                { echo "configure: error: "--without-logfac not supported."" 1>&2; exit 1; }
                   1158:                ;;
                   1159:     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)         cat >> confdefs.h <<EOF
                   1160: #define LOGFAC "$with_logfac"
                   1161: EOF
                   1162:
                   1163:                echo "$ac_t""$with_logfac" 1>&6
                   1164:                ;;
                   1165:     *)         { echo "configure: error: "$with_logfac is not a supported syslog facility."" 1>&2; exit 1; }
                   1166:                ;;
                   1167: esac
                   1168: else
                   1169:   cat >> confdefs.h <<EOF
                   1170: #define LOGFAC "local2"
                   1171: EOF
                   1172:  echo "$ac_t"""local2"" 1>&6
                   1173: fi
                   1174:
                   1175:
                   1176: echo $ac_n "checking at which syslog priority to log commands""... $ac_c" 1>&6
1.6     ! millert  1177: echo "configure:1178: checking at which syslog priority to log commands" >&5
1.1       millert  1178: # Check whether --with-goodpri or --without-goodpri was given.
                   1179: if test "${with_goodpri+set}" = set; then
                   1180:   withval="$with_goodpri"
                   1181:   case $with_goodpri in
                   1182:     yes)       { echo "configure: error: "must give --with-goodpri an argument."" 1>&2; exit 1; }
                   1183:                ;;
                   1184:     no)                { echo "configure: error: "--without-goodpri not supported."" 1>&2; exit 1; }
                   1185:                ;;
                   1186:     alert|crit|debug|emerg|err|info|notice|warning)            cat >> confdefs.h <<EOF
                   1187: #define PRI_SUCCESS "$with_goodpri"
                   1188: EOF
                   1189:
                   1190:                echo "$ac_t""$with_goodpri" 1>&6
                   1191:                ;;
                   1192:     *)         { echo "configure: error: "$with_goodpri is not a supported syslog priority."" 1>&2; exit 1; }
                   1193:                ;;
                   1194: esac
                   1195: else
                   1196:   cat >> confdefs.h <<EOF
                   1197: #define PRI_SUCCESS "notice"
                   1198: EOF
                   1199:  echo "$ac_t"""notice"" 1>&6
                   1200: fi
                   1201:
                   1202:
                   1203: echo $ac_n "checking at which syslog priority to log failures""... $ac_c" 1>&6
1.6     ! millert  1204: echo "configure:1205: checking at which syslog priority to log failures" >&5
1.1       millert  1205: # Check whether --with-badpri or --without-badpri was given.
                   1206: if test "${with_badpri+set}" = set; then
                   1207:   withval="$with_badpri"
                   1208:   case $with_badpri in
                   1209:     yes)       { echo "configure: error: "must give --with-badpri an argument."" 1>&2; exit 1; }
                   1210:                ;;
                   1211:     no)                { echo "configure: error: "--without-badpri not supported."" 1>&2; exit 1; }
                   1212:                ;;
                   1213:     alert|crit|debug|emerg|err|info|notice|warning)            cat >> confdefs.h <<EOF
                   1214: #define PRI_FAILURE "$with_badpri"
                   1215: EOF
                   1216:
                   1217:                echo "$ac_t""$with_badpri" 1>&6
                   1218:                ;;
                   1219:     *)         { echo "configure: error: $with_badpri is not a supported syslog priority." 1>&2; exit 1; }
                   1220:                ;;
                   1221: esac
                   1222: else
                   1223:   cat >> confdefs.h <<EOF
                   1224: #define PRI_FAILURE "alert"
                   1225: EOF
                   1226:  echo "$ac_t"""alert"" 1>&6
                   1227: fi
                   1228:
                   1229:
                   1230: # Check whether --with-logpath or --without-logpath was given.
                   1231: if test "${with_logpath+set}" = set; then
                   1232:   withval="$with_logpath"
                   1233:   case $with_logpath in
                   1234:     yes)       { echo "configure: error: "must give --with-logpath an argument."" 1>&2; exit 1; }
                   1235:                ;;
                   1236:     no)                { echo "configure: error: "--without-logpath not supported."" 1>&2; exit 1; }
                   1237:                ;;
                   1238: esac
                   1239: fi
                   1240:
                   1241:
                   1242: echo $ac_n "checking how long a line in the log file should be""... $ac_c" 1>&6
1.6     ! millert  1243: echo "configure:1244: checking how long a line in the log file should be" >&5
1.1       millert  1244: # Check whether --with-loglen or --without-loglen was given.
                   1245: if test "${with_loglen+set}" = set; then
                   1246:   withval="$with_loglen"
                   1247:   case $with_loglen in
                   1248:     yes)       { echo "configure: error: "must give --with-loglen an argument."" 1>&2; exit 1; }
                   1249:                ;;
                   1250:     no)                { echo "configure: error: "--without-loglen not supported."" 1>&2; exit 1; }
                   1251:                ;;
                   1252:     [0-9]*)    cat >> confdefs.h <<EOF
                   1253: #define MAXLOGFILELEN $with_loglen
                   1254: EOF
                   1255:
                   1256:                echo "$ac_t""$with_loglen" 1>&6
                   1257:                ;;
                   1258:     *)         { echo "configure: error: "you must enter a number, not $with_loglen"" 1>&2; exit 1; }
                   1259:                ;;
                   1260: esac
                   1261: else
                   1262:   cat >> confdefs.h <<\EOF
                   1263: #define MAXLOGFILELEN 80
                   1264: EOF
                   1265:  echo "$ac_t""80" 1>&6
                   1266: fi
                   1267:
                   1268:
                   1269: echo $ac_n "checking whether sudo should ignore '.' or '' in \$PATH""... $ac_c" 1>&6
1.6     ! millert  1270: echo "configure:1271: checking whether sudo should ignore '.' or '' in \$PATH" >&5
1.1       millert  1271: # Check whether --with-ignore-dot or --without-ignore-dot was given.
                   1272: if test "${with_ignore_dot+set}" = set; then
                   1273:   withval="$with_ignore_dot"
                   1274:   case $with_ignore_dot in
                   1275:     yes)       cat >> confdefs.h <<\EOF
                   1276: #define IGNORE_DOT_PATH 1
                   1277: EOF
                   1278:
                   1279:                echo "$ac_t""yes" 1>&6
                   1280:                ;;
                   1281:     no)                echo "$ac_t""no" 1>&6
                   1282:                ;;
                   1283:     *)         { echo "configure: error: "--with-ignore-dot does not take an argument."" 1>&2; exit 1; }
                   1284:                ;;
                   1285: esac
                   1286: else
                   1287:   echo "$ac_t""no" 1>&6
                   1288: fi
                   1289:
                   1290:
                   1291: echo $ac_n "checking who should get the mail that sudo sends""... $ac_c" 1>&6
1.6     ! millert  1292: echo "configure:1293: checking who should get the mail that sudo sends" >&5
1.1       millert  1293: # Check whether --with-mailto or --without-mailto was given.
                   1294: if test "${with_mailto+set}" = set; then
                   1295:   withval="$with_mailto"
                   1296:   case $with_mailto in
                   1297:     yes)       { echo "configure: error: "must give --with-mailto an argument."" 1>&2; exit 1; }
                   1298:                ;;
                   1299:     no)                { echo "configure: error: "--without-mailto not supported."" 1>&2; exit 1; }
                   1300:                ;;
                   1301:     *)         cat >> confdefs.h <<EOF
                   1302: #define MAILTO "$with_mailto"
                   1303: EOF
                   1304:
                   1305:                echo "$ac_t""$with_mailto" 1>&6
                   1306:                ;;
                   1307: esac
                   1308: else
                   1309:   cat >> confdefs.h <<\EOF
                   1310: #define MAILTO "root"
                   1311: EOF
                   1312:  echo "$ac_t""root" 1>&6
                   1313: fi
                   1314:
                   1315:
                   1316: # Check whether --with-mailsubject or --without-mailsubject was given.
                   1317: if test "${with_mailsubject+set}" = set; then
                   1318:   withval="$with_mailsubject"
                   1319:   case $with_mailsubject in
                   1320:     yes)       { echo "configure: error: "must give --with-mailsubject an argument."" 1>&2; exit 1; }
                   1321:                ;;
                   1322:     no)                echo "Sorry, --without-mailsubject not supported."
                   1323:                ;;
                   1324:     *)         cat >> confdefs.h <<EOF
                   1325: #define MAILSUBJECT "$with_mailsubject"
                   1326: EOF
                   1327:
                   1328:                echo $ac_n "checking sudo mail subject""... $ac_c" 1>&6
1.6     ! millert  1329: echo "configure:1330: checking sudo mail subject" >&5
1.1       millert  1330:                echo "$ac_t""Using alert mail subject: $with_mailsubject" 1>&6
                   1331:                ;;
                   1332: esac
                   1333: else
                   1334:   cat >> confdefs.h <<\EOF
                   1335: #define MAILSUBJECT "*** SECURITY information for %h ***"
                   1336: EOF
                   1337:
                   1338: fi
                   1339:
                   1340:
                   1341: echo $ac_n "checking whether to send mail when a user is not in sudoers""... $ac_c" 1>&6
1.6     ! millert  1342: echo "configure:1343: checking whether to send mail when a user is not in sudoers" >&5
1.1       millert  1343: # Check whether --with-mail-if-no-user or --without-mail-if-no-user was given.
                   1344: if test "${with_mail_if_no_user+set}" = set; then
                   1345:   withval="$with_mail_if_no_user"
                   1346:   case $with_mail_if_no_user in
                   1347:     yes)       cat >> confdefs.h <<\EOF
                   1348: #define SEND_MAIL_WHEN_NO_USER 1
                   1349: EOF
                   1350:
                   1351:                echo "$ac_t""yes" 1>&6
                   1352:                ;;
                   1353:     no)                echo "$ac_t""no" 1>&6
                   1354:                ;;
                   1355:     *)         { echo "configure: error: "unknown argument to --with-mail-if-no-user: $with_mail_if_no_user"" 1>&2; exit 1; }
                   1356:                ;;
                   1357: esac
                   1358: else
                   1359:   cat >> confdefs.h <<\EOF
                   1360: #define SEND_MAIL_WHEN_NO_USER 1
                   1361: EOF
                   1362:  echo "$ac_t""yes" 1>&6
                   1363: fi
                   1364:
                   1365:
                   1366: echo $ac_n "checking whether to send mail when user listed but not for this host""... $ac_c" 1>&6
1.6     ! millert  1367: echo "configure:1368: checking whether to send mail when user listed but not for this host" >&5
1.1       millert  1368: # Check whether --with-mail-if-no-host or --without-mail-if-no-host was given.
                   1369: if test "${with_mail_if_no_host+set}" = set; then
                   1370:   withval="$with_mail_if_no_host"
                   1371:   case $with_mail_if_no_host in
                   1372:     yes)       cat >> confdefs.h <<\EOF
                   1373: #define SEND_MAIL_WHEN_NO_HOST 1
                   1374: EOF
                   1375:
                   1376:                echo "$ac_t""yes" 1>&6
                   1377:                ;;
                   1378:     no)                echo "$ac_t""no" 1>&6
                   1379:                ;;
                   1380:     *)         { echo "configure: error: "unknown argument to --with-mail-if-no-host: $with_mail_if_no_host"" 1>&2; exit 1; }
                   1381:                ;;
                   1382: esac
                   1383: else
                   1384:   echo "$ac_t""no" 1>&6
                   1385: fi
                   1386:
                   1387:
                   1388: echo $ac_n "checking whether to send mail when a user tries a disallowed command""... $ac_c" 1>&6
1.6     ! millert  1389: echo "configure:1390: checking whether to send mail when a user tries a disallowed command" >&5
1.1       millert  1390: # Check whether --with-mail-if-noperms or --without-mail-if-noperms was given.
                   1391: if test "${with_mail_if_noperms+set}" = set; then
                   1392:   withval="$with_mail_if_noperms"
                   1393:   case $with_mail_if_noperms in
                   1394:     yes)       cat >> confdefs.h <<\EOF
                   1395: #define SEND_MAIL_WHEN_NOT_OK 1
                   1396: EOF
                   1397:
                   1398:                echo "$ac_t""yes" 1>&6
                   1399:                ;;
                   1400:     no)                echo "$ac_t""no" 1>&6
                   1401:                ;;
                   1402:     *)         { echo "configure: error: "unknown argument to --with-mail-if-noperms: $with_mail_if_noperms"" 1>&2; exit 1; }
                   1403:                ;;
                   1404: esac
                   1405: else
                   1406:   echo "$ac_t""no" 1>&6
                   1407: fi
                   1408:
                   1409:
                   1410: echo $ac_n "checking for bad password prompt""... $ac_c" 1>&6
1.6     ! millert  1411: echo "configure:1412: checking for bad password prompt" >&5
1.1       millert  1412: # Check whether --with-passprompt or --without-passprompt was given.
                   1413: if test "${with_passprompt+set}" = set; then
                   1414:   withval="$with_passprompt"
                   1415:   case $with_passprompt in
                   1416:     yes)       { echo "configure: error: "must give --with-passprompt an argument."" 1>&2; exit 1; }
                   1417:                ;;
                   1418:     no)                echo "Sorry, --without-passprompt not supported."
                   1419:                ;;
                   1420:     *)         cat >> confdefs.h <<EOF
                   1421: #define PASSPROMPT "$with_passprompt"
                   1422: EOF
                   1423:
                   1424:                echo "$ac_t""$with_passprompt" 1>&6
                   1425:                ;;
                   1426: esac
                   1427: else
                   1428:   cat >> confdefs.h <<\EOF
                   1429: #define PASSPROMPT "Password:"
                   1430: EOF
                   1431:  echo "$ac_t""Password:" 1>&6
                   1432: fi
                   1433:
                   1434:
                   1435: echo $ac_n "checking for bad password message""... $ac_c" 1>&6
1.6     ! millert  1436: echo "configure:1437: checking for bad password message" >&5
1.1       millert  1437: # Check whether --with-badpass-message or --without-badpass-message was given.
                   1438: if test "${with_badpass_message+set}" = set; then
                   1439:   withval="$with_badpass_message"
                   1440:   case $with_badpass_message in
                   1441:     yes)       { echo "configure: error: "Must give --with-badpass-message an argument."" 1>&2; exit 1; }
                   1442:                ;;
                   1443:     no)                echo "Sorry, --without-badpass-message not supported."
                   1444:                ;;
                   1445:     *)         cat >> confdefs.h <<EOF
                   1446: #define INCORRECT_PASSWORD "$with_badpass_message"
                   1447: EOF
                   1448:
                   1449:                echo "$ac_t""$with_badpass_message" 1>&6
                   1450:                ;;
                   1451: esac
                   1452: else
                   1453:   cat >> confdefs.h <<\EOF
                   1454: #define INCORRECT_PASSWORD "Sorry, try again."
                   1455: EOF
                   1456:  echo "$ac_t""Sorry, try again." 1>&6
                   1457: fi
                   1458:
                   1459:
                   1460: echo $ac_n "checking whether to expect fully qualified hosts in sudoers""... $ac_c" 1>&6
1.6     ! millert  1461: echo "configure:1462: checking whether to expect fully qualified hosts in sudoers" >&5
1.1       millert  1462: # Check whether --with-fqdn or --without-fqdn was given.
                   1463: if test "${with_fqdn+set}" = set; then
                   1464:   withval="$with_fqdn"
                   1465:   case $with_fqdn in
                   1466:     yes)       cat >> confdefs.h <<\EOF
                   1467: #define FQDN 1
                   1468: EOF
                   1469:
                   1470:                echo "$ac_t""yes" 1>&6
                   1471:                ;;
                   1472:     no)                echo "$ac_t""no" 1>&6
                   1473:                ;;
                   1474:     *)         { echo "configure: error: "--with-fqdn does not take an argument."" 1>&2; exit 1; }
                   1475:                ;;
                   1476: esac
                   1477: else
                   1478:   echo "$ac_t""no" 1>&6
                   1479: fi
                   1480:
                   1481:
                   1482: # Check whether --with-timedir or --without-timedir was given.
                   1483: if test "${with_timedir+set}" = set; then
                   1484:   withval="$with_timedir"
                   1485:   case $with_timedir in
                   1486:     yes)       { echo "configure: error: "must give --with-timedir an argument."" 1>&2; exit 1; }
                   1487:                ;;
                   1488:     no)                { echo "configure: error: "--without-timedir not supported."" 1>&2; exit 1; }
                   1489:                ;;
                   1490: esac
                   1491: fi
                   1492:
                   1493:
                   1494: # Check whether --with-sendmail or --without-sendmail was given.
                   1495: if test "${with_sendmail+set}" = set; then
                   1496:   withval="$with_sendmail"
                   1497:   case $with_sendmail in
                   1498:     yes)       with_sendmail=""
                   1499:                ;;
                   1500:     no)                ;;
                   1501:     *)         cat >> confdefs.h <<EOF
                   1502: #define _PATH_SENDMAIL "$with_sendmail"
                   1503: EOF
                   1504:
                   1505:                ;;
                   1506: esac
                   1507: fi
                   1508:
                   1509:
                   1510: # Check whether --with-sudoers-mode or --without-sudoers-mode was given.
                   1511: if test "${with_sudoers_mode+set}" = set; then
                   1512:   withval="$with_sudoers_mode"
                   1513:   case $with_sudoers_mode in
                   1514:     yes)       { echo "configure: error: "must give --with-sudoers-mode an argument."" 1>&2; exit 1; }
                   1515:                ;;
                   1516:     no)                { echo "configure: error: "--without-sudoers-mode not supported."" 1>&2; exit 1; }
                   1517:                ;;
                   1518:     [1-9]*)    SUDOERS_MODE=0${with_sudoers_mode}
                   1519:                ;;
                   1520:     0*)                SUDOERS_MODE=$with_sudoers_mode
                   1521:                ;;
                   1522:     *)         { echo "configure: error: "you must use a numeric uid, not a name."" 1>&2; exit 1; }
                   1523:                ;;
                   1524: esac
                   1525: fi
                   1526:
                   1527:
                   1528: # Check whether --with-sudoers-uid or --without-sudoers-uid was given.
                   1529: if test "${with_sudoers_uid+set}" = set; then
                   1530:   withval="$with_sudoers_uid"
                   1531:   case $with_sudoers_uid in
                   1532:     yes)       { echo "configure: error: "must give --with-sudoers-uid an argument."" 1>&2; exit 1; }
                   1533:                ;;
                   1534:     no)                { echo "configure: error: "--without-sudoers-uid not supported."" 1>&2; exit 1; }
                   1535:                ;;
                   1536:     [0-9]*)    SUDOERS_UID=$with_sudoers_uid
                   1537:                ;;
                   1538:     *)         { echo "configure: error: "you must use a numeric uid, not a name."" 1>&2; exit 1; }
                   1539:                ;;
                   1540: esac
                   1541: fi
                   1542:
                   1543:
                   1544: # Check whether --with-sudoers-gid or --without-sudoers-gid was given.
                   1545: if test "${with_sudoers_gid+set}" = set; then
                   1546:   withval="$with_sudoers_gid"
                   1547:   case $with_sudoers_gid in
                   1548:     yes)       { echo "configure: error: "must give --with-sudoers-gid an argument."" 1>&2; exit 1; }
                   1549:                ;;
                   1550:     no)                { echo "configure: error: "--without-sudoers-gid not supported."" 1>&2; exit 1; }
                   1551:                ;;
                   1552:     [0-9]*)    SUDOERS_GID=$with_sudoers_gid
                   1553:                ;;
                   1554:     *)         { echo "configure: error: "you must use a numeric gid, not a name."" 1>&2; exit 1; }
                   1555:                ;;
                   1556: esac
                   1557: fi
                   1558:
                   1559:
                   1560: echo $ac_n "checking for umask programs should be run with""... $ac_c" 1>&6
1.6     ! millert  1561: echo "configure:1562: checking for umask programs should be run with" >&5
1.1       millert  1562: # Check whether --with-umask or --without-umask was given.
                   1563: if test "${with_umask+set}" = set; then
                   1564:   withval="$with_umask"
                   1565:   case $with_umask in
                   1566:     yes)       { echo "configure: error: "must give --with-umask an argument."" 1>&2; exit 1; }
                   1567:                ;;
                   1568:     no)                echo "$ac_t""user" 1>&6
                   1569:                ;;
                   1570:     [0-9]*)    cat >> confdefs.h <<EOF
                   1571: #define SUDO_UMASK $with_umask
                   1572: EOF
                   1573:
                   1574:                echo "$ac_t""$with_umask" 1>&6
                   1575:                ;;
                   1576:     *)         { echo "configure: error: "you must enter a numeric mask."" 1>&2; exit 1; }
                   1577:                ;;
                   1578: esac
                   1579: else
                   1580:   cat >> confdefs.h <<\EOF
                   1581: #define SUDO_UMASK 0022
                   1582: EOF
                   1583:  echo "$ac_t""0022" 1>&6
                   1584: fi
                   1585:
                   1586:
                   1587: echo $ac_n "checking for default user to run commands as""... $ac_c" 1>&6
1.6     ! millert  1588: echo "configure:1589: checking for default user to run commands as" >&5
1.1       millert  1589: # Check whether --with-runas-default or --without-runas-default was given.
                   1590: if test "${with_runas_default+set}" = set; then
                   1591:   withval="$with_runas_default"
                   1592:   case $with_runas_default in
                   1593:     yes)       { echo "configure: error: "must give --with-runas-default an argument."" 1>&2; exit 1; }
                   1594:                ;;
                   1595:     no)                { echo "configure: error: "--without-runas-default not supported."" 1>&2; exit 1; }
                   1596:                ;;
                   1597:     *)         cat >> confdefs.h <<EOF
                   1598: #define RUNAS_DEFAULT "$with_runas_default"
                   1599: EOF
                   1600:
                   1601:                echo "$ac_t""$with_runas_default" 1>&6
                   1602:                ;;
                   1603: esac
                   1604: else
                   1605:   cat >> confdefs.h <<\EOF
                   1606: #define RUNAS_DEFAULT "root"
                   1607: EOF
                   1608:  echo "$ac_t""root" 1>&6
                   1609: fi
                   1610:
                   1611:
                   1612: # Check whether --with-exempt or --without-exempt was given.
                   1613: if test "${with_exempt+set}" = set; then
                   1614:   withval="$with_exempt"
                   1615:   case $with_exempt in
                   1616:     yes)       { echo "configure: error: "must give --with-exempt an argument."" 1>&2; exit 1; }
                   1617:                ;;
                   1618:     no)                { echo "configure: error: "--without-exempt not supported."" 1>&2; exit 1; }
                   1619:                ;;
                   1620:     *)         cat >> confdefs.h <<EOF
                   1621: #define EXEMPTGROUP "$with_exempt"
                   1622: EOF
                   1623:
                   1624:                echo $ac_n "checking for group to be exempt from password""... $ac_c" 1>&6
1.6     ! millert  1625: echo "configure:1626: checking for group to be exempt from password" >&5
1.1       millert  1626:                echo "$ac_t""$with_exempt" 1>&6
                   1627:                ;;
                   1628: esac
                   1629: fi
                   1630:
                   1631:
                   1632: echo $ac_n "checking for editor that visudo should use""... $ac_c" 1>&6
1.6     ! millert  1633: echo "configure:1634: checking for editor that visudo should use" >&5
1.1       millert  1634: # Check whether --with-editor or --without-editor was given.
                   1635: if test "${with_editor+set}" = set; then
                   1636:   withval="$with_editor"
                   1637:   case $with_editor in
                   1638:     yes)       { echo "configure: error: "must give --with-editor an argument."" 1>&2; exit 1; }
                   1639:                ;;
                   1640:     no)                { echo "configure: error: "--without-editor not supported."" 1>&2; exit 1; }
                   1641:                ;;
                   1642:     *)         cat >> confdefs.h <<EOF
                   1643: #define EDITOR "$with_editor"
                   1644: EOF
                   1645:
                   1646:                echo "$ac_t""$with_editor" 1>&6
                   1647:                ;;
                   1648: esac
                   1649: else
                   1650:   cat >> confdefs.h <<\EOF
                   1651: #define EDITOR _PATH_VI
                   1652: EOF
                   1653:  echo "$ac_t""vi" 1>&6
                   1654: fi
                   1655:
                   1656:
                   1657: echo $ac_n "checking whether to obey EDITOR and VISUAL environment variables""... $ac_c" 1>&6
1.6     ! millert  1658: echo "configure:1659: checking whether to obey EDITOR and VISUAL environment variables" >&5
1.1       millert  1659: # Check whether --with-env-editor or --without-env-editor was given.
                   1660: if test "${with_env_editor+set}" = set; then
                   1661:   withval="$with_env_editor"
                   1662:   case $with_env_editor in
                   1663:     yes)       cat >> confdefs.h <<\EOF
                   1664: #define ENV_EDITOR 1
                   1665: EOF
                   1666:
                   1667:                echo "$ac_t""yes" 1>&6
                   1668:                ;;
                   1669:     no)                echo "$ac_t""no" 1>&6
                   1670:                ;;
                   1671:     *)         { echo "configure: error: "--with-env-editor does not take an argument."" 1>&2; exit 1; }
                   1672:                ;;
                   1673: esac
                   1674: else
                   1675:   echo "$ac_t""no" 1>&6
                   1676: fi
                   1677:
                   1678:
                   1679: echo $ac_n "checking number of tries a user gets to enter their password""... $ac_c" 1>&6
1.6     ! millert  1680: echo "configure:1681: checking number of tries a user gets to enter their password" >&5
1.1       millert  1681: # Check whether --with-passwd-tries or --without-passwd-tries was given.
                   1682: if test "${with_passwd_tries+set}" = set; then
                   1683:   withval="$with_passwd_tries"
                   1684:   case $with_passwd_tries in
                   1685:     yes)       cat >> confdefs.h <<\EOF
                   1686: #define TRIES_FOR_PASSWORD 3
                   1687: EOF
                   1688:
                   1689:                echo "$ac_t""3" 1>&6
                   1690:                ;;
                   1691:     no)                { echo "configure: error: "--without-editor not supported."" 1>&2; exit 1; }
                   1692:                ;;
                   1693:     [1-9]*)    cat >> confdefs.h <<EOF
                   1694: #define TRIES_FOR_PASSWORD $with_passwd_tries
                   1695: EOF
                   1696:
                   1697:                echo "$ac_t""$with_passwd_tries" 1>&6
                   1698:                ;;
                   1699:     *)         { echo "configure: error: "you must enter the numer of tries, > 0"" 1>&2; exit 1; }
                   1700:                ;;
                   1701: esac
                   1702: else
                   1703:   cat >> confdefs.h <<\EOF
                   1704: #define TRIES_FOR_PASSWORD 3
                   1705: EOF
                   1706:  echo "$ac_t""3" 1>&6
                   1707: fi
                   1708:
                   1709:
                   1710: echo $ac_n "checking time in minutes after which sudo will ask for a password again""... $ac_c" 1>&6
1.6     ! millert  1711: echo "configure:1712: checking time in minutes after which sudo will ask for a password again" >&5
1.1       millert  1712: # Check whether --with-timeout or --without-timeout was given.
                   1713: if test "${with_timeout+set}" = set; then
                   1714:   withval="$with_timeout"
                   1715:   echo $with_timeout; case $with_timeout in
                   1716:     yes)       cat >> confdefs.h <<\EOF
                   1717: #define TIMEOUT 5
                   1718: EOF
                   1719:
                   1720:                echo "$ac_t""5" 1>&6
                   1721:                ;;
                   1722:     no)                cat >> confdefs.h <<\EOF
                   1723: #define TIMEOUT 0
                   1724: EOF
                   1725:
                   1726:                echo "$ac_t""no timeout" 1>&6
                   1727:                ;;
                   1728:     [0-9]*)    cat >> confdefs.h <<EOF
                   1729: #define TIMEOUT $with_timeout
                   1730: EOF
                   1731:
                   1732:                echo "$ac_t""$with_timeout" 1>&6
                   1733:                ;;
                   1734:     *)         { echo "configure: error: "you must enter the numer of minutes."" 1>&2; exit 1; }
                   1735:                ;;
                   1736: esac
                   1737: else
                   1738:   cat >> confdefs.h <<\EOF
                   1739: #define TIMEOUT 5
                   1740: EOF
                   1741:  echo "$ac_t""5" 1>&6
                   1742: fi
                   1743:
                   1744:
                   1745: echo $ac_n "checking time in minutes after the password prompt will time out""... $ac_c" 1>&6
1.6     ! millert  1746: echo "configure:1747: checking time in minutes after the password prompt will time out" >&5
1.1       millert  1747: # Check whether --with-password-timeout or --without-password-timeout was given.
                   1748: if test "${with_password_timeout+set}" = set; then
                   1749:   withval="$with_password_timeout"
                   1750:   case $with_password_timeout in
                   1751:     yes)       cat >> confdefs.h <<\EOF
                   1752: #define PASSWORD_TIMEOUT 5
                   1753: EOF
                   1754:
                   1755:                echo "$ac_t""5" 1>&6
                   1756:                ;;
                   1757:     no)                cat >> confdefs.h <<\EOF
                   1758: #define PASSWORD_TIMEOUT 0
                   1759: EOF
                   1760:
                   1761:                echo "$ac_t""no timeout" 1>&6
                   1762:                ;;
                   1763:     [0-9]*)    cat >> confdefs.h <<EOF
                   1764: #define PASSWORD_TIMEOUT $with_password_timeout
                   1765: EOF
                   1766:
                   1767:                echo "$ac_t""$with_password_timeout" 1>&6
                   1768:                ;;
                   1769:     *)         { echo "configure: error: "you must enter the numer of minutes."" 1>&2; exit 1; }
                   1770:                ;;
                   1771: esac
                   1772: else
                   1773:   cat >> confdefs.h <<\EOF
                   1774: #define PASSWORD_TIMEOUT 5
                   1775: EOF
                   1776:  echo "$ac_t""5" 1>&6
                   1777: fi
                   1778:
                   1779:
                   1780: echo $ac_n "checking whether to use execvp or execv""... $ac_c" 1>&6
1.6     ! millert  1781: echo "configure:1782: checking whether to use execvp or execv" >&5
1.1       millert  1782: # Check whether --with-execv or --without-execv was given.
                   1783: if test "${with_execv+set}" = set; then
                   1784:   withval="$with_execv"
                   1785:   case $with_execv in
                   1786:     yes)       cat >> confdefs.h <<\EOF
                   1787: #define USE_EXECV 1
                   1788: EOF
                   1789:
                   1790:                echo "$ac_t""execv" 1>&6
                   1791:                ;;
                   1792:     no)                echo "$ac_t""execvp" 1>&6
                   1793:                ;;
                   1794:     *)         { echo "configure: error: "--with-execv does not take an argument."" 1>&2; exit 1; }
                   1795:                ;;
                   1796: esac
                   1797: else
                   1798:   echo "$ac_t""execvp" 1>&6
                   1799: fi
                   1800:
                   1801:
                   1802: echo $ac_n "checking whether to use per-tty ticket files""... $ac_c" 1>&6
1.6     ! millert  1803: echo "configure:1804: checking whether to use per-tty ticket files" >&5
1.1       millert  1804: # Check whether --with-tty-tickets or --without-tty-tickets was given.
                   1805: if test "${with_tty_tickets+set}" = set; then
                   1806:   withval="$with_tty_tickets"
                   1807:   case $with_tty_tickets in
                   1808:     yes)       cat >> confdefs.h <<\EOF
                   1809: #define USE_TTY_TICKETS 1
                   1810: EOF
                   1811:
                   1812:                echo "$ac_t""yes" 1>&6
                   1813:                ;;
                   1814:     no)                echo "$ac_t""no" 1>&6
                   1815:                ;;
                   1816:     *)         { echo "configure: error: "--with-tty-tickets does not take an argument."" 1>&2; exit 1; }
                   1817:                ;;
                   1818: esac
                   1819: else
                   1820:   echo "$ac_t""no" 1>&6
                   1821: fi
                   1822:
                   1823:
                   1824: echo $ac_n "checking whether to include insults""... $ac_c" 1>&6
1.6     ! millert  1825: echo "configure:1826: checking whether to include insults" >&5
1.1       millert  1826: # Check whether --with-insults or --without-insults was given.
                   1827: if test "${with_insults+set}" = set; then
                   1828:   withval="$with_insults"
                   1829:   case $with_insults in
                   1830:     yes)       cat >> confdefs.h <<\EOF
                   1831: #define USE_INSULTS 1
                   1832: EOF
                   1833:
                   1834:                echo "$ac_t""yes" 1>&6
                   1835:                with_classic_insults=yes
                   1836:                with_csops_insults=yes
                   1837:                ;;
                   1838:     no)                echo "$ac_t""no" 1>&6
                   1839:                ;;
                   1840:     *)         { echo "configure: error: "--with-insults does not take an argument."" 1>&2; exit 1; }
                   1841:                ;;
                   1842: esac
                   1843: else
                   1844:   echo "$ac_t""no" 1>&6
                   1845: fi
                   1846:
                   1847:
                   1848: # Check whether --with-all-insults or --without-all-insults was given.
                   1849: if test "${with_all_insults+set}" = set; then
                   1850:   withval="$with_all_insults"
                   1851:   case $with_all_insults in
                   1852:     yes)       with_classic_insults=yes
                   1853:                with_csops_insults=yes
                   1854:                with_hal_insults=yes
                   1855:                with_goons_insults=yes
                   1856:                ;;
                   1857:     no)                ;;
                   1858:     *)         { echo "configure: error: "--with-all-insults does not take an argument."" 1>&2; exit 1; }
                   1859:                ;;
                   1860: esac
                   1861: fi
                   1862:
                   1863:
                   1864: # Check whether --with-classic-insults or --without-classic-insults was given.
                   1865: if test "${with_classic_insults+set}" = set; then
                   1866:   withval="$with_classic_insults"
                   1867:   case $with_classic_insults in
                   1868:     yes)       cat >> confdefs.h <<\EOF
                   1869: #define CLASSIC_INSULTS 1
                   1870: EOF
                   1871:
                   1872:                ;;
                   1873:     no)                ;;
                   1874:     *)         { echo "configure: error: "--with-classic-insults does not take an argument."" 1>&2; exit 1; }
                   1875:                ;;
                   1876: esac
                   1877: fi
                   1878:
                   1879:
                   1880: # Check whether --with-csops-insults or --without-csops-insults was given.
                   1881: if test "${with_csops_insults+set}" = set; then
                   1882:   withval="$with_csops_insults"
                   1883:   case $with_csops_insults in
                   1884:     yes)       cat >> confdefs.h <<\EOF
                   1885: #define CSOPS_INSULTS 1
                   1886: EOF
                   1887:
                   1888:                ;;
                   1889:     no)                ;;
                   1890:     *)         { echo "configure: error: "--with-csops-insults does not take an argument."" 1>&2; exit 1; }
                   1891:                ;;
                   1892: esac
                   1893: fi
                   1894:
                   1895:
                   1896: # Check whether --with-hal-insults or --without-hal-insults was given.
                   1897: if test "${with_hal_insults+set}" = set; then
                   1898:   withval="$with_hal_insults"
                   1899:   case $with_hal_insults in
                   1900:     yes)       cat >> confdefs.h <<\EOF
                   1901: #define HAL_INSULTS 1
                   1902: EOF
                   1903:
                   1904:                ;;
                   1905:     no)                ;;
                   1906:     *)         { echo "configure: error: "--with-hal-insults does not take an argument."" 1>&2; exit 1; }
                   1907:                ;;
                   1908: esac
                   1909: fi
                   1910:
                   1911:
                   1912: # Check whether --with-goons-insults or --without-goons-insults was given.
                   1913: if test "${with_goons_insults+set}" = set; then
                   1914:   withval="$with_goons_insults"
                   1915:   case $with_goons_insults in
                   1916:     yes)       cat >> confdefs.h <<\EOF
                   1917: #define GOONS_INSULTS 1
                   1918: EOF
                   1919:
                   1920:                ;;
                   1921:     no)                ;;
                   1922:     *)         { echo "configure: error: "--with-goons-insults does not take an argument."" 1>&2; exit 1; }
                   1923:                ;;
                   1924: esac
                   1925: fi
                   1926:
                   1927:
                   1928: if test "$with_insults" = "yes"; then
                   1929:     echo $ac_n "checking which insult sets to include""... $ac_c" 1>&6
1.6     ! millert  1930: echo "configure:1931: checking which insult sets to include" >&5
1.1       millert  1931:     i=""
                   1932:     test "$with_goons_insults" = "yes" && i="goons ${i}"
                   1933:     test "$with_hal_insults" = "yes" && i="hal ${i}"
                   1934:     test "$with_csops_insults" = "yes" && i="csops ${i}"
                   1935:     test "$with_classic_insults" = "yes" && i="classic ${i}"
                   1936:     echo "$ac_t""$i" 1>&6
                   1937: fi
                   1938:
                   1939: echo $ac_n "checking whether to override the user's path""... $ac_c" 1>&6
1.6     ! millert  1940: echo "configure:1941: checking whether to override the user's path" >&5
1.1       millert  1941: # Check whether --with-secure-path or --without-secure-path was given.
                   1942: if test "${with_secure_path+set}" = set; then
                   1943:   withval="$with_secure_path"
                   1944:   case $with_secure_path in
                   1945:     yes)       cat >> confdefs.h <<EOF
                   1946: #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
                   1947: EOF
                   1948:
                   1949:                echo "$ac_t"":/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" 1>&6
                   1950:                ;;
                   1951:     no)                echo "$ac_t""no" 1>&6
                   1952:                ;;
                   1953:     *)         cat >> confdefs.h <<EOF
                   1954: #define SECURE_PATH "$with_secure_path"
                   1955: EOF
                   1956:
                   1957:                echo "$ac_t""$with_secure_path" 1>&6
                   1958:                ;;
                   1959: esac
                   1960: else
                   1961:   echo "$ac_t""no" 1>&6
                   1962: fi
                   1963:
                   1964:
                   1965: echo $ac_n "checking whether to get ip addresses from the network interfaces""... $ac_c" 1>&6
1.6     ! millert  1966: echo "configure:1967: checking whether to get ip addresses from the network interfaces" >&5
1.1       millert  1967: # Check whether --with-interfaces or --without-interfaces was given.
                   1968: if test "${with_interfaces+set}" = set; then
                   1969:   withval="$with_interfaces"
                   1970:   case $with_interfaces in
                   1971:     yes)       echo "$ac_t""yes" 1>&6
                   1972:                ;;
                   1973:     no)                cat >> confdefs.h <<\EOF
                   1974: #define STUB_LOAD_INTERFACES 1
                   1975: EOF
                   1976:
                   1977:                echo "$ac_t""no" 1>&6
                   1978:                ;;
                   1979:     *)         { echo "configure: error: "--with-interfaces does not take an argument."" 1>&2; exit 1; }
                   1980:                ;;
                   1981: esac
                   1982: else
                   1983:   echo "$ac_t""yes" 1>&6
                   1984: fi
                   1985:
                   1986:
                   1987:
                   1988: echo $ac_n "checking whether to do user authentication by default""... $ac_c" 1>&6
1.6     ! millert  1989: echo "configure:1990: checking whether to do user authentication by default" >&5
1.1       millert  1990: # Check whether --enable-authentication or --disable-authentication was given.
                   1991: if test "${enable_authentication+set}" = set; then
                   1992:   enableval="$enable_authentication"
                   1993:    case "$enableval" in
                   1994:     yes)       echo "$ac_t""yes" 1>&6
                   1995:                ;;
                   1996:     no)                echo "$ac_t""no" 1>&6
                   1997:                cat >> confdefs.h <<\EOF
                   1998: #define NO_AUTHENTICATION 1
                   1999: EOF
                   2000:
                   2001:                ;;
                   2002:     *)         echo "$ac_t""no" 1>&6
                   2003:                echo "Ignoring unknown argument to --enable-authentication: $enableval"
                   2004:                ;;
                   2005:   esac
                   2006:
                   2007: else
                   2008:   echo "$ac_t""yes" 1>&6
                   2009: fi
                   2010:
                   2011:
                   2012: echo $ac_n "checking whether to disable shadow password support""... $ac_c" 1>&6
1.6     ! millert  2013: echo "configure:2014: checking whether to disable shadow password support" >&5
1.1       millert  2014: # Check whether --enable-shadow or --disable-shadow was given.
                   2015: if test "${enable_shadow+set}" = set; then
                   2016:   enableval="$enable_shadow"
                   2017:    case "$enableval" in
                   2018:     yes)       echo "$ac_t""no" 1>&6
                   2019:                ;;
                   2020:     no)                echo "$ac_t""yes" 1>&6
                   2021:                CHECKSHADOW="false"
                   2022:                ;;
                   2023:     *)         echo "$ac_t""no" 1>&6
                   2024:                echo "Ignoring unknown argument to --enable-shadow: $enableval"
                   2025:                ;;
                   2026:   esac
                   2027:
                   2028: else
                   2029:   echo "$ac_t""no" 1>&6
                   2030: fi
                   2031:
                   2032:
                   2033: echo $ac_n "checking whether root should be allowed to use sudo""... $ac_c" 1>&6
1.6     ! millert  2034: echo "configure:2035: checking whether root should be allowed to use sudo" >&5
1.1       millert  2035: # Check whether --enable-root-sudo or --disable-root-sudo was given.
                   2036: if test "${enable_root_sudo+set}" = set; then
                   2037:   enableval="$enable_root_sudo"
                   2038:    case "$enableval" in
                   2039:     yes)       echo "$ac_t""yes" 1>&6
                   2040:                ;;
                   2041:     no)                cat >> confdefs.h <<\EOF
                   2042: #define NO_ROOT_SUDO 1
                   2043: EOF
                   2044:
                   2045:                echo "$ac_t""no" 1>&6
                   2046:                ;;
                   2047:     *)         { echo "configure: error: "--enable-root-sudo does not take an argument."" 1>&2; exit 1; }
                   2048:                ;;
                   2049:   esac
                   2050:
                   2051: else
                   2052:   echo "$ac_t""yes" 1>&6
                   2053: fi
                   2054:
                   2055:
                   2056: echo $ac_n "checking whether to log the hostname in the log file""... $ac_c" 1>&6
1.6     ! millert  2057: echo "configure:2058: checking whether to log the hostname in the log file" >&5
1.1       millert  2058: # Check whether --enable-log-host or --disable-log-host was given.
                   2059: if test "${enable_log_host+set}" = set; then
                   2060:   enableval="$enable_log_host"
                   2061:    case "$enableval" in
                   2062:     yes)       echo "$ac_t""yes" 1>&6
                   2063:                cat >> confdefs.h <<\EOF
                   2064: #define HOST_IN_LOG 1
                   2065: EOF
                   2066:
                   2067:                ;;
                   2068:     no)                echo "$ac_t""no" 1>&6
                   2069:                ;;
                   2070:     *)         echo "$ac_t""no" 1>&6
                   2071:                echo "Ignoring unknown argument to --enable-log-host: $enableval"
                   2072:                ;;
                   2073:   esac
                   2074:
                   2075: else
                   2076:   echo "$ac_t""no" 1>&6
                   2077: fi
                   2078:
                   2079:
                   2080: echo $ac_n "checking whether to invoke a shell if sudo is given no arguments""... $ac_c" 1>&6
1.6     ! millert  2081: echo "configure:2082: checking whether to invoke a shell if sudo is given no arguments" >&5
1.1       millert  2082: # Check whether --enable-noargs-shell or --disable-noargs-shell was given.
                   2083: if test "${enable_noargs_shell+set}" = set; then
                   2084:   enableval="$enable_noargs_shell"
                   2085:    case "$enableval" in
                   2086:     yes)       echo "$ac_t""yes" 1>&6
                   2087:                cat >> confdefs.h <<\EOF
                   2088: #define SHELL_IF_NO_ARGS 1
                   2089: EOF
                   2090:
                   2091:                ;;
                   2092:     no)                echo "$ac_t""no" 1>&6
                   2093:                ;;
                   2094:     *)         echo "$ac_t""no" 1>&6
                   2095:                echo "Ignoring unknown argument to --enable-noargs-shell: $enableval"
                   2096:                ;;
                   2097:   esac
                   2098:
                   2099: else
                   2100:   echo "$ac_t""no" 1>&6
                   2101: fi
                   2102:
                   2103:
                   2104: echo $ac_n "checking whether to set \$HOME to target user in shell mode""... $ac_c" 1>&6
1.6     ! millert  2105: echo "configure:2106: checking whether to set \$HOME to target user in shell mode" >&5
1.1       millert  2106: # Check whether --enable-shell-sets-home or --disable-shell-sets-home was given.
                   2107: if test "${enable_shell_sets_home+set}" = set; then
                   2108:   enableval="$enable_shell_sets_home"
                   2109:    case "$enableval" in
                   2110:     yes)       echo "$ac_t""yes" 1>&6
                   2111:                cat >> confdefs.h <<\EOF
                   2112: #define SHELL_SETS_HOME 1
                   2113: EOF
                   2114:
                   2115:                ;;
                   2116:     no)                echo "$ac_t""no" 1>&6
                   2117:                ;;
                   2118:     *)         echo "$ac_t""no" 1>&6
                   2119:                echo "Ignoring unknown argument to --enable-shell-sets-home: $enableval"
                   2120:                ;;
                   2121:   esac
                   2122:
                   2123: else
                   2124:   echo "$ac_t""no" 1>&6
                   2125: fi
                   2126:
                   2127:
                   2128: echo $ac_n "checking whether to disable 'command not found' messages""... $ac_c" 1>&6
1.6     ! millert  2129: echo "configure:2130: checking whether to disable 'command not found' messages" >&5
1.1       millert  2130: # Check whether --enable-path_info or --disable-path_info was given.
                   2131: if test "${enable_path_info+set}" = set; then
                   2132:   enableval="$enable_path_info"
                   2133:    case "$enableval" in
                   2134:     yes)       echo "$ac_t""no" 1>&6
                   2135:                ;;
                   2136:     no)                echo "$ac_t""yes" 1>&6
                   2137:                cat >> confdefs.h <<\EOF
                   2138: #define DONT_LEAK_PATH_INFO 1
                   2139: EOF
                   2140:
                   2141:                ;;
                   2142:     *)         echo "$ac_t""no" 1>&6
                   2143:                echo "Ignoring unknown argument to --enable-path-info: $enableval"
                   2144:                ;;
                   2145:   esac
                   2146:
                   2147: else
                   2148:   echo "$ac_t""no" 1>&6
                   2149: fi
                   2150:
                   2151:
                   2152: # Extract the first word of "egrep", so it can be a program name with args.
                   2153: set dummy egrep; ac_word=$2
                   2154: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.6     ! millert  2155: echo "configure:2156: checking for $ac_word" >&5
1.1       millert  2156: if eval "test \"`echo '$''{'ac_cv_prog_EGREPPROG'+set}'`\" = set"; then
                   2157:   echo $ac_n "(cached) $ac_c" 1>&6
                   2158: else
                   2159:   if test -n "$EGREPPROG"; then
                   2160:   ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
                   2161: else
                   2162:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                   2163:   for ac_dir in $PATH; do
                   2164:     test -z "$ac_dir" && ac_dir=.
                   2165:     if test -f $ac_dir/$ac_word; then
                   2166:       ac_cv_prog_EGREPPROG="egrep"
                   2167:       break
                   2168:     fi
                   2169:   done
                   2170:   IFS="$ac_save_ifs"
                   2171: fi
                   2172: fi
                   2173: EGREPPROG="$ac_cv_prog_EGREPPROG"
                   2174: if test -n "$EGREPPROG"; then
                   2175:   echo "$ac_t""$EGREPPROG" 1>&6
                   2176: else
                   2177:   echo "$ac_t""no" 1>&6
                   2178: fi
                   2179:
                   2180: if test -z "$EGREPPROG"; then
                   2181:     echo "Sorry, configure requires egrep to run."
                   2182:     exit
                   2183: fi
                   2184:
                   2185: ac_cv_prog_cc_cross="no"
                   2186: cross_compiling="no"
                   2187: # Extract the first word of "gcc", so it can be a program name with args.
                   2188: set dummy gcc; ac_word=$2
                   2189: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.6     ! millert  2190: echo "configure:2191: checking for $ac_word" >&5
1.1       millert  2191: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                   2192:   echo $ac_n "(cached) $ac_c" 1>&6
                   2193: else
                   2194:   if test -n "$CC"; then
                   2195:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   2196: else
                   2197:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                   2198:   for ac_dir in $PATH; do
                   2199:     test -z "$ac_dir" && ac_dir=.
                   2200:     if test -f $ac_dir/$ac_word; then
                   2201:       ac_cv_prog_CC="gcc"
                   2202:       break
                   2203:     fi
                   2204:   done
                   2205:   IFS="$ac_save_ifs"
                   2206: fi
                   2207: fi
                   2208: CC="$ac_cv_prog_CC"
                   2209: if test -n "$CC"; then
                   2210:   echo "$ac_t""$CC" 1>&6
                   2211: else
                   2212:   echo "$ac_t""no" 1>&6
                   2213: fi
                   2214:
                   2215: if test -z "$CC"; then
                   2216:   # Extract the first word of "cc", so it can be a program name with args.
                   2217: set dummy cc; ac_word=$2
                   2218: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.6     ! millert  2219: echo "configure:2220: checking for $ac_word" >&5
1.1       millert  2220: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                   2221:   echo $ac_n "(cached) $ac_c" 1>&6
                   2222: else
                   2223:   if test -n "$CC"; then
                   2224:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   2225: else
                   2226:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                   2227:   ac_prog_rejected=no
                   2228:   for ac_dir in $PATH; do
                   2229:     test -z "$ac_dir" && ac_dir=.
                   2230:     if test -f $ac_dir/$ac_word; then
                   2231:       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
                   2232:         ac_prog_rejected=yes
                   2233:        continue
                   2234:       fi
                   2235:       ac_cv_prog_CC="cc"
                   2236:       break
                   2237:     fi
                   2238:   done
                   2239:   IFS="$ac_save_ifs"
                   2240: if test $ac_prog_rejected = yes; then
                   2241:   # We found a bogon in the path, so make sure we never use it.
                   2242:   set dummy $ac_cv_prog_CC
                   2243:   shift
                   2244:   if test $# -gt 0; then
                   2245:     # We chose a different compiler from the bogus one.
                   2246:     # However, it has the same basename, so the bogon will be chosen
                   2247:     # first if we set CC to just the basename; use the full file name.
                   2248:     shift
                   2249:     set dummy "$ac_dir/$ac_word" "$@"
                   2250:     shift
                   2251:     ac_cv_prog_CC="$@"
                   2252:   fi
                   2253: fi
                   2254: fi
                   2255: fi
                   2256: CC="$ac_cv_prog_CC"
                   2257: if test -n "$CC"; then
                   2258:   echo "$ac_t""$CC" 1>&6
                   2259: else
                   2260:   echo "$ac_t""no" 1>&6
                   2261: fi
                   2262:
                   2263:   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
                   2264: fi
                   2265:
                   2266: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.6     ! millert  2267: echo "configure:2268: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.1       millert  2268:
                   2269: ac_ext=c
                   2270: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   2271: ac_cpp='$CPP $CPPFLAGS'
                   2272: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   2273: ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   2274: cross_compiling=$ac_cv_prog_cc_cross
                   2275:
                   2276: cat > conftest.$ac_ext <<EOF
1.6     ! millert  2277: #line 2278 "configure"
1.1       millert  2278: #include "confdefs.h"
                   2279: main(){return(0);}
                   2280: EOF
1.6     ! millert  2281: if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  2282:   ac_cv_prog_cc_works=yes
                   2283:   # If we can't run a trivial program, we are probably using a cross compiler.
                   2284:   if (./conftest; exit) 2>/dev/null; then
                   2285:     ac_cv_prog_cc_cross=no
                   2286:   else
                   2287:     ac_cv_prog_cc_cross=yes
                   2288:   fi
                   2289: else
                   2290:   echo "configure: failed program was:" >&5
                   2291:   cat conftest.$ac_ext >&5
                   2292:   ac_cv_prog_cc_works=no
                   2293: fi
                   2294: rm -fr conftest*
                   2295:
                   2296: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
                   2297: if test $ac_cv_prog_cc_works = no; then
                   2298:   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
                   2299: fi
                   2300: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.6     ! millert  2301: echo "configure:2302: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1       millert  2302: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
                   2303: cross_compiling=$ac_cv_prog_cc_cross
                   2304:
                   2305: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.6     ! millert  2306: echo "configure:2307: checking whether we are using GNU C" >&5
1.1       millert  2307: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
                   2308:   echo $ac_n "(cached) $ac_c" 1>&6
                   2309: else
                   2310:   cat > conftest.c <<EOF
                   2311: #ifdef __GNUC__
                   2312:   yes;
                   2313: #endif
                   2314: EOF
1.6     ! millert  2315: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1       millert  2316:   ac_cv_prog_gcc=yes
                   2317: else
                   2318:   ac_cv_prog_gcc=no
                   2319: fi
                   2320: fi
                   2321:
                   2322: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
                   2323:
                   2324: if test $ac_cv_prog_gcc = yes; then
                   2325:   GCC=yes
                   2326:   ac_test_CFLAGS="${CFLAGS+set}"
                   2327:   ac_save_CFLAGS="$CFLAGS"
                   2328:   CFLAGS=
                   2329:   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1.6     ! millert  2330: echo "configure:2331: checking whether ${CC-cc} accepts -g" >&5
1.1       millert  2331: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
                   2332:   echo $ac_n "(cached) $ac_c" 1>&6
                   2333: else
                   2334:   echo 'void f(){}' > conftest.c
                   2335: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
                   2336:   ac_cv_prog_cc_g=yes
                   2337: else
                   2338:   ac_cv_prog_cc_g=no
                   2339: fi
                   2340: rm -f conftest*
                   2341:
                   2342: fi
                   2343:
                   2344: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
                   2345:   if test "$ac_test_CFLAGS" = set; then
                   2346:     CFLAGS="$ac_save_CFLAGS"
                   2347:   elif test $ac_cv_prog_cc_g = yes; then
                   2348:     CFLAGS="-g -O2"
                   2349:   else
                   2350:     CFLAGS="-O2"
                   2351:   fi
                   2352: else
                   2353:   GCC=
                   2354:   test "${CFLAGS+set}" = set || CFLAGS="-g"
                   2355: fi
                   2356:
                   2357: ac_cv_prog_cc_cross="no"
                   2358: cross_compiling="no"
                   2359: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1.6     ! millert  2360: echo "configure:2361: checking how to run the C preprocessor" >&5
1.1       millert  2361: # On Suns, sometimes $CPP names a directory.
                   2362: if test -n "$CPP" && test -d "$CPP"; then
                   2363:   CPP=
                   2364: fi
                   2365: if test -z "$CPP"; then
                   2366: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
                   2367:   echo $ac_n "(cached) $ac_c" 1>&6
                   2368: else
                   2369:     # This must be in double quotes, not single quotes, because CPP may get
                   2370:   # substituted into the Makefile and "${CC-cc}" will confuse make.
                   2371:   CPP="${CC-cc} -E"
                   2372:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   2373:   # not just through cpp.
                   2374:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  2375: #line 2376 "configure"
1.1       millert  2376: #include "confdefs.h"
                   2377: #include <assert.h>
                   2378: Syntax Error
                   2379: EOF
                   2380: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.6     ! millert  2381: { (eval echo configure:2382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       millert  2382: ac_err=`grep -v '^ *+' conftest.out`
                   2383: if test -z "$ac_err"; then
                   2384:   :
                   2385: else
                   2386:   echo "$ac_err" >&5
                   2387:   echo "configure: failed program was:" >&5
                   2388:   cat conftest.$ac_ext >&5
                   2389:   rm -rf conftest*
                   2390:   CPP="${CC-cc} -E -traditional-cpp"
                   2391:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  2392: #line 2393 "configure"
1.1       millert  2393: #include "confdefs.h"
                   2394: #include <assert.h>
                   2395: Syntax Error
                   2396: EOF
                   2397: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.6     ! millert  2398: { (eval echo configure:2399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       millert  2399: ac_err=`grep -v '^ *+' conftest.out`
                   2400: if test -z "$ac_err"; then
                   2401:   :
                   2402: else
                   2403:   echo "$ac_err" >&5
                   2404:   echo "configure: failed program was:" >&5
                   2405:   cat conftest.$ac_ext >&5
                   2406:   rm -rf conftest*
                   2407:   CPP=/lib/cpp
                   2408: fi
                   2409: rm -f conftest*
                   2410: fi
                   2411: rm -f conftest*
                   2412:   ac_cv_prog_CPP="$CPP"
                   2413: fi
                   2414:   CPP="$ac_cv_prog_CPP"
                   2415: else
                   2416:   ac_cv_prog_CPP="$CPP"
                   2417: fi
                   2418: echo "$ac_t""$CPP" 1>&6
                   2419:
                   2420: echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1.6     ! millert  2421: echo "configure:2422: checking for POSIXized ISC" >&5
1.1       millert  2422: if test -d /etc/conf/kconfig.d &&
                   2423:   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
                   2424: then
                   2425:   echo "$ac_t""yes" 1>&6
                   2426:   ISC=yes # If later tests want to check for ISC.
                   2427:   cat >> confdefs.h <<\EOF
                   2428: #define _POSIX_SOURCE 1
                   2429: EOF
                   2430:
                   2431:   if test "$GCC" = yes; then
                   2432:     CC="$CC -posix"
                   2433:   else
                   2434:     CC="$CC -Xp"
                   2435:   fi
                   2436: else
                   2437:   echo "$ac_t""no" 1>&6
                   2438:   ISC=
                   2439: fi
                   2440:
                   2441:
                   2442: if test "$with_devel" = "yes" -a -n "$GCC"; then
                   2443:     CFLAGS="${CFLAGS} -Wall"
                   2444: fi
                   2445:
                   2446: # Extract the first word of "uname", so it can be a program name with args.
                   2447: set dummy uname; ac_word=$2
                   2448: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.6     ! millert  2449: echo "configure:2450: checking for $ac_word" >&5
1.1       millert  2450: if eval "test \"`echo '$''{'ac_cv_prog_UNAMEPROG'+set}'`\" = set"; then
                   2451:   echo $ac_n "(cached) $ac_c" 1>&6
                   2452: else
                   2453:   if test -n "$UNAMEPROG"; then
                   2454:   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
                   2455: else
                   2456:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                   2457:   for ac_dir in $PATH; do
                   2458:     test -z "$ac_dir" && ac_dir=.
                   2459:     if test -f $ac_dir/$ac_word; then
                   2460:       ac_cv_prog_UNAMEPROG="uname"
                   2461:       break
                   2462:     fi
                   2463:   done
                   2464:   IFS="$ac_save_ifs"
                   2465: fi
                   2466: fi
                   2467: UNAMEPROG="$ac_cv_prog_UNAMEPROG"
                   2468: if test -n "$UNAMEPROG"; then
                   2469:   echo "$ac_t""$UNAMEPROG" 1>&6
                   2470: else
                   2471:   echo "$ac_t""no" 1>&6
                   2472: fi
                   2473:
                   2474: # Extract the first word of "tr", so it can be a program name with args.
                   2475: set dummy tr; ac_word=$2
                   2476: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.6     ! millert  2477: echo "configure:2478: checking for $ac_word" >&5
1.1       millert  2478: if eval "test \"`echo '$''{'ac_cv_prog_TRPROG'+set}'`\" = set"; then
                   2479:   echo $ac_n "(cached) $ac_c" 1>&6
                   2480: else
                   2481:   if test -n "$TRPROG"; then
                   2482:   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
                   2483: else
                   2484:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                   2485:   for ac_dir in $PATH; do
                   2486:     test -z "$ac_dir" && ac_dir=.
                   2487:     if test -f $ac_dir/$ac_word; then
                   2488:       ac_cv_prog_TRPROG="tr"
                   2489:       break
                   2490:     fi
                   2491:   done
                   2492:   IFS="$ac_save_ifs"
                   2493: fi
                   2494: fi
                   2495: TRPROG="$ac_cv_prog_TRPROG"
                   2496: if test -n "$TRPROG"; then
                   2497:   echo "$ac_t""$TRPROG" 1>&6
                   2498: else
                   2499:   echo "$ac_t""no" 1>&6
                   2500: fi
                   2501:
                   2502: # Extract the first word of "sed", so it can be a program name with args.
                   2503: set dummy sed; ac_word=$2
                   2504: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.6     ! millert  2505: echo "configure:2506: checking for $ac_word" >&5
1.1       millert  2506: if eval "test \"`echo '$''{'ac_cv_prog_SEDPROG'+set}'`\" = set"; then
                   2507:   echo $ac_n "(cached) $ac_c" 1>&6
                   2508: else
                   2509:   if test -n "$SEDPROG"; then
                   2510:   ac_cv_prog_SEDPROG="$SEDPROG" # Let the user override the test.
                   2511: else
                   2512:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                   2513:   for ac_dir in $PATH; do
                   2514:     test -z "$ac_dir" && ac_dir=.
                   2515:     if test -f $ac_dir/$ac_word; then
                   2516:       ac_cv_prog_SEDPROG="sed"
                   2517:       break
                   2518:     fi
                   2519:   done
                   2520:   IFS="$ac_save_ifs"
                   2521: fi
                   2522: fi
                   2523: SEDPROG="$ac_cv_prog_SEDPROG"
                   2524: if test -n "$SEDPROG"; then
                   2525:   echo "$ac_t""$SEDPROG" 1>&6
                   2526: else
                   2527:   echo "$ac_t""no" 1>&6
                   2528: fi
                   2529:
                   2530: # Extract the first word of "nroff", so it can be a program name with args.
                   2531: set dummy nroff; ac_word=$2
                   2532: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.6     ! millert  2533: echo "configure:2534: checking for $ac_word" >&5
1.1       millert  2534: if eval "test \"`echo '$''{'ac_cv_prog_NROFFPROG'+set}'`\" = set"; then
                   2535:   echo $ac_n "(cached) $ac_c" 1>&6
                   2536: else
                   2537:   if test -n "$NROFFPROG"; then
                   2538:   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
                   2539: else
                   2540:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                   2541:   for ac_dir in $PATH; do
                   2542:     test -z "$ac_dir" && ac_dir=.
                   2543:     if test -f $ac_dir/$ac_word; then
                   2544:       ac_cv_prog_NROFFPROG="nroff"
                   2545:       break
                   2546:     fi
                   2547:   done
                   2548:   IFS="$ac_save_ifs"
                   2549: fi
                   2550: fi
                   2551: NROFFPROG="$ac_cv_prog_NROFFPROG"
                   2552: if test -n "$NROFFPROG"; then
                   2553:   echo "$ac_t""$NROFFPROG" 1>&6
                   2554: else
                   2555:   echo "$ac_t""no" 1>&6
                   2556: fi
                   2557:
                   2558: if test -z "$NROFFPROG"; then
                   2559:     MANTYPE="cat"
1.6     ! millert  2560:     mansrcdir='$(srcdir)'
1.1       millert  2561: fi
                   2562:
                   2563: ac_aux_dir=
                   2564: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
                   2565:   if test -f $ac_dir/install-sh; then
                   2566:     ac_aux_dir=$ac_dir
                   2567:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   2568:     break
                   2569:   elif test -f $ac_dir/install.sh; then
                   2570:     ac_aux_dir=$ac_dir
                   2571:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   2572:     break
                   2573:   fi
                   2574: done
                   2575: if test -z "$ac_aux_dir"; then
                   2576:   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
                   2577: fi
1.2       millert  2578: ac_config_guess="/bin/sh $ac_aux_dir/config.guess"
                   2579: ac_config_sub="/bin/sh $ac_aux_dir/config.sub"
1.1       millert  2580: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
                   2581:
                   2582:
                   2583: # Make sure we can run config.sub.
                   2584: if $ac_config_sub sun4 >/dev/null 2>&1; then :
                   2585: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
                   2586: fi
                   2587:
                   2588: echo $ac_n "checking host system type""... $ac_c" 1>&6
1.6     ! millert  2589: echo "configure:2590: checking host system type" >&5
1.1       millert  2590:
                   2591: host_alias=$host
                   2592: case "$host_alias" in
                   2593: NONE)
                   2594:   case $nonopt in
                   2595:   NONE)
                   2596:     if host_alias=`$ac_config_guess`; then :
                   2597:     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
                   2598:     fi ;;
                   2599:   *) host_alias=$nonopt ;;
                   2600:   esac ;;
                   2601: esac
                   2602:
                   2603: host=`$ac_config_sub $host_alias`
                   2604: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                   2605: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                   2606: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
                   2607: echo "$ac_t""$host" 1>&6
                   2608:
                   2609: if test -n "$sudo_cv_prev_host"; then
                   2610:     if test "$sudo_cv_prev_host" != "$host"; then
                   2611:        echo ""
                   2612:        echo "Fatal Error: config.cache exists from another platform!"
                   2613:        echo "Please remove it and re-run configure."
                   2614:        echo ""
                   2615:        exit 1
                   2616:     else
                   2617:        echo $ac_n "checking previous host type""... $ac_c" 1>&6
1.6     ! millert  2618: echo "configure:2619: checking previous host type" >&5
1.1       millert  2619:        if eval "test \"`echo '$''{'sudo_cv_prev_host'+set}'`\" = set"; then
                   2620:   echo $ac_n "(cached) $ac_c" 1>&6
                   2621: else
                   2622:   sudo_cv_prev_host="$host"
                   2623: fi
                   2624:
                   2625:        echo $sudo_cv_prev_host
                   2626:     fi
                   2627: else
                   2628:     # this will produce no output since there is no cached value
                   2629:     if eval "test \"`echo '$''{'sudo_cv_prev_host'+set}'`\" = set"; then
                   2630:   echo $ac_n "(cached) $ac_c" 1>&6
                   2631: else
                   2632:   sudo_cv_prev_host="$host"
                   2633: fi
                   2634:
                   2635: fi
                   2636:
                   2637: if test -n "$host_os"; then
                   2638:     OS=`echo $host_os | sed 's/[0-9].*//'`
                   2639:     OSREV=`echo $host_os | sed 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/'`
                   2640: else
                   2641:     OS="unknown"
                   2642:     OSREV=0
                   2643: fi
                   2644:
                   2645: case "$host" in
                   2646:     *-*-sunos4*)
                   2647:                # getcwd(3) opens a pipe to getpwd(1)!?!
                   2648:                BROKEN_GETCWD=1
                   2649:
                   2650:                # system headers lack prototypes but gcc helps...
                   2651:                if test -n "$GCC"; then
                   2652:                    CPPFLAGS="${CPPFLAGS} -D__USE_FIXED_PROTOTYPES__"
                   2653:                fi
                   2654:
                   2655:                # check for password adjunct functions (shadow passwords)
                   2656:                if test "$CHECKSHADOW" = "true"; then
                   2657:                    echo $ac_n "checking for getpwanam""... $ac_c" 1>&6
1.6     ! millert  2658: echo "configure:2659: checking for getpwanam" >&5
1.1       millert  2659: if eval "test \"`echo '$''{'ac_cv_func_getpwanam'+set}'`\" = set"; then
                   2660:   echo $ac_n "(cached) $ac_c" 1>&6
                   2661: else
                   2662:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  2663: #line 2664 "configure"
1.1       millert  2664: #include "confdefs.h"
                   2665: /* System header to define __stub macros and hopefully few prototypes,
                   2666:     which can conflict with char getpwanam(); below.  */
                   2667: #include <assert.h>
                   2668: /* Override any gcc2 internal prototype to avoid an error.  */
                   2669: /* We use char because int might match the return type of a gcc2
                   2670:     builtin and then its argument prototype would still apply.  */
                   2671: char getpwanam();
                   2672:
                   2673: int main() {
                   2674:
                   2675: /* The GNU C library defines this for functions which it implements
                   2676:     to always fail with ENOSYS.  Some functions are actually named
                   2677:     something starting with __ and the normal name is an alias.  */
                   2678: #if defined (__stub_getpwanam) || defined (__stub___getpwanam)
                   2679: choke me
                   2680: #else
                   2681: getpwanam();
                   2682: #endif
                   2683:
                   2684: ; return 0; }
                   2685: EOF
1.6     ! millert  2686: if { (eval echo configure:2687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  2687:   rm -rf conftest*
                   2688:   eval "ac_cv_func_getpwanam=yes"
                   2689: else
                   2690:   echo "configure: failed program was:" >&5
                   2691:   cat conftest.$ac_ext >&5
                   2692:   rm -rf conftest*
                   2693:   eval "ac_cv_func_getpwanam=no"
                   2694: fi
                   2695: rm -f conftest*
                   2696: fi
                   2697:
                   2698: if eval "test \"`echo '$ac_cv_func_'getpwanam`\" = yes"; then
                   2699:   echo "$ac_t""yes" 1>&6
                   2700:   cat >> confdefs.h <<\EOF
                   2701: #define HAVE_GETPWANAM 1
                   2702: EOF
                   2703:  for ac_func in issecure
                   2704: do
                   2705: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.6     ! millert  2706: echo "configure:2707: checking for $ac_func" >&5
1.1       millert  2707: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   2708:   echo $ac_n "(cached) $ac_c" 1>&6
                   2709: else
                   2710:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  2711: #line 2712 "configure"
1.1       millert  2712: #include "confdefs.h"
                   2713: /* System header to define __stub macros and hopefully few prototypes,
                   2714:     which can conflict with char $ac_func(); below.  */
                   2715: #include <assert.h>
                   2716: /* Override any gcc2 internal prototype to avoid an error.  */
                   2717: /* We use char because int might match the return type of a gcc2
                   2718:     builtin and then its argument prototype would still apply.  */
                   2719: char $ac_func();
                   2720:
                   2721: int main() {
                   2722:
                   2723: /* The GNU C library defines this for functions which it implements
                   2724:     to always fail with ENOSYS.  Some functions are actually named
                   2725:     something starting with __ and the normal name is an alias.  */
                   2726: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   2727: choke me
                   2728: #else
                   2729: $ac_func();
                   2730: #endif
                   2731:
                   2732: ; return 0; }
                   2733: EOF
1.6     ! millert  2734: if { (eval echo configure:2735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  2735:   rm -rf conftest*
                   2736:   eval "ac_cv_func_$ac_func=yes"
                   2737: else
                   2738:   echo "configure: failed program was:" >&5
                   2739:   cat conftest.$ac_ext >&5
                   2740:   rm -rf conftest*
                   2741:   eval "ac_cv_func_$ac_func=no"
                   2742: fi
                   2743: rm -f conftest*
                   2744: fi
                   2745:
                   2746: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   2747:   echo "$ac_t""yes" 1>&6
                   2748:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   2749:   cat >> confdefs.h <<EOF
                   2750: #define $ac_tr_func 1
                   2751: EOF
                   2752:
                   2753: else
                   2754:   echo "$ac_t""no" 1>&6
                   2755: fi
                   2756: done
                   2757:
                   2758: else
                   2759:   echo "$ac_t""no" 1>&6
                   2760: fi
                   2761:
                   2762:                    CHECKSHADOW="false"
                   2763:                fi
                   2764:                ;;
                   2765:     *-*-solaris2*)
                   2766:                # To get the crypt(3) prototype (so we pass -Wall)
                   2767:                CPPFLAGS="${CPPFLAGS} -D__EXTENSIONS__"
                   2768:                # AFS support needs -lucb
                   2769:                if test "$with_AFS" = "yes"; then
                   2770:                    AFS_LIBS="-lc -lucb"
                   2771:                fi
1.6     ! millert  2772:                mansectsu=1m
        !          2773:                mansectform=4
1.1       millert  2774:                ;;
                   2775:     *-*-aix*)
                   2776:                # To get all prototypes (so we pass -Wall)
                   2777:                CPPFLAGS="${CPPFLAGS} -D_XOPEN_EXTENDED_SOURCE"
                   2778:                cat >> confdefs.h <<\EOF
                   2779: #define _ALL_SOURCE 1
                   2780: EOF
                   2781:
                   2782:                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
                   2783:                ;;
                   2784:     *-*-hiuxmpp*)
                   2785:                if test "$CHECKSHADOW" = "true"; then
                   2786:                    echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
1.6     ! millert  2787: echo "configure:2788: checking for getprpwnam in -lsec" >&5
1.1       millert  2788: if test -n ""; then
                   2789:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   2790: else
                   2791:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
                   2792: fi
                   2793: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2794:   echo $ac_n "(cached) $ac_c" 1>&6
                   2795: else
                   2796:   ac_save_LIBS="$LIBS"
                   2797: LIBS="-lsec  $LIBS"
                   2798: cat > conftest.$ac_ext <<EOF
1.6     ! millert  2799: #line 2800 "configure"
1.1       millert  2800: #include "confdefs.h"
                   2801: /* Override any gcc2 internal prototype to avoid an error.  */
                   2802: /* We use char because int might match the return type of a gcc2
                   2803:     builtin and then its argument prototype would still apply.  */
                   2804: char getprpwnam();
                   2805:
                   2806: int main() {
                   2807: getprpwnam()
                   2808: ; return 0; }
                   2809: EOF
1.6     ! millert  2810: if { (eval echo configure:2811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  2811:   rm -rf conftest*
                   2812:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2813: else
                   2814:   echo "configure: failed program was:" >&5
                   2815:   cat conftest.$ac_ext >&5
                   2816:   rm -rf conftest*
                   2817:   eval "ac_cv_lib_$ac_lib_var=no"
                   2818: fi
                   2819: rm -f conftest*
                   2820: LIBS="$ac_save_LIBS"
                   2821:
                   2822: fi
                   2823: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2824:   echo "$ac_t""yes" 1>&6
                   2825:   cat >> confdefs.h <<\EOF
                   2826: #define HAVE_GETPRPWNAM 1
                   2827: EOF
                   2828:  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
                   2829: else
                   2830:   echo "$ac_t""no" 1>&6
                   2831: echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
1.6     ! millert  2832: echo "configure:2833: checking for getprpwnam in -lsecurity" >&5
1.1       millert  2833: if test -n ""; then
                   2834:   ac_lib_var=`echo security'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   2835: else
                   2836:   ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
                   2837: fi
                   2838: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2839:   echo $ac_n "(cached) $ac_c" 1>&6
                   2840: else
                   2841:   ac_save_LIBS="$LIBS"
                   2842: LIBS="-lsecurity  $LIBS"
                   2843: cat > conftest.$ac_ext <<EOF
1.6     ! millert  2844: #line 2845 "configure"
1.1       millert  2845: #include "confdefs.h"
                   2846: /* Override any gcc2 internal prototype to avoid an error.  */
                   2847: /* We use char because int might match the return type of a gcc2
                   2848:     builtin and then its argument prototype would still apply.  */
                   2849: char getprpwnam();
                   2850:
                   2851: int main() {
                   2852: getprpwnam()
                   2853: ; return 0; }
                   2854: EOF
1.6     ! millert  2855: if { (eval echo configure:2856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  2856:   rm -rf conftest*
                   2857:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2858: else
                   2859:   echo "configure: failed program was:" >&5
                   2860:   cat conftest.$ac_ext >&5
                   2861:   rm -rf conftest*
                   2862:   eval "ac_cv_lib_$ac_lib_var=no"
                   2863: fi
                   2864: rm -f conftest*
                   2865: LIBS="$ac_save_LIBS"
                   2866:
                   2867: fi
                   2868: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2869:   echo "$ac_t""yes" 1>&6
                   2870:   cat >> confdefs.h <<\EOF
                   2871: #define HAVE_GETPRPWNAM 1
                   2872: EOF
                   2873:  SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"; SECUREWARE=1
                   2874: else
                   2875:   echo "$ac_t""no" 1>&6
                   2876: fi
                   2877:
                   2878: fi
                   2879:
                   2880:                    CHECKSHADOW="false"
                   2881:                fi
1.6     ! millert  2882:                mansectsu=1m
        !          2883:                mansectform=4
1.1       millert  2884:                ;;
                   2885:     *-*-hpux1[0-9]*)
                   2886:                # uncomment this for a statically linked sudo
                   2887:                # (XXX - should be an option to configure)
                   2888:                #STATIC_SUDO=true
                   2889:
1.4       millert  2890:                # If using cc, run in ANSI mode if possible
                   2891:                if test -z "$GCC"; then
                   2892:                    $CC -Aa 2>&1 | grep 'A option is available only' >conftest.out
                   2893:                    if test ! -s conftest.out; then
                   2894:                        CPPFLAGS="${CPPFLAGS} -Aa"
                   2895:                    fi
                   2896:                    rm -f conftest.out
                   2897:                fi
                   2898:
                   2899:                # Add -D_HPUX_SOURCE so we don't get strict ANSI headers
                   2900:                CPPFLAGS="${CPPFLAGS} -D_HPUX_SOURCE"
                   2901:
1.1       millert  2902:                if test "$CHECKSHADOW" = "true"; then
                   2903:                    echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
1.6     ! millert  2904: echo "configure:2905: checking for getprpwnam in -lsec" >&5
1.1       millert  2905: if test -n ""; then
                   2906:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   2907: else
                   2908:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
                   2909: fi
                   2910: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2911:   echo $ac_n "(cached) $ac_c" 1>&6
                   2912: else
                   2913:   ac_save_LIBS="$LIBS"
                   2914: LIBS="-lsec  $LIBS"
                   2915: cat > conftest.$ac_ext <<EOF
1.6     ! millert  2916: #line 2917 "configure"
1.1       millert  2917: #include "confdefs.h"
                   2918: /* Override any gcc2 internal prototype to avoid an error.  */
                   2919: /* We use char because int might match the return type of a gcc2
                   2920:     builtin and then its argument prototype would still apply.  */
                   2921: char getprpwnam();
                   2922:
                   2923: int main() {
                   2924: getprpwnam()
                   2925: ; return 0; }
                   2926: EOF
1.6     ! millert  2927: if { (eval echo configure:2928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  2928:   rm -rf conftest*
                   2929:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2930: else
                   2931:   echo "configure: failed program was:" >&5
                   2932:   cat conftest.$ac_ext >&5
                   2933:   rm -rf conftest*
                   2934:   eval "ac_cv_lib_$ac_lib_var=no"
                   2935: fi
                   2936: rm -f conftest*
                   2937: LIBS="$ac_save_LIBS"
                   2938:
                   2939: fi
                   2940: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2941:   echo "$ac_t""yes" 1>&6
                   2942:   cat >> confdefs.h <<\EOF
                   2943: #define HAVE_GETPRPWNAM 1
                   2944: EOF
                   2945:  echo $ac_n "checking for iscomsec in -lsec""... $ac_c" 1>&6
1.6     ! millert  2946: echo "configure:2947: checking for iscomsec in -lsec" >&5
1.1       millert  2947: if test -n ""; then
                   2948:   ac_lib_var=`echo sec'_'iscomsec | sed 'y% ./+-%___p_%'`
                   2949: else
                   2950:   ac_lib_var=`echo sec'_'iscomsec | sed 'y%./+-%__p_%'`
                   2951: fi
                   2952: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2953:   echo $ac_n "(cached) $ac_c" 1>&6
                   2954: else
                   2955:   ac_save_LIBS="$LIBS"
                   2956: LIBS="-lsec  $LIBS"
                   2957: cat > conftest.$ac_ext <<EOF
1.6     ! millert  2958: #line 2959 "configure"
1.1       millert  2959: #include "confdefs.h"
                   2960: /* Override any gcc2 internal prototype to avoid an error.  */
                   2961: /* We use char because int might match the return type of a gcc2
                   2962:     builtin and then its argument prototype would still apply.  */
                   2963: char iscomsec();
                   2964:
                   2965: int main() {
                   2966: iscomsec()
                   2967: ; return 0; }
                   2968: EOF
1.6     ! millert  2969: if { (eval echo configure:2970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  2970:   rm -rf conftest*
                   2971:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2972: else
                   2973:   echo "configure: failed program was:" >&5
                   2974:   cat conftest.$ac_ext >&5
                   2975:   rm -rf conftest*
                   2976:   eval "ac_cv_lib_$ac_lib_var=no"
                   2977: fi
                   2978: rm -f conftest*
                   2979: LIBS="$ac_save_LIBS"
                   2980:
                   2981: fi
                   2982: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2983:   echo "$ac_t""yes" 1>&6
                   2984:   cat >> confdefs.h <<\EOF
                   2985: #define HAVE_ISCOMSEC 1
                   2986: EOF
                   2987:
                   2988: else
                   2989:   echo "$ac_t""no" 1>&6
                   2990: fi
                   2991:  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
                   2992: else
                   2993:   echo "$ac_t""no" 1>&6
                   2994: fi
                   2995:
                   2996:                    CHECKSHADOW="false"
                   2997:                fi
                   2998:
                   2999:                if test -n "$STATIC_SUDO"; then
                   3000:                    if test -n "$GCC"; then
                   3001:                        SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
                   3002:                    else
                   3003:                        SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
                   3004:                    fi
                   3005:                fi
                   3006:
                   3007:                # AFS support needs -lBSD
                   3008:                if test "$with_AFS" = "yes"; then
                   3009:                    AFS_LIBS="-lc -lBSD"
                   3010:                fi
1.6     ! millert  3011:                mansectsu=1m
        !          3012:                mansectform=4
1.1       millert  3013:                ;;
                   3014:     *-*-hpux9*)
                   3015:                # uncomment this for a statically linked sudo
                   3016:                # (XXX - should be an option to configure)
                   3017:                #STATIC_SUDO=true
                   3018:
1.4       millert  3019:                # If using cc, run in ANSI mode if possible
                   3020:                if test -z "$GCC"; then
                   3021:                    $CC -Aa 2>&1 | grep 'A option is available only' >conftest.out
                   3022:                    if test ! -s conftest.out; then
                   3023:                        CPPFLAGS="${CPPFLAGS} -Aa"
                   3024:                    fi
                   3025:                    rm -f conftest.out
                   3026:                fi
                   3027:
                   3028:                # Add -D_HPUX_SOURCE so we don't get strict ANSI headers
                   3029:                CPPFLAGS="${CPPFLAGS} -D_HPUX_SOURCE"
                   3030:
1.1       millert  3031:                cat >> confdefs.h <<\EOF
                   3032: #define BROKEN_SYSLOG 1
                   3033: EOF
                   3034:
                   3035:
                   3036:                if test "$CHECKSHADOW" = "true"; then
                   3037:                    for ac_func in getspwuid
                   3038: do
                   3039: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.6     ! millert  3040: echo "configure:3041: checking for $ac_func" >&5
1.1       millert  3041: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   3042:   echo $ac_n "(cached) $ac_c" 1>&6
                   3043: else
                   3044:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  3045: #line 3046 "configure"
1.1       millert  3046: #include "confdefs.h"
                   3047: /* System header to define __stub macros and hopefully few prototypes,
                   3048:     which can conflict with char $ac_func(); below.  */
                   3049: #include <assert.h>
                   3050: /* Override any gcc2 internal prototype to avoid an error.  */
                   3051: /* We use char because int might match the return type of a gcc2
                   3052:     builtin and then its argument prototype would still apply.  */
                   3053: char $ac_func();
                   3054:
                   3055: int main() {
                   3056:
                   3057: /* The GNU C library defines this for functions which it implements
                   3058:     to always fail with ENOSYS.  Some functions are actually named
                   3059:     something starting with __ and the normal name is an alias.  */
                   3060: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   3061: choke me
                   3062: #else
                   3063: $ac_func();
                   3064: #endif
                   3065:
                   3066: ; return 0; }
                   3067: EOF
1.6     ! millert  3068: if { (eval echo configure:3069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3069:   rm -rf conftest*
                   3070:   eval "ac_cv_func_$ac_func=yes"
                   3071: else
                   3072:   echo "configure: failed program was:" >&5
                   3073:   cat conftest.$ac_ext >&5
                   3074:   rm -rf conftest*
                   3075:   eval "ac_cv_func_$ac_func=no"
                   3076: fi
                   3077: rm -f conftest*
                   3078: fi
                   3079:
                   3080: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   3081:   echo "$ac_t""yes" 1>&6
                   3082:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   3083:   cat >> confdefs.h <<EOF
                   3084: #define $ac_tr_func 1
                   3085: EOF
                   3086:
                   3087: else
                   3088:   echo "$ac_t""no" 1>&6
                   3089: fi
                   3090: done
                   3091:
                   3092:                    CHECKSHADOW="false"
                   3093:                fi
                   3094:
                   3095:                if test -n "$STATIC_SUDO"; then
                   3096:                    if test -n "$GCC"; then
                   3097:                        SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
                   3098:                    else
                   3099:                        SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
                   3100:                    fi
                   3101:                fi
                   3102:
                   3103:                # DCE support (requires ANSI C compiler)
                   3104:                if test "$with_DCE" = "yes"; then
                   3105:                    # order of libs in 9.X is important. -lc_r must be last
                   3106:                    SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
                   3107:                    LIBS="${LIBS} -ldce -lM -lc_r"
1.4       millert  3108:                    CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
1.1       millert  3109:                fi
                   3110:
                   3111:                # AFS support needs -lBSD
                   3112:                if test "$with_AFS" = "yes"; then
                   3113:                    AFS_LIBS="-lc -lBSD"
                   3114:                fi
1.6     ! millert  3115:                mansectsu=1m
        !          3116:                mansectform=4
1.1       millert  3117:                ;;
                   3118:     *-*-hpux*)
                   3119:
                   3120:                cat >> confdefs.h <<\EOF
                   3121: #define BROKEN_SYSLOG 1
                   3122: EOF
                   3123:
                   3124:
                   3125:                # Not sure if setuid binaries are safe in < 9.x
                   3126:                if test -n "$GCC"; then
                   3127:                    SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
                   3128:                else
                   3129:                    SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
                   3130:                fi
                   3131:
                   3132:                # AFS support needs -lBSD
                   3133:                if test "$with_AFS" = "yes"; then
                   3134:                    AFS_LIBS="-lc -lBSD"
                   3135:                fi
1.6     ! millert  3136:                mansectsu=1m
        !          3137:                mansectform=4
1.1       millert  3138:                ;;
                   3139:     *-dec-osf*)
                   3140:                # ignore envariables wrt dynamic lib path
                   3141:                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
                   3142:
                   3143:                echo $ac_n "checking whether to disable sia support on Digital UNIX""... $ac_c" 1>&6
1.6     ! millert  3144: echo "configure:3145: checking whether to disable sia support on Digital UNIX" >&5
1.1       millert  3145:                # Check whether --enable-sia or --disable-sia was given.
                   3146: if test "${enable_sia+set}" = set; then
                   3147:   enableval="$enable_sia"
                   3148:    case "$enableval" in
                   3149:                    yes)        echo "$ac_t""no" 1>&6
                   3150:                                ;;
                   3151:                    no)         echo "$ac_t""yes" 1>&6
                   3152:                                CHECKSIA=false
                   3153:                                ;;
                   3154:                    *)          echo "$ac_t""no" 1>&6
                   3155:                                echo "Ignoring unknown argument to --enable-sia: $enableval"
                   3156:                                ;;
                   3157:                  esac
                   3158:
                   3159: else
                   3160:   echo "$ac_t""no" 1>&6
                   3161: fi
                   3162:
                   3163:
                   3164:                # use SIA by default, if we have it, else SecureWare
                   3165:                # unless overridden on the command line
                   3166:                if test "$CHECKSIA" = "true"; then
                   3167:                    echo $ac_n "checking for sia_ses_init""... $ac_c" 1>&6
1.6     ! millert  3168: echo "configure:3169: checking for sia_ses_init" >&5
1.1       millert  3169: if eval "test \"`echo '$''{'ac_cv_func_sia_ses_init'+set}'`\" = set"; then
                   3170:   echo $ac_n "(cached) $ac_c" 1>&6
                   3171: else
                   3172:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  3173: #line 3174 "configure"
1.1       millert  3174: #include "confdefs.h"
                   3175: /* System header to define __stub macros and hopefully few prototypes,
                   3176:     which can conflict with char sia_ses_init(); below.  */
                   3177: #include <assert.h>
                   3178: /* Override any gcc2 internal prototype to avoid an error.  */
                   3179: /* We use char because int might match the return type of a gcc2
                   3180:     builtin and then its argument prototype would still apply.  */
                   3181: char sia_ses_init();
                   3182:
                   3183: int main() {
                   3184:
                   3185: /* The GNU C library defines this for functions which it implements
                   3186:     to always fail with ENOSYS.  Some functions are actually named
                   3187:     something starting with __ and the normal name is an alias.  */
                   3188: #if defined (__stub_sia_ses_init) || defined (__stub___sia_ses_init)
                   3189: choke me
                   3190: #else
                   3191: sia_ses_init();
                   3192: #endif
                   3193:
                   3194: ; return 0; }
                   3195: EOF
1.6     ! millert  3196: if { (eval echo configure:3197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3197:   rm -rf conftest*
                   3198:   eval "ac_cv_func_sia_ses_init=yes"
                   3199: else
                   3200:   echo "configure: failed program was:" >&5
                   3201:   cat conftest.$ac_ext >&5
                   3202:   rm -rf conftest*
                   3203:   eval "ac_cv_func_sia_ses_init=no"
                   3204: fi
                   3205: rm -f conftest*
                   3206: fi
                   3207:
                   3208: if eval "test \"`echo '$ac_cv_func_'sia_ses_init`\" = yes"; then
                   3209:   echo "$ac_t""yes" 1>&6
                   3210:   cat >> confdefs.h <<\EOF
                   3211: #define HAVE_SIA 1
                   3212: EOF
                   3213:
                   3214:                    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
                   3215:                        { echo "configure: error: "you cannot mix SIA and other authentication schemes.  You can turn off SIA support via the --disable-sia option"" 1>&2; exit 1; }
                   3216:                    fi; CHECKSHADOW=false
                   3217: else
                   3218:   echo "$ac_t""no" 1>&6
                   3219: fi
                   3220:
                   3221:                fi
                   3222:                if test "$CHECKSHADOW" = "true"; then
                   3223:                    echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
1.6     ! millert  3224: echo "configure:3225: checking for getprpwnam in -lsecurity" >&5
1.1       millert  3225: if test -n ""; then
                   3226:   ac_lib_var=`echo security'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   3227: else
                   3228:   ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
                   3229: fi
                   3230: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3231:   echo $ac_n "(cached) $ac_c" 1>&6
                   3232: else
                   3233:   ac_save_LIBS="$LIBS"
                   3234: LIBS="-lsecurity  $LIBS"
                   3235: cat > conftest.$ac_ext <<EOF
1.6     ! millert  3236: #line 3237 "configure"
1.1       millert  3237: #include "confdefs.h"
                   3238: /* Override any gcc2 internal prototype to avoid an error.  */
                   3239: /* We use char because int might match the return type of a gcc2
                   3240:     builtin and then its argument prototype would still apply.  */
                   3241: char getprpwnam();
                   3242:
                   3243: int main() {
                   3244: getprpwnam()
                   3245: ; return 0; }
                   3246: EOF
1.6     ! millert  3247: if { (eval echo configure:3248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3248:   rm -rf conftest*
                   3249:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3250: else
                   3251:   echo "configure: failed program was:" >&5
                   3252:   cat conftest.$ac_ext >&5
                   3253:   rm -rf conftest*
                   3254:   eval "ac_cv_lib_$ac_lib_var=no"
                   3255: fi
                   3256: rm -f conftest*
                   3257: LIBS="$ac_save_LIBS"
                   3258:
                   3259: fi
                   3260: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3261:   echo "$ac_t""yes" 1>&6
                   3262:   SECUREWARE=1
                   3263: else
                   3264:   echo "$ac_t""no" 1>&6
                   3265: fi
                   3266:
                   3267:                    CHECKSHADOW="false"
                   3268:                fi
                   3269:
                   3270:                if test -n "$SECUREWARE"; then
                   3271:                    cat >> confdefs.h <<\EOF
                   3272: #define HAVE_GETPRPWNAM 1
                   3273: EOF
                   3274:
                   3275:                    # -ldb includes bogus versions of snprintf/vsnprintf
                   3276:                    echo $ac_n "checking for snprintf""... $ac_c" 1>&6
1.6     ! millert  3277: echo "configure:3278: checking for snprintf" >&5
1.1       millert  3278: if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
                   3279:   echo $ac_n "(cached) $ac_c" 1>&6
                   3280: else
                   3281:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  3282: #line 3283 "configure"
1.1       millert  3283: #include "confdefs.h"
                   3284: /* System header to define __stub macros and hopefully few prototypes,
                   3285:     which can conflict with char snprintf(); below.  */
                   3286: #include <assert.h>
                   3287: /* Override any gcc2 internal prototype to avoid an error.  */
                   3288: /* We use char because int might match the return type of a gcc2
                   3289:     builtin and then its argument prototype would still apply.  */
                   3290: char snprintf();
                   3291:
                   3292: int main() {
                   3293:
                   3294: /* The GNU C library defines this for functions which it implements
                   3295:     to always fail with ENOSYS.  Some functions are actually named
                   3296:     something starting with __ and the normal name is an alias.  */
                   3297: #if defined (__stub_snprintf) || defined (__stub___snprintf)
                   3298: choke me
                   3299: #else
                   3300: snprintf();
                   3301: #endif
                   3302:
                   3303: ; return 0; }
                   3304: EOF
1.6     ! millert  3305: if { (eval echo configure:3306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3306:   rm -rf conftest*
                   3307:   eval "ac_cv_func_snprintf=yes"
                   3308: else
                   3309:   echo "configure: failed program was:" >&5
                   3310:   cat conftest.$ac_ext >&5
                   3311:   rm -rf conftest*
                   3312:   eval "ac_cv_func_snprintf=no"
                   3313: fi
                   3314: rm -f conftest*
                   3315: fi
                   3316:
                   3317: if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
                   3318:   echo "$ac_t""yes" 1>&6
                   3319:   cat >> confdefs.h <<\EOF
                   3320: #define HAVE_SNPRINTF 1
                   3321: EOF
                   3322:
                   3323: else
                   3324:   echo "$ac_t""no" 1>&6
                   3325: NEED_SNPRINTF=1
                   3326: fi
                   3327:
                   3328:                    echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
1.6     ! millert  3329: echo "configure:3330: checking for vsnprintf" >&5
1.1       millert  3330: if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
                   3331:   echo $ac_n "(cached) $ac_c" 1>&6
                   3332: else
                   3333:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  3334: #line 3335 "configure"
1.1       millert  3335: #include "confdefs.h"
                   3336: /* System header to define __stub macros and hopefully few prototypes,
                   3337:     which can conflict with char vsnprintf(); below.  */
                   3338: #include <assert.h>
                   3339: /* Override any gcc2 internal prototype to avoid an error.  */
                   3340: /* We use char because int might match the return type of a gcc2
                   3341:     builtin and then its argument prototype would still apply.  */
                   3342: char vsnprintf();
                   3343:
                   3344: int main() {
                   3345:
                   3346: /* The GNU C library defines this for functions which it implements
                   3347:     to always fail with ENOSYS.  Some functions are actually named
                   3348:     something starting with __ and the normal name is an alias.  */
                   3349: #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
                   3350: choke me
                   3351: #else
                   3352: vsnprintf();
                   3353: #endif
                   3354:
                   3355: ; return 0; }
                   3356: EOF
1.6     ! millert  3357: if { (eval echo configure:3358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3358:   rm -rf conftest*
                   3359:   eval "ac_cv_func_vsnprintf=yes"
                   3360: else
                   3361:   echo "configure: failed program was:" >&5
                   3362:   cat conftest.$ac_ext >&5
                   3363:   rm -rf conftest*
                   3364:   eval "ac_cv_func_vsnprintf=no"
                   3365: fi
                   3366: rm -f conftest*
                   3367: fi
                   3368:
                   3369: if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
                   3370:   echo "$ac_t""yes" 1>&6
                   3371:   cat >> confdefs.h <<\EOF
                   3372: #define HAVE_VSNPRINTF 1
                   3373: EOF
                   3374:
                   3375: else
                   3376:   echo "$ac_t""no" 1>&6
                   3377: NEED_SNPRINTF=1
                   3378: fi
                   3379:
                   3380:                    # 4.x and higher need -ldb too...
                   3381:                    echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
1.6     ! millert  3382: echo "configure:3383: checking for dbopen in -ldb" >&5
1.1       millert  3383: if test -n ""; then
                   3384:   ac_lib_var=`echo db'_'dbopen | sed 'y% ./+-%___p_%'`
                   3385: else
                   3386:   ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
                   3387: fi
                   3388: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3389:   echo $ac_n "(cached) $ac_c" 1>&6
                   3390: else
                   3391:   ac_save_LIBS="$LIBS"
                   3392: LIBS="-ldb  $LIBS"
                   3393: cat > conftest.$ac_ext <<EOF
1.6     ! millert  3394: #line 3395 "configure"
1.1       millert  3395: #include "confdefs.h"
                   3396: /* Override any gcc2 internal prototype to avoid an error.  */
                   3397: /* We use char because int might match the return type of a gcc2
                   3398:     builtin and then its argument prototype would still apply.  */
                   3399: char dbopen();
                   3400:
                   3401: int main() {
                   3402: dbopen()
                   3403: ; return 0; }
                   3404: EOF
1.6     ! millert  3405: if { (eval echo configure:3406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3406:   rm -rf conftest*
                   3407:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3408: else
                   3409:   echo "configure: failed program was:" >&5
                   3410:   cat conftest.$ac_ext >&5
                   3411:   rm -rf conftest*
                   3412:   eval "ac_cv_lib_$ac_lib_var=no"
                   3413: fi
                   3414: rm -f conftest*
                   3415: LIBS="$ac_save_LIBS"
                   3416:
                   3417: fi
                   3418: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3419:   echo "$ac_t""yes" 1>&6
                   3420:   SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
                   3421: else
                   3422:   echo "$ac_t""no" 1>&6
                   3423: SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
                   3424: fi
                   3425:
                   3426:                    for ac_func in dispcrypt
                   3427: do
                   3428: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.6     ! millert  3429: echo "configure:3430: checking for $ac_func" >&5
1.1       millert  3430: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   3431:   echo $ac_n "(cached) $ac_c" 1>&6
                   3432: else
                   3433:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  3434: #line 3435 "configure"
1.1       millert  3435: #include "confdefs.h"
                   3436: /* System header to define __stub macros and hopefully few prototypes,
                   3437:     which can conflict with char $ac_func(); below.  */
                   3438: #include <assert.h>
                   3439: /* Override any gcc2 internal prototype to avoid an error.  */
                   3440: /* We use char because int might match the return type of a gcc2
                   3441:     builtin and then its argument prototype would still apply.  */
                   3442: char $ac_func();
                   3443:
                   3444: int main() {
                   3445:
                   3446: /* The GNU C library defines this for functions which it implements
                   3447:     to always fail with ENOSYS.  Some functions are actually named
                   3448:     something starting with __ and the normal name is an alias.  */
                   3449: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   3450: choke me
                   3451: #else
                   3452: $ac_func();
                   3453: #endif
                   3454:
                   3455: ; return 0; }
                   3456: EOF
1.6     ! millert  3457: if { (eval echo configure:3458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3458:   rm -rf conftest*
                   3459:   eval "ac_cv_func_$ac_func=yes"
                   3460: else
                   3461:   echo "configure: failed program was:" >&5
                   3462:   cat conftest.$ac_ext >&5
                   3463:   rm -rf conftest*
                   3464:   eval "ac_cv_func_$ac_func=no"
                   3465: fi
                   3466: rm -f conftest*
                   3467: fi
                   3468:
                   3469: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   3470:   echo "$ac_t""yes" 1>&6
                   3471:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   3472:   cat >> confdefs.h <<EOF
                   3473: #define $ac_tr_func 1
                   3474: EOF
                   3475:
                   3476: else
                   3477:   echo "$ac_t""no" 1>&6
                   3478: fi
                   3479: done
                   3480:
                   3481:                    echo $ac_n "checking for broken /usr/include/prot.h""... $ac_c" 1>&6
1.6     ! millert  3482: echo "configure:3483: checking for broken /usr/include/prot.h" >&5
1.1       millert  3483:                    cat > conftest.$ac_ext <<EOF
1.6     ! millert  3484: #line 3485 "configure"
1.1       millert  3485: #include "confdefs.h"
                   3486:
                   3487: #include <sys/types.h>
                   3488: #include <sys/security.h>
                   3489: #include <prot.h>
                   3490:
                   3491: int main() {
                   3492: exit(0);
                   3493: ; return 0; }
                   3494: EOF
1.6     ! millert  3495: if { (eval echo configure:3496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       millert  3496:   rm -rf conftest*
                   3497:   echo "$ac_t""no" 1>&6
                   3498: else
                   3499:   echo "configure: failed program was:" >&5
                   3500:   cat conftest.$ac_ext >&5
                   3501:   rm -rf conftest*
                   3502:   echo "$ac_t""yes, fixing locally" 1>&6
                   3503:                    sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
                   3504:
                   3505: fi
                   3506: rm -f conftest*
                   3507:                else
                   3508:                    with_passwd=no
                   3509:                    AUTH_OBJS="sia.o"
                   3510:                fi
1.6     ! millert  3511:                mansectsu=8
        !          3512:                mansectform=4
1.1       millert  3513:                ;;
                   3514:     *-*-irix*)
                   3515:                # configure may not think irix has stdc headers
                   3516:                # but it's good enough for sudo
                   3517:                cat >> confdefs.h <<\EOF
                   3518: #define STDC_HEADERS 1
                   3519: EOF
                   3520:
                   3521:                CPPFLAGS="${CPPFLAGS} -D_BSD_TYPES"
                   3522:                if test -z "$NROFFPROG"; then
                   3523:                    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)'
                   3524:                    if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
                   3525:                        if test -d /usr/share/catman/local; then
                   3526:                            mandir="/usr/share/catman/local"
                   3527:                        else
                   3528:                            mandir="/usr/catman/local"
                   3529:                        fi
                   3530:                    fi
                   3531:                else
                   3532:                    if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
                   3533:                        if test -d "/usr/share/man/local"; then
                   3534:                            mandir="/usr/share/man/local"
                   3535:                        else
                   3536:                            mandir="/usr/man/local"
                   3537:                        fi
                   3538:                    fi
                   3539:                fi
                   3540:                # IRIX <= 4 needs -lsun
                   3541:                if test "$OSREV" -le 4; then
                   3542:                    echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
1.6     ! millert  3543: echo "configure:3544: checking for getpwnam in -lsun" >&5
1.1       millert  3544: if test -n ""; then
                   3545:   ac_lib_var=`echo sun'_'getpwnam | sed 'y% ./+-%___p_%'`
                   3546: else
                   3547:   ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
                   3548: fi
                   3549: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3550:   echo $ac_n "(cached) $ac_c" 1>&6
                   3551: else
                   3552:   ac_save_LIBS="$LIBS"
                   3553: LIBS="-lsun  $LIBS"
                   3554: cat > conftest.$ac_ext <<EOF
1.6     ! millert  3555: #line 3556 "configure"
1.1       millert  3556: #include "confdefs.h"
                   3557: /* Override any gcc2 internal prototype to avoid an error.  */
                   3558: /* We use char because int might match the return type of a gcc2
                   3559:     builtin and then its argument prototype would still apply.  */
                   3560: char getpwnam();
                   3561:
                   3562: int main() {
                   3563: getpwnam()
                   3564: ; return 0; }
                   3565: EOF
1.6     ! millert  3566: if { (eval echo configure:3567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3567:   rm -rf conftest*
                   3568:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3569: else
                   3570:   echo "configure: failed program was:" >&5
                   3571:   cat conftest.$ac_ext >&5
                   3572:   rm -rf conftest*
                   3573:   eval "ac_cv_lib_$ac_lib_var=no"
                   3574: fi
                   3575: rm -f conftest*
                   3576: LIBS="$ac_save_LIBS"
                   3577:
                   3578: fi
                   3579: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3580:   echo "$ac_t""yes" 1>&6
                   3581:   LIBS="${LIBS} -lsun"
                   3582: else
                   3583:   echo "$ac_t""no" 1>&6
                   3584: fi
                   3585:
                   3586:                fi
1.6     ! millert  3587:                mansectsu=1m
        !          3588:                mansectform=4
1.1       millert  3589:                ;;
                   3590:     *-*-linux*)
                   3591:                # To get crypt(3) and vasprintf() prototypes (so we pass -Wall)
                   3592:                cat >> confdefs.h <<\EOF
                   3593: #define _GNU_SOURCE 1
                   3594: EOF
                   3595:
                   3596:
                   3597:                # Some Linux versions need to link with -lshadow
                   3598:                if test "$CHECKSHADOW" = "true"; then
                   3599:                    echo $ac_n "checking for getspnam""... $ac_c" 1>&6
1.6     ! millert  3600: echo "configure:3601: checking for getspnam" >&5
1.1       millert  3601: if eval "test \"`echo '$''{'ac_cv_func_getspnam'+set}'`\" = set"; then
                   3602:   echo $ac_n "(cached) $ac_c" 1>&6
                   3603: else
                   3604:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  3605: #line 3606 "configure"
1.1       millert  3606: #include "confdefs.h"
                   3607: /* System header to define __stub macros and hopefully few prototypes,
                   3608:     which can conflict with char getspnam(); below.  */
                   3609: #include <assert.h>
                   3610: /* Override any gcc2 internal prototype to avoid an error.  */
                   3611: /* We use char because int might match the return type of a gcc2
                   3612:     builtin and then its argument prototype would still apply.  */
                   3613: char getspnam();
                   3614:
                   3615: int main() {
                   3616:
                   3617: /* The GNU C library defines this for functions which it implements
                   3618:     to always fail with ENOSYS.  Some functions are actually named
                   3619:     something starting with __ and the normal name is an alias.  */
                   3620: #if defined (__stub_getspnam) || defined (__stub___getspnam)
                   3621: choke me
                   3622: #else
                   3623: getspnam();
                   3624: #endif
                   3625:
                   3626: ; return 0; }
                   3627: EOF
1.6     ! millert  3628: if { (eval echo configure:3629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3629:   rm -rf conftest*
                   3630:   eval "ac_cv_func_getspnam=yes"
                   3631: else
                   3632:   echo "configure: failed program was:" >&5
                   3633:   cat conftest.$ac_ext >&5
                   3634:   rm -rf conftest*
                   3635:   eval "ac_cv_func_getspnam=no"
                   3636: fi
                   3637: rm -f conftest*
                   3638: fi
                   3639:
                   3640: if eval "test \"`echo '$ac_cv_func_'getspnam`\" = yes"; then
                   3641:   echo "$ac_t""yes" 1>&6
                   3642:   cat >> confdefs.h <<\EOF
                   3643: #define HAVE_GETSPNAM 1
                   3644: EOF
                   3645:
                   3646: else
                   3647:   echo "$ac_t""no" 1>&6
                   3648: echo $ac_n "checking for getspnam in -lshadow""... $ac_c" 1>&6
1.6     ! millert  3649: echo "configure:3650: checking for getspnam in -lshadow" >&5
1.1       millert  3650: if test -n ""; then
                   3651:   ac_lib_var=`echo shadow'_'getspnam | sed 'y% ./+-%___p_%'`
                   3652: else
                   3653:   ac_lib_var=`echo shadow'_'getspnam | sed 'y%./+-%__p_%'`
                   3654: fi
                   3655: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3656:   echo $ac_n "(cached) $ac_c" 1>&6
                   3657: else
                   3658:   ac_save_LIBS="$LIBS"
                   3659: LIBS="-lshadow  $LIBS"
                   3660: cat > conftest.$ac_ext <<EOF
1.6     ! millert  3661: #line 3662 "configure"
1.1       millert  3662: #include "confdefs.h"
                   3663: /* Override any gcc2 internal prototype to avoid an error.  */
                   3664: /* We use char because int might match the return type of a gcc2
                   3665:     builtin and then its argument prototype would still apply.  */
                   3666: char getspnam();
                   3667:
                   3668: int main() {
                   3669: getspnam()
                   3670: ; return 0; }
                   3671: EOF
1.6     ! millert  3672: if { (eval echo configure:3673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3673:   rm -rf conftest*
                   3674:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3675: else
                   3676:   echo "configure: failed program was:" >&5
                   3677:   cat conftest.$ac_ext >&5
                   3678:   rm -rf conftest*
                   3679:   eval "ac_cv_lib_$ac_lib_var=no"
                   3680: fi
                   3681: rm -f conftest*
                   3682: LIBS="$ac_save_LIBS"
                   3683:
                   3684: fi
                   3685: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3686:   echo "$ac_t""yes" 1>&6
                   3687:   cat >> confdefs.h <<\EOF
                   3688: #define HAVE_GETSPNAM 1
                   3689: EOF
                   3690:  SUDO_LIBS="${SUDO_LIBS} -lshadow"; LIBS="${LIBS} -lshadow"
                   3691: else
                   3692:   echo "$ac_t""no" 1>&6
                   3693: fi
                   3694:
                   3695: fi
                   3696:
                   3697:                    CHECKSHADOW="false"
                   3698:                fi
                   3699:                ;;
                   3700:     *-convex-bsd*)
                   3701:                cat >> confdefs.h <<\EOF
                   3702: #define _CONVEX_SOURCE 1
                   3703: EOF
                   3704:
                   3705:                if test -z "$GCC"; then
                   3706:                    CFLAGS="${CFLAGS} -D__STDC__"
                   3707:                fi
                   3708:
                   3709:                if test "$CHECKSHADOW" = "true"; then
                   3710:                    echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
1.6     ! millert  3711: echo "configure:3712: checking for getprpwnam in -lsec" >&5
1.1       millert  3712: if test -n ""; then
                   3713:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   3714: else
                   3715:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
                   3716: fi
                   3717: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3718:   echo $ac_n "(cached) $ac_c" 1>&6
                   3719: else
                   3720:   ac_save_LIBS="$LIBS"
                   3721: LIBS="-lsec  $LIBS"
                   3722: cat > conftest.$ac_ext <<EOF
1.6     ! millert  3723: #line 3724 "configure"
1.1       millert  3724: #include "confdefs.h"
                   3725: /* Override any gcc2 internal prototype to avoid an error.  */
                   3726: /* We use char because int might match the return type of a gcc2
                   3727:     builtin and then its argument prototype would still apply.  */
                   3728: char getprpwnam();
                   3729:
                   3730: int main() {
                   3731: getprpwnam()
                   3732: ; return 0; }
                   3733: EOF
1.6     ! millert  3734: if { (eval echo configure:3735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3735:   rm -rf conftest*
                   3736:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3737: else
                   3738:   echo "configure: failed program was:" >&5
                   3739:   cat conftest.$ac_ext >&5
                   3740:   rm -rf conftest*
                   3741:   eval "ac_cv_lib_$ac_lib_var=no"
                   3742: fi
                   3743: rm -f conftest*
                   3744: LIBS="$ac_save_LIBS"
                   3745:
                   3746: fi
                   3747: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3748:   echo "$ac_t""yes" 1>&6
                   3749:   cat >> confdefs.h <<\EOF
                   3750: #define HAVE_GETPRPWNAM 1
                   3751: EOF
                   3752:  SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"; OSDEFS="${OSDEFS} -D_AUDIT -D_ACL -DSecureWare"; SECUREWARE=1
                   3753: else
                   3754:   echo "$ac_t""no" 1>&6
                   3755: fi
                   3756:
                   3757:                    CHECKSHADOW="false"
                   3758:                fi
                   3759:                ;;
                   3760:     *-*-ultrix*)
                   3761:                OS="ultrix"
                   3762:                if test "$CHECKSHADOW" = "true"; then
                   3763:                    echo $ac_n "checking for getauthuid in -lauth""... $ac_c" 1>&6
1.6     ! millert  3764: echo "configure:3765: checking for getauthuid in -lauth" >&5
1.1       millert  3765: if test -n ""; then
                   3766:   ac_lib_var=`echo auth'_'getauthuid | sed 'y% ./+-%___p_%'`
                   3767: else
                   3768:   ac_lib_var=`echo auth'_'getauthuid | sed 'y%./+-%__p_%'`
                   3769: fi
                   3770: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3771:   echo $ac_n "(cached) $ac_c" 1>&6
                   3772: else
                   3773:   ac_save_LIBS="$LIBS"
                   3774: LIBS="-lauth  $LIBS"
                   3775: cat > conftest.$ac_ext <<EOF
1.6     ! millert  3776: #line 3777 "configure"
1.1       millert  3777: #include "confdefs.h"
                   3778: /* Override any gcc2 internal prototype to avoid an error.  */
                   3779: /* We use char because int might match the return type of a gcc2
                   3780:     builtin and then its argument prototype would still apply.  */
                   3781: char getauthuid();
                   3782:
                   3783: int main() {
                   3784: getauthuid()
                   3785: ; return 0; }
                   3786: EOF
1.6     ! millert  3787: if { (eval echo configure:3788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3788:   rm -rf conftest*
                   3789:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3790: else
                   3791:   echo "configure: failed program was:" >&5
                   3792:   cat conftest.$ac_ext >&5
                   3793:   rm -rf conftest*
                   3794:   eval "ac_cv_lib_$ac_lib_var=no"
                   3795: fi
                   3796: rm -f conftest*
                   3797: LIBS="$ac_save_LIBS"
                   3798:
                   3799: fi
                   3800: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3801:   echo "$ac_t""yes" 1>&6
                   3802:   cat >> confdefs.h <<\EOF
                   3803: #define HAVE_GETAUTHUID 1
                   3804: EOF
                   3805:  SUDO_LIBS="${SUDO_LIBS} -lauth"; LIBS="${LIBS} -lauth"
                   3806: else
                   3807:   echo "$ac_t""no" 1>&6
                   3808: fi
                   3809:
                   3810:                    CHECKSHADOW="false"
                   3811:                fi
                   3812:                ;;
                   3813:     *-*-riscos*)
                   3814:                LIBS="${LIBS} -lsun -lbsd"
                   3815:                CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
                   3816:                OSDEFS="${OSDEFS} -D_MIPS"
1.6     ! millert  3817:                mansectsu=1m
        !          3818:                mansectform=4
1.1       millert  3819:                ;;
                   3820:     *-*-isc*)
                   3821:                OSDEFS="${OSDEFS} -D_ISC"
                   3822:                LIB_CRYPT=1
                   3823:                SUDO_LIBS="${SUDO_LIBS} -lcrypt"
                   3824:                LIBS="${LIBS} -lcrypt"
                   3825:
                   3826:                if test "$CHECKSHADOW" = "true"; then
                   3827:                    echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
1.6     ! millert  3828: echo "configure:3829: checking for getspnam in -lsec" >&5
1.1       millert  3829: if test -n ""; then
                   3830:   ac_lib_var=`echo sec'_'getspnam | sed 'y% ./+-%___p_%'`
                   3831: else
                   3832:   ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
                   3833: fi
                   3834: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3835:   echo $ac_n "(cached) $ac_c" 1>&6
                   3836: else
                   3837:   ac_save_LIBS="$LIBS"
                   3838: LIBS="-lsec  $LIBS"
                   3839: cat > conftest.$ac_ext <<EOF
1.6     ! millert  3840: #line 3841 "configure"
1.1       millert  3841: #include "confdefs.h"
                   3842: /* Override any gcc2 internal prototype to avoid an error.  */
                   3843: /* We use char because int might match the return type of a gcc2
                   3844:     builtin and then its argument prototype would still apply.  */
                   3845: char getspnam();
                   3846:
                   3847: int main() {
                   3848: getspnam()
                   3849: ; return 0; }
                   3850: EOF
1.6     ! millert  3851: if { (eval echo configure:3852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3852:   rm -rf conftest*
                   3853:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3854: else
                   3855:   echo "configure: failed program was:" >&5
                   3856:   cat conftest.$ac_ext >&5
                   3857:   rm -rf conftest*
                   3858:   eval "ac_cv_lib_$ac_lib_var=no"
                   3859: fi
                   3860: rm -f conftest*
                   3861: LIBS="$ac_save_LIBS"
                   3862:
                   3863: fi
                   3864: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3865:   echo "$ac_t""yes" 1>&6
                   3866:   cat >> confdefs.h <<\EOF
                   3867: #define HAVE_GETSPNAM 1
                   3868: EOF
                   3869:  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
                   3870: else
                   3871:   echo "$ac_t""no" 1>&6
                   3872: fi
                   3873:
                   3874:                    CHECKSHADOW="false"
                   3875:                fi
1.6     ! millert  3876:                mansectsu=1m
        !          3877:                mansectform=4
1.1       millert  3878:                ;;
                   3879:     *-*-sco*)
                   3880:                if test "$CHECKSHADOW" = "true"; then
                   3881:                    echo $ac_n "checking for getprpwnam in -lprot""... $ac_c" 1>&6
1.6     ! millert  3882: echo "configure:3883: checking for getprpwnam in -lprot" >&5
1.1       millert  3883: if test -n "-lx"; then
                   3884:   ac_lib_var=`echo prot'_'getprpwnam-lx | sed 'y% ./+-%___p_%'`
                   3885: else
                   3886:   ac_lib_var=`echo prot'_'getprpwnam | sed 'y%./+-%__p_%'`
                   3887: fi
                   3888: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3889:   echo $ac_n "(cached) $ac_c" 1>&6
                   3890: else
                   3891:   ac_save_LIBS="$LIBS"
                   3892: LIBS="-lprot -lx $LIBS"
                   3893: cat > conftest.$ac_ext <<EOF
1.6     ! millert  3894: #line 3895 "configure"
1.1       millert  3895: #include "confdefs.h"
                   3896: /* Override any gcc2 internal prototype to avoid an error.  */
                   3897: /* We use char because int might match the return type of a gcc2
                   3898:     builtin and then its argument prototype would still apply.  */
                   3899: char getprpwnam();
                   3900:
                   3901: int main() {
                   3902: getprpwnam()
                   3903: ; return 0; }
                   3904: EOF
1.6     ! millert  3905: if { (eval echo configure:3906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3906:   rm -rf conftest*
                   3907:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3908: else
                   3909:   echo "configure: failed program was:" >&5
                   3910:   cat conftest.$ac_ext >&5
                   3911:   rm -rf conftest*
                   3912:   eval "ac_cv_lib_$ac_lib_var=no"
                   3913: fi
                   3914: rm -f conftest*
                   3915: LIBS="$ac_save_LIBS"
                   3916:
                   3917: fi
                   3918: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3919:   echo "$ac_t""yes" 1>&6
                   3920:   cat >> confdefs.h <<\EOF
                   3921: #define HAVE_GETPRPWNAM 1
                   3922: EOF
                   3923:  SUDO_LIBS="${SUDO_LIBS} -lprot -lx"; LIBS="${LIBS} -lprot -lx"; SECUREWARE=1
                   3924: else
                   3925:   echo "$ac_t""no" 1>&6
                   3926: fi
                   3927:
                   3928:                    echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
1.6     ! millert  3929: echo "configure:3930: checking for getspnam in -lgen" >&5
1.1       millert  3930: if test -n ""; then
                   3931:   ac_lib_var=`echo gen'_'getspnam | sed 'y% ./+-%___p_%'`
                   3932: else
                   3933:   ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
                   3934: fi
                   3935: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3936:   echo $ac_n "(cached) $ac_c" 1>&6
                   3937: else
                   3938:   ac_save_LIBS="$LIBS"
                   3939: LIBS="-lgen  $LIBS"
                   3940: cat > conftest.$ac_ext <<EOF
1.6     ! millert  3941: #line 3942 "configure"
1.1       millert  3942: #include "confdefs.h"
                   3943: /* Override any gcc2 internal prototype to avoid an error.  */
                   3944: /* We use char because int might match the return type of a gcc2
                   3945:     builtin and then its argument prototype would still apply.  */
                   3946: char getspnam();
                   3947:
                   3948: int main() {
                   3949: getspnam()
                   3950: ; return 0; }
                   3951: EOF
1.6     ! millert  3952: if { (eval echo configure:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  3953:   rm -rf conftest*
                   3954:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3955: else
                   3956:   echo "configure: failed program was:" >&5
                   3957:   cat conftest.$ac_ext >&5
                   3958:   rm -rf conftest*
                   3959:   eval "ac_cv_lib_$ac_lib_var=no"
                   3960: fi
                   3961: rm -f conftest*
                   3962: LIBS="$ac_save_LIBS"
                   3963:
                   3964: fi
                   3965: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3966:   echo "$ac_t""yes" 1>&6
                   3967:   cat >> confdefs.h <<\EOF
                   3968: #define HAVE_GETSPNAM 1
                   3969: EOF
                   3970:  SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
                   3971: else
                   3972:   echo "$ac_t""no" 1>&6
                   3973: fi
                   3974:
                   3975:                    CHECKSHADOW="false"
                   3976:                fi
1.6     ! millert  3977:                mansectsu=1m
        !          3978:                mansectform=4
1.1       millert  3979:                ;;
                   3980:     *-sequent-sysv*)
                   3981:                if test "$CHECKSHADOW" = "true"; then
                   3982:                    echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
1.6     ! millert  3983: echo "configure:3984: checking for getspnam in -lsec" >&5
1.1       millert  3984: if test -n ""; then
                   3985:   ac_lib_var=`echo sec'_'getspnam | sed 'y% ./+-%___p_%'`
                   3986: else
                   3987:   ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
                   3988: fi
                   3989: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3990:   echo $ac_n "(cached) $ac_c" 1>&6
                   3991: else
                   3992:   ac_save_LIBS="$LIBS"
                   3993: LIBS="-lsec  $LIBS"
                   3994: cat > conftest.$ac_ext <<EOF
1.6     ! millert  3995: #line 3996 "configure"
1.1       millert  3996: #include "confdefs.h"
                   3997: /* Override any gcc2 internal prototype to avoid an error.  */
                   3998: /* We use char because int might match the return type of a gcc2
                   3999:     builtin and then its argument prototype would still apply.  */
                   4000: char getspnam();
                   4001:
                   4002: int main() {
                   4003: getspnam()
                   4004: ; return 0; }
                   4005: EOF
1.6     ! millert  4006: if { (eval echo configure:4007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  4007:   rm -rf conftest*
                   4008:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4009: else
                   4010:   echo "configure: failed program was:" >&5
                   4011:   cat conftest.$ac_ext >&5
                   4012:   rm -rf conftest*
                   4013:   eval "ac_cv_lib_$ac_lib_var=no"
                   4014: fi
                   4015: rm -f conftest*
                   4016: LIBS="$ac_save_LIBS"
                   4017:
                   4018: fi
                   4019: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4020:   echo "$ac_t""yes" 1>&6
                   4021:   cat >> confdefs.h <<\EOF
                   4022: #define HAVE_GETSPNAM 1
                   4023: EOF
                   4024:  SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
                   4025: else
                   4026:   echo "$ac_t""no" 1>&6
                   4027: fi
                   4028:
                   4029:                    CHECKSHADOW="false"
                   4030:                fi
1.6     ! millert  4031:                mansectsu=1m
        !          4032:                mansectform=4
1.1       millert  4033:                ;;
                   4034:     *-ccur-sysv4|*-ccur-sysvr4)
                   4035:                LIBS="${LIBS} -lgen"
                   4036:                SUDO_LIBS="${SUDO_LIBS} -lgen"
1.6     ! millert  4037:                mansectsu=1m
        !          4038:                mansectform=4
1.1       millert  4039:                ;;
                   4040:     *-*-bsdi*)
1.6     ! millert  4041:                # Use shlicc for BSD/OS [23].x unless asked to do otherwise
        !          4042:                if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
        !          4043:                    case "$OSREV" in
        !          4044:                        2|3)    echo 'using shlicc as CC'
        !          4045:                                ac_cv_prog_CC=shlicc
        !          4046:                                CC="$ac_cv_prog_CC"
        !          4047:                                ;;
        !          4048:                    esac
        !          4049:                fi
        !          4050:                ;;
        !          4051:     *-*-freebsd*)
        !          4052:                if test "$with_skey" = "yes"; then
        !          4053:                     SUDO_LIBS="${SUDO_LIBS} -lmd"
        !          4054:                fi
        !          4055:                if test "$CHECKSHADOW" = "true"; then
        !          4056:                    CHECKSHADOW="false"
1.1       millert  4057:                fi
                   4058:                ;;
                   4059:     *-*-*bsd*)
                   4060:                if test "$CHECKSHADOW" = "true"; then
                   4061:                    CHECKSHADOW="false"
                   4062:                fi
                   4063:                ;;
1.6     ! millert  4064:     *-*-sysv*)
        !          4065:                mansectsu=1m
        !          4066:                mansectform=4
        !          4067:                ;;
1.1       millert  4068: esac
                   4069:
1.6     ! millert  4070: test -n "$mansectsu" || mansectsu=8
        !          4071: test -n "$mansectform" || mansectform=5
        !          4072:
1.1       millert  4073: if test "$CHECKSHADOW" = "true"; then
                   4074:     echo $ac_n "checking for getspnam""... $ac_c" 1>&6
1.6     ! millert  4075: echo "configure:4076: checking for getspnam" >&5
1.1       millert  4076: if eval "test \"`echo '$''{'ac_cv_func_getspnam'+set}'`\" = set"; then
                   4077:   echo $ac_n "(cached) $ac_c" 1>&6
                   4078: else
                   4079:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  4080: #line 4081 "configure"
1.1       millert  4081: #include "confdefs.h"
                   4082: /* System header to define __stub macros and hopefully few prototypes,
                   4083:     which can conflict with char getspnam(); below.  */
                   4084: #include <assert.h>
                   4085: /* Override any gcc2 internal prototype to avoid an error.  */
                   4086: /* We use char because int might match the return type of a gcc2
                   4087:     builtin and then its argument prototype would still apply.  */
                   4088: char getspnam();
                   4089:
                   4090: int main() {
                   4091:
                   4092: /* The GNU C library defines this for functions which it implements
                   4093:     to always fail with ENOSYS.  Some functions are actually named
                   4094:     something starting with __ and the normal name is an alias.  */
                   4095: #if defined (__stub_getspnam) || defined (__stub___getspnam)
                   4096: choke me
                   4097: #else
                   4098: getspnam();
                   4099: #endif
                   4100:
                   4101: ; return 0; }
                   4102: EOF
1.6     ! millert  4103: if { (eval echo configure:4104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  4104:   rm -rf conftest*
                   4105:   eval "ac_cv_func_getspnam=yes"
                   4106: else
                   4107:   echo "configure: failed program was:" >&5
                   4108:   cat conftest.$ac_ext >&5
                   4109:   rm -rf conftest*
                   4110:   eval "ac_cv_func_getspnam=no"
                   4111: fi
                   4112: rm -f conftest*
                   4113: fi
                   4114:
                   4115: if eval "test \"`echo '$ac_cv_func_'getspnam`\" = yes"; then
                   4116:   echo "$ac_t""yes" 1>&6
                   4117:   cat >> confdefs.h <<\EOF
                   4118: #define HAVE_GETSPNAM 1
                   4119: EOF
                   4120:  CHECKSHADOW="false"
                   4121: else
                   4122:   echo "$ac_t""no" 1>&6
                   4123: fi
                   4124:
                   4125: fi
                   4126: if test "$CHECKSHADOW" = "true"; then
                   4127:     echo $ac_n "checking for getprpwnam""... $ac_c" 1>&6
1.6     ! millert  4128: echo "configure:4129: checking for getprpwnam" >&5
1.1       millert  4129: if eval "test \"`echo '$''{'ac_cv_func_getprpwnam'+set}'`\" = set"; then
                   4130:   echo $ac_n "(cached) $ac_c" 1>&6
                   4131: else
                   4132:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  4133: #line 4134 "configure"
1.1       millert  4134: #include "confdefs.h"
                   4135: /* System header to define __stub macros and hopefully few prototypes,
                   4136:     which can conflict with char getprpwnam(); below.  */
                   4137: #include <assert.h>
                   4138: /* Override any gcc2 internal prototype to avoid an error.  */
                   4139: /* We use char because int might match the return type of a gcc2
                   4140:     builtin and then its argument prototype would still apply.  */
                   4141: char getprpwnam();
                   4142:
                   4143: int main() {
                   4144:
                   4145: /* The GNU C library defines this for functions which it implements
                   4146:     to always fail with ENOSYS.  Some functions are actually named
                   4147:     something starting with __ and the normal name is an alias.  */
                   4148: #if defined (__stub_getprpwnam) || defined (__stub___getprpwnam)
                   4149: choke me
                   4150: #else
                   4151: getprpwnam();
                   4152: #endif
                   4153:
                   4154: ; return 0; }
                   4155: EOF
1.6     ! millert  4156: if { (eval echo configure:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  4157:   rm -rf conftest*
                   4158:   eval "ac_cv_func_getprpwnam=yes"
                   4159: else
                   4160:   echo "configure: failed program was:" >&5
                   4161:   cat conftest.$ac_ext >&5
                   4162:   rm -rf conftest*
                   4163:   eval "ac_cv_func_getprpwnam=no"
                   4164: fi
                   4165: rm -f conftest*
                   4166: fi
                   4167:
                   4168: if eval "test \"`echo '$ac_cv_func_'getprpwnam`\" = yes"; then
                   4169:   echo "$ac_t""yes" 1>&6
                   4170:   cat >> confdefs.h <<\EOF
                   4171: #define HAVE_GETPRPWNAM 1
                   4172: EOF
                   4173:  CHECKSHADOW="false"; SECUREWARE=1
                   4174: else
                   4175:   echo "$ac_t""no" 1>&6
                   4176: echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
1.6     ! millert  4177: echo "configure:4178: checking for getprpwnam in -lsec" >&5
1.1       millert  4178: if test -n ""; then
                   4179:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   4180: else
                   4181:   ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
                   4182: fi
                   4183: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4184:   echo $ac_n "(cached) $ac_c" 1>&6
                   4185: else
                   4186:   ac_save_LIBS="$LIBS"
                   4187: LIBS="-lsec  $LIBS"
                   4188: cat > conftest.$ac_ext <<EOF
1.6     ! millert  4189: #line 4190 "configure"
1.1       millert  4190: #include "confdefs.h"
                   4191: /* Override any gcc2 internal prototype to avoid an error.  */
                   4192: /* We use char because int might match the return type of a gcc2
                   4193:     builtin and then its argument prototype would still apply.  */
                   4194: char getprpwnam();
                   4195:
                   4196: int main() {
                   4197: getprpwnam()
                   4198: ; return 0; }
                   4199: EOF
1.6     ! millert  4200: if { (eval echo configure:4201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  4201:   rm -rf conftest*
                   4202:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4203: else
                   4204:   echo "configure: failed program was:" >&5
                   4205:   cat conftest.$ac_ext >&5
                   4206:   rm -rf conftest*
                   4207:   eval "ac_cv_lib_$ac_lib_var=no"
                   4208: fi
                   4209: rm -f conftest*
                   4210: LIBS="$ac_save_LIBS"
                   4211:
                   4212: fi
                   4213: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4214:   echo "$ac_t""yes" 1>&6
                   4215:   cat >> confdefs.h <<\EOF
                   4216: #define HAVE_GETPRPWNAM 1
                   4217: EOF
                   4218:  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
                   4219: else
                   4220:   echo "$ac_t""no" 1>&6
                   4221: echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
1.6     ! millert  4222: echo "configure:4223: checking for getprpwnam in -lsecurity" >&5
1.1       millert  4223: if test -n ""; then
                   4224:   ac_lib_var=`echo security'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   4225: else
                   4226:   ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
                   4227: fi
                   4228: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4229:   echo $ac_n "(cached) $ac_c" 1>&6
                   4230: else
                   4231:   ac_save_LIBS="$LIBS"
                   4232: LIBS="-lsecurity  $LIBS"
                   4233: cat > conftest.$ac_ext <<EOF
1.6     ! millert  4234: #line 4235 "configure"
1.1       millert  4235: #include "confdefs.h"
                   4236: /* Override any gcc2 internal prototype to avoid an error.  */
                   4237: /* We use char because int might match the return type of a gcc2
                   4238:     builtin and then its argument prototype would still apply.  */
                   4239: char getprpwnam();
                   4240:
                   4241: int main() {
                   4242: getprpwnam()
                   4243: ; return 0; }
                   4244: EOF
1.6     ! millert  4245: if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  4246:   rm -rf conftest*
                   4247:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4248: else
                   4249:   echo "configure: failed program was:" >&5
                   4250:   cat conftest.$ac_ext >&5
                   4251:   rm -rf conftest*
                   4252:   eval "ac_cv_lib_$ac_lib_var=no"
                   4253: fi
                   4254: rm -f conftest*
                   4255: LIBS="$ac_save_LIBS"
                   4256:
                   4257: fi
                   4258: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4259:   echo "$ac_t""yes" 1>&6
                   4260:   cat >> confdefs.h <<\EOF
                   4261: #define HAVE_GETPRPWNAM 1
                   4262: EOF
                   4263:  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"
                   4264: else
                   4265:   echo "$ac_t""no" 1>&6
                   4266: echo $ac_n "checking for getprpwnam in -lprot""... $ac_c" 1>&6
1.6     ! millert  4267: echo "configure:4268: checking for getprpwnam in -lprot" >&5
1.1       millert  4268: if test -n ""; then
                   4269:   ac_lib_var=`echo prot'_'getprpwnam | sed 'y% ./+-%___p_%'`
                   4270: else
                   4271:   ac_lib_var=`echo prot'_'getprpwnam | sed 'y%./+-%__p_%'`
                   4272: fi
                   4273: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4274:   echo $ac_n "(cached) $ac_c" 1>&6
                   4275: else
                   4276:   ac_save_LIBS="$LIBS"
                   4277: LIBS="-lprot  $LIBS"
                   4278: cat > conftest.$ac_ext <<EOF
1.6     ! millert  4279: #line 4280 "configure"
1.1       millert  4280: #include "confdefs.h"
                   4281: /* Override any gcc2 internal prototype to avoid an error.  */
                   4282: /* We use char because int might match the return type of a gcc2
                   4283:     builtin and then its argument prototype would still apply.  */
                   4284: char getprpwnam();
                   4285:
                   4286: int main() {
                   4287: getprpwnam()
                   4288: ; return 0; }
                   4289: EOF
1.6     ! millert  4290: if { (eval echo configure:4291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  4291:   rm -rf conftest*
                   4292:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4293: else
                   4294:   echo "configure: failed program was:" >&5
                   4295:   cat conftest.$ac_ext >&5
                   4296:   rm -rf conftest*
                   4297:   eval "ac_cv_lib_$ac_lib_var=no"
                   4298: fi
                   4299: rm -f conftest*
                   4300: LIBS="$ac_save_LIBS"
                   4301:
                   4302: fi
                   4303: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4304:   echo "$ac_t""yes" 1>&6
                   4305:   cat >> confdefs.h <<\EOF
                   4306: #define HAVE_GETPRPWNAM 1
                   4307: EOF
                   4308:  CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"
                   4309: else
                   4310:   echo "$ac_t""no" 1>&6
                   4311: fi
                   4312:
                   4313: fi
                   4314:
                   4315: fi
                   4316:
                   4317: fi
                   4318:
                   4319: fi
                   4320:
                   4321: if test $ac_cv_prog_gcc = yes; then
                   4322:     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1.6     ! millert  4323: echo "configure:4324: checking whether ${CC-cc} needs -traditional" >&5
1.1       millert  4324: if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
                   4325:   echo $ac_n "(cached) $ac_c" 1>&6
                   4326: else
                   4327:     ac_pattern="Autoconf.*'x'"
                   4328:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  4329: #line 4330 "configure"
1.1       millert  4330: #include "confdefs.h"
                   4331: #include <sgtty.h>
                   4332: Autoconf TIOCGETP
                   4333: EOF
                   4334: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4335:   egrep "$ac_pattern" >/dev/null 2>&1; then
                   4336:   rm -rf conftest*
                   4337:   ac_cv_prog_gcc_traditional=yes
                   4338: else
                   4339:   rm -rf conftest*
                   4340:   ac_cv_prog_gcc_traditional=no
                   4341: fi
                   4342: rm -f conftest*
                   4343:
                   4344:
                   4345:   if test $ac_cv_prog_gcc_traditional = no; then
                   4346:     cat > conftest.$ac_ext <<EOF
1.6     ! millert  4347: #line 4348 "configure"
1.1       millert  4348: #include "confdefs.h"
                   4349: #include <termio.h>
                   4350: Autoconf TCGETA
                   4351: EOF
                   4352: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4353:   egrep "$ac_pattern" >/dev/null 2>&1; then
                   4354:   rm -rf conftest*
                   4355:   ac_cv_prog_gcc_traditional=yes
                   4356: fi
                   4357: rm -f conftest*
                   4358:
                   4359:   fi
                   4360: fi
                   4361:
                   4362: echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
                   4363:   if test $ac_cv_prog_gcc_traditional = yes; then
                   4364:     CC="$CC -traditional"
                   4365:   fi
                   4366: fi
                   4367:
                   4368: echo $ac_n "checking for working const""... $ac_c" 1>&6
1.6     ! millert  4369: echo "configure:4370: checking for working const" >&5
1.1       millert  4370: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
                   4371:   echo $ac_n "(cached) $ac_c" 1>&6
                   4372: else
                   4373:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  4374: #line 4375 "configure"
1.1       millert  4375: #include "confdefs.h"
                   4376:
                   4377: int main() {
                   4378:
                   4379: /* Ultrix mips cc rejects this.  */
                   4380: typedef int charset[2]; const charset x;
                   4381: /* SunOS 4.1.1 cc rejects this.  */
                   4382: char const *const *ccp;
                   4383: char **p;
                   4384: /* NEC SVR4.0.2 mips cc rejects this.  */
                   4385: struct point {int x, y;};
                   4386: static struct point const zero = {0,0};
                   4387: /* AIX XL C 1.02.0.0 rejects this.
                   4388:    It does not let you subtract one const X* pointer from another in an arm
                   4389:    of an if-expression whose if-part is not a constant expression */
                   4390: const char *g = "string";
                   4391: ccp = &g + (g ? g-g : 0);
                   4392: /* HPUX 7.0 cc rejects these. */
                   4393: ++ccp;
                   4394: p = (char**) ccp;
                   4395: ccp = (char const *const *) p;
                   4396: { /* SCO 3.2v4 cc rejects this.  */
                   4397:   char *t;
                   4398:   char const *s = 0 ? (char *) 0 : (char const *) 0;
                   4399:
                   4400:   *t++ = 0;
                   4401: }
                   4402: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   4403:   int x[] = {25, 17};
                   4404:   const int *foo = &x[0];
                   4405:   ++foo;
                   4406: }
                   4407: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   4408:   typedef const int *iptr;
                   4409:   iptr p = 0;
                   4410:   ++p;
                   4411: }
                   4412: { /* AIX XL C 1.02.0.0 rejects this saying
                   4413:      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   4414:   struct s { int j; const int *ap[3]; };
                   4415:   struct s *b; b->j = 5;
                   4416: }
                   4417: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   4418:   const int foo = 10;
                   4419: }
                   4420:
                   4421: ; return 0; }
                   4422: EOF
1.6     ! millert  4423: if { (eval echo configure:4424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       millert  4424:   rm -rf conftest*
                   4425:   ac_cv_c_const=yes
                   4426: else
                   4427:   echo "configure: failed program was:" >&5
                   4428:   cat conftest.$ac_ext >&5
                   4429:   rm -rf conftest*
                   4430:   ac_cv_c_const=no
                   4431: fi
                   4432: rm -f conftest*
                   4433: fi
                   4434:
                   4435: echo "$ac_t""$ac_cv_c_const" 1>&6
                   4436: if test $ac_cv_c_const = no; then
                   4437:   cat >> confdefs.h <<\EOF
                   4438: #define const
                   4439: EOF
                   4440:
                   4441: fi
                   4442:
                   4443: for ac_prog in 'bison -y' byacc
                   4444: do
                   4445: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4446: set dummy $ac_prog; ac_word=$2
                   4447: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.6     ! millert  4448: echo "configure:4449: checking for $ac_word" >&5
1.1       millert  4449: if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
                   4450:   echo $ac_n "(cached) $ac_c" 1>&6
                   4451: else
                   4452:   if test -n "$YACC"; then
                   4453:   ac_cv_prog_YACC="$YACC" # Let the user override the test.
                   4454: else
                   4455:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                   4456:   for ac_dir in $PATH; do
                   4457:     test -z "$ac_dir" && ac_dir=.
                   4458:     if test -f $ac_dir/$ac_word; then
                   4459:       ac_cv_prog_YACC="$ac_prog"
                   4460:       break
                   4461:     fi
                   4462:   done
                   4463:   IFS="$ac_save_ifs"
                   4464: fi
                   4465: fi
                   4466: YACC="$ac_cv_prog_YACC"
                   4467: if test -n "$YACC"; then
                   4468:   echo "$ac_t""$YACC" 1>&6
                   4469: else
                   4470:   echo "$ac_t""no" 1>&6
                   4471: fi
                   4472:
                   4473: test -n "$YACC" && break
                   4474: done
                   4475: test -n "$YACC" || YACC="yacc"
                   4476:
                   4477: if test -z "$with_sendmail"; then
                   4478:     echo $ac_n "checking for sendmail""... $ac_c" 1>&6
1.6     ! millert  4479: echo "configure:4480: checking for sendmail" >&5
1.1       millert  4480: if test -f "/usr/sbin/sendmail"; then
                   4481:     echo "$ac_t""/usr/sbin/sendmail" 1>&6
                   4482:     cat >> confdefs.h <<\EOF
                   4483: #define _PATH_SENDMAIL "/usr/sbin/sendmail"
                   4484: EOF
                   4485:
                   4486: elif test -f "/usr/lib/sendmail"; then
                   4487:     echo "$ac_t""/usr/lib/sendmail" 1>&6
                   4488:     cat >> confdefs.h <<\EOF
                   4489: #define _PATH_SENDMAIL "/usr/lib/sendmail"
                   4490: EOF
                   4491:
                   4492: elif test -f "/usr/etc/sendmail"; then
                   4493:     echo "$ac_t""/usr/etc/sendmail" 1>&6
                   4494:     cat >> confdefs.h <<\EOF
                   4495: #define _PATH_SENDMAIL "/usr/etc/sendmail"
                   4496: EOF
                   4497:
                   4498: elif test -f "/usr/ucblib/sendmail"; then
                   4499:     echo "$ac_t""/usr/ucblib/sendmail" 1>&6
                   4500:     cat >> confdefs.h <<\EOF
                   4501: #define _PATH_SENDMAIL "/usr/ucblib/sendmail"
                   4502: EOF
                   4503:
                   4504: elif test -f "/usr/local/lib/sendmail"; then
                   4505:     echo "$ac_t""/usr/local/lib/sendmail" 1>&6
                   4506:     cat >> confdefs.h <<\EOF
                   4507: #define _PATH_SENDMAIL "/usr/local/lib/sendmail"
                   4508: EOF
                   4509:
                   4510: elif test -f "/usr/local/bin/sendmail"; then
                   4511:     echo "$ac_t""/usr/local/bin/sendmail" 1>&6
                   4512:     cat >> confdefs.h <<\EOF
                   4513: #define _PATH_SENDMAIL "/usr/local/bin/sendmail"
                   4514: EOF
                   4515:
                   4516: else
                   4517:     echo "$ac_t""not found" 1>&6
                   4518: fi
                   4519:
                   4520: fi
                   4521: echo $ac_n "checking for mv""... $ac_c" 1>&6
1.6     ! millert  4522: echo "configure:4523: checking for mv" >&5
1.1       millert  4523: if test -f "/usr/bin/mv"; then
                   4524:     echo "$ac_t""/usr/bin/mv" 1>&6
                   4525:     cat >> confdefs.h <<\EOF
                   4526: #define _PATH_MV "/usr/bin/mv"
                   4527: EOF
                   4528:
                   4529: elif test -f "/bin/mv"; then
                   4530:     echo "$ac_t""/bin/mv" 1>&6
                   4531:     cat >> confdefs.h <<\EOF
                   4532: #define _PATH_MV "/bin/mv"
                   4533: EOF
                   4534:
                   4535: elif test -f "/usr/ucb/mv"; then
                   4536:     echo "$ac_t""/usr/ucb/mv" 1>&6
                   4537:     cat >> confdefs.h <<\EOF
                   4538: #define _PATH_MV "/usr/ucb/mv"
                   4539: EOF
                   4540:
                   4541: elif test -f "/usr/sbin/mv"; then
                   4542:     echo "$ac_t""/usr/sbin/mv" 1>&6
                   4543:     cat >> confdefs.h <<\EOF
                   4544: #define _PATH_MV "/usr/sbin/mv"
                   4545: EOF
                   4546:
                   4547: else
                   4548:     echo "$ac_t""not found" 1>&6
                   4549: fi
                   4550:
                   4551: echo $ac_n "checking for bourne shell""... $ac_c" 1>&6
1.6     ! millert  4552: echo "configure:4553: checking for bourne shell" >&5
1.1       millert  4553: if test -f "/bin/sh"; then
                   4554:     echo "$ac_t""/bin/sh" 1>&6
                   4555:     cat >> confdefs.h <<\EOF
                   4556: #define _PATH_BSHELL "/bin/sh"
                   4557: EOF
                   4558:
                   4559: elif test -f "/usr/bin/sh"; then
                   4560:     echo "$ac_t""/usr/bin/sh" 1>&6
                   4561:     cat >> confdefs.h <<\EOF
                   4562: #define _PATH_BSHELL "/usr/bin/sh"
                   4563: EOF
                   4564:
                   4565: elif test -f "/sbin/sh"; then
                   4566:     echo "$ac_t""/sbin/sh" 1>&6
                   4567:     cat >> confdefs.h <<\EOF
                   4568: #define _PATH_BSHELL "/sbin/sh"
                   4569: EOF
                   4570:
                   4571: elif test -f "/usr/sbin/sh"; then
                   4572:     echo "$ac_t""/usr/sbin/sh" 1>&6
                   4573:     cat >> confdefs.h <<\EOF
                   4574: #define _PATH_BSHELL "/usr/sbin/sh"
                   4575: EOF
                   4576:
                   4577: elif test -f "/bin/ksh"; then
                   4578:     echo "$ac_t""/bin/ksh" 1>&6
                   4579:     cat >> confdefs.h <<\EOF
                   4580: #define _PATH_BSHELL "/bin/ksh"
                   4581: EOF
                   4582:
                   4583: elif test -f "/usr/bin/ksh"; then
                   4584:     echo "$ac_t""/usr/bin/ksh" 1>&6
                   4585:     cat >> confdefs.h <<\EOF
                   4586: #define _PATH_BSHELL "/usr/bin/ksh"
                   4587: EOF
                   4588:
                   4589: elif test -f "/bin/bash"; then
                   4590:     echo "$ac_t""/bin/bash" 1>&6
                   4591:     cat >> confdefs.h <<\EOF
                   4592: #define _PATH_BSHELL "/bin/bash"
                   4593: EOF
                   4594:
                   4595: elif test -f "/usr/bin/bash"; then
                   4596:     echo "$ac_t""/usr/bin/bash" 1>&6
                   4597:     cat >> confdefs.h <<\EOF
                   4598: #define _PATH_BSHELL "/usr/bin/bash"
                   4599: EOF
                   4600:
                   4601: else
                   4602:     echo "$ac_t""not found" 1>&6
                   4603: fi
                   4604:
                   4605: echo $ac_n "checking for vi""... $ac_c" 1>&6
1.6     ! millert  4606: echo "configure:4607: checking for vi" >&5
1.1       millert  4607: if test -f "/usr/bin/vi"; then
                   4608:     echo "$ac_t""/usr/bin/vi" 1>&6
                   4609:     cat >> confdefs.h <<\EOF
                   4610: #define _PATH_VI "/usr/bin/vi"
                   4611: EOF
                   4612:
                   4613: elif test -f "/usr/ucb/vi"; then
                   4614:     echo "$ac_t""/usr/ucb/vi" 1>&6
                   4615:     cat >> confdefs.h <<\EOF
                   4616: #define _PATH_VI "/usr/ucb/vi"
                   4617: EOF
                   4618:
                   4619: elif test -f "/usr/bsd/vi"; then
                   4620:     echo "$ac_t""/usr/bsd/vi" 1>&6
                   4621:     cat >> confdefs.h <<\EOF
                   4622: #define _PATH_VI "/usr/bsd/vi"
                   4623: EOF
                   4624:
                   4625: elif test -f "/bin/vi"; then
                   4626:     echo "$ac_t""/bin/vi" 1>&6
                   4627:     cat >> confdefs.h <<\EOF
                   4628: #define _PATH_VI "/bin/vi"
                   4629: EOF
                   4630:
                   4631: elif test -f "/usr/local/bin/vi"; then
                   4632:     echo "$ac_t""/usr/local/bin/vi" 1>&6
                   4633:     cat >> confdefs.h <<\EOF
                   4634: #define _PATH_VI "/usr/local/bin/vi"
                   4635: EOF
                   4636:
                   4637: else
                   4638:     echo "$ac_t""not found" 1>&6
                   4639: fi
                   4640:
                   4641: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1.6     ! millert  4642: echo "configure:4643: checking for ANSI C header files" >&5
1.1       millert  4643: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
                   4644:   echo $ac_n "(cached) $ac_c" 1>&6
                   4645: else
                   4646:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  4647: #line 4648 "configure"
1.1       millert  4648: #include "confdefs.h"
                   4649: #include <stdlib.h>
                   4650: #include <stdarg.h>
                   4651: #include <string.h>
                   4652: #include <float.h>
                   4653: EOF
                   4654: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.6     ! millert  4655: { (eval echo configure:4656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       millert  4656: ac_err=`grep -v '^ *+' conftest.out`
                   4657: if test -z "$ac_err"; then
                   4658:   rm -rf conftest*
                   4659:   ac_cv_header_stdc=yes
                   4660: else
                   4661:   echo "$ac_err" >&5
                   4662:   echo "configure: failed program was:" >&5
                   4663:   cat conftest.$ac_ext >&5
                   4664:   rm -rf conftest*
                   4665:   ac_cv_header_stdc=no
                   4666: fi
                   4667: rm -f conftest*
                   4668:
                   4669: if test $ac_cv_header_stdc = yes; then
                   4670:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   4671: cat > conftest.$ac_ext <<EOF
1.6     ! millert  4672: #line 4673 "configure"
1.1       millert  4673: #include "confdefs.h"
                   4674: #include <string.h>
                   4675: EOF
                   4676: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4677:   egrep "memchr" >/dev/null 2>&1; then
                   4678:   :
                   4679: else
                   4680:   rm -rf conftest*
                   4681:   ac_cv_header_stdc=no
                   4682: fi
                   4683: rm -f conftest*
                   4684:
                   4685: fi
                   4686:
                   4687: if test $ac_cv_header_stdc = yes; then
                   4688:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   4689: cat > conftest.$ac_ext <<EOF
1.6     ! millert  4690: #line 4691 "configure"
1.1       millert  4691: #include "confdefs.h"
                   4692: #include <stdlib.h>
                   4693: EOF
                   4694: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4695:   egrep "free" >/dev/null 2>&1; then
                   4696:   :
                   4697: else
                   4698:   rm -rf conftest*
                   4699:   ac_cv_header_stdc=no
                   4700: fi
                   4701: rm -f conftest*
                   4702:
                   4703: fi
                   4704:
                   4705: if test $ac_cv_header_stdc = yes; then
                   4706:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   4707: if test "$cross_compiling" = yes; then
                   4708:   :
                   4709: else
                   4710:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  4711: #line 4712 "configure"
1.1       millert  4712: #include "confdefs.h"
                   4713: #include <ctype.h>
                   4714: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   4715: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   4716: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   4717: int main () { int i; for (i = 0; i < 256; i++)
                   4718: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
                   4719: exit (0); }
                   4720:
                   4721: EOF
1.6     ! millert  4722: if { (eval echo configure:4723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1       millert  4723: then
                   4724:   :
                   4725: else
                   4726:   echo "configure: failed program was:" >&5
                   4727:   cat conftest.$ac_ext >&5
                   4728:   rm -fr conftest*
                   4729:   ac_cv_header_stdc=no
                   4730: fi
                   4731: rm -fr conftest*
                   4732: fi
                   4733:
                   4734: fi
                   4735: fi
                   4736:
                   4737: echo "$ac_t""$ac_cv_header_stdc" 1>&6
                   4738: if test $ac_cv_header_stdc = yes; then
                   4739:   cat >> confdefs.h <<\EOF
                   4740: #define STDC_HEADERS 1
                   4741: EOF
                   4742:
                   4743: fi
                   4744:
                   4745: ac_header_dirent=no
                   4746: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
                   4747: do
                   4748: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   4749: echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1.6     ! millert  4750: echo "configure:4751: checking for $ac_hdr that defines DIR" >&5
1.1       millert  4751: if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
                   4752:   echo $ac_n "(cached) $ac_c" 1>&6
                   4753: else
                   4754:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  4755: #line 4756 "configure"
1.1       millert  4756: #include "confdefs.h"
                   4757: #include <sys/types.h>
                   4758: #include <$ac_hdr>
                   4759: int main() {
                   4760: DIR *dirp = 0;
                   4761: ; return 0; }
                   4762: EOF
1.6     ! millert  4763: if { (eval echo configure:4764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       millert  4764:   rm -rf conftest*
                   4765:   eval "ac_cv_header_dirent_$ac_safe=yes"
                   4766: else
                   4767:   echo "configure: failed program was:" >&5
                   4768:   cat conftest.$ac_ext >&5
                   4769:   rm -rf conftest*
                   4770:   eval "ac_cv_header_dirent_$ac_safe=no"
                   4771: fi
                   4772: rm -f conftest*
                   4773: fi
                   4774: if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
                   4775:   echo "$ac_t""yes" 1>&6
                   4776:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   4777:   cat >> confdefs.h <<EOF
                   4778: #define $ac_tr_hdr 1
                   4779: EOF
                   4780:  ac_header_dirent=$ac_hdr; break
                   4781: else
                   4782:   echo "$ac_t""no" 1>&6
                   4783: fi
                   4784: done
                   4785: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   4786: if test $ac_header_dirent = dirent.h; then
                   4787: echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1.6     ! millert  4788: echo "configure:4789: checking for opendir in -ldir" >&5
1.1       millert  4789: if test -n ""; then
                   4790:   ac_lib_var=`echo dir'_'opendir | sed 'y% ./+-%___p_%'`
                   4791: else
                   4792:   ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
                   4793: fi
                   4794: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4795:   echo $ac_n "(cached) $ac_c" 1>&6
                   4796: else
                   4797:   ac_save_LIBS="$LIBS"
                   4798: LIBS="-ldir  $LIBS"
                   4799: cat > conftest.$ac_ext <<EOF
1.6     ! millert  4800: #line 4801 "configure"
1.1       millert  4801: #include "confdefs.h"
                   4802: /* Override any gcc2 internal prototype to avoid an error.  */
                   4803: /* We use char because int might match the return type of a gcc2
                   4804:     builtin and then its argument prototype would still apply.  */
                   4805: char opendir();
                   4806:
                   4807: int main() {
                   4808: opendir()
                   4809: ; return 0; }
                   4810: EOF
1.6     ! millert  4811: if { (eval echo configure:4812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  4812:   rm -rf conftest*
                   4813:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4814: else
                   4815:   echo "configure: failed program was:" >&5
                   4816:   cat conftest.$ac_ext >&5
                   4817:   rm -rf conftest*
                   4818:   eval "ac_cv_lib_$ac_lib_var=no"
                   4819: fi
                   4820: rm -f conftest*
                   4821: LIBS="$ac_save_LIBS"
                   4822:
                   4823: fi
                   4824: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4825:   echo "$ac_t""yes" 1>&6
                   4826:   LIBS="$LIBS -ldir"
                   4827: else
                   4828:   echo "$ac_t""no" 1>&6
                   4829: fi
                   4830:
                   4831: else
                   4832: echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1.6     ! millert  4833: echo "configure:4834: checking for opendir in -lx" >&5
1.1       millert  4834: if test -n ""; then
                   4835:   ac_lib_var=`echo x'_'opendir | sed 'y% ./+-%___p_%'`
                   4836: else
                   4837:   ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
                   4838: fi
                   4839: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4840:   echo $ac_n "(cached) $ac_c" 1>&6
                   4841: else
                   4842:   ac_save_LIBS="$LIBS"
                   4843: LIBS="-lx  $LIBS"
                   4844: cat > conftest.$ac_ext <<EOF
1.6     ! millert  4845: #line 4846 "configure"
1.1       millert  4846: #include "confdefs.h"
                   4847: /* Override any gcc2 internal prototype to avoid an error.  */
                   4848: /* We use char because int might match the return type of a gcc2
                   4849:     builtin and then its argument prototype would still apply.  */
                   4850: char opendir();
                   4851:
                   4852: int main() {
                   4853: opendir()
                   4854: ; return 0; }
                   4855: EOF
1.6     ! millert  4856: if { (eval echo configure:4857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  4857:   rm -rf conftest*
                   4858:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4859: else
                   4860:   echo "configure: failed program was:" >&5
                   4861:   cat conftest.$ac_ext >&5
                   4862:   rm -rf conftest*
                   4863:   eval "ac_cv_lib_$ac_lib_var=no"
                   4864: fi
                   4865: rm -f conftest*
                   4866: LIBS="$ac_save_LIBS"
                   4867:
                   4868: fi
                   4869: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4870:   echo "$ac_t""yes" 1>&6
                   4871:   LIBS="$LIBS -lx"
                   4872: else
                   4873:   echo "$ac_t""no" 1>&6
                   4874: fi
                   4875:
                   4876: fi
                   4877:
1.3       millert  4878: for ac_hdr in string.h strings.h unistd.h malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
1.1       millert  4879: do
                   4880: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   4881: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.6     ! millert  4882: echo "configure:4883: checking for $ac_hdr" >&5
1.1       millert  4883: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4884:   echo $ac_n "(cached) $ac_c" 1>&6
                   4885: else
                   4886:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  4887: #line 4888 "configure"
1.1       millert  4888: #include "confdefs.h"
                   4889: #include <$ac_hdr>
                   4890: EOF
                   4891: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.6     ! millert  4892: { (eval echo configure:4893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       millert  4893: ac_err=`grep -v '^ *+' conftest.out`
                   4894: if test -z "$ac_err"; then
                   4895:   rm -rf conftest*
                   4896:   eval "ac_cv_header_$ac_safe=yes"
                   4897: else
                   4898:   echo "$ac_err" >&5
                   4899:   echo "configure: failed program was:" >&5
                   4900:   cat conftest.$ac_ext >&5
                   4901:   rm -rf conftest*
                   4902:   eval "ac_cv_header_$ac_safe=no"
                   4903: fi
                   4904: rm -f conftest*
                   4905: fi
                   4906: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4907:   echo "$ac_t""yes" 1>&6
                   4908:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   4909:   cat >> confdefs.h <<EOF
                   4910: #define $ac_tr_hdr 1
                   4911: EOF
                   4912:
                   4913: else
                   4914:   echo "$ac_t""no" 1>&6
                   4915: fi
                   4916: done
                   4917:
                   4918: if test "$OS" != "ultrix"; then
                   4919:     for ac_hdr in termio.h
                   4920: do
                   4921: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   4922: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.6     ! millert  4923: echo "configure:4924: checking for $ac_hdr" >&5
1.1       millert  4924: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4925:   echo $ac_n "(cached) $ac_c" 1>&6
                   4926: else
                   4927:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  4928: #line 4929 "configure"
1.1       millert  4929: #include "confdefs.h"
                   4930: #include <$ac_hdr>
                   4931: EOF
                   4932: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.6     ! millert  4933: { (eval echo configure:4934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       millert  4934: ac_err=`grep -v '^ *+' conftest.out`
                   4935: if test -z "$ac_err"; then
                   4936:   rm -rf conftest*
                   4937:   eval "ac_cv_header_$ac_safe=yes"
                   4938: else
                   4939:   echo "$ac_err" >&5
                   4940:   echo "configure: failed program was:" >&5
                   4941:   cat conftest.$ac_ext >&5
                   4942:   rm -rf conftest*
                   4943:   eval "ac_cv_header_$ac_safe=no"
                   4944: fi
                   4945: rm -f conftest*
                   4946: fi
                   4947: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4948:   echo "$ac_t""yes" 1>&6
                   4949:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   4950:   cat >> confdefs.h <<EOF
                   4951: #define $ac_tr_hdr 1
                   4952: EOF
                   4953:
                   4954: else
                   4955:   echo "$ac_t""no" 1>&6
                   4956: fi
                   4957: done
                   4958:
                   4959:     for ac_hdr in termios.h
                   4960: do
                   4961: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   4962: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.6     ! millert  4963: echo "configure:4964: checking for $ac_hdr" >&5
1.1       millert  4964: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4965:   echo $ac_n "(cached) $ac_c" 1>&6
                   4966: else
                   4967:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  4968: #line 4969 "configure"
1.1       millert  4969: #include "confdefs.h"
                   4970: #include <$ac_hdr>
                   4971: EOF
                   4972: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.6     ! millert  4973: { (eval echo configure:4974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       millert  4974: ac_err=`grep -v '^ *+' conftest.out`
                   4975: if test -z "$ac_err"; then
                   4976:   rm -rf conftest*
                   4977:   eval "ac_cv_header_$ac_safe=yes"
                   4978: else
                   4979:   echo "$ac_err" >&5
                   4980:   echo "configure: failed program was:" >&5
                   4981:   cat conftest.$ac_ext >&5
                   4982:   rm -rf conftest*
                   4983:   eval "ac_cv_header_$ac_safe=no"
                   4984: fi
                   4985: rm -f conftest*
                   4986: fi
                   4987: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4988:   echo "$ac_t""yes" 1>&6
                   4989:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   4990:   cat >> confdefs.h <<EOF
                   4991: #define $ac_tr_hdr 1
                   4992: EOF
                   4993:  for ac_func in tcgetattr
                   4994: do
                   4995: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.6     ! millert  4996: echo "configure:4997: checking for $ac_func" >&5
1.1       millert  4997: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   4998:   echo $ac_n "(cached) $ac_c" 1>&6
                   4999: else
                   5000:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  5001: #line 5002 "configure"
1.1       millert  5002: #include "confdefs.h"
                   5003: /* System header to define __stub macros and hopefully few prototypes,
                   5004:     which can conflict with char $ac_func(); below.  */
                   5005: #include <assert.h>
                   5006: /* Override any gcc2 internal prototype to avoid an error.  */
                   5007: /* We use char because int might match the return type of a gcc2
                   5008:     builtin and then its argument prototype would still apply.  */
                   5009: char $ac_func();
                   5010:
                   5011: int main() {
                   5012:
                   5013: /* The GNU C library defines this for functions which it implements
                   5014:     to always fail with ENOSYS.  Some functions are actually named
                   5015:     something starting with __ and the normal name is an alias.  */
                   5016: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5017: choke me
                   5018: #else
                   5019: $ac_func();
                   5020: #endif
                   5021:
                   5022: ; return 0; }
                   5023: EOF
1.6     ! millert  5024: if { (eval echo configure:5025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5025:   rm -rf conftest*
                   5026:   eval "ac_cv_func_$ac_func=yes"
                   5027: else
                   5028:   echo "configure: failed program was:" >&5
                   5029:   cat conftest.$ac_ext >&5
                   5030:   rm -rf conftest*
                   5031:   eval "ac_cv_func_$ac_func=no"
                   5032: fi
                   5033: rm -f conftest*
                   5034: fi
                   5035:
                   5036: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5037:   echo "$ac_t""yes" 1>&6
                   5038:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5039:   cat >> confdefs.h <<EOF
                   5040: #define $ac_tr_func 1
                   5041: EOF
                   5042:
                   5043: else
                   5044:   echo "$ac_t""no" 1>&6
                   5045: fi
                   5046: done
                   5047:
                   5048: else
                   5049:   echo "$ac_t""no" 1>&6
                   5050: fi
                   5051: done
                   5052:
                   5053: fi
                   5054: echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1.6     ! millert  5055: echo "configure:5056: checking for mode_t" >&5
1.1       millert  5056: if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
                   5057:   echo $ac_n "(cached) $ac_c" 1>&6
                   5058: else
                   5059:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  5060: #line 5061 "configure"
1.1       millert  5061: #include "confdefs.h"
                   5062: #include <sys/types.h>
                   5063: #if STDC_HEADERS
                   5064: #include <stdlib.h>
                   5065: #include <stddef.h>
                   5066: #endif
                   5067: EOF
                   5068: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5069:   egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
                   5070:   rm -rf conftest*
                   5071:   ac_cv_type_mode_t=yes
                   5072: else
                   5073:   rm -rf conftest*
                   5074:   ac_cv_type_mode_t=no
                   5075: fi
                   5076: rm -f conftest*
                   5077:
                   5078: fi
                   5079: echo "$ac_t""$ac_cv_type_mode_t" 1>&6
                   5080: if test $ac_cv_type_mode_t = no; then
                   5081:   cat >> confdefs.h <<\EOF
                   5082: #define mode_t int
                   5083: EOF
                   5084:
                   5085: fi
                   5086:
                   5087: echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1.6     ! millert  5088: echo "configure:5089: checking for uid_t in sys/types.h" >&5
1.1       millert  5089: if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
                   5090:   echo $ac_n "(cached) $ac_c" 1>&6
                   5091: else
                   5092:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  5093: #line 5094 "configure"
1.1       millert  5094: #include "confdefs.h"
                   5095: #include <sys/types.h>
                   5096: EOF
                   5097: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5098:   egrep "uid_t" >/dev/null 2>&1; then
                   5099:   rm -rf conftest*
                   5100:   ac_cv_type_uid_t=yes
                   5101: else
                   5102:   rm -rf conftest*
                   5103:   ac_cv_type_uid_t=no
                   5104: fi
                   5105: rm -f conftest*
                   5106:
                   5107: fi
                   5108:
                   5109: echo "$ac_t""$ac_cv_type_uid_t" 1>&6
                   5110: if test $ac_cv_type_uid_t = no; then
                   5111:   cat >> confdefs.h <<\EOF
                   5112: #define uid_t int
                   5113: EOF
                   5114:
                   5115:   cat >> confdefs.h <<\EOF
                   5116: #define gid_t int
                   5117: EOF
                   5118:
                   5119: fi
                   5120:
                   5121: echo $ac_n "checking for size_t""... $ac_c" 1>&6
1.6     ! millert  5122: echo "configure:5123: checking for size_t" >&5
1.1       millert  5123: if eval "test \"`echo '$''{'sudo_cv_type_size_t'+set}'`\" = set"; then
                   5124:   echo $ac_n "(cached) $ac_c" 1>&6
                   5125: else
                   5126:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  5127: #line 5128 "configure"
1.1       millert  5128: #include "confdefs.h"
                   5129: #include <sys/types.h>
                   5130: #if STDC_HEADERS
                   5131: #include <stdlib.h>
                   5132: #endif
                   5133: #if HAVE_UNISTD_H
                   5134: #include <unistd.h>
                   5135: #endif
                   5136: EOF
                   5137: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5138:   egrep "size_t" >/dev/null 2>&1; then
                   5139:   rm -rf conftest*
                   5140:   sudo_cv_type_size_t=yes
                   5141: else
                   5142:   rm -rf conftest*
                   5143:   sudo_cv_type_size_t=no
                   5144: fi
                   5145: rm -f conftest*
                   5146:
                   5147: fi
                   5148: echo "$ac_t""$sudo_cv_type_size_t" 1>&6
                   5149: if test $sudo_cv_type_size_t = no; then
                   5150:   cat >> confdefs.h <<\EOF
                   5151: #define size_t int
                   5152: EOF
                   5153:
                   5154: fi
                   5155:
                   5156: echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
1.6     ! millert  5157: echo "configure:5158: checking for ssize_t" >&5
1.1       millert  5158: if eval "test \"`echo '$''{'sudo_cv_type_ssize_t'+set}'`\" = set"; then
                   5159:   echo $ac_n "(cached) $ac_c" 1>&6
                   5160: else
                   5161:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  5162: #line 5163 "configure"
1.1       millert  5163: #include "confdefs.h"
                   5164: #include <sys/types.h>
                   5165: #if STDC_HEADERS
                   5166: #include <stdlib.h>
                   5167: #endif
                   5168: #if HAVE_UNISTD_H
                   5169: #include <unistd.h>
                   5170: #endif
                   5171: EOF
                   5172: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5173:   egrep "ssize_t" >/dev/null 2>&1; then
                   5174:   rm -rf conftest*
                   5175:   sudo_cv_type_ssize_t=yes
                   5176: else
                   5177:   rm -rf conftest*
                   5178:   sudo_cv_type_ssize_t=no
                   5179: fi
                   5180: rm -f conftest*
                   5181:
                   5182: fi
                   5183: echo "$ac_t""$sudo_cv_type_ssize_t" 1>&6
                   5184: if test $sudo_cv_type_ssize_t = no; then
                   5185:   cat >> confdefs.h <<\EOF
                   5186: #define ssize_t int
                   5187: EOF
                   5188:
                   5189: fi
                   5190:
                   5191: echo $ac_n "checking for dev_t""... $ac_c" 1>&6
1.6     ! millert  5192: echo "configure:5193: checking for dev_t" >&5
1.1       millert  5193: if eval "test \"`echo '$''{'sudo_cv_type_dev_t'+set}'`\" = set"; then
                   5194:   echo $ac_n "(cached) $ac_c" 1>&6
                   5195: else
                   5196:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  5197: #line 5198 "configure"
1.1       millert  5198: #include "confdefs.h"
                   5199: #include <sys/types.h>
                   5200: #if STDC_HEADERS
                   5201: #include <stdlib.h>
                   5202: #endif
                   5203: #if HAVE_UNISTD_H
                   5204: #include <unistd.h>
                   5205: #endif
                   5206: EOF
                   5207: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5208:   egrep "dev_t" >/dev/null 2>&1; then
                   5209:   rm -rf conftest*
                   5210:   sudo_cv_type_dev_t=yes
                   5211: else
                   5212:   rm -rf conftest*
                   5213:   sudo_cv_type_dev_t=no
                   5214: fi
                   5215: rm -f conftest*
                   5216:
                   5217: fi
                   5218: echo "$ac_t""$sudo_cv_type_dev_t" 1>&6
                   5219: if test $sudo_cv_type_dev_t = no; then
                   5220:   cat >> confdefs.h <<\EOF
                   5221: #define dev_t int
                   5222: EOF
                   5223:
                   5224: fi
                   5225:
                   5226: echo $ac_n "checking for ino_t""... $ac_c" 1>&6
1.6     ! millert  5227: echo "configure:5228: checking for ino_t" >&5
1.1       millert  5228: if eval "test \"`echo '$''{'sudo_cv_type_ino_t'+set}'`\" = set"; then
                   5229:   echo $ac_n "(cached) $ac_c" 1>&6
                   5230: else
                   5231:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  5232: #line 5233 "configure"
1.1       millert  5233: #include "confdefs.h"
                   5234: #include <sys/types.h>
                   5235: #if STDC_HEADERS
                   5236: #include <stdlib.h>
                   5237: #endif
                   5238: #if HAVE_UNISTD_H
                   5239: #include <unistd.h>
                   5240: #endif
                   5241: EOF
                   5242: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5243:   egrep "ino_t" >/dev/null 2>&1; then
                   5244:   rm -rf conftest*
                   5245:   sudo_cv_type_ino_t=yes
                   5246: else
                   5247:   rm -rf conftest*
                   5248:   sudo_cv_type_ino_t=no
                   5249: fi
                   5250: rm -f conftest*
                   5251:
                   5252: fi
                   5253: echo "$ac_t""$sudo_cv_type_ino_t" 1>&6
                   5254: if test $sudo_cv_type_ino_t = no; then
                   5255:   cat >> confdefs.h <<\EOF
                   5256: #define ino_t unsigned int
                   5257: EOF
                   5258:
                   5259: fi
                   5260:
                   5261: echo $ac_n "checking for full void implementation""... $ac_c" 1>&6
1.6     ! millert  5262: echo "configure:5263: checking for full void implementation" >&5
1.1       millert  5263: cat > conftest.$ac_ext <<EOF
1.6     ! millert  5264: #line 5265 "configure"
1.1       millert  5265: #include "confdefs.h"
                   5266:
                   5267: int main() {
                   5268: void *foo;
                   5269: foo = (void *)0; (void *)"test";
                   5270: ; return 0; }
                   5271: EOF
1.6     ! millert  5272: if { (eval echo configure:5273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       millert  5273:   rm -rf conftest*
                   5274:   cat >> confdefs.h <<\EOF
                   5275: #define VOID void
                   5276: EOF
                   5277:
                   5278: echo "$ac_t""yes" 1>&6
                   5279: else
                   5280:   echo "configure: failed program was:" >&5
                   5281:   cat conftest.$ac_ext >&5
                   5282:   rm -rf conftest*
                   5283:   cat >> confdefs.h <<\EOF
                   5284: #define VOID char
                   5285: EOF
                   5286:
                   5287: echo "$ac_t""no" 1>&6
                   5288: fi
                   5289: rm -f conftest*
                   5290:
                   5291: echo $ac_n "checking max length of uid_t""... $ac_c" 1>&6
1.6     ! millert  5292: echo "configure:5293: checking max length of uid_t" >&5
1.1       millert  5293: if eval "test \"`echo '$''{'sudo_cv_uid_t_len'+set}'`\" = set"; then
                   5294:   echo $ac_n "(cached) $ac_c" 1>&6
                   5295: else
                   5296:   rm -f conftestdata
                   5297: if test "$cross_compiling" = yes; then
                   5298:     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
                   5299: else
                   5300:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  5301: #line 5302 "configure"
1.1       millert  5302: #include "confdefs.h"
                   5303: #include <stdio.h>
                   5304: #include <pwd.h>
                   5305: #include <limits.h>
                   5306: #include <sys/types.h>
                   5307: #include <sys/param.h>
                   5308: main() {
                   5309:   FILE *f;
                   5310:   char b[1024];
                   5311:   uid_t u = (uid_t) -1;
                   5312:
                   5313:   if ((f = fopen("conftestdata", "w")) == NULL)
                   5314:     exit(1);
                   5315:
                   5316:   (void) sprintf(b, "%u", u);
                   5317:   (void) fprintf(f, "%d\n", strlen(b));
                   5318:   (void) fclose(f);
                   5319:   exit(0);
                   5320: }
                   5321: EOF
1.6     ! millert  5322: if { (eval echo configure:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1       millert  5323: then
                   5324:   sudo_cv_uid_t_len=`cat conftestdata`
                   5325: else
                   5326:   echo "configure: failed program was:" >&5
                   5327:   cat conftest.$ac_ext >&5
                   5328:   rm -fr conftest*
                   5329:   sudo_cv_uid_t_len=10
                   5330: fi
                   5331: rm -fr conftest*
                   5332: fi
                   5333:
                   5334:
                   5335: fi
                   5336:
                   5337: rm -f conftestdata
                   5338: echo "$ac_t""$sudo_cv_uid_t_len" 1>&6
                   5339: cat >> confdefs.h <<EOF
                   5340: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
                   5341: EOF
                   5342:
                   5343:
                   5344: echo $ac_n "checking for long long support""... $ac_c" 1>&6
1.6     ! millert  5345: echo "configure:5346: checking for long long support" >&5
1.1       millert  5346: cat > conftest.$ac_ext <<EOF
1.6     ! millert  5347: #line 5348 "configure"
1.1       millert  5348: #include "confdefs.h"
                   5349:
                   5350: int main() {
                   5351: long long foo = 1000; foo /= 10;
                   5352: ; return 0; }
                   5353: EOF
1.6     ! millert  5354: if { (eval echo configure:5355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5355:   rm -rf conftest*
                   5356:   cat >> confdefs.h <<\EOF
                   5357: #define HAVE_LONG_LONG 1
                   5358: EOF
                   5359:
                   5360: if test "$cross_compiling" = yes; then
                   5361:     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
                   5362: else
                   5363:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  5364: #line 5365 "configure"
1.1       millert  5365: #include "confdefs.h"
                   5366: main() {if (sizeof(long long) == sizeof(long)) exit(0); else exit(1);}
                   5367: EOF
1.6     ! millert  5368: if { (eval echo configure:5369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1       millert  5369: then
                   5370:   cat >> confdefs.h <<\EOF
                   5371: #define LONG_IS_QUAD 1
                   5372: EOF
                   5373:
                   5374: else
                   5375:   echo "configure: failed program was:" >&5
                   5376:   cat conftest.$ac_ext >&5
                   5377: fi
                   5378: rm -fr conftest*
                   5379: fi
                   5380:
                   5381: echo "$ac_t""yes" 1>&6
                   5382: else
                   5383:   echo "configure: failed program was:" >&5
                   5384:   cat conftest.$ac_ext >&5
                   5385:   rm -rf conftest*
                   5386:   echo "$ac_t""no" 1>&6
                   5387: fi
                   5388: rm -f conftest*
                   5389: echo $ac_n "checking for sa_len field in struct sockaddr""... $ac_c" 1>&6
1.6     ! millert  5390: echo "configure:5391: checking for sa_len field in struct sockaddr" >&5
1.1       millert  5391: if eval "test \"`echo '$''{'sudo_cv_sock_sa_len'+set}'`\" = set"; then
                   5392:   echo $ac_n "(cached) $ac_c" 1>&6
                   5393: else
                   5394:   if test "$cross_compiling" = yes; then
                   5395:   sudo_cv_sock_sa_len=no
                   5396: else
                   5397:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  5398: #line 5399 "configure"
1.1       millert  5399: #include "confdefs.h"
                   5400: #include <sys/types.h>
                   5401: #include <sys/socket.h>
                   5402: main() {
                   5403: struct sockaddr s;
                   5404: s.sa_len = 0;
                   5405: exit(0);
                   5406: }
                   5407: EOF
1.6     ! millert  5408: if { (eval echo configure:5409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1       millert  5409: then
                   5410:   sudo_cv_sock_sa_len=yes
                   5411: else
                   5412:   echo "configure: failed program was:" >&5
                   5413:   cat conftest.$ac_ext >&5
                   5414:   rm -fr conftest*
                   5415:   sudo_cv_sock_sa_len=no
                   5416: fi
                   5417: rm -fr conftest*
                   5418: fi
                   5419:
                   5420: rm -f core core.* *.core
                   5421: fi
                   5422: echo "$ac_t""$sudo_cv_sock_sa_len" 1>&6
                   5423: if test $sudo_cv_sock_sa_len = yes; then
                   5424:   cat >> confdefs.h <<\EOF
                   5425: #define HAVE_SA_LEN 1
                   5426: EOF
                   5427:
                   5428: fi
                   5429:
                   5430: case "$DEFS" in
                   5431:     *"RETSIGTYPE"*)    ;;
                   5432:     *)                 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1.6     ! millert  5433: echo "configure:5434: checking return type of signal handlers" >&5
1.1       millert  5434: if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
                   5435:   echo $ac_n "(cached) $ac_c" 1>&6
                   5436: else
                   5437:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  5438: #line 5439 "configure"
1.1       millert  5439: #include "confdefs.h"
                   5440: #include <sys/types.h>
                   5441: #include <signal.h>
                   5442: #ifdef signal
                   5443: #undef signal
                   5444: #endif
                   5445: #ifdef __cplusplus
                   5446: extern "C" void (*signal (int, void (*)(int)))(int);
                   5447: #else
                   5448: void (*signal ()) ();
                   5449: #endif
                   5450:
                   5451: int main() {
                   5452: int i;
                   5453: ; return 0; }
                   5454: EOF
1.6     ! millert  5455: if { (eval echo configure:5456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       millert  5456:   rm -rf conftest*
                   5457:   ac_cv_type_signal=void
                   5458: else
                   5459:   echo "configure: failed program was:" >&5
                   5460:   cat conftest.$ac_ext >&5
                   5461:   rm -rf conftest*
                   5462:   ac_cv_type_signal=int
                   5463: fi
                   5464: rm -f conftest*
                   5465: fi
                   5466:
                   5467: echo "$ac_t""$ac_cv_type_signal" 1>&6
                   5468: cat >> confdefs.h <<EOF
                   5469: #define RETSIGTYPE $ac_cv_type_signal
                   5470: EOF
                   5471:
                   5472: ;;
                   5473: esac
1.4       millert  5474: for ac_func in strchr strrchr memchr memcpy memset sysconf sigaction tzset seteuid strftime setrlimit initgroups fstat
1.1       millert  5475: do
                   5476: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.6     ! millert  5477: echo "configure:5478: checking for $ac_func" >&5
1.1       millert  5478: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5479:   echo $ac_n "(cached) $ac_c" 1>&6
                   5480: else
                   5481:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  5482: #line 5483 "configure"
1.1       millert  5483: #include "confdefs.h"
                   5484: /* System header to define __stub macros and hopefully few prototypes,
                   5485:     which can conflict with char $ac_func(); below.  */
                   5486: #include <assert.h>
                   5487: /* Override any gcc2 internal prototype to avoid an error.  */
                   5488: /* We use char because int might match the return type of a gcc2
                   5489:     builtin and then its argument prototype would still apply.  */
                   5490: char $ac_func();
                   5491:
                   5492: int main() {
                   5493:
                   5494: /* The GNU C library defines this for functions which it implements
                   5495:     to always fail with ENOSYS.  Some functions are actually named
                   5496:     something starting with __ and the normal name is an alias.  */
                   5497: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5498: choke me
                   5499: #else
                   5500: $ac_func();
                   5501: #endif
                   5502:
                   5503: ; return 0; }
                   5504: EOF
1.6     ! millert  5505: if { (eval echo configure:5506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5506:   rm -rf conftest*
                   5507:   eval "ac_cv_func_$ac_func=yes"
                   5508: else
                   5509:   echo "configure: failed program was:" >&5
                   5510:   cat conftest.$ac_ext >&5
                   5511:   rm -rf conftest*
                   5512:   eval "ac_cv_func_$ac_func=no"
                   5513: fi
                   5514: rm -f conftest*
                   5515: fi
                   5516:
                   5517: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5518:   echo "$ac_t""yes" 1>&6
                   5519:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5520:   cat >> confdefs.h <<EOF
                   5521: #define $ac_tr_func 1
                   5522: EOF
                   5523:
                   5524: else
                   5525:   echo "$ac_t""no" 1>&6
                   5526: fi
                   5527: done
                   5528:
                   5529: if test -n "$SECUREWARE"; then
                   5530:     for ac_func in bigcrypt
                   5531: do
                   5532: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.6     ! millert  5533: echo "configure:5534: checking for $ac_func" >&5
1.1       millert  5534: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5535:   echo $ac_n "(cached) $ac_c" 1>&6
                   5536: else
                   5537:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  5538: #line 5539 "configure"
1.1       millert  5539: #include "confdefs.h"
                   5540: /* System header to define __stub macros and hopefully few prototypes,
                   5541:     which can conflict with char $ac_func(); below.  */
                   5542: #include <assert.h>
                   5543: /* Override any gcc2 internal prototype to avoid an error.  */
                   5544: /* We use char because int might match the return type of a gcc2
                   5545:     builtin and then its argument prototype would still apply.  */
                   5546: char $ac_func();
                   5547:
                   5548: int main() {
                   5549:
                   5550: /* The GNU C library defines this for functions which it implements
                   5551:     to always fail with ENOSYS.  Some functions are actually named
                   5552:     something starting with __ and the normal name is an alias.  */
                   5553: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5554: choke me
                   5555: #else
                   5556: $ac_func();
                   5557: #endif
                   5558:
                   5559: ; return 0; }
                   5560: EOF
1.6     ! millert  5561: if { (eval echo configure:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5562:   rm -rf conftest*
                   5563:   eval "ac_cv_func_$ac_func=yes"
                   5564: else
                   5565:   echo "configure: failed program was:" >&5
                   5566:   cat conftest.$ac_ext >&5
                   5567:   rm -rf conftest*
                   5568:   eval "ac_cv_func_$ac_func=no"
                   5569: fi
                   5570: rm -f conftest*
                   5571: fi
                   5572:
                   5573: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5574:   echo "$ac_t""yes" 1>&6
                   5575:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5576:   cat >> confdefs.h <<EOF
                   5577: #define $ac_tr_func 1
                   5578: EOF
                   5579:
                   5580: else
                   5581:   echo "$ac_t""no" 1>&6
                   5582: fi
                   5583: done
                   5584:
                   5585:     for ac_func in set_auth_parameters
                   5586: do
                   5587: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.6     ! millert  5588: echo "configure:5589: checking for $ac_func" >&5
1.1       millert  5589: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5590:   echo $ac_n "(cached) $ac_c" 1>&6
                   5591: else
                   5592:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  5593: #line 5594 "configure"
1.1       millert  5594: #include "confdefs.h"
                   5595: /* System header to define __stub macros and hopefully few prototypes,
                   5596:     which can conflict with char $ac_func(); below.  */
                   5597: #include <assert.h>
                   5598: /* Override any gcc2 internal prototype to avoid an error.  */
                   5599: /* We use char because int might match the return type of a gcc2
                   5600:     builtin and then its argument prototype would still apply.  */
                   5601: char $ac_func();
                   5602:
                   5603: int main() {
                   5604:
                   5605: /* The GNU C library defines this for functions which it implements
                   5606:     to always fail with ENOSYS.  Some functions are actually named
                   5607:     something starting with __ and the normal name is an alias.  */
                   5608: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5609: choke me
                   5610: #else
                   5611: $ac_func();
                   5612: #endif
                   5613:
                   5614: ; return 0; }
                   5615: EOF
1.6     ! millert  5616: if { (eval echo configure:5617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5617:   rm -rf conftest*
                   5618:   eval "ac_cv_func_$ac_func=yes"
                   5619: else
                   5620:   echo "configure: failed program was:" >&5
                   5621:   cat conftest.$ac_ext >&5
                   5622:   rm -rf conftest*
                   5623:   eval "ac_cv_func_$ac_func=no"
                   5624: fi
                   5625: rm -f conftest*
                   5626: fi
                   5627:
                   5628: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5629:   echo "$ac_t""yes" 1>&6
                   5630:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5631:   cat >> confdefs.h <<EOF
                   5632: #define $ac_tr_func 1
                   5633: EOF
                   5634:
                   5635: else
                   5636:   echo "$ac_t""no" 1>&6
                   5637: fi
                   5638: done
                   5639:
                   5640:     for ac_func in initprivs
                   5641: do
                   5642: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.6     ! millert  5643: echo "configure:5644: checking for $ac_func" >&5
1.1       millert  5644: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5645:   echo $ac_n "(cached) $ac_c" 1>&6
                   5646: else
                   5647:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  5648: #line 5649 "configure"
1.1       millert  5649: #include "confdefs.h"
                   5650: /* System header to define __stub macros and hopefully few prototypes,
                   5651:     which can conflict with char $ac_func(); below.  */
                   5652: #include <assert.h>
                   5653: /* Override any gcc2 internal prototype to avoid an error.  */
                   5654: /* We use char because int might match the return type of a gcc2
                   5655:     builtin and then its argument prototype would still apply.  */
                   5656: char $ac_func();
                   5657:
                   5658: int main() {
                   5659:
                   5660: /* The GNU C library defines this for functions which it implements
                   5661:     to always fail with ENOSYS.  Some functions are actually named
                   5662:     something starting with __ and the normal name is an alias.  */
                   5663: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5664: choke me
                   5665: #else
                   5666: $ac_func();
                   5667: #endif
                   5668:
                   5669: ; return 0; }
                   5670: EOF
1.6     ! millert  5671: if { (eval echo configure:5672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5672:   rm -rf conftest*
                   5673:   eval "ac_cv_func_$ac_func=yes"
                   5674: else
                   5675:   echo "configure: failed program was:" >&5
                   5676:   cat conftest.$ac_ext >&5
                   5677:   rm -rf conftest*
                   5678:   eval "ac_cv_func_$ac_func=no"
                   5679: fi
                   5680: rm -f conftest*
                   5681: fi
                   5682:
                   5683: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5684:   echo "$ac_t""yes" 1>&6
                   5685:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5686:   cat >> confdefs.h <<EOF
                   5687: #define $ac_tr_func 1
                   5688: EOF
                   5689:
                   5690: else
                   5691:   echo "$ac_t""no" 1>&6
                   5692: fi
                   5693: done
                   5694:
                   5695: fi
                   5696: if test -z "$BROKEN_GETCWD"; then
                   5697:     echo $ac_n "checking for getcwd""... $ac_c" 1>&6
1.6     ! millert  5698: echo "configure:5699: checking for getcwd" >&5
1.1       millert  5699: if eval "test \"`echo '$''{'ac_cv_func_getcwd'+set}'`\" = set"; then
                   5700:   echo $ac_n "(cached) $ac_c" 1>&6
                   5701: else
                   5702:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  5703: #line 5704 "configure"
1.1       millert  5704: #include "confdefs.h"
                   5705: /* System header to define __stub macros and hopefully few prototypes,
                   5706:     which can conflict with char getcwd(); below.  */
                   5707: #include <assert.h>
                   5708: /* Override any gcc2 internal prototype to avoid an error.  */
                   5709: /* We use char because int might match the return type of a gcc2
                   5710:     builtin and then its argument prototype would still apply.  */
                   5711: char getcwd();
                   5712:
                   5713: int main() {
                   5714:
                   5715: /* The GNU C library defines this for functions which it implements
                   5716:     to always fail with ENOSYS.  Some functions are actually named
                   5717:     something starting with __ and the normal name is an alias.  */
                   5718: #if defined (__stub_getcwd) || defined (__stub___getcwd)
                   5719: choke me
                   5720: #else
                   5721: getcwd();
                   5722: #endif
                   5723:
                   5724: ; return 0; }
                   5725: EOF
1.6     ! millert  5726: if { (eval echo configure:5727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5727:   rm -rf conftest*
                   5728:   eval "ac_cv_func_getcwd=yes"
                   5729: else
                   5730:   echo "configure: failed program was:" >&5
                   5731:   cat conftest.$ac_ext >&5
                   5732:   rm -rf conftest*
                   5733:   eval "ac_cv_func_getcwd=no"
                   5734: fi
                   5735: rm -f conftest*
                   5736: fi
                   5737:
                   5738: if eval "test \"`echo '$ac_cv_func_'getcwd`\" = yes"; then
                   5739:   echo "$ac_t""yes" 1>&6
                   5740:   cat >> confdefs.h <<\EOF
                   5741: #define HAVE_GETCWD 1
                   5742: EOF
                   5743:
                   5744: else
                   5745:   echo "$ac_t""no" 1>&6
                   5746: LIBOBJS="$LIBOBJS getcwd.o"
                   5747: fi
                   5748:
                   5749: fi
                   5750: echo $ac_n "checking for lockf""... $ac_c" 1>&6
1.6     ! millert  5751: echo "configure:5752: checking for lockf" >&5
1.1       millert  5752: if eval "test \"`echo '$''{'ac_cv_func_lockf'+set}'`\" = set"; then
                   5753:   echo $ac_n "(cached) $ac_c" 1>&6
                   5754: else
                   5755:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  5756: #line 5757 "configure"
1.1       millert  5757: #include "confdefs.h"
                   5758: /* System header to define __stub macros and hopefully few prototypes,
                   5759:     which can conflict with char lockf(); below.  */
                   5760: #include <assert.h>
                   5761: /* Override any gcc2 internal prototype to avoid an error.  */
                   5762: /* We use char because int might match the return type of a gcc2
                   5763:     builtin and then its argument prototype would still apply.  */
                   5764: char lockf();
                   5765:
                   5766: int main() {
                   5767:
                   5768: /* The GNU C library defines this for functions which it implements
                   5769:     to always fail with ENOSYS.  Some functions are actually named
                   5770:     something starting with __ and the normal name is an alias.  */
                   5771: #if defined (__stub_lockf) || defined (__stub___lockf)
                   5772: choke me
                   5773: #else
                   5774: lockf();
                   5775: #endif
                   5776:
                   5777: ; return 0; }
                   5778: EOF
1.6     ! millert  5779: if { (eval echo configure:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5780:   rm -rf conftest*
                   5781:   eval "ac_cv_func_lockf=yes"
                   5782: else
                   5783:   echo "configure: failed program was:" >&5
                   5784:   cat conftest.$ac_ext >&5
                   5785:   rm -rf conftest*
                   5786:   eval "ac_cv_func_lockf=no"
                   5787: fi
                   5788: rm -f conftest*
                   5789: fi
                   5790:
                   5791: if eval "test \"`echo '$ac_cv_func_'lockf`\" = yes"; then
                   5792:   echo "$ac_t""yes" 1>&6
                   5793:   cat >> confdefs.h <<\EOF
                   5794: #define HAVE_LOCKF 1
                   5795: EOF
                   5796:
                   5797: else
                   5798:   echo "$ac_t""no" 1>&6
                   5799: for ac_func in flock
                   5800: do
                   5801: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.6     ! millert  5802: echo "configure:5803: checking for $ac_func" >&5
1.1       millert  5803: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5804:   echo $ac_n "(cached) $ac_c" 1>&6
                   5805: else
                   5806:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  5807: #line 5808 "configure"
1.1       millert  5808: #include "confdefs.h"
                   5809: /* System header to define __stub macros and hopefully few prototypes,
                   5810:     which can conflict with char $ac_func(); below.  */
                   5811: #include <assert.h>
                   5812: /* Override any gcc2 internal prototype to avoid an error.  */
                   5813: /* We use char because int might match the return type of a gcc2
                   5814:     builtin and then its argument prototype would still apply.  */
                   5815: char $ac_func();
                   5816:
                   5817: int main() {
                   5818:
                   5819: /* The GNU C library defines this for functions which it implements
                   5820:     to always fail with ENOSYS.  Some functions are actually named
                   5821:     something starting with __ and the normal name is an alias.  */
                   5822: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5823: choke me
                   5824: #else
                   5825: $ac_func();
                   5826: #endif
                   5827:
                   5828: ; return 0; }
                   5829: EOF
1.6     ! millert  5830: if { (eval echo configure:5831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5831:   rm -rf conftest*
                   5832:   eval "ac_cv_func_$ac_func=yes"
                   5833: else
                   5834:   echo "configure: failed program was:" >&5
                   5835:   cat conftest.$ac_ext >&5
                   5836:   rm -rf conftest*
                   5837:   eval "ac_cv_func_$ac_func=no"
                   5838: fi
                   5839: rm -f conftest*
                   5840: fi
                   5841:
                   5842: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5843:   echo "$ac_t""yes" 1>&6
                   5844:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5845:   cat >> confdefs.h <<EOF
                   5846: #define $ac_tr_func 1
                   5847: EOF
                   5848:
                   5849: else
                   5850:   echo "$ac_t""no" 1>&6
                   5851: fi
                   5852: done
                   5853:
                   5854: fi
                   5855:
                   5856: echo $ac_n "checking for waitpid""... $ac_c" 1>&6
1.6     ! millert  5857: echo "configure:5858: checking for waitpid" >&5
1.1       millert  5858: if eval "test \"`echo '$''{'ac_cv_func_waitpid'+set}'`\" = set"; then
                   5859:   echo $ac_n "(cached) $ac_c" 1>&6
                   5860: else
                   5861:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  5862: #line 5863 "configure"
1.1       millert  5863: #include "confdefs.h"
                   5864: /* System header to define __stub macros and hopefully few prototypes,
                   5865:     which can conflict with char waitpid(); below.  */
                   5866: #include <assert.h>
                   5867: /* Override any gcc2 internal prototype to avoid an error.  */
                   5868: /* We use char because int might match the return type of a gcc2
                   5869:     builtin and then its argument prototype would still apply.  */
                   5870: char waitpid();
                   5871:
                   5872: int main() {
                   5873:
                   5874: /* The GNU C library defines this for functions which it implements
                   5875:     to always fail with ENOSYS.  Some functions are actually named
                   5876:     something starting with __ and the normal name is an alias.  */
                   5877: #if defined (__stub_waitpid) || defined (__stub___waitpid)
                   5878: choke me
                   5879: #else
                   5880: waitpid();
                   5881: #endif
                   5882:
                   5883: ; return 0; }
                   5884: EOF
1.6     ! millert  5885: if { (eval echo configure:5886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5886:   rm -rf conftest*
                   5887:   eval "ac_cv_func_waitpid=yes"
                   5888: else
                   5889:   echo "configure: failed program was:" >&5
                   5890:   cat conftest.$ac_ext >&5
                   5891:   rm -rf conftest*
                   5892:   eval "ac_cv_func_waitpid=no"
                   5893: fi
                   5894: rm -f conftest*
                   5895: fi
                   5896:
                   5897: if eval "test \"`echo '$ac_cv_func_'waitpid`\" = yes"; then
                   5898:   echo "$ac_t""yes" 1>&6
                   5899:   cat >> confdefs.h <<\EOF
                   5900: #define HAVE_WAITPID 1
                   5901: EOF
                   5902:
                   5903: else
                   5904:   echo "$ac_t""no" 1>&6
                   5905: for ac_func in wait3
                   5906: do
                   5907: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.6     ! millert  5908: echo "configure:5909: checking for $ac_func" >&5
1.1       millert  5909: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5910:   echo $ac_n "(cached) $ac_c" 1>&6
                   5911: else
                   5912:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  5913: #line 5914 "configure"
1.1       millert  5914: #include "confdefs.h"
                   5915: /* System header to define __stub macros and hopefully few prototypes,
                   5916:     which can conflict with char $ac_func(); below.  */
                   5917: #include <assert.h>
                   5918: /* Override any gcc2 internal prototype to avoid an error.  */
                   5919: /* We use char because int might match the return type of a gcc2
                   5920:     builtin and then its argument prototype would still apply.  */
                   5921: char $ac_func();
                   5922:
                   5923: int main() {
                   5924:
                   5925: /* The GNU C library defines this for functions which it implements
                   5926:     to always fail with ENOSYS.  Some functions are actually named
                   5927:     something starting with __ and the normal name is an alias.  */
                   5928: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5929: choke me
                   5930: #else
                   5931: $ac_func();
                   5932: #endif
                   5933:
                   5934: ; return 0; }
                   5935: EOF
1.6     ! millert  5936: if { (eval echo configure:5937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5937:   rm -rf conftest*
                   5938:   eval "ac_cv_func_$ac_func=yes"
                   5939: else
                   5940:   echo "configure: failed program was:" >&5
                   5941:   cat conftest.$ac_ext >&5
                   5942:   rm -rf conftest*
                   5943:   eval "ac_cv_func_$ac_func=no"
                   5944: fi
                   5945: rm -f conftest*
                   5946: fi
                   5947:
                   5948: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5949:   echo "$ac_t""yes" 1>&6
                   5950:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5951:   cat >> confdefs.h <<EOF
                   5952: #define $ac_tr_func 1
                   5953: EOF
                   5954:
                   5955: else
                   5956:   echo "$ac_t""no" 1>&6
                   5957: fi
                   5958: done
                   5959:
                   5960: fi
                   5961:
                   5962: echo $ac_n "checking for innetgr""... $ac_c" 1>&6
1.6     ! millert  5963: echo "configure:5964: checking for innetgr" >&5
1.1       millert  5964: if eval "test \"`echo '$''{'ac_cv_func_innetgr'+set}'`\" = set"; then
                   5965:   echo $ac_n "(cached) $ac_c" 1>&6
                   5966: else
                   5967:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  5968: #line 5969 "configure"
1.1       millert  5969: #include "confdefs.h"
                   5970: /* System header to define __stub macros and hopefully few prototypes,
                   5971:     which can conflict with char innetgr(); below.  */
                   5972: #include <assert.h>
                   5973: /* Override any gcc2 internal prototype to avoid an error.  */
                   5974: /* We use char because int might match the return type of a gcc2
                   5975:     builtin and then its argument prototype would still apply.  */
                   5976: char innetgr();
                   5977:
                   5978: int main() {
                   5979:
                   5980: /* The GNU C library defines this for functions which it implements
                   5981:     to always fail with ENOSYS.  Some functions are actually named
                   5982:     something starting with __ and the normal name is an alias.  */
                   5983: #if defined (__stub_innetgr) || defined (__stub___innetgr)
                   5984: choke me
                   5985: #else
                   5986: innetgr();
                   5987: #endif
                   5988:
                   5989: ; return 0; }
                   5990: EOF
1.6     ! millert  5991: if { (eval echo configure:5992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  5992:   rm -rf conftest*
                   5993:   eval "ac_cv_func_innetgr=yes"
                   5994: else
                   5995:   echo "configure: failed program was:" >&5
                   5996:   cat conftest.$ac_ext >&5
                   5997:   rm -rf conftest*
                   5998:   eval "ac_cv_func_innetgr=no"
                   5999: fi
                   6000: rm -f conftest*
                   6001: fi
                   6002:
                   6003: if eval "test \"`echo '$ac_cv_func_'innetgr`\" = yes"; then
                   6004:   echo "$ac_t""yes" 1>&6
                   6005:   cat >> confdefs.h <<\EOF
                   6006: #define HAVE_INNETGR 1
                   6007: EOF
                   6008:  for ac_func in getdomainname
                   6009: do
                   6010: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.6     ! millert  6011: echo "configure:6012: checking for $ac_func" >&5
1.1       millert  6012: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   6013:   echo $ac_n "(cached) $ac_c" 1>&6
                   6014: else
                   6015:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  6016: #line 6017 "configure"
1.1       millert  6017: #include "confdefs.h"
                   6018: /* System header to define __stub macros and hopefully few prototypes,
                   6019:     which can conflict with char $ac_func(); below.  */
                   6020: #include <assert.h>
                   6021: /* Override any gcc2 internal prototype to avoid an error.  */
                   6022: /* We use char because int might match the return type of a gcc2
                   6023:     builtin and then its argument prototype would still apply.  */
                   6024: char $ac_func();
                   6025:
                   6026: int main() {
                   6027:
                   6028: /* The GNU C library defines this for functions which it implements
                   6029:     to always fail with ENOSYS.  Some functions are actually named
                   6030:     something starting with __ and the normal name is an alias.  */
                   6031: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   6032: choke me
                   6033: #else
                   6034: $ac_func();
                   6035: #endif
                   6036:
                   6037: ; return 0; }
                   6038: EOF
1.6     ! millert  6039: if { (eval echo configure:6040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6040:   rm -rf conftest*
                   6041:   eval "ac_cv_func_$ac_func=yes"
                   6042: else
                   6043:   echo "configure: failed program was:" >&5
                   6044:   cat conftest.$ac_ext >&5
                   6045:   rm -rf conftest*
                   6046:   eval "ac_cv_func_$ac_func=no"
                   6047: fi
                   6048: rm -f conftest*
                   6049: fi
                   6050:
                   6051: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   6052:   echo "$ac_t""yes" 1>&6
                   6053:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   6054:   cat >> confdefs.h <<EOF
                   6055: #define $ac_tr_func 1
                   6056: EOF
                   6057:
                   6058: else
                   6059:   echo "$ac_t""no" 1>&6
                   6060: fi
                   6061: done
                   6062:
                   6063: else
                   6064:   echo "$ac_t""no" 1>&6
                   6065: fi
                   6066:
                   6067: echo $ac_n "checking for lsearch""... $ac_c" 1>&6
1.6     ! millert  6068: echo "configure:6069: checking for lsearch" >&5
1.1       millert  6069: if eval "test \"`echo '$''{'ac_cv_func_lsearch'+set}'`\" = set"; then
                   6070:   echo $ac_n "(cached) $ac_c" 1>&6
                   6071: else
                   6072:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  6073: #line 6074 "configure"
1.1       millert  6074: #include "confdefs.h"
                   6075: /* System header to define __stub macros and hopefully few prototypes,
                   6076:     which can conflict with char lsearch(); below.  */
                   6077: #include <assert.h>
                   6078: /* Override any gcc2 internal prototype to avoid an error.  */
                   6079: /* We use char because int might match the return type of a gcc2
                   6080:     builtin and then its argument prototype would still apply.  */
                   6081: char lsearch();
                   6082:
                   6083: int main() {
                   6084:
                   6085: /* The GNU C library defines this for functions which it implements
                   6086:     to always fail with ENOSYS.  Some functions are actually named
                   6087:     something starting with __ and the normal name is an alias.  */
                   6088: #if defined (__stub_lsearch) || defined (__stub___lsearch)
                   6089: choke me
                   6090: #else
                   6091: lsearch();
                   6092: #endif
                   6093:
                   6094: ; return 0; }
                   6095: EOF
1.6     ! millert  6096: if { (eval echo configure:6097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6097:   rm -rf conftest*
                   6098:   eval "ac_cv_func_lsearch=yes"
                   6099: else
                   6100:   echo "configure: failed program was:" >&5
                   6101:   cat conftest.$ac_ext >&5
                   6102:   rm -rf conftest*
                   6103:   eval "ac_cv_func_lsearch=no"
                   6104: fi
                   6105: rm -f conftest*
                   6106: fi
                   6107:
                   6108: if eval "test \"`echo '$ac_cv_func_'lsearch`\" = yes"; then
                   6109:   echo "$ac_t""yes" 1>&6
                   6110:   cat >> confdefs.h <<\EOF
                   6111: #define HAVE_LSEARCH 1
                   6112: EOF
                   6113:
                   6114: else
                   6115:   echo "$ac_t""no" 1>&6
                   6116: echo $ac_n "checking for lsearch in -lcompat""... $ac_c" 1>&6
1.6     ! millert  6117: echo "configure:6118: checking for lsearch in -lcompat" >&5
1.1       millert  6118: if test -n ""; then
                   6119:   ac_lib_var=`echo compat'_'lsearch | sed 'y% ./+-%___p_%'`
                   6120: else
                   6121:   ac_lib_var=`echo compat'_'lsearch | sed 'y%./+-%__p_%'`
                   6122: fi
                   6123: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6124:   echo $ac_n "(cached) $ac_c" 1>&6
                   6125: else
                   6126:   ac_save_LIBS="$LIBS"
                   6127: LIBS="-lcompat  $LIBS"
                   6128: cat > conftest.$ac_ext <<EOF
1.6     ! millert  6129: #line 6130 "configure"
1.1       millert  6130: #include "confdefs.h"
                   6131: /* Override any gcc2 internal prototype to avoid an error.  */
                   6132: /* We use char because int might match the return type of a gcc2
                   6133:     builtin and then its argument prototype would still apply.  */
                   6134: char lsearch();
                   6135:
                   6136: int main() {
                   6137: lsearch()
                   6138: ; return 0; }
                   6139: EOF
1.6     ! millert  6140: if { (eval echo configure:6141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6141:   rm -rf conftest*
                   6142:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6143: else
                   6144:   echo "configure: failed program was:" >&5
                   6145:   cat conftest.$ac_ext >&5
                   6146:   rm -rf conftest*
                   6147:   eval "ac_cv_lib_$ac_lib_var=no"
                   6148: fi
                   6149: rm -f conftest*
                   6150: LIBS="$ac_save_LIBS"
                   6151:
                   6152: fi
                   6153: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6154:   echo "$ac_t""yes" 1>&6
                   6155:   ac_safe=`echo "search.h" | sed 'y%./+-%__p_%'`
                   6156: echo $ac_n "checking for search.h""... $ac_c" 1>&6
1.6     ! millert  6157: echo "configure:6158: checking for search.h" >&5
1.1       millert  6158: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   6159:   echo $ac_n "(cached) $ac_c" 1>&6
                   6160: else
                   6161:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  6162: #line 6163 "configure"
1.1       millert  6163: #include "confdefs.h"
                   6164: #include <search.h>
                   6165: EOF
                   6166: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.6     ! millert  6167: { (eval echo configure:6168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       millert  6168: ac_err=`grep -v '^ *+' conftest.out`
                   6169: if test -z "$ac_err"; then
                   6170:   rm -rf conftest*
                   6171:   eval "ac_cv_header_$ac_safe=yes"
                   6172: else
                   6173:   echo "$ac_err" >&5
                   6174:   echo "configure: failed program was:" >&5
                   6175:   cat conftest.$ac_ext >&5
                   6176:   rm -rf conftest*
                   6177:   eval "ac_cv_header_$ac_safe=no"
                   6178: fi
                   6179: rm -f conftest*
                   6180: fi
                   6181: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   6182:   echo "$ac_t""yes" 1>&6
                   6183:   cat >> confdefs.h <<\EOF
                   6184: #define HAVE_LSEARCH 1
                   6185: EOF
                   6186:  LIBS="${LIBS} -lcompat"
                   6187: else
                   6188:   echo "$ac_t""no" 1>&6
                   6189: LIBOBJS="$LIBOBJS lsearch.o"
                   6190: fi
                   6191:
                   6192: else
                   6193:   echo "$ac_t""no" 1>&6
                   6194: LIBOBJS="$LIBOBJS lsearch.o"
                   6195: fi
                   6196:
                   6197: fi
                   6198:
                   6199: echo $ac_n "checking for setenv""... $ac_c" 1>&6
1.6     ! millert  6200: echo "configure:6201: checking for setenv" >&5
1.1       millert  6201: if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then
                   6202:   echo $ac_n "(cached) $ac_c" 1>&6
                   6203: else
                   6204:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  6205: #line 6206 "configure"
1.1       millert  6206: #include "confdefs.h"
                   6207: /* System header to define __stub macros and hopefully few prototypes,
                   6208:     which can conflict with char setenv(); below.  */
                   6209: #include <assert.h>
                   6210: /* Override any gcc2 internal prototype to avoid an error.  */
                   6211: /* We use char because int might match the return type of a gcc2
                   6212:     builtin and then its argument prototype would still apply.  */
                   6213: char setenv();
                   6214:
                   6215: int main() {
                   6216:
                   6217: /* The GNU C library defines this for functions which it implements
                   6218:     to always fail with ENOSYS.  Some functions are actually named
                   6219:     something starting with __ and the normal name is an alias.  */
                   6220: #if defined (__stub_setenv) || defined (__stub___setenv)
                   6221: choke me
                   6222: #else
                   6223: setenv();
                   6224: #endif
                   6225:
                   6226: ; return 0; }
                   6227: EOF
1.6     ! millert  6228: if { (eval echo configure:6229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6229:   rm -rf conftest*
                   6230:   eval "ac_cv_func_setenv=yes"
                   6231: else
                   6232:   echo "configure: failed program was:" >&5
                   6233:   cat conftest.$ac_ext >&5
                   6234:   rm -rf conftest*
                   6235:   eval "ac_cv_func_setenv=no"
                   6236: fi
                   6237: rm -f conftest*
                   6238: fi
                   6239:
                   6240: if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then
                   6241:   echo "$ac_t""yes" 1>&6
                   6242:   cat >> confdefs.h <<\EOF
                   6243: #define HAVE_SETENV 1
                   6244: EOF
                   6245:
                   6246: else
                   6247:   echo "$ac_t""no" 1>&6
                   6248: echo $ac_n "checking for putenv""... $ac_c" 1>&6
1.6     ! millert  6249: echo "configure:6250: checking for putenv" >&5
1.1       millert  6250: if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then
                   6251:   echo $ac_n "(cached) $ac_c" 1>&6
                   6252: else
                   6253:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  6254: #line 6255 "configure"
1.1       millert  6255: #include "confdefs.h"
                   6256: /* System header to define __stub macros and hopefully few prototypes,
                   6257:     which can conflict with char putenv(); below.  */
                   6258: #include <assert.h>
                   6259: /* Override any gcc2 internal prototype to avoid an error.  */
                   6260: /* We use char because int might match the return type of a gcc2
                   6261:     builtin and then its argument prototype would still apply.  */
                   6262: char putenv();
                   6263:
                   6264: int main() {
                   6265:
                   6266: /* The GNU C library defines this for functions which it implements
                   6267:     to always fail with ENOSYS.  Some functions are actually named
                   6268:     something starting with __ and the normal name is an alias.  */
                   6269: #if defined (__stub_putenv) || defined (__stub___putenv)
                   6270: choke me
                   6271: #else
                   6272: putenv();
                   6273: #endif
                   6274:
                   6275: ; return 0; }
                   6276: EOF
1.6     ! millert  6277: if { (eval echo configure:6278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6278:   rm -rf conftest*
                   6279:   eval "ac_cv_func_putenv=yes"
                   6280: else
                   6281:   echo "configure: failed program was:" >&5
                   6282:   cat conftest.$ac_ext >&5
                   6283:   rm -rf conftest*
                   6284:   eval "ac_cv_func_putenv=no"
                   6285: fi
                   6286: rm -f conftest*
                   6287: fi
                   6288:
                   6289: if eval "test \"`echo '$ac_cv_func_'putenv`\" = yes"; then
                   6290:   echo "$ac_t""yes" 1>&6
                   6291:   cat >> confdefs.h <<\EOF
                   6292: #define HAVE_PUTENV 1
                   6293: EOF
                   6294:
                   6295: else
                   6296:   echo "$ac_t""no" 1>&6
                   6297: LIBOBJS="$LIBOBJS putenv.o"
                   6298: fi
                   6299:
                   6300: fi
                   6301:
                   6302: echo $ac_n "checking for utime""... $ac_c" 1>&6
1.6     ! millert  6303: echo "configure:6304: checking for utime" >&5
1.1       millert  6304: if eval "test \"`echo '$''{'ac_cv_func_utime'+set}'`\" = set"; then
                   6305:   echo $ac_n "(cached) $ac_c" 1>&6
                   6306: else
                   6307:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  6308: #line 6309 "configure"
1.1       millert  6309: #include "confdefs.h"
                   6310: /* System header to define __stub macros and hopefully few prototypes,
                   6311:     which can conflict with char utime(); below.  */
                   6312: #include <assert.h>
                   6313: /* Override any gcc2 internal prototype to avoid an error.  */
                   6314: /* We use char because int might match the return type of a gcc2
                   6315:     builtin and then its argument prototype would still apply.  */
                   6316: char utime();
                   6317:
                   6318: int main() {
                   6319:
                   6320: /* The GNU C library defines this for functions which it implements
                   6321:     to always fail with ENOSYS.  Some functions are actually named
                   6322:     something starting with __ and the normal name is an alias.  */
                   6323: #if defined (__stub_utime) || defined (__stub___utime)
                   6324: choke me
                   6325: #else
                   6326: utime();
                   6327: #endif
                   6328:
                   6329: ; return 0; }
                   6330: EOF
1.6     ! millert  6331: if { (eval echo configure:6332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6332:   rm -rf conftest*
                   6333:   eval "ac_cv_func_utime=yes"
                   6334: else
                   6335:   echo "configure: failed program was:" >&5
                   6336:   cat conftest.$ac_ext >&5
                   6337:   rm -rf conftest*
                   6338:   eval "ac_cv_func_utime=no"
                   6339: fi
                   6340: rm -f conftest*
                   6341: fi
                   6342:
                   6343: if eval "test \"`echo '$ac_cv_func_'utime`\" = yes"; then
                   6344:   echo "$ac_t""yes" 1>&6
                   6345:   cat >> confdefs.h <<\EOF
                   6346: #define HAVE_UTIME 1
                   6347: EOF
                   6348:
                   6349: echo $ac_n "checking for POSIX utime""... $ac_c" 1>&6
1.6     ! millert  6350: echo "configure:6351: checking for POSIX utime" >&5
1.1       millert  6351: if eval "test \"`echo '$''{'sudo_cv_func_utime_posix'+set}'`\" = set"; then
                   6352:   echo $ac_n "(cached) $ac_c" 1>&6
                   6353: else
                   6354:   rm -f conftestdata; > conftestdata
                   6355: if test "$cross_compiling" = yes; then
                   6356:   sudo_cv_func_utime_posix=no
                   6357: else
                   6358:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  6359: #line 6360 "configure"
1.1       millert  6360: #include "confdefs.h"
                   6361: #include <sys/types.h>
                   6362: #include <sys/time.h>
                   6363: #include <utime.h>
                   6364: main() {
                   6365: struct utimbuf ut;
                   6366: ut.actime = ut.modtime = time(0);
                   6367: utime("conftestdata", &ut);
                   6368: exit(0);
                   6369: }
                   6370: EOF
1.6     ! millert  6371: if { (eval echo configure:6372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1       millert  6372: then
                   6373:   sudo_cv_func_utime_posix=yes
                   6374: else
                   6375:   echo "configure: failed program was:" >&5
                   6376:   cat conftest.$ac_ext >&5
                   6377:   rm -fr conftest*
                   6378:   sudo_cv_func_utime_posix=no
                   6379: fi
                   6380: rm -fr conftest*
                   6381: fi
                   6382:
                   6383: rm -f core core.* *.core
                   6384: fi
                   6385: echo "$ac_t""$sudo_cv_func_utime_posix" 1>&6
                   6386: if test $sudo_cv_func_utime_posix = yes; then
                   6387:   cat >> confdefs.h <<\EOF
                   6388: #define HAVE_UTIME_POSIX 1
                   6389: EOF
                   6390:
                   6391: fi
                   6392:
                   6393: else
                   6394:   echo "$ac_t""no" 1>&6
                   6395: LIBOBJS="$LIBOBJS utime.o"
                   6396: fi
                   6397:
1.6     ! millert  6398: echo $ac_n "checking for working fnmatch with FNM_CASEFOLD""... $ac_c" 1>&6
        !          6399: echo "configure:6400: checking for working fnmatch with FNM_CASEFOLD" >&5
1.1       millert  6400: if eval "test \"`echo '$''{'sudo_cv_func_fnmatch'+set}'`\" = set"; then
                   6401:   echo $ac_n "(cached) $ac_c" 1>&6
                   6402: else
                   6403:   rm -f conftestdata; > conftestdata
                   6404: if test "$cross_compiling" = yes; then
                   6405:   sudo_cv_func_fnmatch=no
                   6406: else
                   6407:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  6408: #line 6409 "configure"
1.1       millert  6409: #include "confdefs.h"
1.3       millert  6410: #include <fnmatch.h>
1.6     ! millert  6411: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
1.3       millert  6412:
1.1       millert  6413: EOF
1.6     ! millert  6414: if { (eval echo configure:6415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1       millert  6415: then
                   6416:   sudo_cv_func_fnmatch=yes
                   6417: else
                   6418:   echo "configure: failed program was:" >&5
                   6419:   cat conftest.$ac_ext >&5
                   6420:   rm -fr conftest*
                   6421:   sudo_cv_func_fnmatch=no
                   6422: fi
                   6423: rm -fr conftest*
                   6424: fi
                   6425:
                   6426: rm -f core core.* *.core
                   6427: fi
                   6428: echo "$ac_t""$sudo_cv_func_fnmatch" 1>&6
                   6429: if test $sudo_cv_func_fnmatch = yes; then
                   6430:   cat >> confdefs.h <<\EOF
                   6431: #define HAVE_FNMATCH 1
                   6432: EOF
                   6433:
                   6434: else
                   6435:   LIBOBJS="$LIBOBJS fnmatch.o"
                   6436: fi
                   6437:
                   6438: for ac_func in strerror strcasecmp
                   6439: do
                   6440: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.6     ! millert  6441: echo "configure:6442: checking for $ac_func" >&5
1.1       millert  6442: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   6443:   echo $ac_n "(cached) $ac_c" 1>&6
                   6444: else
                   6445:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  6446: #line 6447 "configure"
1.1       millert  6447: #include "confdefs.h"
                   6448: /* System header to define __stub macros and hopefully few prototypes,
                   6449:     which can conflict with char $ac_func(); below.  */
                   6450: #include <assert.h>
                   6451: /* Override any gcc2 internal prototype to avoid an error.  */
                   6452: /* We use char because int might match the return type of a gcc2
                   6453:     builtin and then its argument prototype would still apply.  */
                   6454: char $ac_func();
                   6455:
                   6456: int main() {
                   6457:
                   6458: /* The GNU C library defines this for functions which it implements
                   6459:     to always fail with ENOSYS.  Some functions are actually named
                   6460:     something starting with __ and the normal name is an alias.  */
                   6461: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   6462: choke me
                   6463: #else
                   6464: $ac_func();
                   6465: #endif
                   6466:
                   6467: ; return 0; }
                   6468: EOF
1.6     ! millert  6469: if { (eval echo configure:6470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6470:   rm -rf conftest*
                   6471:   eval "ac_cv_func_$ac_func=yes"
                   6472: else
                   6473:   echo "configure: failed program was:" >&5
                   6474:   cat conftest.$ac_ext >&5
                   6475:   rm -rf conftest*
                   6476:   eval "ac_cv_func_$ac_func=no"
                   6477: fi
                   6478: rm -f conftest*
                   6479: fi
                   6480:
                   6481: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   6482:   echo "$ac_t""yes" 1>&6
                   6483:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   6484:   cat >> confdefs.h <<EOF
                   6485: #define $ac_tr_func 1
                   6486: EOF
                   6487:
                   6488: else
                   6489:   echo "$ac_t""no" 1>&6
                   6490: LIBOBJS="$LIBOBJS ${ac_func}.o"
                   6491: fi
                   6492: done
                   6493:
                   6494:
                   6495: echo $ac_n "checking for snprintf""... $ac_c" 1>&6
1.6     ! millert  6496: echo "configure:6497: checking for snprintf" >&5
1.1       millert  6497: if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
                   6498:   echo $ac_n "(cached) $ac_c" 1>&6
                   6499: else
                   6500:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  6501: #line 6502 "configure"
1.1       millert  6502: #include "confdefs.h"
                   6503: /* System header to define __stub macros and hopefully few prototypes,
                   6504:     which can conflict with char snprintf(); below.  */
                   6505: #include <assert.h>
                   6506: /* Override any gcc2 internal prototype to avoid an error.  */
                   6507: /* We use char because int might match the return type of a gcc2
                   6508:     builtin and then its argument prototype would still apply.  */
                   6509: char snprintf();
                   6510:
                   6511: int main() {
                   6512:
                   6513: /* The GNU C library defines this for functions which it implements
                   6514:     to always fail with ENOSYS.  Some functions are actually named
                   6515:     something starting with __ and the normal name is an alias.  */
                   6516: #if defined (__stub_snprintf) || defined (__stub___snprintf)
                   6517: choke me
                   6518: #else
                   6519: snprintf();
                   6520: #endif
                   6521:
                   6522: ; return 0; }
                   6523: EOF
1.6     ! millert  6524: if { (eval echo configure:6525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6525:   rm -rf conftest*
                   6526:   eval "ac_cv_func_snprintf=yes"
                   6527: else
                   6528:   echo "configure: failed program was:" >&5
                   6529:   cat conftest.$ac_ext >&5
                   6530:   rm -rf conftest*
                   6531:   eval "ac_cv_func_snprintf=no"
                   6532: fi
                   6533: rm -f conftest*
                   6534: fi
                   6535:
                   6536: if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
                   6537:   echo "$ac_t""yes" 1>&6
                   6538:   cat >> confdefs.h <<\EOF
                   6539: #define HAVE_SNPRINTF 1
                   6540: EOF
                   6541:
                   6542: else
                   6543:   echo "$ac_t""no" 1>&6
                   6544: NEED_SNPRINTF=1
                   6545: fi
                   6546:
                   6547: echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
1.6     ! millert  6548: echo "configure:6549: checking for vsnprintf" >&5
1.1       millert  6549: if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
                   6550:   echo $ac_n "(cached) $ac_c" 1>&6
                   6551: else
                   6552:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  6553: #line 6554 "configure"
1.1       millert  6554: #include "confdefs.h"
                   6555: /* System header to define __stub macros and hopefully few prototypes,
                   6556:     which can conflict with char vsnprintf(); below.  */
                   6557: #include <assert.h>
                   6558: /* Override any gcc2 internal prototype to avoid an error.  */
                   6559: /* We use char because int might match the return type of a gcc2
                   6560:     builtin and then its argument prototype would still apply.  */
                   6561: char vsnprintf();
                   6562:
                   6563: int main() {
                   6564:
                   6565: /* The GNU C library defines this for functions which it implements
                   6566:     to always fail with ENOSYS.  Some functions are actually named
                   6567:     something starting with __ and the normal name is an alias.  */
                   6568: #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
                   6569: choke me
                   6570: #else
                   6571: vsnprintf();
                   6572: #endif
                   6573:
                   6574: ; return 0; }
                   6575: EOF
1.6     ! millert  6576: if { (eval echo configure:6577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6577:   rm -rf conftest*
                   6578:   eval "ac_cv_func_vsnprintf=yes"
                   6579: else
                   6580:   echo "configure: failed program was:" >&5
                   6581:   cat conftest.$ac_ext >&5
                   6582:   rm -rf conftest*
                   6583:   eval "ac_cv_func_vsnprintf=no"
                   6584: fi
                   6585: rm -f conftest*
                   6586: fi
                   6587:
                   6588: if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
                   6589:   echo "$ac_t""yes" 1>&6
                   6590:   cat >> confdefs.h <<\EOF
                   6591: #define HAVE_VSNPRINTF 1
                   6592: EOF
                   6593:
                   6594: else
                   6595:   echo "$ac_t""no" 1>&6
                   6596: NEED_SNPRINTF=1
                   6597: fi
                   6598:
                   6599: echo $ac_n "checking for asprintf""... $ac_c" 1>&6
1.6     ! millert  6600: echo "configure:6601: checking for asprintf" >&5
1.1       millert  6601: if eval "test \"`echo '$''{'ac_cv_func_asprintf'+set}'`\" = set"; then
                   6602:   echo $ac_n "(cached) $ac_c" 1>&6
                   6603: else
                   6604:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  6605: #line 6606 "configure"
1.1       millert  6606: #include "confdefs.h"
                   6607: /* System header to define __stub macros and hopefully few prototypes,
                   6608:     which can conflict with char asprintf(); below.  */
                   6609: #include <assert.h>
                   6610: /* Override any gcc2 internal prototype to avoid an error.  */
                   6611: /* We use char because int might match the return type of a gcc2
                   6612:     builtin and then its argument prototype would still apply.  */
                   6613: char asprintf();
                   6614:
                   6615: int main() {
                   6616:
                   6617: /* The GNU C library defines this for functions which it implements
                   6618:     to always fail with ENOSYS.  Some functions are actually named
                   6619:     something starting with __ and the normal name is an alias.  */
                   6620: #if defined (__stub_asprintf) || defined (__stub___asprintf)
                   6621: choke me
                   6622: #else
                   6623: asprintf();
                   6624: #endif
                   6625:
                   6626: ; return 0; }
                   6627: EOF
1.6     ! millert  6628: if { (eval echo configure:6629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6629:   rm -rf conftest*
                   6630:   eval "ac_cv_func_asprintf=yes"
                   6631: else
                   6632:   echo "configure: failed program was:" >&5
                   6633:   cat conftest.$ac_ext >&5
                   6634:   rm -rf conftest*
                   6635:   eval "ac_cv_func_asprintf=no"
                   6636: fi
                   6637: rm -f conftest*
                   6638: fi
                   6639:
                   6640: if eval "test \"`echo '$ac_cv_func_'asprintf`\" = yes"; then
                   6641:   echo "$ac_t""yes" 1>&6
                   6642:   cat >> confdefs.h <<\EOF
                   6643: #define HAVE_ASPRINTF 1
                   6644: EOF
                   6645:
                   6646: else
                   6647:   echo "$ac_t""no" 1>&6
                   6648: NEED_SNPRINTF=1
                   6649: fi
                   6650:
                   6651: echo $ac_n "checking for vasprintf""... $ac_c" 1>&6
1.6     ! millert  6652: echo "configure:6653: checking for vasprintf" >&5
1.1       millert  6653: if eval "test \"`echo '$''{'ac_cv_func_vasprintf'+set}'`\" = set"; then
                   6654:   echo $ac_n "(cached) $ac_c" 1>&6
                   6655: else
                   6656:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  6657: #line 6658 "configure"
1.1       millert  6658: #include "confdefs.h"
                   6659: /* System header to define __stub macros and hopefully few prototypes,
                   6660:     which can conflict with char vasprintf(); below.  */
                   6661: #include <assert.h>
                   6662: /* Override any gcc2 internal prototype to avoid an error.  */
                   6663: /* We use char because int might match the return type of a gcc2
                   6664:     builtin and then its argument prototype would still apply.  */
                   6665: char vasprintf();
                   6666:
                   6667: int main() {
                   6668:
                   6669: /* The GNU C library defines this for functions which it implements
                   6670:     to always fail with ENOSYS.  Some functions are actually named
                   6671:     something starting with __ and the normal name is an alias.  */
                   6672: #if defined (__stub_vasprintf) || defined (__stub___vasprintf)
                   6673: choke me
                   6674: #else
                   6675: vasprintf();
                   6676: #endif
                   6677:
                   6678: ; return 0; }
                   6679: EOF
1.6     ! millert  6680: if { (eval echo configure:6681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6681:   rm -rf conftest*
                   6682:   eval "ac_cv_func_vasprintf=yes"
                   6683: else
                   6684:   echo "configure: failed program was:" >&5
                   6685:   cat conftest.$ac_ext >&5
                   6686:   rm -rf conftest*
                   6687:   eval "ac_cv_func_vasprintf=no"
                   6688: fi
                   6689: rm -f conftest*
                   6690: fi
                   6691:
                   6692: if eval "test \"`echo '$ac_cv_func_'vasprintf`\" = yes"; then
                   6693:   echo "$ac_t""yes" 1>&6
                   6694:   cat >> confdefs.h <<\EOF
                   6695: #define HAVE_VASPRINTF 1
                   6696: EOF
                   6697:
                   6698: else
                   6699:   echo "$ac_t""no" 1>&6
                   6700: NEED_SNPRINTF=1
                   6701: fi
                   6702:
                   6703: if test -n "$NEED_SNPRINTF"; then
                   6704:     LIBOBJS="$LIBOBJS snprintf.o"
                   6705: fi
                   6706: if test -z "$LIB_CRYPT"; then
                   6707:     echo $ac_n "checking for crypt""... $ac_c" 1>&6
1.6     ! millert  6708: echo "configure:6709: checking for crypt" >&5
1.1       millert  6709: if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
                   6710:   echo $ac_n "(cached) $ac_c" 1>&6
                   6711: else
                   6712:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  6713: #line 6714 "configure"
1.1       millert  6714: #include "confdefs.h"
                   6715: /* System header to define __stub macros and hopefully few prototypes,
                   6716:     which can conflict with char crypt(); below.  */
                   6717: #include <assert.h>
                   6718: /* Override any gcc2 internal prototype to avoid an error.  */
                   6719: /* We use char because int might match the return type of a gcc2
                   6720:     builtin and then its argument prototype would still apply.  */
                   6721: char crypt();
                   6722:
                   6723: int main() {
                   6724:
                   6725: /* The GNU C library defines this for functions which it implements
                   6726:     to always fail with ENOSYS.  Some functions are actually named
                   6727:     something starting with __ and the normal name is an alias.  */
                   6728: #if defined (__stub_crypt) || defined (__stub___crypt)
                   6729: choke me
                   6730: #else
                   6731: crypt();
                   6732: #endif
                   6733:
                   6734: ; return 0; }
                   6735: EOF
1.6     ! millert  6736: if { (eval echo configure:6737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6737:   rm -rf conftest*
                   6738:   eval "ac_cv_func_crypt=yes"
                   6739: else
                   6740:   echo "configure: failed program was:" >&5
                   6741:   cat conftest.$ac_ext >&5
                   6742:   rm -rf conftest*
                   6743:   eval "ac_cv_func_crypt=no"
                   6744: fi
                   6745: rm -f conftest*
                   6746: fi
                   6747:
                   6748: if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
                   6749:   echo "$ac_t""yes" 1>&6
                   6750:   :
                   6751: else
                   6752:   echo "$ac_t""no" 1>&6
                   6753: echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1.6     ! millert  6754: echo "configure:6755: checking for crypt in -lcrypt" >&5
1.1       millert  6755: if test -n ""; then
                   6756:   ac_lib_var=`echo crypt'_'crypt | sed 'y% ./+-%___p_%'`
                   6757: else
                   6758:   ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
                   6759: fi
                   6760: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6761:   echo $ac_n "(cached) $ac_c" 1>&6
                   6762: else
                   6763:   ac_save_LIBS="$LIBS"
                   6764: LIBS="-lcrypt  $LIBS"
                   6765: cat > conftest.$ac_ext <<EOF
1.6     ! millert  6766: #line 6767 "configure"
1.1       millert  6767: #include "confdefs.h"
                   6768: /* Override any gcc2 internal prototype to avoid an error.  */
                   6769: /* We use char because int might match the return type of a gcc2
                   6770:     builtin and then its argument prototype would still apply.  */
                   6771: char crypt();
                   6772:
                   6773: int main() {
                   6774: crypt()
                   6775: ; return 0; }
                   6776: EOF
1.6     ! millert  6777: if { (eval echo configure:6778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6778:   rm -rf conftest*
                   6779:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6780: else
                   6781:   echo "configure: failed program was:" >&5
                   6782:   cat conftest.$ac_ext >&5
                   6783:   rm -rf conftest*
                   6784:   eval "ac_cv_lib_$ac_lib_var=no"
                   6785: fi
                   6786: rm -f conftest*
                   6787: LIBS="$ac_save_LIBS"
                   6788:
                   6789: fi
                   6790: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6791:   echo "$ac_t""yes" 1>&6
                   6792:   SUDO_LIBS="${SUDO_LIBS} -lcrypt"; LIBS="${LIBS} -lcrypt"
                   6793: else
                   6794:   echo "$ac_t""no" 1>&6
                   6795: echo $ac_n "checking for crypt in -lcrypt_d""... $ac_c" 1>&6
1.6     ! millert  6796: echo "configure:6797: checking for crypt in -lcrypt_d" >&5
1.1       millert  6797: if test -n ""; then
                   6798:   ac_lib_var=`echo crypt_d'_'crypt | sed 'y% ./+-%___p_%'`
                   6799: else
                   6800:   ac_lib_var=`echo crypt_d'_'crypt | sed 'y%./+-%__p_%'`
                   6801: fi
                   6802: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6803:   echo $ac_n "(cached) $ac_c" 1>&6
                   6804: else
                   6805:   ac_save_LIBS="$LIBS"
                   6806: LIBS="-lcrypt_d  $LIBS"
                   6807: cat > conftest.$ac_ext <<EOF
1.6     ! millert  6808: #line 6809 "configure"
1.1       millert  6809: #include "confdefs.h"
                   6810: /* Override any gcc2 internal prototype to avoid an error.  */
                   6811: /* We use char because int might match the return type of a gcc2
                   6812:     builtin and then its argument prototype would still apply.  */
                   6813: char crypt();
                   6814:
                   6815: int main() {
                   6816: crypt()
                   6817: ; return 0; }
                   6818: EOF
1.6     ! millert  6819: if { (eval echo configure:6820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6820:   rm -rf conftest*
                   6821:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6822: else
                   6823:   echo "configure: failed program was:" >&5
                   6824:   cat conftest.$ac_ext >&5
                   6825:   rm -rf conftest*
                   6826:   eval "ac_cv_lib_$ac_lib_var=no"
                   6827: fi
                   6828: rm -f conftest*
                   6829: LIBS="$ac_save_LIBS"
                   6830:
                   6831: fi
                   6832: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6833:   echo "$ac_t""yes" 1>&6
                   6834:   SUDO_LIBS="${SUDO_LIBS} -lcrypt_d"; LIBS="${LIBS} -lcrypt_d"
                   6835: else
                   6836:   echo "$ac_t""no" 1>&6
                   6837: echo $ac_n "checking for crypt in -lufc""... $ac_c" 1>&6
1.6     ! millert  6838: echo "configure:6839: checking for crypt in -lufc" >&5
1.1       millert  6839: if test -n ""; then
                   6840:   ac_lib_var=`echo ufc'_'crypt | sed 'y% ./+-%___p_%'`
                   6841: else
                   6842:   ac_lib_var=`echo ufc'_'crypt | sed 'y%./+-%__p_%'`
                   6843: fi
                   6844: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6845:   echo $ac_n "(cached) $ac_c" 1>&6
                   6846: else
                   6847:   ac_save_LIBS="$LIBS"
                   6848: LIBS="-lufc  $LIBS"
                   6849: cat > conftest.$ac_ext <<EOF
1.6     ! millert  6850: #line 6851 "configure"
1.1       millert  6851: #include "confdefs.h"
                   6852: /* Override any gcc2 internal prototype to avoid an error.  */
                   6853: /* We use char because int might match the return type of a gcc2
                   6854:     builtin and then its argument prototype would still apply.  */
                   6855: char crypt();
                   6856:
                   6857: int main() {
                   6858: crypt()
                   6859: ; return 0; }
                   6860: EOF
1.6     ! millert  6861: if { (eval echo configure:6862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6862:   rm -rf conftest*
                   6863:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6864: else
                   6865:   echo "configure: failed program was:" >&5
                   6866:   cat conftest.$ac_ext >&5
                   6867:   rm -rf conftest*
                   6868:   eval "ac_cv_lib_$ac_lib_var=no"
                   6869: fi
                   6870: rm -f conftest*
                   6871: LIBS="$ac_save_LIBS"
                   6872:
                   6873: fi
                   6874: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6875:   echo "$ac_t""yes" 1>&6
                   6876:   SUDO_LIBS="${SUDO_LIBS} -lufc"; LIBS="${LIBS} -lufc"
                   6877: else
                   6878:   echo "$ac_t""no" 1>&6
                   6879: fi
                   6880:
                   6881: fi
                   6882:
                   6883: fi
                   6884:
                   6885: fi
                   6886:
                   6887: fi
                   6888: echo $ac_n "checking for socket""... $ac_c" 1>&6
1.6     ! millert  6889: echo "configure:6890: checking for socket" >&5
1.1       millert  6890: if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
                   6891:   echo $ac_n "(cached) $ac_c" 1>&6
                   6892: else
                   6893:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  6894: #line 6895 "configure"
1.1       millert  6895: #include "confdefs.h"
                   6896: /* System header to define __stub macros and hopefully few prototypes,
                   6897:     which can conflict with char socket(); below.  */
                   6898: #include <assert.h>
                   6899: /* Override any gcc2 internal prototype to avoid an error.  */
                   6900: /* We use char because int might match the return type of a gcc2
                   6901:     builtin and then its argument prototype would still apply.  */
                   6902: char socket();
                   6903:
                   6904: int main() {
                   6905:
                   6906: /* The GNU C library defines this for functions which it implements
                   6907:     to always fail with ENOSYS.  Some functions are actually named
                   6908:     something starting with __ and the normal name is an alias.  */
                   6909: #if defined (__stub_socket) || defined (__stub___socket)
                   6910: choke me
                   6911: #else
                   6912: socket();
                   6913: #endif
                   6914:
                   6915: ; return 0; }
                   6916: EOF
1.6     ! millert  6917: if { (eval echo configure:6918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6918:   rm -rf conftest*
                   6919:   eval "ac_cv_func_socket=yes"
                   6920: else
                   6921:   echo "configure: failed program was:" >&5
                   6922:   cat conftest.$ac_ext >&5
                   6923:   rm -rf conftest*
                   6924:   eval "ac_cv_func_socket=no"
                   6925: fi
                   6926: rm -f conftest*
                   6927: fi
                   6928:
                   6929: if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
                   6930:   echo "$ac_t""yes" 1>&6
                   6931:   :
                   6932: else
                   6933:   echo "$ac_t""no" 1>&6
                   6934: echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1.6     ! millert  6935: echo "configure:6936: checking for socket in -lsocket" >&5
1.1       millert  6936: if test -n ""; then
                   6937:   ac_lib_var=`echo socket'_'socket | sed 'y% ./+-%___p_%'`
                   6938: else
                   6939:   ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
                   6940: fi
                   6941: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6942:   echo $ac_n "(cached) $ac_c" 1>&6
                   6943: else
                   6944:   ac_save_LIBS="$LIBS"
                   6945: LIBS="-lsocket  $LIBS"
                   6946: cat > conftest.$ac_ext <<EOF
1.6     ! millert  6947: #line 6948 "configure"
1.1       millert  6948: #include "confdefs.h"
                   6949: /* Override any gcc2 internal prototype to avoid an error.  */
                   6950: /* We use char because int might match the return type of a gcc2
                   6951:     builtin and then its argument prototype would still apply.  */
                   6952: char socket();
                   6953:
                   6954: int main() {
                   6955: socket()
                   6956: ; return 0; }
                   6957: EOF
1.6     ! millert  6958: if { (eval echo configure:6959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  6959:   rm -rf conftest*
                   6960:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6961: else
                   6962:   echo "configure: failed program was:" >&5
                   6963:   cat conftest.$ac_ext >&5
                   6964:   rm -rf conftest*
                   6965:   eval "ac_cv_lib_$ac_lib_var=no"
                   6966: fi
                   6967: rm -f conftest*
                   6968: LIBS="$ac_save_LIBS"
                   6969:
                   6970: fi
                   6971: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6972:   echo "$ac_t""yes" 1>&6
                   6973:   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
                   6974: else
                   6975:   echo "$ac_t""no" 1>&6
                   6976: echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
1.6     ! millert  6977: echo "configure:6978: checking for socket in -linet" >&5
1.1       millert  6978: if test -n ""; then
                   6979:   ac_lib_var=`echo inet'_'socket | sed 'y% ./+-%___p_%'`
                   6980: else
                   6981:   ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
                   6982: fi
                   6983: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6984:   echo $ac_n "(cached) $ac_c" 1>&6
                   6985: else
                   6986:   ac_save_LIBS="$LIBS"
                   6987: LIBS="-linet  $LIBS"
                   6988: cat > conftest.$ac_ext <<EOF
1.6     ! millert  6989: #line 6990 "configure"
1.1       millert  6990: #include "confdefs.h"
                   6991: /* Override any gcc2 internal prototype to avoid an error.  */
                   6992: /* We use char because int might match the return type of a gcc2
                   6993:     builtin and then its argument prototype would still apply.  */
                   6994: char socket();
                   6995:
                   6996: int main() {
                   6997: socket()
                   6998: ; return 0; }
                   6999: EOF
1.6     ! millert  7000: if { (eval echo configure:7001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7001:   rm -rf conftest*
                   7002:   eval "ac_cv_lib_$ac_lib_var=yes"
                   7003: else
                   7004:   echo "configure: failed program was:" >&5
                   7005:   cat conftest.$ac_ext >&5
                   7006:   rm -rf conftest*
                   7007:   eval "ac_cv_lib_$ac_lib_var=no"
                   7008: fi
                   7009: rm -f conftest*
                   7010: LIBS="$ac_save_LIBS"
                   7011:
                   7012: fi
                   7013: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   7014:   echo "$ac_t""yes" 1>&6
                   7015:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   7016: else
                   7017:   echo "$ac_t""no" 1>&6
                   7018: echo "configure: warning: unable to find socket() trying -lsocket -lnsl" 1>&2
                   7019: echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1.6     ! millert  7020: echo "configure:7021: checking for socket in -lsocket" >&5
1.1       millert  7021: if test -n "-lnsl"; then
                   7022:   ac_lib_var=`echo socket'_'socket-lnsl | sed 'y% ./+-%___p_%'`
                   7023: else
                   7024:   ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
                   7025: fi
                   7026: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   7027:   echo $ac_n "(cached) $ac_c" 1>&6
                   7028: else
                   7029:   ac_save_LIBS="$LIBS"
                   7030: LIBS="-lsocket -lnsl $LIBS"
                   7031: cat > conftest.$ac_ext <<EOF
1.6     ! millert  7032: #line 7033 "configure"
1.1       millert  7033: #include "confdefs.h"
                   7034: /* Override any gcc2 internal prototype to avoid an error.  */
                   7035: /* We use char because int might match the return type of a gcc2
                   7036:     builtin and then its argument prototype would still apply.  */
                   7037: char socket();
                   7038:
                   7039: int main() {
                   7040: socket()
                   7041: ; return 0; }
                   7042: EOF
1.6     ! millert  7043: if { (eval echo configure:7044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7044:   rm -rf conftest*
                   7045:   eval "ac_cv_lib_$ac_lib_var=yes"
                   7046: else
                   7047:   echo "configure: failed program was:" >&5
                   7048:   cat conftest.$ac_ext >&5
                   7049:   rm -rf conftest*
                   7050:   eval "ac_cv_lib_$ac_lib_var=no"
                   7051: fi
                   7052: rm -f conftest*
                   7053: LIBS="$ac_save_LIBS"
                   7054:
                   7055: fi
                   7056: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   7057:   echo "$ac_t""yes" 1>&6
                   7058:   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
                   7059: else
                   7060:   echo "$ac_t""no" 1>&6
                   7061: fi
                   7062:
                   7063: fi
                   7064:
                   7065: fi
                   7066:
                   7067: fi
                   7068:
                   7069: echo $ac_n "checking for inet_addr""... $ac_c" 1>&6
1.6     ! millert  7070: echo "configure:7071: checking for inet_addr" >&5
1.1       millert  7071: if eval "test \"`echo '$''{'ac_cv_func_inet_addr'+set}'`\" = set"; then
                   7072:   echo $ac_n "(cached) $ac_c" 1>&6
                   7073: else
                   7074:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  7075: #line 7076 "configure"
1.1       millert  7076: #include "confdefs.h"
                   7077: /* System header to define __stub macros and hopefully few prototypes,
                   7078:     which can conflict with char inet_addr(); below.  */
                   7079: #include <assert.h>
                   7080: /* Override any gcc2 internal prototype to avoid an error.  */
                   7081: /* We use char because int might match the return type of a gcc2
                   7082:     builtin and then its argument prototype would still apply.  */
                   7083: char inet_addr();
                   7084:
                   7085: int main() {
                   7086:
                   7087: /* The GNU C library defines this for functions which it implements
                   7088:     to always fail with ENOSYS.  Some functions are actually named
                   7089:     something starting with __ and the normal name is an alias.  */
                   7090: #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
                   7091: choke me
                   7092: #else
                   7093: inet_addr();
                   7094: #endif
                   7095:
                   7096: ; return 0; }
                   7097: EOF
1.6     ! millert  7098: if { (eval echo configure:7099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7099:   rm -rf conftest*
                   7100:   eval "ac_cv_func_inet_addr=yes"
                   7101: else
                   7102:   echo "configure: failed program was:" >&5
                   7103:   cat conftest.$ac_ext >&5
                   7104:   rm -rf conftest*
                   7105:   eval "ac_cv_func_inet_addr=no"
                   7106: fi
                   7107: rm -f conftest*
                   7108: fi
                   7109:
                   7110: if eval "test \"`echo '$ac_cv_func_'inet_addr`\" = yes"; then
                   7111:   echo "$ac_t""yes" 1>&6
                   7112:   :
                   7113: else
                   7114:   echo "$ac_t""no" 1>&6
1.6     ! millert  7115: echo $ac_n "checking for __inet_addr""... $ac_c" 1>&6
        !          7116: echo "configure:7117: checking for __inet_addr" >&5
        !          7117: if eval "test \"`echo '$''{'ac_cv_func___inet_addr'+set}'`\" = set"; then
        !          7118:   echo $ac_n "(cached) $ac_c" 1>&6
        !          7119: else
        !          7120:   cat > conftest.$ac_ext <<EOF
        !          7121: #line 7122 "configure"
        !          7122: #include "confdefs.h"
        !          7123: /* System header to define __stub macros and hopefully few prototypes,
        !          7124:     which can conflict with char __inet_addr(); below.  */
        !          7125: #include <assert.h>
        !          7126: /* Override any gcc2 internal prototype to avoid an error.  */
        !          7127: /* We use char because int might match the return type of a gcc2
        !          7128:     builtin and then its argument prototype would still apply.  */
        !          7129: char __inet_addr();
        !          7130:
        !          7131: int main() {
        !          7132:
        !          7133: /* The GNU C library defines this for functions which it implements
        !          7134:     to always fail with ENOSYS.  Some functions are actually named
        !          7135:     something starting with __ and the normal name is an alias.  */
        !          7136: #if defined (__stub___inet_addr) || defined (__stub_____inet_addr)
        !          7137: choke me
        !          7138: #else
        !          7139: __inet_addr();
        !          7140: #endif
        !          7141:
        !          7142: ; return 0; }
        !          7143: EOF
        !          7144: if { (eval echo configure:7145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
        !          7145:   rm -rf conftest*
        !          7146:   eval "ac_cv_func___inet_addr=yes"
        !          7147: else
        !          7148:   echo "configure: failed program was:" >&5
        !          7149:   cat conftest.$ac_ext >&5
        !          7150:   rm -rf conftest*
        !          7151:   eval "ac_cv_func___inet_addr=no"
        !          7152: fi
        !          7153: rm -f conftest*
        !          7154: fi
        !          7155:
        !          7156: if eval "test \"`echo '$ac_cv_func_'__inet_addr`\" = yes"; then
        !          7157:   echo "$ac_t""yes" 1>&6
        !          7158:   :
        !          7159: else
        !          7160:   echo "$ac_t""no" 1>&6
1.1       millert  7161: echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
1.6     ! millert  7162: echo "configure:7163: checking for inet_addr in -lnsl" >&5
1.1       millert  7163: if test -n ""; then
                   7164:   ac_lib_var=`echo nsl'_'inet_addr | sed 'y% ./+-%___p_%'`
                   7165: else
                   7166:   ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
                   7167: fi
                   7168: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   7169:   echo $ac_n "(cached) $ac_c" 1>&6
                   7170: else
                   7171:   ac_save_LIBS="$LIBS"
                   7172: LIBS="-lnsl  $LIBS"
                   7173: cat > conftest.$ac_ext <<EOF
1.6     ! millert  7174: #line 7175 "configure"
1.1       millert  7175: #include "confdefs.h"
                   7176: /* Override any gcc2 internal prototype to avoid an error.  */
                   7177: /* We use char because int might match the return type of a gcc2
                   7178:     builtin and then its argument prototype would still apply.  */
                   7179: char inet_addr();
                   7180:
                   7181: int main() {
                   7182: inet_addr()
                   7183: ; return 0; }
                   7184: EOF
1.6     ! millert  7185: if { (eval echo configure:7186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7186:   rm -rf conftest*
                   7187:   eval "ac_cv_lib_$ac_lib_var=yes"
                   7188: else
                   7189:   echo "configure: failed program was:" >&5
                   7190:   cat conftest.$ac_ext >&5
                   7191:   rm -rf conftest*
                   7192:   eval "ac_cv_lib_$ac_lib_var=no"
                   7193: fi
                   7194: rm -f conftest*
                   7195: LIBS="$ac_save_LIBS"
                   7196:
                   7197: fi
                   7198: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   7199:   echo "$ac_t""yes" 1>&6
                   7200:   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
                   7201: else
                   7202:   echo "$ac_t""no" 1>&6
                   7203: echo $ac_n "checking for inet_addr in -linet""... $ac_c" 1>&6
1.6     ! millert  7204: echo "configure:7205: checking for inet_addr in -linet" >&5
1.1       millert  7205: if test -n ""; then
                   7206:   ac_lib_var=`echo inet'_'inet_addr | sed 'y% ./+-%___p_%'`
                   7207: else
                   7208:   ac_lib_var=`echo inet'_'inet_addr | sed 'y%./+-%__p_%'`
                   7209: fi
                   7210: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   7211:   echo $ac_n "(cached) $ac_c" 1>&6
                   7212: else
                   7213:   ac_save_LIBS="$LIBS"
                   7214: LIBS="-linet  $LIBS"
                   7215: cat > conftest.$ac_ext <<EOF
1.6     ! millert  7216: #line 7217 "configure"
1.1       millert  7217: #include "confdefs.h"
                   7218: /* Override any gcc2 internal prototype to avoid an error.  */
                   7219: /* We use char because int might match the return type of a gcc2
                   7220:     builtin and then its argument prototype would still apply.  */
                   7221: char inet_addr();
                   7222:
                   7223: int main() {
                   7224: inet_addr()
                   7225: ; return 0; }
                   7226: EOF
1.6     ! millert  7227: if { (eval echo configure:7228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7228:   rm -rf conftest*
                   7229:   eval "ac_cv_lib_$ac_lib_var=yes"
                   7230: else
                   7231:   echo "configure: failed program was:" >&5
                   7232:   cat conftest.$ac_ext >&5
                   7233:   rm -rf conftest*
                   7234:   eval "ac_cv_lib_$ac_lib_var=no"
                   7235: fi
                   7236: rm -f conftest*
                   7237: LIBS="$ac_save_LIBS"
                   7238:
                   7239: fi
                   7240: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   7241:   echo "$ac_t""yes" 1>&6
                   7242:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   7243: else
                   7244:   echo "$ac_t""no" 1>&6
1.6     ! millert  7245: echo "configure: warning: unable to find inet_addr() trying -lsocket -lnsl" 1>&2
1.1       millert  7246: echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
1.6     ! millert  7247: echo "configure:7248: checking for inet_addr in -lsocket" >&5
1.1       millert  7248: if test -n "-lnsl"; then
                   7249:   ac_lib_var=`echo socket'_'inet_addr-lnsl | sed 'y% ./+-%___p_%'`
                   7250: else
                   7251:   ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
                   7252: fi
                   7253: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   7254:   echo $ac_n "(cached) $ac_c" 1>&6
                   7255: else
                   7256:   ac_save_LIBS="$LIBS"
                   7257: LIBS="-lsocket -lnsl $LIBS"
                   7258: cat > conftest.$ac_ext <<EOF
1.6     ! millert  7259: #line 7260 "configure"
1.1       millert  7260: #include "confdefs.h"
                   7261: /* Override any gcc2 internal prototype to avoid an error.  */
                   7262: /* We use char because int might match the return type of a gcc2
                   7263:     builtin and then its argument prototype would still apply.  */
                   7264: char inet_addr();
                   7265:
                   7266: int main() {
                   7267: inet_addr()
                   7268: ; return 0; }
                   7269: EOF
1.6     ! millert  7270: if { (eval echo configure:7271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7271:   rm -rf conftest*
                   7272:   eval "ac_cv_lib_$ac_lib_var=yes"
                   7273: else
                   7274:   echo "configure: failed program was:" >&5
                   7275:   cat conftest.$ac_ext >&5
                   7276:   rm -rf conftest*
                   7277:   eval "ac_cv_lib_$ac_lib_var=no"
                   7278: fi
                   7279: rm -f conftest*
                   7280: LIBS="$ac_save_LIBS"
                   7281:
                   7282: fi
                   7283: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   7284:   echo "$ac_t""yes" 1>&6
                   7285:   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
                   7286: else
                   7287:   echo "$ac_t""no" 1>&6
                   7288: fi
                   7289:
                   7290: fi
                   7291:
                   7292: fi
                   7293:
                   7294: fi
                   7295:
1.6     ! millert  7296: fi
        !          7297:
1.1       millert  7298: echo $ac_n "checking for syslog""... $ac_c" 1>&6
1.6     ! millert  7299: echo "configure:7300: checking for syslog" >&5
1.1       millert  7300: if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
                   7301:   echo $ac_n "(cached) $ac_c" 1>&6
                   7302: else
                   7303:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  7304: #line 7305 "configure"
1.1       millert  7305: #include "confdefs.h"
                   7306: /* System header to define __stub macros and hopefully few prototypes,
                   7307:     which can conflict with char syslog(); below.  */
                   7308: #include <assert.h>
                   7309: /* Override any gcc2 internal prototype to avoid an error.  */
                   7310: /* We use char because int might match the return type of a gcc2
                   7311:     builtin and then its argument prototype would still apply.  */
                   7312: char syslog();
                   7313:
                   7314: int main() {
                   7315:
                   7316: /* The GNU C library defines this for functions which it implements
                   7317:     to always fail with ENOSYS.  Some functions are actually named
                   7318:     something starting with __ and the normal name is an alias.  */
                   7319: #if defined (__stub_syslog) || defined (__stub___syslog)
                   7320: choke me
                   7321: #else
                   7322: syslog();
                   7323: #endif
                   7324:
                   7325: ; return 0; }
                   7326: EOF
1.6     ! millert  7327: if { (eval echo configure:7328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7328:   rm -rf conftest*
                   7329:   eval "ac_cv_func_syslog=yes"
                   7330: else
                   7331:   echo "configure: failed program was:" >&5
                   7332:   cat conftest.$ac_ext >&5
                   7333:   rm -rf conftest*
                   7334:   eval "ac_cv_func_syslog=no"
                   7335: fi
                   7336: rm -f conftest*
                   7337: fi
                   7338:
                   7339: if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
                   7340:   echo "$ac_t""yes" 1>&6
                   7341:   :
                   7342: else
                   7343:   echo "$ac_t""no" 1>&6
                   7344: echo $ac_n "checking for syslog in -lsocket""... $ac_c" 1>&6
1.6     ! millert  7345: echo "configure:7346: checking for syslog in -lsocket" >&5
1.1       millert  7346: if test -n ""; then
                   7347:   ac_lib_var=`echo socket'_'syslog | sed 'y% ./+-%___p_%'`
                   7348: else
                   7349:   ac_lib_var=`echo socket'_'syslog | sed 'y%./+-%__p_%'`
                   7350: fi
                   7351: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   7352:   echo $ac_n "(cached) $ac_c" 1>&6
                   7353: else
                   7354:   ac_save_LIBS="$LIBS"
                   7355: LIBS="-lsocket  $LIBS"
                   7356: cat > conftest.$ac_ext <<EOF
1.6     ! millert  7357: #line 7358 "configure"
1.1       millert  7358: #include "confdefs.h"
                   7359: /* Override any gcc2 internal prototype to avoid an error.  */
                   7360: /* We use char because int might match the return type of a gcc2
                   7361:     builtin and then its argument prototype would still apply.  */
                   7362: char syslog();
                   7363:
                   7364: int main() {
                   7365: syslog()
                   7366: ; return 0; }
                   7367: EOF
1.6     ! millert  7368: if { (eval echo configure:7369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7369:   rm -rf conftest*
                   7370:   eval "ac_cv_lib_$ac_lib_var=yes"
                   7371: else
                   7372:   echo "configure: failed program was:" >&5
                   7373:   cat conftest.$ac_ext >&5
                   7374:   rm -rf conftest*
                   7375:   eval "ac_cv_lib_$ac_lib_var=no"
                   7376: fi
                   7377: rm -f conftest*
                   7378: LIBS="$ac_save_LIBS"
                   7379:
                   7380: fi
                   7381: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   7382:   echo "$ac_t""yes" 1>&6
                   7383:   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
                   7384: else
                   7385:   echo "$ac_t""no" 1>&6
                   7386: echo $ac_n "checking for syslog in -lnsl""... $ac_c" 1>&6
1.6     ! millert  7387: echo "configure:7388: checking for syslog in -lnsl" >&5
1.1       millert  7388: if test -n ""; then
                   7389:   ac_lib_var=`echo nsl'_'syslog | sed 'y% ./+-%___p_%'`
                   7390: else
                   7391:   ac_lib_var=`echo nsl'_'syslog | sed 'y%./+-%__p_%'`
                   7392: fi
                   7393: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   7394:   echo $ac_n "(cached) $ac_c" 1>&6
                   7395: else
                   7396:   ac_save_LIBS="$LIBS"
                   7397: LIBS="-lnsl  $LIBS"
                   7398: cat > conftest.$ac_ext <<EOF
1.6     ! millert  7399: #line 7400 "configure"
1.1       millert  7400: #include "confdefs.h"
                   7401: /* Override any gcc2 internal prototype to avoid an error.  */
                   7402: /* We use char because int might match the return type of a gcc2
                   7403:     builtin and then its argument prototype would still apply.  */
                   7404: char syslog();
                   7405:
                   7406: int main() {
                   7407: syslog()
                   7408: ; return 0; }
                   7409: EOF
1.6     ! millert  7410: if { (eval echo configure:7411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7411:   rm -rf conftest*
                   7412:   eval "ac_cv_lib_$ac_lib_var=yes"
                   7413: else
                   7414:   echo "configure: failed program was:" >&5
                   7415:   cat conftest.$ac_ext >&5
                   7416:   rm -rf conftest*
                   7417:   eval "ac_cv_lib_$ac_lib_var=no"
                   7418: fi
                   7419: rm -f conftest*
                   7420: LIBS="$ac_save_LIBS"
                   7421:
                   7422: fi
                   7423: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   7424:   echo "$ac_t""yes" 1>&6
                   7425:   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
                   7426: else
                   7427:   echo "$ac_t""no" 1>&6
                   7428: echo $ac_n "checking for syslog in -linet""... $ac_c" 1>&6
1.6     ! millert  7429: echo "configure:7430: checking for syslog in -linet" >&5
1.1       millert  7430: if test -n ""; then
                   7431:   ac_lib_var=`echo inet'_'syslog | sed 'y% ./+-%___p_%'`
                   7432: else
                   7433:   ac_lib_var=`echo inet'_'syslog | sed 'y%./+-%__p_%'`
                   7434: fi
                   7435: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   7436:   echo $ac_n "(cached) $ac_c" 1>&6
                   7437: else
                   7438:   ac_save_LIBS="$LIBS"
                   7439: LIBS="-linet  $LIBS"
                   7440: cat > conftest.$ac_ext <<EOF
1.6     ! millert  7441: #line 7442 "configure"
1.1       millert  7442: #include "confdefs.h"
                   7443: /* Override any gcc2 internal prototype to avoid an error.  */
                   7444: /* We use char because int might match the return type of a gcc2
                   7445:     builtin and then its argument prototype would still apply.  */
                   7446: char syslog();
                   7447:
                   7448: int main() {
                   7449: syslog()
                   7450: ; return 0; }
                   7451: EOF
1.6     ! millert  7452: if { (eval echo configure:7453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7453:   rm -rf conftest*
                   7454:   eval "ac_cv_lib_$ac_lib_var=yes"
                   7455: else
                   7456:   echo "configure: failed program was:" >&5
                   7457:   cat conftest.$ac_ext >&5
                   7458:   rm -rf conftest*
                   7459:   eval "ac_cv_lib_$ac_lib_var=no"
                   7460: fi
                   7461: rm -f conftest*
                   7462: LIBS="$ac_save_LIBS"
                   7463:
                   7464: fi
                   7465: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   7466:   echo "$ac_t""yes" 1>&6
                   7467:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   7468: else
                   7469:   echo "$ac_t""no" 1>&6
                   7470: fi
                   7471:
                   7472: fi
                   7473:
                   7474: fi
                   7475:
                   7476: fi
                   7477:
                   7478: if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
                   7479:     # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
                   7480: # for constant arguments.  Useless!
                   7481: echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1.6     ! millert  7482: echo "configure:7483: checking for working alloca.h" >&5
1.1       millert  7483: if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
                   7484:   echo $ac_n "(cached) $ac_c" 1>&6
                   7485: else
                   7486:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  7487: #line 7488 "configure"
1.1       millert  7488: #include "confdefs.h"
                   7489: #include <alloca.h>
                   7490: int main() {
                   7491: char *p = alloca(2 * sizeof(int));
                   7492: ; return 0; }
                   7493: EOF
1.6     ! millert  7494: if { (eval echo configure:7495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7495:   rm -rf conftest*
                   7496:   ac_cv_header_alloca_h=yes
                   7497: else
                   7498:   echo "configure: failed program was:" >&5
                   7499:   cat conftest.$ac_ext >&5
                   7500:   rm -rf conftest*
                   7501:   ac_cv_header_alloca_h=no
                   7502: fi
                   7503: rm -f conftest*
                   7504: fi
                   7505:
                   7506: echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
                   7507: if test $ac_cv_header_alloca_h = yes; then
                   7508:   cat >> confdefs.h <<\EOF
                   7509: #define HAVE_ALLOCA_H 1
                   7510: EOF
                   7511:
                   7512: fi
                   7513:
                   7514: echo $ac_n "checking for alloca""... $ac_c" 1>&6
1.6     ! millert  7515: echo "configure:7516: checking for alloca" >&5
1.1       millert  7516: if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
                   7517:   echo $ac_n "(cached) $ac_c" 1>&6
                   7518: else
                   7519:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  7520: #line 7521 "configure"
1.1       millert  7521: #include "confdefs.h"
                   7522:
                   7523: #ifdef __GNUC__
                   7524: # define alloca __builtin_alloca
                   7525: #else
                   7526: # if HAVE_ALLOCA_H
                   7527: #  include <alloca.h>
                   7528: # else
                   7529: #  ifdef _AIX
                   7530:  #pragma alloca
                   7531: #  else
                   7532: #   ifndef alloca /* predefined by HP cc +Olibcalls */
                   7533: char *alloca ();
                   7534: #   endif
                   7535: #  endif
                   7536: # endif
                   7537: #endif
                   7538:
                   7539: int main() {
                   7540: char *p = (char *) alloca(1);
                   7541: ; return 0; }
                   7542: EOF
1.6     ! millert  7543: if { (eval echo configure:7544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7544:   rm -rf conftest*
                   7545:   ac_cv_func_alloca_works=yes
                   7546: else
                   7547:   echo "configure: failed program was:" >&5
                   7548:   cat conftest.$ac_ext >&5
                   7549:   rm -rf conftest*
                   7550:   ac_cv_func_alloca_works=no
                   7551: fi
                   7552: rm -f conftest*
                   7553: fi
                   7554:
                   7555: echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
                   7556: if test $ac_cv_func_alloca_works = yes; then
                   7557:   cat >> confdefs.h <<\EOF
                   7558: #define HAVE_ALLOCA 1
                   7559: EOF
                   7560:
                   7561: fi
                   7562:
                   7563: if test $ac_cv_func_alloca_works = no; then
                   7564:   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
                   7565:   # that cause trouble.  Some versions do not even contain alloca or
                   7566:   # contain a buggy version.  If you still want to use their alloca,
                   7567:   # use ar to extract alloca.o from them instead of compiling alloca.c.
                   7568:   ALLOCA=alloca.o
                   7569:   cat >> confdefs.h <<\EOF
                   7570: #define C_ALLOCA 1
                   7571: EOF
                   7572:
                   7573:
                   7574: echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1.6     ! millert  7575: echo "configure:7576: checking whether alloca needs Cray hooks" >&5
1.1       millert  7576: if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
                   7577:   echo $ac_n "(cached) $ac_c" 1>&6
                   7578: else
                   7579:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  7580: #line 7581 "configure"
1.1       millert  7581: #include "confdefs.h"
                   7582: #if defined(CRAY) && ! defined(CRAY2)
                   7583: webecray
                   7584: #else
                   7585: wenotbecray
                   7586: #endif
                   7587:
                   7588: EOF
                   7589: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   7590:   egrep "webecray" >/dev/null 2>&1; then
                   7591:   rm -rf conftest*
                   7592:   ac_cv_os_cray=yes
                   7593: else
                   7594:   rm -rf conftest*
                   7595:   ac_cv_os_cray=no
                   7596: fi
                   7597: rm -f conftest*
                   7598:
                   7599: fi
                   7600:
                   7601: echo "$ac_t""$ac_cv_os_cray" 1>&6
                   7602: if test $ac_cv_os_cray = yes; then
                   7603: for ac_func in _getb67 GETB67 getb67; do
                   7604:   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.6     ! millert  7605: echo "configure:7606: checking for $ac_func" >&5
1.1       millert  7606: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   7607:   echo $ac_n "(cached) $ac_c" 1>&6
                   7608: else
                   7609:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  7610: #line 7611 "configure"
1.1       millert  7611: #include "confdefs.h"
                   7612: /* System header to define __stub macros and hopefully few prototypes,
                   7613:     which can conflict with char $ac_func(); below.  */
                   7614: #include <assert.h>
                   7615: /* Override any gcc2 internal prototype to avoid an error.  */
                   7616: /* We use char because int might match the return type of a gcc2
                   7617:     builtin and then its argument prototype would still apply.  */
                   7618: char $ac_func();
                   7619:
                   7620: int main() {
                   7621:
                   7622: /* The GNU C library defines this for functions which it implements
                   7623:     to always fail with ENOSYS.  Some functions are actually named
                   7624:     something starting with __ and the normal name is an alias.  */
                   7625: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   7626: choke me
                   7627: #else
                   7628: $ac_func();
                   7629: #endif
                   7630:
                   7631: ; return 0; }
                   7632: EOF
1.6     ! millert  7633: if { (eval echo configure:7634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7634:   rm -rf conftest*
                   7635:   eval "ac_cv_func_$ac_func=yes"
                   7636: else
                   7637:   echo "configure: failed program was:" >&5
                   7638:   cat conftest.$ac_ext >&5
                   7639:   rm -rf conftest*
                   7640:   eval "ac_cv_func_$ac_func=no"
                   7641: fi
                   7642: rm -f conftest*
                   7643: fi
                   7644:
                   7645: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   7646:   echo "$ac_t""yes" 1>&6
                   7647:   cat >> confdefs.h <<EOF
                   7648: #define CRAY_STACKSEG_END $ac_func
                   7649: EOF
                   7650:
                   7651:   break
                   7652: else
                   7653:   echo "$ac_t""no" 1>&6
                   7654: fi
                   7655:
                   7656: done
                   7657: fi
                   7658:
                   7659: echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1.6     ! millert  7660: echo "configure:7661: checking stack direction for C alloca" >&5
1.1       millert  7661: if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
                   7662:   echo $ac_n "(cached) $ac_c" 1>&6
                   7663: else
                   7664:   if test "$cross_compiling" = yes; then
                   7665:   ac_cv_c_stack_direction=0
                   7666: else
                   7667:   cat > conftest.$ac_ext <<EOF
1.6     ! millert  7668: #line 7669 "configure"
1.1       millert  7669: #include "confdefs.h"
                   7670: find_stack_direction ()
                   7671: {
                   7672:   static char *addr = 0;
                   7673:   auto char dummy;
                   7674:   if (addr == 0)
                   7675:     {
                   7676:       addr = &dummy;
                   7677:       return find_stack_direction ();
                   7678:     }
                   7679:   else
                   7680:     return (&dummy > addr) ? 1 : -1;
                   7681: }
                   7682: main ()
                   7683: {
                   7684:   exit (find_stack_direction() < 0);
                   7685: }
                   7686: EOF
1.6     ! millert  7687: if { (eval echo configure:7688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1       millert  7688: then
                   7689:   ac_cv_c_stack_direction=1
                   7690: else
                   7691:   echo "configure: failed program was:" >&5
                   7692:   cat conftest.$ac_ext >&5
                   7693:   rm -fr conftest*
                   7694:   ac_cv_c_stack_direction=-1
                   7695: fi
                   7696: rm -fr conftest*
                   7697: fi
                   7698:
                   7699: fi
                   7700:
                   7701: echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
                   7702: cat >> confdefs.h <<EOF
                   7703: #define STACK_DIRECTION $ac_cv_c_stack_direction
                   7704: EOF
                   7705:
                   7706: fi
                   7707:
                   7708: fi
                   7709:
                   7710: if test "$with_kerb5" = "yes"; then
                   7711:     cat >> confdefs.h <<\EOF
                   7712: #define HAVE_KERB5 1
                   7713: EOF
                   7714:
                   7715:     if test -f "/usr/local/include/krb5.h"; then
                   7716:        CPPFLAGS="$CPPFLAGS -I/usr/local/include"
                   7717:     elif test -f "/usr/local/kerberos/include/krb5.h"; then
                   7718:        CPPFLAGS="$CPPFLAGS -I/usr/local/kerberos/include"
                   7719:     elif test -f "/usr/local/krb5/include/krb5.h"; then
                   7720:        CPPFLAGS="$CPPFLAGS -I/usr/local/krb5/include"
                   7721:     else
                   7722:        echo 'Unable to locate kerberos 5 include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS'
                   7723:     fi
                   7724:
                   7725:     if test -f "/usr/local/lib/libkrb5.a"; then
                   7726:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
                   7727:     elif test -f "/usr/local/kerberos/lib/libkrb5.a"; then
                   7728:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/kerberos/lib"
                   7729:     elif test -f "/usr/local/krb5/lib/libkrb5.a"; then
                   7730:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/krb5/lib"
                   7731:     else
                   7732:        echo 'Unable to locate kerberos 5 libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS'
                   7733:     fi
                   7734:
                   7735:     SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
                   7736:     AUTH_OBJS="${AUTH_OBJS} kerb5.o"
                   7737: fi
                   7738:
1.5       millert  7739: if test "$with_pam" = "yes"; then
                   7740:     echo $ac_n "checking for -ldl""... $ac_c" 1>&6
1.6     ! millert  7741: echo "configure:7742: checking for -ldl" >&5
1.5       millert  7742: if eval "test \"`echo '$''{'ac_cv_lib_dl'+set}'`\" = set"; then
                   7743:   echo $ac_n "(cached) $ac_c" 1>&6
                   7744: else
                   7745:   ac_save_LIBS="$LIBS"
                   7746: LIBS="-ldl  $LIBS"
                   7747: cat > conftest.$ac_ext <<EOF
1.6     ! millert  7748: #line 7749 "configure"
1.5       millert  7749: #include "confdefs.h"
                   7750:
                   7751: int main() {
                   7752: main()
                   7753: ; return 0; }
                   7754: EOF
1.6     ! millert  7755: if { (eval echo configure:7756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.5       millert  7756:   rm -rf conftest*
                   7757:   ac_cv_lib_dl=yes
                   7758: else
                   7759:   echo "configure: failed program was:" >&5
                   7760:   cat conftest.$ac_ext >&5
                   7761:   rm -rf conftest*
                   7762:   ac_cv_lib_dl=no
                   7763: fi
                   7764: rm -f conftest*
                   7765: LIBS="$ac_save_LIBS"
                   7766:
                   7767: fi
                   7768: echo "$ac_t""$ac_cv_lib_dl" 1>&6
                   7769: if test "$ac_cv_lib_dl" = yes; then
                   7770:   SUDO_LIBS="${SUDO_LIBS} -ldl -lpam"
                   7771: else
                   7772:   SUDO_LIBS="${SUDO_LIBS} -lpam"
                   7773: fi
                   7774:
                   7775: fi
                   7776:
1.1       millert  7777: if test "$with_kerb4" = "yes"; then
                   7778:     cat >> confdefs.h <<\EOF
                   7779: #define HAVE_KERB4 1
                   7780: EOF
                   7781:
                   7782:     if test -f "/usr/include/kerberosIV/krb.h"; then
                   7783:        CPPFLAGS="${CPPFLAGS} -I/usr/include/kerberosIV"
                   7784:     elif test -f "/usr/local/include/kerberosIV/krb.h"; then
                   7785:        CPPFLAGS="${CPPFLAGS} -I/usr/local/include/kerberosIV"
                   7786:     elif test -f "/usr/kerberos/include/krb.h"; then
                   7787:        CPPFLAGS="${CPPFLAGS} -I/usr/kerberos/include"
                   7788:     elif test -f "/usr/local/kerberos/include/krb.h"; then
                   7789:        CPPFLAGS="${CPPFLAGS} -I/usr/local/kerberos/include"
                   7790:     else
                   7791:        echo 'Unable to locate kerberos 4 include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS'
                   7792:     fi
                   7793:
                   7794:     if test -d "/usr/kerberos/lib"; then
                   7795:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/kerberos/lib"
                   7796:     elif test -d "/usr/lib/kerberos"; then
                   7797:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/lib/kerberos"
                   7798:     elif test -f "/usr/local/lib/libkrb.a"; then
                   7799:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
                   7800:     elif test ! -f "/usr/lib/libkrb.a"; then
                   7801:        echo 'Unable to locate kerberos 4 libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS'
                   7802:     fi
                   7803:
                   7804:     echo $ac_n "checking for -ldes""... $ac_c" 1>&6
1.6     ! millert  7805: echo "configure:7806: checking for -ldes" >&5
1.1       millert  7806: if eval "test \"`echo '$''{'ac_cv_lib_des'+set}'`\" = set"; then
                   7807:   echo $ac_n "(cached) $ac_c" 1>&6
                   7808: else
                   7809:   ac_save_LIBS="$LIBS"
                   7810: LIBS="-ldes  $LIBS"
                   7811: cat > conftest.$ac_ext <<EOF
1.6     ! millert  7812: #line 7813 "configure"
1.1       millert  7813: #include "confdefs.h"
                   7814:
                   7815: int main() {
                   7816: main()
                   7817: ; return 0; }
                   7818: EOF
1.6     ! millert  7819: if { (eval echo configure:7820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       millert  7820:   rm -rf conftest*
                   7821:   ac_cv_lib_des=yes
                   7822: else
                   7823:   echo "configure: failed program was:" >&5
                   7824:   cat conftest.$ac_ext >&5
                   7825:   rm -rf conftest*
                   7826:   ac_cv_lib_des=no
                   7827: fi
                   7828: rm -f conftest*
                   7829: LIBS="$ac_save_LIBS"
                   7830:
                   7831: fi
                   7832: echo "$ac_t""$ac_cv_lib_des" 1>&6
                   7833: if test "$ac_cv_lib_des" = yes; then
                   7834:   SUDO_LIBS="${SUDO_LIBS} -lkrb -ldes"
                   7835: else
                   7836:   SUDO_LIBS="${SUDO_LIBS} -lkrb"
                   7837: fi
                   7838:
                   7839:     AUTH_OBJS="${AUTH_OBJS} kerb4.o"
                   7840: fi
                   7841:
                   7842: if test "$with_AFS" = "yes"; then
                   7843:
                   7844:     # looks like the "standard" place for AFS libs is /usr/afsws/lib
                   7845:     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
                   7846:     for i in $AFSLIBDIRS; do
                   7847:        if test -d ${i}; then
                   7848:            SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${i}"
                   7849:            FOUND_AFSLIBDIR=true
                   7850:        fi
                   7851:     done
                   7852:     if test -z "$FOUND_AFSLIBDIR"; then
                   7853:        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.'
                   7854:     fi
                   7855:
                   7856:     # Order is important here.  Note that we build AFS_LIBS from right to left
                   7857:     # since AFS_LIBS may be initialized with BSD compat libs that must go last
                   7858:     AFS_LIBS="-laudit ${AFS_LIBS}"
                   7859:     for i in $AFSLIBDIRS; do
                   7860:        if test -f ${i}/util.a; then
                   7861:            AFS_LIBS="${i}/util.a ${AFS_LIBS}"
                   7862:            FOUND_UTIL_A=true
                   7863:            break;
                   7864:        fi
                   7865:     done
                   7866:     if test -z "$FOUND_UTIL_A"; then
                   7867:        AFS_LIBS="-lutil ${AFS_LIBS}"
                   7868:     fi
                   7869:     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
                   7870:
                   7871:     # AFS includes may live in /usr/include on some machines...
                   7872:     for i in /usr/afsws/include; do
                   7873:        if test -d ${i}; then
                   7874:            CPPFLAGS="${CPPFLAGS} -I${i}"
                   7875:            FOUND_AFSINCDIR=true
                   7876:        fi
                   7877:     done
                   7878:
                   7879:     if test -z "$FOUND_AFSLIBDIR"; then
                   7880:        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.'
                   7881:     fi
                   7882: fi
                   7883:
                   7884: if test "$with_DCE" = "yes"; then
                   7885:     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
                   7886:     SUDO_LIBS="${SUDO_LIBS} -ldce"
                   7887: fi
                   7888:
1.6     ! millert  7889: if test "$with_logincap" = "yes"; then
        !          7890:     SUDO_LIBS="${SUDO_LIBS} -lutil"
        !          7891:     if test -f /usr/include/login_cap.h -a -f /usr/include/sys/types.h -a -f /usr/lib/libutil.a; then
        !          7892:        :
        !          7893:     else
        !          7894:        echo 'Unable to locate libutil.a and/or login_cap.h, you will have to edit the Makefile and add -L/path/to/libutil to SUDO_LDFLAGS and/or -I/path/to/login_cap.h to CPPFLAGS'
        !          7895:     fi
        !          7896: fi
        !          7897:
1.1       millert  7898: if test "$with_skey" = "yes"; then
                   7899:     SUDO_LIBS="${SUDO_LIBS} -lskey"
                   7900:     if test -f /usr/include/skey.h -a -f /usr/lib/libskey.a; then
                   7901:        :
                   7902:     elif test -f /usr/local/include/skey.h; then
                   7903:        CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
                   7904:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
                   7905:     elif test "$with_csops" = "yes" -a -f /tools/cs/skey/include/skey.h -a -f /tools/cs/skey/lib/libskey.a; then
                   7906:        CPPFLAGS="${CPPFLAGS} -I/tools/cs/skey/include"
                   7907:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/tools/cs/skey/lib"
                   7908:     else
                   7909:        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'
                   7910:     fi
                   7911: fi
                   7912:
                   7913: if test "$with_opie" = "yes"; then
                   7914:     SUDO_LIBS="${SUDO_LIBS} -lopie"
                   7915:     if test -f /usr/include/opie.h -a -f /usr/lib/libopie.a; then
                   7916:        :
                   7917:     elif test -f /usr/local/include/opie.h; then
                   7918:        CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
                   7919:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
                   7920:     else
                   7921:        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'
                   7922:     fi
                   7923: fi
                   7924:
                   7925: if test -n "$with_SecurID" -a "$with_SecurID" != "no"; then
                   7926:     if test "$with_SecurID" != "yes"; then
                   7927:        SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
                   7928:        CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
                   7929:     elif test -f /usr/ace/examples/sdiclient.a; then
                   7930:        SUDO_LIBS="${SUDO_LIBS} /usr/ace/examples/sdiclient.a"
                   7931:        CPPFLAGS="${CPPFLAGS} -I/usr/ace/examples"
                   7932:     else
                   7933:        SUDO_LIBS="${SUDO_LIBS} /usr/ace/sdiclient.a"
                   7934:        CPPFLAGS="${CPPFLAGS} -I/usr/ace"
                   7935:     fi
                   7936: fi
                   7937:
                   7938: if test "$with_fwtk" = "yes"; then
                   7939:     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
                   7940: fi
                   7941:
                   7942: if test "$with_authenticate" = "yes"; then
                   7943:     SUDO_LIBS="${SUDO_LIBS} -ls"
                   7944: fi
                   7945:
                   7946: echo $ac_n "checking for log file location""... $ac_c" 1>&6
1.6     ! millert  7947: echo "configure:7948: checking for log file location" >&5
1.1       millert  7948: if test -n "$with_logpath"; then
                   7949:     echo "$ac_t""$with_logpath" 1>&6
                   7950:     cat >> confdefs.h <<EOF
                   7951: #define _PATH_SUDO_LOGFILE "$with_logpath"
                   7952: EOF
                   7953:
                   7954: elif test -d "/var/log"; then
                   7955:     echo "$ac_t""/var/log/sudo.log" 1>&6
                   7956:     cat >> confdefs.h <<\EOF
                   7957: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
                   7958: EOF
                   7959:
                   7960: elif test -d "/var/adm"; then
                   7961:     echo "$ac_t""/var/adm/sudo.log" 1>&6
                   7962:     cat >> confdefs.h <<\EOF
                   7963: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
                   7964: EOF
                   7965:
                   7966: elif test -d "/usr/adm"; then
                   7967:     echo "$ac_t""/usr/adm/sudo.log" 1>&6
                   7968:     cat >> confdefs.h <<\EOF
                   7969: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
                   7970: EOF
                   7971:
                   7972: else
                   7973:     echo "$ac_t""unknown" 1>&6
                   7974: fi
                   7975:
                   7976: echo $ac_n "checking for timestamp file location""... $ac_c" 1>&6
1.6     ! millert  7977: echo "configure:7978: checking for timestamp file location" >&5
1.1       millert  7978: if test -n "$with_timedir"; then
                   7979:     echo "$ac_t""$with_timedir" 1>&6
                   7980:     cat >> confdefs.h <<EOF
                   7981: #define _PATH_SUDO_TIMEDIR "$with_timedir"
                   7982: EOF
                   7983:
1.6     ! millert  7984:     TIMEDIR="$with_timedir"
1.1       millert  7985: elif test -d "/var/run"; then
                   7986:     echo "$ac_t""/var/run/sudo" 1>&6
                   7987:     cat >> confdefs.h <<\EOF
                   7988: #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
                   7989: EOF
                   7990:
1.6     ! millert  7991:     TIMEDIR="/var/run/sudo"
        !          7992: else
1.1       millert  7993:     echo "$ac_t""/tmp/.odus" 1>&6
                   7994:     cat >> confdefs.h <<\EOF
                   7995: #define _PATH_SUDO_TIMEDIR "/tmp/.odus"
                   7996: EOF
                   7997:
1.6     ! millert  7998:     TIMEDIR="/tmp/.odus"
1.1       millert  7999: fi
                   8000:
                   8001:
                   8002: if test "$with_passwd" = "no"; then
                   8003:     cat >> confdefs.h <<\EOF
                   8004: #define WITHOUT_PASSWD 1
                   8005: EOF
                   8006:
                   8007:     if test -z "$AUTH_OBJS"; then
                   8008:        { echo "configure: error: no authentication methods defined." 1>&2; exit 1; }
                   8009:     fi
                   8010: else
                   8011:     if test -n "$SECUREWARE"; then
                   8012:        AUTH_OBJS="${AUTH_OBJS} passwd.o secureware.o"
                   8013:     else
                   8014:        AUTH_OBJS="${AUTH_OBJS} passwd.o"
                   8015:     fi
                   8016: fi
                   8017:
                   8018: if test -n "$LIBS"; then
                   8019:     L="$LIBS"
                   8020:     LIBS=
                   8021:     for l in ${L}; do
                   8022:        dupe=0
                   8023:        for sl in ${SUDO_LIBS} ${NET_LIBS}; do
                   8024:            test $l = $sl && dupe=1
                   8025:        done
                   8026:        test $dupe = 0 && LIBS="${LIBS} $l"
                   8027:     done
                   8028: fi
                   8029:
                   8030: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
                   8031:
                   8032: trap '' 1 2 15
                   8033: cat > confcache <<\EOF
                   8034: # This file is a shell script that caches the results of configure
                   8035: # tests run on this system so they can be shared between configure
                   8036: # scripts and configure runs.  It is not useful on other systems.
                   8037: # If it contains results you don't want to keep, you may remove or edit it.
                   8038: #
                   8039: # By default, configure uses ./config.cache as the cache file,
                   8040: # creating it if it does not exist already.  You can give configure
                   8041: # the --cache-file=FILE option to use a different cache file; that is
                   8042: # what configure does when it calls configure scripts in
                   8043: # subdirectories, so they share the cache.
                   8044: # Giving --cache-file=/dev/null disables caching, for debugging configure.
                   8045: # config.status only pays attention to the cache file if you give it the
                   8046: # --recheck option to rerun configure.
                   8047: #
                   8048: EOF
                   8049: # The following way of writing the cache mishandles newlines in values,
                   8050: # but we know of no workaround that is simple, portable, and efficient.
                   8051: # So, don't put newlines in cache variables' values.
                   8052: # Ultrix sh set writes to stderr and can't be redirected directly,
                   8053: # and sets the high bit in the cache file unless we assign to the vars.
                   8054: (set) 2>&1 |
                   8055:   case `(ac_space=' '; set) 2>&1` in
                   8056:   *ac_space=\ *)
                   8057:     # `set' does not quote correctly, so add quotes (double-quote substitution
                   8058:     # turns \\\\ into \\, and sed turns \\ into \).
                   8059:     sed -n \
                   8060:       -e "s/'/'\\\\''/g" \
                   8061:       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
                   8062:     ;;
                   8063:   *)
                   8064:     # `set' quotes correctly as required by POSIX, so do not add quotes.
                   8065:     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
                   8066:     ;;
                   8067:   esac >> confcache
                   8068: if cmp -s $cache_file confcache; then
                   8069:   :
                   8070: else
                   8071:   if test -w $cache_file; then
                   8072:     echo "updating cache $cache_file"
                   8073:     cat confcache > $cache_file
                   8074:   else
                   8075:     echo "not updating unwritable cache $cache_file"
                   8076:   fi
                   8077: fi
                   8078: rm -f confcache
                   8079:
                   8080: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                   8081:
                   8082: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   8083: # Let make expand exec_prefix.
                   8084: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   8085:
                   8086: # Any assignment to VPATH causes Sun make to only execute
                   8087: # the first set of double-colon rules, so remove it if not needed.
                   8088: # If there is a colon in the path, we need to keep it.
                   8089: if test "x$srcdir" = x.; then
                   8090:   ac_vpsub='/^[        ]*VPATH[        ]*=[^:]*$/d'
                   8091: fi
                   8092:
                   8093: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
                   8094:
                   8095: DEFS=-DHAVE_CONFIG_H
                   8096:
                   8097: # Without the "./", some shells look in PATH for config.status.
                   8098: : ${CONFIG_STATUS=./config.status}
                   8099:
                   8100: echo creating $CONFIG_STATUS
                   8101: rm -f $CONFIG_STATUS
                   8102: cat > $CONFIG_STATUS <<EOF
                   8103: #! /bin/sh
                   8104: # Generated automatically by configure.
                   8105: # Run this file to recreate the current configuration.
                   8106: # This directory was configured as follows,
                   8107: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                   8108: #
                   8109: # $0 $ac_configure_args
                   8110: #
                   8111: # Compiler output produced by configure, useful for debugging
                   8112: # configure, is in ./config.log if it exists.
                   8113:
                   8114: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
                   8115: for ac_option
                   8116: do
                   8117:   case "\$ac_option" in
                   8118:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   8119:     echo running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion
                   8120:     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
                   8121:   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
                   8122:     echo "$CONFIG_STATUS generated by autoconf version 2.12"
                   8123:     exit 0 ;;
                   8124:   -help | --help | --hel | --he | --h)
                   8125:     echo "\$ac_cs_usage"; exit 0 ;;
                   8126:   *) echo "\$ac_cs_usage"; exit 1 ;;
                   8127:   esac
                   8128: done
                   8129:
                   8130: ac_given_srcdir=$srcdir
                   8131:
1.6     ! millert  8132: trap 'rm -fr `echo "Makefile sudo.man visudo.man sudoers.man config.h pathnames.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1.1       millert  8133: EOF
                   8134: cat >> $CONFIG_STATUS <<EOF
                   8135:
                   8136: # Protect against being on the right side of a sed subst in config.status.
                   8137: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
                   8138:  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
                   8139: $ac_vpsub
                   8140: $extrasub
                   8141: s%@CFLAGS@%$CFLAGS%g
                   8142: s%@CPPFLAGS@%$CPPFLAGS%g
                   8143: s%@CXXFLAGS@%$CXXFLAGS%g
                   8144: s%@DEFS@%$DEFS%g
                   8145: s%@LDFLAGS@%$LDFLAGS%g
                   8146: s%@LIBS@%$LIBS%g
                   8147: s%@exec_prefix@%$exec_prefix%g
                   8148: s%@prefix@%$prefix%g
                   8149: s%@program_transform_name@%$program_transform_name%g
                   8150: s%@bindir@%$bindir%g
                   8151: s%@sbindir@%$sbindir%g
                   8152: s%@libexecdir@%$libexecdir%g
                   8153: s%@datadir@%$datadir%g
                   8154: s%@sysconfdir@%$sysconfdir%g
                   8155: s%@sharedstatedir@%$sharedstatedir%g
                   8156: s%@localstatedir@%$localstatedir%g
                   8157: s%@libdir@%$libdir%g
                   8158: s%@includedir@%$includedir%g
                   8159: s%@oldincludedir@%$oldincludedir%g
                   8160: s%@infodir@%$infodir%g
                   8161: s%@mandir@%$mandir%g
                   8162: s%@PROGS@%$PROGS%g
                   8163: s%@SUDO_LDFLAGS@%$SUDO_LDFLAGS%g
                   8164: s%@SUDO_LIBS@%$SUDO_LIBS%g
                   8165: s%@NET_LIBS@%$NET_LIBS%g
                   8166: s%@AFS_LIBS@%$AFS_LIBS%g
                   8167: s%@OSDEFS@%$OSDEFS%g
                   8168: s%@AUTH_OBJS@%$AUTH_OBJS%g
                   8169: s%@LIBOBJS@%$LIBOBJS%g
                   8170: s%@MANTYPE@%$MANTYPE%g
                   8171: s%@MAN_POSTINSTALL@%$MAN_POSTINSTALL%g
                   8172: s%@SUDOERS_MODE@%$SUDOERS_MODE%g
                   8173: s%@SUDOERS_UID@%$SUDOERS_UID%g
                   8174: s%@SUDOERS_GID@%$SUDOERS_GID%g
1.6     ! millert  8175: s%@TIMEDIR@%$TIMEDIR%g
1.1       millert  8176: s%@DEV@%$DEV%g
1.6     ! millert  8177: s%@mansectsu@%$mansectsu%g
        !          8178: s%@mansectform@%$mansectform%g
        !          8179: s%@mansrcdir@%$mansrcdir%g
1.1       millert  8180: s%@EGREPPROG@%$EGREPPROG%g
                   8181: s%@CC@%$CC%g
                   8182: s%@CPP@%$CPP%g
                   8183: s%@UNAMEPROG@%$UNAMEPROG%g
                   8184: s%@TRPROG@%$TRPROG%g
                   8185: s%@SEDPROG@%$SEDPROG%g
                   8186: s%@NROFFPROG@%$NROFFPROG%g
                   8187: s%@host@%$host%g
                   8188: s%@host_alias@%$host_alias%g
                   8189: s%@host_cpu@%$host_cpu%g
                   8190: s%@host_vendor@%$host_vendor%g
                   8191: s%@host_os@%$host_os%g
                   8192: s%@YACC@%$YACC%g
                   8193: s%@ALLOCA@%$ALLOCA%g
                   8194:
                   8195: CEOF
                   8196: EOF
                   8197:
                   8198: cat >> $CONFIG_STATUS <<\EOF
                   8199:
                   8200: # Split the substitutions into bite-sized pieces for seds with
                   8201: # small command number limits, like on Digital OSF/1 and HP-UX.
                   8202: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
                   8203: ac_file=1 # Number of current file.
                   8204: ac_beg=1 # First line for current file.
                   8205: ac_end=$ac_max_sed_cmds # Line after last line for current file.
                   8206: ac_more_lines=:
                   8207: ac_sed_cmds=""
                   8208: while $ac_more_lines; do
                   8209:   if test $ac_beg -gt 1; then
                   8210:     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
                   8211:   else
                   8212:     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
                   8213:   fi
                   8214:   if test ! -s conftest.s$ac_file; then
                   8215:     ac_more_lines=false
                   8216:     rm -f conftest.s$ac_file
                   8217:   else
                   8218:     if test -z "$ac_sed_cmds"; then
                   8219:       ac_sed_cmds="sed -f conftest.s$ac_file"
                   8220:     else
                   8221:       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
                   8222:     fi
                   8223:     ac_file=`expr $ac_file + 1`
                   8224:     ac_beg=$ac_end
                   8225:     ac_end=`expr $ac_end + $ac_max_sed_cmds`
                   8226:   fi
                   8227: done
                   8228: if test -z "$ac_sed_cmds"; then
                   8229:   ac_sed_cmds=cat
                   8230: fi
                   8231: EOF
                   8232:
                   8233: cat >> $CONFIG_STATUS <<EOF
                   8234:
1.6     ! millert  8235: CONFIG_FILES=\${CONFIG_FILES-"Makefile sudo.man visudo.man sudoers.man"}
1.1       millert  8236: EOF
                   8237: cat >> $CONFIG_STATUS <<\EOF
                   8238: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
                   8239:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   8240:   case "$ac_file" in
                   8241:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
                   8242:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   8243:   *) ac_file_in="${ac_file}.in" ;;
                   8244:   esac
                   8245:
                   8246:   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
                   8247:
                   8248:   # Remove last slash and all that follows it.  Not all systems have dirname.
                   8249:   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   8250:   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   8251:     # The file is in a subdirectory.
                   8252:     test ! -d "$ac_dir" && mkdir "$ac_dir"
                   8253:     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
                   8254:     # A "../" for each directory in $ac_dir_suffix.
                   8255:     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
                   8256:   else
                   8257:     ac_dir_suffix= ac_dots=
                   8258:   fi
                   8259:
                   8260:   case "$ac_given_srcdir" in
                   8261:   .)  srcdir=.
                   8262:       if test -z "$ac_dots"; then top_srcdir=.
                   8263:       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
                   8264:   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
                   8265:   *) # Relative path.
                   8266:     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
                   8267:     top_srcdir="$ac_dots$ac_given_srcdir" ;;
                   8268:   esac
                   8269:
                   8270:
                   8271:   echo creating "$ac_file"
                   8272:   rm -f "$ac_file"
                   8273:   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
                   8274:   case "$ac_file" in
                   8275:   *Makefile*) ac_comsub="1i\\
                   8276: # $configure_input" ;;
                   8277:   *) ac_comsub= ;;
                   8278:   esac
                   8279:
                   8280:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
                   8281:   sed -e "$ac_comsub
                   8282: s%@configure_input@%$configure_input%g
                   8283: s%@srcdir@%$srcdir%g
                   8284: s%@top_srcdir@%$top_srcdir%g
                   8285: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
                   8286: fi; done
                   8287: rm -f conftest.s*
                   8288:
                   8289: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
                   8290: # NAME is the cpp macro being defined and VALUE is the value it is being given.
                   8291: #
                   8292: # ac_d sets the value in "#define NAME VALUE" lines.
                   8293: ac_dA='s%^\([  ]*\)#\([        ]*define[       ][      ]*\)'
                   8294: ac_dB='\([     ][      ]*\)[^  ]*%\1#\2'
                   8295: ac_dC='\3'
                   8296: ac_dD='%g'
                   8297: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
                   8298: ac_uA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   8299: ac_uB='\([     ]\)%\1#\2define\3'
                   8300: ac_uC=' '
                   8301: ac_uD='\4%g'
                   8302: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
                   8303: ac_eA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   8304: ac_eB='$%\1#\2define\3'
                   8305: ac_eC=' '
                   8306: ac_eD='%g'
                   8307:
                   8308: if test "${CONFIG_HEADERS+set}" != set; then
                   8309: EOF
                   8310: cat >> $CONFIG_STATUS <<EOF
                   8311:   CONFIG_HEADERS="config.h pathnames.h"
                   8312: EOF
                   8313: cat >> $CONFIG_STATUS <<\EOF
                   8314: fi
                   8315: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
                   8316:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   8317:   case "$ac_file" in
                   8318:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
                   8319:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   8320:   *) ac_file_in="${ac_file}.in" ;;
                   8321:   esac
                   8322:
                   8323:   echo creating $ac_file
                   8324:
                   8325:   rm -f conftest.frag conftest.in conftest.out
                   8326:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
                   8327:   cat $ac_file_inputs > conftest.in
                   8328:
                   8329: EOF
                   8330:
                   8331: # Transform confdefs.h into a sed script conftest.vals that substitutes
                   8332: # the proper values into config.h.in to produce config.h.  And first:
                   8333: # Protect against being on the right side of a sed subst in config.status.
                   8334: # Protect against being in an unquoted here document in config.status.
                   8335: rm -f conftest.vals
                   8336: cat > conftest.hdr <<\EOF
                   8337: s/[\\&%]/\\&/g
                   8338: s%[\\$`]%\\&%g
                   8339: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
                   8340: s%ac_d%ac_u%gp
                   8341: s%ac_u%ac_e%gp
                   8342: EOF
                   8343: sed -n -f conftest.hdr confdefs.h > conftest.vals
                   8344: rm -f conftest.hdr
                   8345:
                   8346: # This sed command replaces #undef with comments.  This is necessary, for
                   8347: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   8348: # on some systems where configure will not decide to define it.
                   8349: cat >> conftest.vals <<\EOF
                   8350: s%^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
                   8351: EOF
                   8352:
                   8353: # Break up conftest.vals because some shells have a limit on
                   8354: # the size of here documents, and old seds have small limits too.
                   8355:
                   8356: rm -f conftest.tail
                   8357: while :
                   8358: do
                   8359:   ac_lines=`grep -c . conftest.vals`
                   8360:   # grep -c gives empty output for an empty file on some AIX systems.
                   8361:   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
                   8362:   # Write a limited-size here document to conftest.frag.
                   8363:   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
                   8364:   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
                   8365:   echo 'CEOF
                   8366:   sed -f conftest.frag conftest.in > conftest.out
                   8367:   rm -f conftest.in
                   8368:   mv conftest.out conftest.in
                   8369: ' >> $CONFIG_STATUS
                   8370:   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
                   8371:   rm -f conftest.vals
                   8372:   mv conftest.tail conftest.vals
                   8373: done
                   8374: rm -f conftest.vals
                   8375:
                   8376: cat >> $CONFIG_STATUS <<\EOF
                   8377:   rm -f conftest.frag conftest.h
                   8378:   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
                   8379:   cat conftest.in >> conftest.h
                   8380:   rm -f conftest.in
                   8381:   if cmp -s $ac_file conftest.h 2>/dev/null; then
                   8382:     echo "$ac_file is unchanged"
                   8383:     rm -f conftest.h
                   8384:   else
                   8385:     # Remove last slash and all that follows it.  Not all systems have dirname.
                   8386:       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   8387:       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   8388:       # The file is in a subdirectory.
                   8389:       test ! -d "$ac_dir" && mkdir "$ac_dir"
                   8390:     fi
                   8391:     rm -f $ac_file
                   8392:     mv conftest.h $ac_file
                   8393:   fi
                   8394: fi; done
                   8395:
                   8396: EOF
                   8397: cat >> $CONFIG_STATUS <<EOF
                   8398:
                   8399: EOF
                   8400: cat >> $CONFIG_STATUS <<\EOF
                   8401:
                   8402: exit 0
                   8403: EOF
                   8404: chmod +x $CONFIG_STATUS
                   8405: rm -fr confdefs* $ac_clean_files
                   8406: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
                   8407:
                   8408:
                   8409: if test "$with_pam" = "yes"; then
                   8410:     echo ""
                   8411:     case $host in
                   8412:        *-*-linux*)
                   8413:            echo "You will need to customize sample.pam and install it as /etc/pam.d/sudo"
                   8414:            ;;
                   8415:     esac
                   8416:     echo ""
                   8417: fi