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

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

1.1       millert     1: #! /bin/sh
                      2: # Guess values for system-dependent variables and create Makefiles.
1.41    ! millert     3: # Generated by GNU Autoconf 2.61 for sudo 1.7.2p2.
1.40      millert     4: #
                      5: # Report bugs to <http://www.sudo.ws/bugs/>.
1.1       millert     6: #
1.27      millert     7: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
                      8: # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.1       millert     9: # This configure script is free software; the Free Software Foundation
                     10: # gives unlimited permission to copy, distribute and modify it.
1.16      millert    11: ## --------------------- ##
                     12: ## M4sh Initialization.  ##
                     13: ## --------------------- ##
1.1       millert    14:
1.27      millert    15: # Be more Bourne compatible
                     16: DUALCASE=1; export DUALCASE # for MKS sh
1.16      millert    17: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                     18:   emulate sh
                     19:   NULLCMD=:
                     20:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                     21:   # is contrary to our usage.  Disable this feature.
                     22:   alias -g '${1+"$@"}'='"$@"'
1.27      millert    23:   setopt NO_GLOB_SUBST
                     24: else
                     25:   case `(set -o) 2>/dev/null` in
                     26:   *posix*) set -o posix ;;
                     27: esac
                     28:
                     29: fi
                     30:
                     31:
                     32:
                     33:
                     34: # PATH needs CR
                     35: # Avoid depending upon Character Ranges.
                     36: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                     37: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                     38: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                     39: as_cr_digits='0123456789'
                     40: as_cr_alnum=$as_cr_Letters$as_cr_digits
                     41:
                     42: # The user is always right.
                     43: if test "${PATH_SEPARATOR+set}" != set; then
                     44:   echo "#! /bin/sh" >conf$$.sh
                     45:   echo  "exit 0"   >>conf$$.sh
                     46:   chmod +x conf$$.sh
                     47:   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
                     48:     PATH_SEPARATOR=';'
                     49:   else
                     50:     PATH_SEPARATOR=:
                     51:   fi
                     52:   rm -f conf$$.sh
1.16      millert    53: fi
                     54:
                     55: # Support unset when possible.
1.25      millert    56: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.16      millert    57:   as_unset=unset
                     58: else
                     59:   as_unset=false
                     60: fi
                     61:
                     62:
1.27      millert    63: # IFS
                     64: # We need space, tab and new line, in precisely that order.  Quoting is
                     65: # there to prevent editors from complaining about space-tab.
                     66: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                     67: # splitting by setting IFS to empty value.)
                     68: as_nl='
                     69: '
                     70: IFS=" ""       $as_nl"
                     71:
                     72: # Find who we are.  Look in the path if we contain no directory separator.
                     73: case $0 in
                     74:   *[\\/]* ) as_myself=$0 ;;
                     75:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                     76: for as_dir in $PATH
                     77: do
                     78:   IFS=$as_save_IFS
                     79:   test -z "$as_dir" && as_dir=.
                     80:   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                     81: done
                     82: IFS=$as_save_IFS
                     83:
                     84:      ;;
                     85: esac
                     86: # We did not find ourselves, most probably we were run as `sh COMMAND'
                     87: # in which case we are not to be found in the path.
                     88: if test "x$as_myself" = x; then
                     89:   as_myself=$0
                     90: fi
                     91: if test ! -f "$as_myself"; then
                     92:   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                     93:   { (exit 1); exit 1; }
                     94: fi
                     95:
1.16      millert    96: # Work around bugs in pre-3.0 UWIN ksh.
1.27      millert    97: for as_var in ENV MAIL MAILPATH
                     98: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
                     99: done
1.16      millert   100: PS1='$ '
                    101: PS2='> '
                    102: PS4='+ '
                    103:
                    104: # NLS nuisances.
                    105: for as_var in \
                    106:   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
                    107:   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
                    108:   LC_TELEPHONE LC_TIME
                    109: do
1.25      millert   110:   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.16      millert   111:     eval $as_var=C; export $as_var
                    112:   else
1.27      millert   113:     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.16      millert   114:   fi
                    115: done
                    116:
                    117: # Required to use basename.
1.27      millert   118: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    119:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.16      millert   120:   as_expr=expr
                    121: else
                    122:   as_expr=false
                    123: fi
                    124:
1.27      millert   125: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.16      millert   126:   as_basename=basename
                    127: else
                    128:   as_basename=false
                    129: fi
                    130:
                    131:
                    132: # Name of the executable.
1.27      millert   133: as_me=`$as_basename -- "$0" ||
1.16      millert   134: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                    135:         X"$0" : 'X\(//\)$' \| \
1.27      millert   136:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.16      millert   137: echo X/"$0" |
1.27      millert   138:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                    139:            s//\1/
                    140:            q
                    141:          }
                    142:          /^X\/\(\/\/\)$/{
                    143:            s//\1/
                    144:            q
                    145:          }
                    146:          /^X\/\(\/\).*/{
                    147:            s//\1/
                    148:            q
                    149:          }
                    150:          s/.*/./; q'`
                    151:
                    152: # CDPATH.
                    153: $as_unset CDPATH
                    154:
1.16      millert   155:
1.27      millert   156: if test "x$CONFIG_SHELL" = x; then
                    157:   if (eval ":") 2>/dev/null; then
                    158:   as_have_required=yes
                    159: else
                    160:   as_have_required=no
                    161: fi
                    162:
                    163:   if test $as_have_required = yes &&    (eval ":
                    164: (as_func_return () {
                    165:   (exit \$1)
                    166: }
                    167: as_func_success () {
                    168:   as_func_return 0
                    169: }
                    170: as_func_failure () {
                    171:   as_func_return 1
                    172: }
                    173: as_func_ret_success () {
                    174:   return 0
                    175: }
                    176: as_func_ret_failure () {
                    177:   return 1
                    178: }
1.16      millert   179:
1.27      millert   180: exitcode=0
                    181: if as_func_success; then
                    182:   :
                    183: else
                    184:   exitcode=1
                    185:   echo as_func_success failed.
                    186: fi
                    187:
                    188: if as_func_failure; then
                    189:   exitcode=1
                    190:   echo as_func_failure succeeded.
                    191: fi
                    192:
                    193: if as_func_ret_success; then
                    194:   :
                    195: else
                    196:   exitcode=1
                    197:   echo as_func_ret_success failed.
                    198: fi
1.9       millert   199:
1.27      millert   200: if as_func_ret_failure; then
                    201:   exitcode=1
                    202:   echo as_func_ret_failure succeeded.
1.16      millert   203: fi
                    204:
1.27      millert   205: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
                    206:   :
                    207: else
                    208:   exitcode=1
                    209:   echo positional parameters were not saved.
                    210: fi
1.16      millert   211:
1.27      millert   212: test \$exitcode = 0) || { (exit 1); exit 1; }
1.16      millert   213:
1.27      millert   214: (
                    215:   as_lineno_1=\$LINENO
                    216:   as_lineno_2=\$LINENO
                    217:   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
                    218:   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
                    219: ") 2> /dev/null; then
                    220:   :
                    221: else
                    222:   as_candidate_shells=
1.16      millert   223:     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                    224: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
                    225: do
                    226:   IFS=$as_save_IFS
                    227:   test -z "$as_dir" && as_dir=.
1.27      millert   228:   case $as_dir in
1.16      millert   229:         /*)
1.27      millert   230:           for as_base in sh bash ksh sh5; do
                    231:             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
                    232:           done;;
                    233:        esac
                    234: done
                    235: IFS=$as_save_IFS
                    236:
                    237:
                    238:       for as_shell in $as_candidate_shells $SHELL; do
                    239:         # Try only shells that exist, to save several forks.
                    240:         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
                    241:                { ("$as_shell") 2> /dev/null <<\_ASEOF
                    242: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                    243:   emulate sh
                    244:   NULLCMD=:
                    245:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                    246:   # is contrary to our usage.  Disable this feature.
                    247:   alias -g '${1+"$@"}'='"$@"'
                    248:   setopt NO_GLOB_SUBST
                    249: else
                    250:   case `(set -o) 2>/dev/null` in
                    251:   *posix*) set -o posix ;;
                    252: esac
                    253:
                    254: fi
                    255:
                    256:
                    257: :
                    258: _ASEOF
                    259: }; then
                    260:   CONFIG_SHELL=$as_shell
                    261:               as_have_required=yes
                    262:               if { "$as_shell" 2> /dev/null <<\_ASEOF
                    263: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                    264:   emulate sh
                    265:   NULLCMD=:
                    266:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                    267:   # is contrary to our usage.  Disable this feature.
                    268:   alias -g '${1+"$@"}'='"$@"'
                    269:   setopt NO_GLOB_SUBST
                    270: else
                    271:   case `(set -o) 2>/dev/null` in
                    272:   *posix*) set -o posix ;;
                    273: esac
                    274:
                    275: fi
                    276:
                    277:
                    278: :
                    279: (as_func_return () {
                    280:   (exit $1)
                    281: }
                    282: as_func_success () {
                    283:   as_func_return 0
                    284: }
                    285: as_func_failure () {
                    286:   as_func_return 1
                    287: }
                    288: as_func_ret_success () {
                    289:   return 0
                    290: }
                    291: as_func_ret_failure () {
                    292:   return 1
                    293: }
                    294:
                    295: exitcode=0
                    296: if as_func_success; then
                    297:   :
                    298: else
                    299:   exitcode=1
                    300:   echo as_func_success failed.
                    301: fi
                    302:
                    303: if as_func_failure; then
                    304:   exitcode=1
                    305:   echo as_func_failure succeeded.
                    306: fi
                    307:
                    308: if as_func_ret_success; then
                    309:   :
                    310: else
                    311:   exitcode=1
                    312:   echo as_func_ret_success failed.
                    313: fi
                    314:
                    315: if as_func_ret_failure; then
                    316:   exitcode=1
                    317:   echo as_func_ret_failure succeeded.
                    318: fi
                    319:
                    320: if ( set x; as_func_ret_success y && test x = "$1" ); then
                    321:   :
                    322: else
                    323:   exitcode=1
                    324:   echo positional parameters were not saved.
                    325: fi
                    326:
                    327: test $exitcode = 0) || { (exit 1); exit 1; }
                    328:
                    329: (
                    330:   as_lineno_1=$LINENO
                    331:   as_lineno_2=$LINENO
                    332:   test "x$as_lineno_1" != "x$as_lineno_2" &&
                    333:   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
                    334:
                    335: _ASEOF
                    336: }; then
                    337:   break
                    338: fi
                    339:
                    340: fi
                    341:
                    342:       done
                    343:
                    344:       if test "x$CONFIG_SHELL" != x; then
                    345:   for as_var in BASH_ENV ENV
                    346:         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
                    347:         done
                    348:         export CONFIG_SHELL
                    349:         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
                    350: fi
                    351:
                    352:
                    353:     if test $as_have_required = no; then
                    354:   echo This script requires a shell more modern than all the
                    355:       echo shells that I found on your system.  Please install a
                    356:       echo modern shell, or manually run the script under such a
                    357:       echo shell if you do have one.
                    358:       { (exit 1); exit 1; }
                    359: fi
                    360:
                    361:
                    362: fi
                    363:
                    364: fi
                    365:
                    366:
                    367:
                    368: (eval "as_func_return () {
                    369:   (exit \$1)
                    370: }
                    371: as_func_success () {
                    372:   as_func_return 0
                    373: }
                    374: as_func_failure () {
                    375:   as_func_return 1
                    376: }
                    377: as_func_ret_success () {
                    378:   return 0
                    379: }
                    380: as_func_ret_failure () {
                    381:   return 1
                    382: }
                    383:
                    384: exitcode=0
                    385: if as_func_success; then
                    386:   :
                    387: else
                    388:   exitcode=1
                    389:   echo as_func_success failed.
                    390: fi
                    391:
                    392: if as_func_failure; then
                    393:   exitcode=1
                    394:   echo as_func_failure succeeded.
                    395: fi
                    396:
                    397: if as_func_ret_success; then
                    398:   :
                    399: else
                    400:   exitcode=1
                    401:   echo as_func_ret_success failed.
                    402: fi
                    403:
                    404: if as_func_ret_failure; then
                    405:   exitcode=1
                    406:   echo as_func_ret_failure succeeded.
                    407: fi
                    408:
                    409: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
                    410:   :
                    411: else
                    412:   exitcode=1
                    413:   echo positional parameters were not saved.
                    414: fi
                    415:
                    416: test \$exitcode = 0") || {
                    417:   echo No shell found that supports shell functions.
                    418:   echo Please tell autoconf@gnu.org about your system,
                    419:   echo including any error possibly output before this
                    420:   echo message
                    421: }
                    422:
                    423:
                    424:
1.16      millert   425:   as_lineno_1=$LINENO
                    426:   as_lineno_2=$LINENO
                    427:   test "x$as_lineno_1" != "x$as_lineno_2" &&
1.27      millert   428:   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.9       millert   429:
1.16      millert   430:   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
                    431:   # uniformly replaced by the line number.  The first 'sed' inserts a
1.27      millert   432:   # line-number line after each line using $LINENO; the second 'sed'
                    433:   # does the real work.  The second script uses 'N' to pair each
                    434:   # line-number line with the line containing $LINENO, and appends
                    435:   # trailing '-' during substitution so that $LINENO is not a special
                    436:   # case at line end.
1.16      millert   437:   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.27      millert   438:   # scripts with optimization help from Paolo Bonzini.  Blame Lee
                    439:   # E. McMahon (1931-1989) for sed's syntax.  :-)
                    440:   sed -n '
                    441:     p
                    442:     /[$]LINENO/=
                    443:   ' <$as_myself |
1.16      millert   444:     sed '
1.27      millert   445:       s/[$]LINENO.*/&-/
                    446:       t lineno
                    447:       b
                    448:       :lineno
1.16      millert   449:       N
1.27      millert   450:       :loop
                    451:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.16      millert   452:       t loop
1.27      millert   453:       s/-\n.*//
1.16      millert   454:     ' >$as_me.lineno &&
1.27      millert   455:   chmod +x "$as_me.lineno" ||
1.16      millert   456:     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
                    457:    { (exit 1); exit 1; }; }
                    458:
                    459:   # Don't try to exec as it changes $[0], causing all sort of problems
                    460:   # (the dirname of $[0] is not the place where we might find the
1.27      millert   461:   # original and so on.  Autoconf is especially sensitive to this).
                    462:   . "./$as_me.lineno"
1.16      millert   463:   # Exit status is that of the last command.
                    464:   exit
                    465: }
1.9       millert   466:
                    467:
1.27      millert   468: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                    469:   as_dirname=dirname
                    470: else
                    471:   as_dirname=false
                    472: fi
                    473:
                    474: ECHO_C= ECHO_N= ECHO_T=
                    475: case `echo -n x` in
                    476: -n*)
                    477:   case `echo 'x\c'` in
                    478:   *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
                    479:   *)   ECHO_C='\c';;
                    480:   esac;;
                    481: *)
                    482:   ECHO_N='-n';;
1.16      millert   483: esac
1.9       millert   484:
1.27      millert   485: if expr a : '\(a\)' >/dev/null 2>&1 &&
                    486:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.9       millert   487:   as_expr=expr
                    488: else
                    489:   as_expr=false
                    490: fi
                    491:
                    492: rm -f conf$$ conf$$.exe conf$$.file
1.27      millert   493: if test -d conf$$.dir; then
                    494:   rm -f conf$$.dir/conf$$.file
                    495: else
                    496:   rm -f conf$$.dir
                    497:   mkdir conf$$.dir
                    498: fi
1.9       millert   499: echo >conf$$.file
                    500: if ln -s conf$$.file conf$$ 2>/dev/null; then
1.27      millert   501:   as_ln_s='ln -s'
                    502:   # ... but there are two gotchas:
                    503:   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                    504:   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                    505:   # In both cases, we have to default to `cp -p'.
                    506:   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.9       millert   507:     as_ln_s='cp -p'
                    508: elif ln conf$$.file conf$$ 2>/dev/null; then
                    509:   as_ln_s=ln
                    510: else
                    511:   as_ln_s='cp -p'
                    512: fi
1.27      millert   513: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                    514: rmdir conf$$.dir 2>/dev/null
1.9       millert   515:
1.16      millert   516: if mkdir -p . 2>/dev/null; then
                    517:   as_mkdir_p=:
                    518: else
1.25      millert   519:   test -d ./-p && rmdir ./-p
1.16      millert   520:   as_mkdir_p=false
                    521: fi
                    522:
1.27      millert   523: if test -x / >/dev/null 2>&1; then
                    524:   as_test_x='test -x'
                    525: else
                    526:   if ls -dL / >/dev/null 2>&1; then
                    527:     as_ls_L_option=L
                    528:   else
                    529:     as_ls_L_option=
                    530:   fi
                    531:   as_test_x='
                    532:     eval sh -c '\''
                    533:       if test -d "$1"; then
                    534:         test -d "$1/.";
                    535:       else
                    536:        case $1 in
                    537:         -*)set "./$1";;
                    538:        esac;
                    539:        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
                    540:        ???[sx]*):;;*)false;;esac;fi
                    541:     '\'' sh
                    542:   '
                    543: fi
                    544: as_executable_p=$as_test_x
1.9       millert   545:
1.16      millert   546: # Sed expression to map a string onto a valid CPP name.
1.25      millert   547: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.16      millert   548:
                    549: # Sed expression to map a string onto a valid variable name.
1.25      millert   550: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.9       millert   551:
                    552:
                    553:
1.23      millert   554:
                    555: # Check that we are running under the correct shell.
                    556: SHELL=${CONFIG_SHELL-/bin/sh}
                    557:
1.27      millert   558: case X$ECHO in
1.23      millert   559: X*--fallback-echo)
                    560:   # Remove one level of quotation (which was required for Make).
1.27      millert   561:   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
1.23      millert   562:   ;;
                    563: esac
                    564:
1.27      millert   565: echo=${ECHO-echo}
1.23      millert   566: if test "X$1" = X--no-reexec; then
                    567:   # Discard the --no-reexec flag, and continue.
                    568:   shift
                    569: elif test "X$1" = X--fallback-echo; then
                    570:   # Avoid inline document here, it may be left over
                    571:   :
1.27      millert   572: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
                    573:   # Yippee, $echo works!
1.23      millert   574:   :
                    575: else
                    576:   # Restart under the correct shell.
                    577:   exec $SHELL "$0" --no-reexec ${1+"$@"}
                    578: fi
                    579:
                    580: if test "X$1" = X--fallback-echo; then
                    581:   # used as fallback echo
                    582:   shift
1.27      millert   583:   cat <<EOF
1.23      millert   584: $*
1.27      millert   585: EOF
1.23      millert   586:   exit 0
                    587: fi
                    588:
                    589: # The HP-UX ksh and POSIX shell print the target directory to stdout
                    590: # if CDPATH is set.
1.25      millert   591: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.23      millert   592:
1.27      millert   593: if test -z "$ECHO"; then
                    594: if test "X${echo_test_string+set}" != Xset; then
                    595: # find a string as large as possible, as long as the shell can cope with it
                    596:   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
                    597:     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
                    598:     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
                    599:        echo_test_string=`eval $cmd` &&
                    600:        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
                    601:     then
                    602:       break
                    603:     fi
                    604:   done
                    605: fi
1.23      millert   606:
1.27      millert   607: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
                    608:    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
                    609:    test "X$echo_testing_string" = "X$echo_test_string"; then
                    610:   :
                    611: else
                    612:   # The Solaris, AIX, and Digital Unix default echo programs unquote
                    613:   # backslashes.  This makes it impossible to quote backslashes using
                    614:   #   echo "$something" | sed 's/\\/\\\\/g'
                    615:   #
                    616:   # So, first we look for a working echo in the user's PATH.
1.23      millert   617:
1.27      millert   618:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                    619:   for dir in $PATH /usr/ucb; do
1.23      millert   620:     IFS="$lt_save_ifs"
1.27      millert   621:     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
                    622:        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
                    623:        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
                    624:        test "X$echo_testing_string" = "X$echo_test_string"; then
                    625:       echo="$dir/echo"
                    626:       break
                    627:     fi
                    628:   done
                    629:   IFS="$lt_save_ifs"
1.23      millert   630:
1.27      millert   631:   if test "X$echo" = Xecho; then
                    632:     # We didn't find a better echo, so look for alternatives.
                    633:     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
                    634:        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
                    635:        test "X$echo_testing_string" = "X$echo_test_string"; then
                    636:       # This shell has a builtin print -r that does the trick.
                    637:       echo='print -r'
                    638:     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
                    639:         test "X$CONFIG_SHELL" != X/bin/ksh; then
                    640:       # If we have ksh, try running configure again with it.
                    641:       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
                    642:       export ORIGINAL_CONFIG_SHELL
                    643:       CONFIG_SHELL=/bin/ksh
                    644:       export CONFIG_SHELL
                    645:       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
                    646:     else
                    647:       # Try using printf.
                    648:       echo='printf %s\n'
                    649:       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
                    650:         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
                    651:         test "X$echo_testing_string" = "X$echo_test_string"; then
                    652:        # Cool, printf works
                    653:        :
                    654:       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
                    655:           test "X$echo_testing_string" = 'X\t' &&
                    656:           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
                    657:           test "X$echo_testing_string" = "X$echo_test_string"; then
                    658:        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
                    659:        export CONFIG_SHELL
                    660:        SHELL="$CONFIG_SHELL"
                    661:        export SHELL
                    662:        echo="$CONFIG_SHELL $0 --fallback-echo"
                    663:       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
                    664:           test "X$echo_testing_string" = 'X\t' &&
                    665:           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
                    666:           test "X$echo_testing_string" = "X$echo_test_string"; then
                    667:        echo="$CONFIG_SHELL $0 --fallback-echo"
1.25      millert   668:       else
1.27      millert   669:        # maybe with a smaller string...
                    670:        prev=:
                    671:
                    672:        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
                    673:          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
                    674:          then
                    675:            break
                    676:          fi
                    677:          prev="$cmd"
                    678:        done
1.25      millert   679:
1.27      millert   680:        if test "$prev" != 'sed 50q "$0"'; then
                    681:          echo_test_string=`eval $prev`
                    682:          export echo_test_string
                    683:          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
                    684:        else
                    685:          # Oops.  We lost completely, so just stick with echo.
                    686:          echo=echo
                    687:        fi
1.23      millert   688:       fi
                    689:     fi
                    690:   fi
                    691: fi
1.27      millert   692: fi
1.23      millert   693:
                    694: # Copy echo and quote the copy suitably for passing to libtool from
                    695: # the Makefile, instead of quoting the original, which is used later.
1.27      millert   696: ECHO=$echo
                    697: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
                    698:    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
1.23      millert   699: fi
                    700:
                    701:
                    702:
                    703:
1.27      millert   704: exec 7<&0 </dev/null 6>&1
                    705:
1.9       millert   706: # Name of the host.
                    707: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
                    708: # so uname gets run too.
                    709: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
                    710:
                    711: #
                    712: # Initializations.
                    713: #
1.1       millert   714: ac_default_prefix=/usr/local
1.27      millert   715: ac_clean_files=
1.16      millert   716: ac_config_libobj_dir=.
1.27      millert   717: LIBOBJS=
1.9       millert   718: cross_compiling=no
                    719: subdirs=
1.16      millert   720: MFLAGS=
                    721: MAKEFLAGS=
1.9       millert   722: SHELL=${CONFIG_SHELL-/bin/sh}
                    723:
1.16      millert   724: # Identity of this package.
                    725: PACKAGE_NAME='sudo'
                    726: PACKAGE_TARNAME='sudo'
1.41    ! millert   727: PACKAGE_VERSION='1.7.2p2'
        !           728: PACKAGE_STRING='sudo 1.7.2p2'
1.40      millert   729: PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
1.16      millert   730:
1.9       millert   731: # Factoring default headers for most tests.
                    732: ac_includes_default="\
                    733: #include <stdio.h>
1.27      millert   734: #ifdef HAVE_SYS_TYPES_H
1.9       millert   735: # include <sys/types.h>
                    736: #endif
1.27      millert   737: #ifdef HAVE_SYS_STAT_H
1.9       millert   738: # include <sys/stat.h>
                    739: #endif
1.27      millert   740: #ifdef STDC_HEADERS
1.9       millert   741: # include <stdlib.h>
                    742: # include <stddef.h>
                    743: #else
1.27      millert   744: # ifdef HAVE_STDLIB_H
1.9       millert   745: #  include <stdlib.h>
                    746: # endif
                    747: #endif
1.27      millert   748: #ifdef HAVE_STRING_H
                    749: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.9       millert   750: #  include <memory.h>
                    751: # endif
                    752: # include <string.h>
                    753: #endif
1.27      millert   754: #ifdef HAVE_STRINGS_H
1.9       millert   755: # include <strings.h>
                    756: #endif
1.27      millert   757: #ifdef HAVE_INTTYPES_H
1.9       millert   758: # include <inttypes.h>
                    759: #endif
1.27      millert   760: #ifdef HAVE_STDINT_H
                    761: # include <stdint.h>
                    762: #endif
                    763: #ifdef HAVE_UNISTD_H
1.9       millert   764: # include <unistd.h>
                    765: #endif"
1.1       millert   766:
1.27      millert   767: ac_subst_vars='SHELL
                    768: PATH_SEPARATOR
                    769: PACKAGE_NAME
                    770: PACKAGE_TARNAME
                    771: PACKAGE_VERSION
                    772: PACKAGE_STRING
                    773: PACKAGE_BUGREPORT
                    774: exec_prefix
                    775: prefix
                    776: program_transform_name
                    777: bindir
                    778: sbindir
                    779: libexecdir
                    780: datarootdir
                    781: datadir
                    782: sysconfdir
                    783: sharedstatedir
                    784: localstatedir
                    785: includedir
                    786: oldincludedir
                    787: docdir
                    788: infodir
                    789: htmldir
                    790: dvidir
                    791: pdfdir
                    792: psdir
                    793: libdir
                    794: localedir
                    795: mandir
                    796: DEFS
                    797: ECHO_C
                    798: ECHO_N
                    799: ECHO_T
                    800: LIBS
                    801: build_alias
                    802: host_alias
                    803: target_alias
1.39      millert   804: HAVE_BSM_AUDIT
1.27      millert   805: LIBTOOL
                    806: CFLAGS
                    807: PROGS
                    808: CPPFLAGS
                    809: LDFLAGS
                    810: SUDO_LDFLAGS
                    811: SUDO_OBJS
                    812: SUDO_LIBS
                    813: NET_LIBS
                    814: AFS_LIBS
1.32      millert   815: GETGROUPS_LIB
1.27      millert   816: OSDEFS
                    817: AUTH_OBJS
                    818: MANTYPE
                    819: MAN_POSTINSTALL
                    820: SUDOERS_MODE
                    821: SUDOERS_UID
                    822: SUDOERS_GID
                    823: DEV
1.36      millert   824: SELINUX
                    825: BAMAN
                    826: LCMAN
                    827: SEMAN
1.37      millert   828: devdir
1.27      millert   829: mansectsu
                    830: mansectform
                    831: mansrcdir
1.36      millert   832: NOEXECFILE
1.27      millert   833: NOEXECDIR
                    834: noexec_file
                    835: INSTALL_NOEXEC
                    836: DONT_LEAK_PATH_INFO
1.37      millert   837: BSDAUTH_USAGE
                    838: SELINUX_USAGE
                    839: LDAP
                    840: LOGINCAP_USAGE
1.40      millert   841: NONUNIX_GROUPS_IMPL
1.27      millert   842: timedir
                    843: timeout
                    844: password_timeout
                    845: sudo_umask
                    846: passprompt
                    847: long_otp_prompt
                    848: lecture
                    849: logfac
                    850: goodpri
                    851: badpri
                    852: loglen
                    853: ignore_dot
                    854: mail_no_user
                    855: mail_no_host
                    856: mail_no_perms
                    857: mailto
                    858: mailsub
                    859: badpass_message
                    860: fqdn
                    861: runas_default
                    862: env_editor
                    863: passwd_tries
                    864: tty_tickets
                    865: insults
                    866: root_sudo
                    867: path_info
1.37      millert   868: ldap_conf
                    869: ldap_secret
                    870: nsswitch_conf
1.39      millert   871: netsvc_conf
1.41    ! millert   872: secure_path
1.27      millert   873: EGREPPROG
                    874: CC
                    875: ac_ct_CC
                    876: EXEEXT
                    877: OBJEXT
                    878: CPP
                    879: build
                    880: build_cpu
                    881: build_vendor
                    882: build_os
                    883: host
                    884: host_cpu
                    885: host_vendor
                    886: host_os
                    887: SED
                    888: GREP
                    889: EGREP
                    890: LN_S
                    891: ECHO
                    892: AR
                    893: RANLIB
                    894: STRIP
1.36      millert   895: DSYMUTIL
                    896: NMEDIT
1.27      millert   897: UNAMEPROG
                    898: TRPROG
                    899: NROFFPROG
                    900: YACC
                    901: YFLAGS
1.40      millert   902: FLEX
1.27      millert   903: LIBOBJS
                    904: KRB5CONFIG
                    905: LTLIBOBJS'
1.16      millert   906: ac_subst_files=''
1.27      millert   907:       ac_precious_vars='build_alias
                    908: host_alias
                    909: target_alias
                    910: CC
                    911: CFLAGS
                    912: LDFLAGS
                    913: LIBS
                    914: CPPFLAGS
                    915: CPP
                    916: YACC
                    917: YFLAGS'
                    918:
1.16      millert   919:
1.1       millert   920: # Initialize some variables set by options.
1.9       millert   921: ac_init_help=
                    922: ac_init_version=false
1.1       millert   923: # The variables have the same names as the options, with
                    924: # dashes changed to underlines.
1.9       millert   925: cache_file=/dev/null
1.1       millert   926: exec_prefix=NONE
                    927: no_create=
                    928: no_recursion=
                    929: prefix=NONE
                    930: program_prefix=NONE
                    931: program_suffix=NONE
                    932: program_transform_name=s,x,x,
                    933: silent=
                    934: site=
                    935: srcdir=
                    936: verbose=
                    937: x_includes=NONE
                    938: x_libraries=NONE
1.9       millert   939:
                    940: # Installation directory options.
                    941: # These are left unexpanded so users can "make install exec_prefix=/foo"
                    942: # and all the variables that are supposed to be based on exec_prefix
                    943: # by default will actually change.
                    944: # Use braces instead of parens because sh, perl, etc. also accept them.
1.27      millert   945: # (The list follows the same order as the GNU Coding Standards.)
1.1       millert   946: bindir='${exec_prefix}/bin'
                    947: sbindir='${exec_prefix}/sbin'
                    948: libexecdir='${exec_prefix}/libexec'
1.27      millert   949: datarootdir='${prefix}/share'
                    950: datadir='${datarootdir}'
1.1       millert   951: sysconfdir='${prefix}/etc'
                    952: sharedstatedir='${prefix}/com'
                    953: localstatedir='${prefix}/var'
                    954: includedir='${prefix}/include'
                    955: oldincludedir='/usr/include'
1.27      millert   956: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
                    957: infodir='${datarootdir}/info'
                    958: htmldir='${docdir}'
                    959: dvidir='${docdir}'
                    960: pdfdir='${docdir}'
                    961: psdir='${docdir}'
                    962: libdir='${exec_prefix}/lib'
                    963: localedir='${datarootdir}/locale'
                    964: mandir='${datarootdir}/man'
1.1       millert   965:
                    966: ac_prev=
1.27      millert   967: ac_dashdash=
1.1       millert   968: for ac_option
                    969: do
                    970:   # If the previous option needs an argument, assign it.
                    971:   if test -n "$ac_prev"; then
1.27      millert   972:     eval $ac_prev=\$ac_option
1.1       millert   973:     ac_prev=
                    974:     continue
                    975:   fi
                    976:
1.27      millert   977:   case $ac_option in
                    978:   *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
                    979:   *)   ac_optarg=yes ;;
                    980:   esac
1.1       millert   981:
                    982:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    983:
1.27      millert   984:   case $ac_dashdash$ac_option in
                    985:   --)
                    986:     ac_dashdash=yes ;;
1.1       millert   987:
                    988:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    989:     ac_prev=bindir ;;
                    990:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.9       millert   991:     bindir=$ac_optarg ;;
1.1       millert   992:
                    993:   -build | --build | --buil | --bui | --bu)
1.9       millert   994:     ac_prev=build_alias ;;
1.1       millert   995:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.9       millert   996:     build_alias=$ac_optarg ;;
1.1       millert   997:
                    998:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    999:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   1000:     ac_prev=cache_file ;;
                   1001:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   1002:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.9       millert  1003:     cache_file=$ac_optarg ;;
                   1004:
                   1005:   --config-cache | -C)
                   1006:     cache_file=config.cache ;;
1.1       millert  1007:
1.27      millert  1008:   -datadir | --datadir | --datadi | --datad)
1.1       millert  1009:     ac_prev=datadir ;;
1.27      millert  1010:   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.9       millert  1011:     datadir=$ac_optarg ;;
1.1       millert  1012:
1.27      millert  1013:   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
                   1014:   | --dataroo | --dataro | --datar)
                   1015:     ac_prev=datarootdir ;;
                   1016:   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
                   1017:   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
                   1018:     datarootdir=$ac_optarg ;;
                   1019:
1.1       millert  1020:   -disable-* | --disable-*)
1.9       millert  1021:     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1       millert  1022:     # Reject names that are not valid shell variable names.
1.27      millert  1023:     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9       millert  1024:       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
                   1025:    { (exit 1); exit 1; }; }
1.27      millert  1026:     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
                   1027:     eval enable_$ac_feature=no ;;
                   1028:
                   1029:   -docdir | --docdir | --docdi | --doc | --do)
                   1030:     ac_prev=docdir ;;
                   1031:   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
                   1032:     docdir=$ac_optarg ;;
                   1033:
                   1034:   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
                   1035:     ac_prev=dvidir ;;
                   1036:   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
                   1037:     dvidir=$ac_optarg ;;
1.1       millert  1038:
                   1039:   -enable-* | --enable-*)
1.9       millert  1040:     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1       millert  1041:     # Reject names that are not valid shell variable names.
1.27      millert  1042:     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9       millert  1043:       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
                   1044:    { (exit 1); exit 1; }; }
1.27      millert  1045:     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
                   1046:     eval enable_$ac_feature=\$ac_optarg ;;
1.1       millert  1047:
                   1048:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                   1049:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                   1050:   | --exec | --exe | --ex)
                   1051:     ac_prev=exec_prefix ;;
                   1052:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                   1053:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                   1054:   | --exec=* | --exe=* | --ex=*)
1.9       millert  1055:     exec_prefix=$ac_optarg ;;
1.1       millert  1056:
                   1057:   -gas | --gas | --ga | --g)
                   1058:     # Obsolete; use --with-gas.
                   1059:     with_gas=yes ;;
                   1060:
1.9       millert  1061:   -help | --help | --hel | --he | -h)
                   1062:     ac_init_help=long ;;
                   1063:   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
                   1064:     ac_init_help=recursive ;;
                   1065:   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
                   1066:     ac_init_help=short ;;
1.1       millert  1067:
                   1068:   -host | --host | --hos | --ho)
1.9       millert  1069:     ac_prev=host_alias ;;
1.1       millert  1070:   -host=* | --host=* | --hos=* | --ho=*)
1.9       millert  1071:     host_alias=$ac_optarg ;;
1.1       millert  1072:
1.27      millert  1073:   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
                   1074:     ac_prev=htmldir ;;
                   1075:   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
                   1076:   | --ht=*)
                   1077:     htmldir=$ac_optarg ;;
                   1078:
1.1       millert  1079:   -includedir | --includedir | --includedi | --included | --include \
                   1080:   | --includ | --inclu | --incl | --inc)
                   1081:     ac_prev=includedir ;;
                   1082:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                   1083:   | --includ=* | --inclu=* | --incl=* | --inc=*)
1.9       millert  1084:     includedir=$ac_optarg ;;
1.1       millert  1085:
                   1086:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                   1087:     ac_prev=infodir ;;
                   1088:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.9       millert  1089:     infodir=$ac_optarg ;;
1.1       millert  1090:
                   1091:   -libdir | --libdir | --libdi | --libd)
                   1092:     ac_prev=libdir ;;
                   1093:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.9       millert  1094:     libdir=$ac_optarg ;;
1.1       millert  1095:
                   1096:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                   1097:   | --libexe | --libex | --libe)
                   1098:     ac_prev=libexecdir ;;
                   1099:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                   1100:   | --libexe=* | --libex=* | --libe=*)
1.9       millert  1101:     libexecdir=$ac_optarg ;;
1.1       millert  1102:
1.27      millert  1103:   -localedir | --localedir | --localedi | --localed | --locale)
                   1104:     ac_prev=localedir ;;
                   1105:   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
                   1106:     localedir=$ac_optarg ;;
                   1107:
1.1       millert  1108:   -localstatedir | --localstatedir | --localstatedi | --localstated \
1.27      millert  1109:   | --localstate | --localstat | --localsta | --localst | --locals)
1.1       millert  1110:     ac_prev=localstatedir ;;
                   1111:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.27      millert  1112:   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.9       millert  1113:     localstatedir=$ac_optarg ;;
1.1       millert  1114:
                   1115:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                   1116:     ac_prev=mandir ;;
                   1117:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.9       millert  1118:     mandir=$ac_optarg ;;
1.1       millert  1119:
                   1120:   -nfp | --nfp | --nf)
                   1121:     # Obsolete; use --without-fp.
                   1122:     with_fp=no ;;
                   1123:
                   1124:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.16      millert  1125:   | --no-cr | --no-c | -n)
1.1       millert  1126:     no_create=yes ;;
                   1127:
                   1128:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                   1129:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                   1130:     no_recursion=yes ;;
                   1131:
                   1132:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                   1133:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                   1134:   | --oldin | --oldi | --old | --ol | --o)
                   1135:     ac_prev=oldincludedir ;;
                   1136:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                   1137:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                   1138:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.9       millert  1139:     oldincludedir=$ac_optarg ;;
1.1       millert  1140:
                   1141:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                   1142:     ac_prev=prefix ;;
                   1143:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.9       millert  1144:     prefix=$ac_optarg ;;
1.1       millert  1145:
                   1146:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                   1147:   | --program-pre | --program-pr | --program-p)
                   1148:     ac_prev=program_prefix ;;
                   1149:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                   1150:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.9       millert  1151:     program_prefix=$ac_optarg ;;
1.1       millert  1152:
                   1153:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                   1154:   | --program-suf | --program-su | --program-s)
                   1155:     ac_prev=program_suffix ;;
                   1156:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                   1157:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.9       millert  1158:     program_suffix=$ac_optarg ;;
1.1       millert  1159:
                   1160:   -program-transform-name | --program-transform-name \
                   1161:   | --program-transform-nam | --program-transform-na \
                   1162:   | --program-transform-n | --program-transform- \
                   1163:   | --program-transform | --program-transfor \
                   1164:   | --program-transfo | --program-transf \
                   1165:   | --program-trans | --program-tran \
                   1166:   | --progr-tra | --program-tr | --program-t)
                   1167:     ac_prev=program_transform_name ;;
                   1168:   -program-transform-name=* | --program-transform-name=* \
                   1169:   | --program-transform-nam=* | --program-transform-na=* \
                   1170:   | --program-transform-n=* | --program-transform-=* \
                   1171:   | --program-transform=* | --program-transfor=* \
                   1172:   | --program-transfo=* | --program-transf=* \
                   1173:   | --program-trans=* | --program-tran=* \
                   1174:   | --progr-tra=* | --program-tr=* | --program-t=*)
1.9       millert  1175:     program_transform_name=$ac_optarg ;;
1.1       millert  1176:
1.27      millert  1177:   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
                   1178:     ac_prev=pdfdir ;;
                   1179:   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
                   1180:     pdfdir=$ac_optarg ;;
                   1181:
                   1182:   -psdir | --psdir | --psdi | --psd | --ps)
                   1183:     ac_prev=psdir ;;
                   1184:   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
                   1185:     psdir=$ac_optarg ;;
                   1186:
1.1       millert  1187:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1188:   | -silent | --silent | --silen | --sile | --sil)
                   1189:     silent=yes ;;
                   1190:
                   1191:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                   1192:     ac_prev=sbindir ;;
                   1193:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                   1194:   | --sbi=* | --sb=*)
1.9       millert  1195:     sbindir=$ac_optarg ;;
1.1       millert  1196:
                   1197:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                   1198:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                   1199:   | --sharedst | --shareds | --shared | --share | --shar \
                   1200:   | --sha | --sh)
                   1201:     ac_prev=sharedstatedir ;;
                   1202:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                   1203:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                   1204:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                   1205:   | --sha=* | --sh=*)
1.9       millert  1206:     sharedstatedir=$ac_optarg ;;
1.1       millert  1207:
                   1208:   -site | --site | --sit)
                   1209:     ac_prev=site ;;
                   1210:   -site=* | --site=* | --sit=*)
1.9       millert  1211:     site=$ac_optarg ;;
1.1       millert  1212:
                   1213:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   1214:     ac_prev=srcdir ;;
                   1215:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.9       millert  1216:     srcdir=$ac_optarg ;;
1.1       millert  1217:
                   1218:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                   1219:   | --syscon | --sysco | --sysc | --sys | --sy)
                   1220:     ac_prev=sysconfdir ;;
                   1221:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                   1222:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.9       millert  1223:     sysconfdir=$ac_optarg ;;
1.1       millert  1224:
                   1225:   -target | --target | --targe | --targ | --tar | --ta | --t)
1.9       millert  1226:     ac_prev=target_alias ;;
1.1       millert  1227:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.9       millert  1228:     target_alias=$ac_optarg ;;
1.1       millert  1229:
                   1230:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                   1231:     verbose=yes ;;
                   1232:
1.9       millert  1233:   -version | --version | --versio | --versi | --vers | -V)
                   1234:     ac_init_version=: ;;
1.1       millert  1235:
                   1236:   -with-* | --with-*)
1.9       millert  1237:     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1       millert  1238:     # Reject names that are not valid shell variable names.
1.27      millert  1239:     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9       millert  1240:       { echo "$as_me: error: invalid package name: $ac_package" >&2
                   1241:    { (exit 1); exit 1; }; }
1.27      millert  1242:     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
                   1243:     eval with_$ac_package=\$ac_optarg ;;
1.1       millert  1244:
                   1245:   -without-* | --without-*)
1.9       millert  1246:     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1       millert  1247:     # Reject names that are not valid shell variable names.
1.27      millert  1248:     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9       millert  1249:       { echo "$as_me: error: invalid package name: $ac_package" >&2
                   1250:    { (exit 1); exit 1; }; }
1.27      millert  1251:     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
                   1252:     eval with_$ac_package=no ;;
1.1       millert  1253:
                   1254:   --x)
                   1255:     # Obsolete; use --with-x.
                   1256:     with_x=yes ;;
                   1257:
                   1258:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                   1259:   | --x-incl | --x-inc | --x-in | --x-i)
                   1260:     ac_prev=x_includes ;;
                   1261:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                   1262:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.9       millert  1263:     x_includes=$ac_optarg ;;
1.1       millert  1264:
                   1265:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                   1266:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                   1267:     ac_prev=x_libraries ;;
                   1268:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                   1269:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.9       millert  1270:     x_libraries=$ac_optarg ;;
1.1       millert  1271:
1.9       millert  1272:   -*) { echo "$as_me: error: unrecognized option: $ac_option
                   1273: Try \`$0 --help' for more information." >&2
                   1274:    { (exit 1); exit 1; }; }
1.1       millert  1275:     ;;
                   1276:
1.9       millert  1277:   *=*)
                   1278:     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
                   1279:     # Reject names that are not valid shell variable names.
                   1280:     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
                   1281:       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
                   1282:    { (exit 1); exit 1; }; }
1.27      millert  1283:     eval $ac_envvar=\$ac_optarg
1.9       millert  1284:     export $ac_envvar ;;
                   1285:
1.1       millert  1286:   *)
1.9       millert  1287:     # FIXME: should be removed in autoconf 3.0.
                   1288:     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
                   1289:     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
                   1290:       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
                   1291:     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1       millert  1292:     ;;
                   1293:
                   1294:   esac
                   1295: done
                   1296:
                   1297: if test -n "$ac_prev"; then
1.9       millert  1298:   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
                   1299:   { echo "$as_me: error: missing argument to $ac_option" >&2
                   1300:    { (exit 1); exit 1; }; }
1.1       millert  1301: fi
                   1302:
1.27      millert  1303: # Be sure to have absolute directory names.
                   1304: for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                   1305:                datadir sysconfdir sharedstatedir localstatedir includedir \
                   1306:                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                   1307:                libdir localedir mandir
1.9       millert  1308: do
1.27      millert  1309:   eval ac_val=\$$ac_var
1.9       millert  1310:   case $ac_val in
1.27      millert  1311:     [\\/$]* | ?:[\\/]* )  continue;;
                   1312:     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1       millert  1313:   esac
1.27      millert  1314:   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
                   1315:    { (exit 1); exit 1; }; }
1.1       millert  1316: done
                   1317:
1.9       millert  1318: # There might be people who depend on the old broken behavior: `$host'
                   1319: # used to hold the argument of --host etc.
1.16      millert  1320: # FIXME: To remove some day.
1.9       millert  1321: build=$build_alias
                   1322: host=$host_alias
                   1323: target=$target_alias
                   1324:
1.16      millert  1325: # FIXME: To remove some day.
1.9       millert  1326: if test "x$host_alias" != x; then
                   1327:   if test "x$build_alias" = x; then
                   1328:     cross_compiling=maybe
                   1329:     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
                   1330:     If a cross compiler is detected then cross compile mode will be used." >&2
                   1331:   elif test "x$build_alias" != "x$host_alias"; then
                   1332:     cross_compiling=yes
                   1333:   fi
                   1334: fi
1.1       millert  1335:
1.9       millert  1336: ac_tool_prefix=
                   1337: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1       millert  1338:
1.9       millert  1339: test "$silent" = yes && exec 6>/dev/null
1.1       millert  1340:
1.16      millert  1341:
1.27      millert  1342: ac_pwd=`pwd` && test -n "$ac_pwd" &&
                   1343: ac_ls_di=`ls -di .` &&
                   1344: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
                   1345:   { echo "$as_me: error: Working directory cannot be determined" >&2
                   1346:    { (exit 1); exit 1; }; }
                   1347: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
                   1348:   { echo "$as_me: error: pwd does not report name of working directory" >&2
                   1349:    { (exit 1); exit 1; }; }
                   1350:
                   1351:
1.1       millert  1352: # Find the source files, if location was not specified.
                   1353: if test -z "$srcdir"; then
                   1354:   ac_srcdir_defaulted=yes
1.27      millert  1355:   # Try the directory containing this script, then the parent directory.
                   1356:   ac_confdir=`$as_dirname -- "$0" ||
1.16      millert  1357: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.25      millert  1358:         X"$0" : 'X\(//\)[^/]' \| \
                   1359:         X"$0" : 'X\(//\)$' \| \
1.27      millert  1360:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.16      millert  1361: echo X"$0" |
1.27      millert  1362:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   1363:            s//\1/
                   1364:            q
                   1365:          }
                   1366:          /^X\(\/\/\)[^/].*/{
                   1367:            s//\1/
                   1368:            q
                   1369:          }
                   1370:          /^X\(\/\/\)$/{
                   1371:            s//\1/
                   1372:            q
                   1373:          }
                   1374:          /^X\(\/\).*/{
                   1375:            s//\1/
                   1376:            q
                   1377:          }
                   1378:          s/.*/./; q'`
1.1       millert  1379:   srcdir=$ac_confdir
1.27      millert  1380:   if test ! -r "$srcdir/$ac_unique_file"; then
1.1       millert  1381:     srcdir=..
                   1382:   fi
                   1383: else
                   1384:   ac_srcdir_defaulted=no
                   1385: fi
1.27      millert  1386: if test ! -r "$srcdir/$ac_unique_file"; then
                   1387:   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
                   1388:   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
                   1389:    { (exit 1); exit 1; }; }
                   1390: fi
                   1391: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
                   1392: ac_abs_confdir=`(
                   1393:        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
                   1394:    { (exit 1); exit 1; }; }
                   1395:        pwd)`
                   1396: # When building in place, set srcdir=.
                   1397: if test "$ac_abs_confdir" = "$ac_pwd"; then
                   1398:   srcdir=.
                   1399: fi
                   1400: # Remove unnecessary trailing slashes from srcdir.
                   1401: # Double slashes in file names in object file debugging info
                   1402: # mess up M-x gdb in Emacs.
                   1403: case $srcdir in
                   1404: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
                   1405: esac
                   1406: for ac_var in $ac_precious_vars; do
                   1407:   eval ac_env_${ac_var}_set=\${${ac_var}+set}
                   1408:   eval ac_env_${ac_var}_value=\$${ac_var}
                   1409:   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
                   1410:   eval ac_cv_env_${ac_var}_value=\$${ac_var}
                   1411: done
1.9       millert  1412:
                   1413: #
                   1414: # Report the --help message.
                   1415: #
                   1416: if test "$ac_init_help" = "long"; then
                   1417:   # Omit some internal or obsolete options to make the list less imposing.
                   1418:   # This message is too long to be a string in the A/UX 3.1 sh.
1.16      millert  1419:   cat <<_ACEOF
1.41    ! millert  1420: \`configure' configures sudo 1.7.2p2 to adapt to many kinds of systems.
1.9       millert  1421:
                   1422: Usage: $0 [OPTION]... [VAR=VALUE]...
                   1423:
                   1424: To assign environment variables (e.g., CC, CFLAGS...), specify them as
                   1425: VAR=VALUE.  See below for descriptions of some of the useful variables.
                   1426:
                   1427: Defaults for the options are specified in brackets.
                   1428:
                   1429: Configuration:
                   1430:   -h, --help              display this help and exit
                   1431:       --help=short        display options specific to this package
                   1432:       --help=recursive    display the short help of all the included packages
                   1433:   -V, --version           display version information and exit
                   1434:   -q, --quiet, --silent   do not print \`checking...' messages
                   1435:       --cache-file=FILE   cache test results in FILE [disabled]
                   1436:   -C, --config-cache      alias for \`--cache-file=config.cache'
                   1437:   -n, --no-create         do not create output files
                   1438:       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
                   1439:
                   1440: Installation directories:
                   1441:   --prefix=PREFIX         install architecture-independent files in PREFIX
1.25      millert  1442:                          [$ac_default_prefix]
1.9       millert  1443:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.25      millert  1444:                          [PREFIX]
1.9       millert  1445:
                   1446: By default, \`make install' will install all the files in
                   1447: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
                   1448: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
                   1449: for instance \`--prefix=\$HOME'.
                   1450:
                   1451: For better control, use the options below.
                   1452:
                   1453: Fine tuning of the installation directories:
                   1454:   --bindir=DIR           user executables [EPREFIX/bin]
                   1455:   --sbindir=DIR          system admin executables [EPREFIX/sbin]
                   1456:   --libexecdir=DIR       program executables [EPREFIX/libexec]
1.27      millert  1457:   --sysconfdir=DIR       read-only single-machine data [etc]
1.9       millert  1458:   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
                   1459:   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
                   1460:   --libdir=DIR           object code libraries [EPREFIX/lib]
                   1461:   --includedir=DIR       C header files [PREFIX/include]
                   1462:   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1.27      millert  1463:   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
                   1464:   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
                   1465:   --infodir=DIR          info documentation [DATAROOTDIR/info]
                   1466:   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
                   1467:   --mandir=DIR           man documentation [DATAROOTDIR/man]
                   1468:   --docdir=DIR           documentation root [DATAROOTDIR/doc/sudo]
                   1469:   --htmldir=DIR          html documentation [DOCDIR]
                   1470:   --dvidir=DIR           dvi documentation [DOCDIR]
                   1471:   --pdfdir=DIR           pdf documentation [DOCDIR]
                   1472:   --psdir=DIR            ps documentation [DOCDIR]
1.16      millert  1473: _ACEOF
1.9       millert  1474:
1.16      millert  1475:   cat <<\_ACEOF
1.9       millert  1476:
                   1477: System types:
                   1478:   --build=BUILD     configure for building on BUILD [guessed]
1.16      millert  1479:   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
                   1480: _ACEOF
1.9       millert  1481: fi
                   1482:
                   1483: if test -n "$ac_init_help"; then
                   1484:   case $ac_init_help in
1.41    ! millert  1485:      short | recursive ) echo "Configuration of sudo 1.7.2p2:";;
1.9       millert  1486:    esac
1.16      millert  1487:   cat <<\_ACEOF
1.9       millert  1488:
                   1489: Optional Features:
                   1490:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                   1491:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                   1492:   --disable-authentication
                   1493:                           Do not require authentication by default
1.12      millert  1494:   --disable-root-mailer   Don't run the mailer as root, run as the user
1.13      millert  1495:   --disable-setreuid      Don't try to use the setreuid() function
1.25      millert  1496:   --disable-setresuid     Don't try to use the setresuid() function
1.9       millert  1497:   --disable-shadow        Never use shadow passwords
1.12      millert  1498:   --disable-root-sudo     Don't allow root to run sudo
1.9       millert  1499:   --enable-log-host       Log the hostname in the log file
                   1500:   --enable-noargs-shell   If sudo is given no arguments run a shell
                   1501:   --enable-shell-sets-home
1.37      millert  1502:                           Set $HOME to target user in shell mode
1.9       millert  1503:   --disable-path-info     Print 'command not allowed' not 'command not found'
1.39      millert  1504:   --enable-env-debug      Whether to enable environment debugging.
1.37      millert  1505:   --enable-gss-krb5-ccache-name
                   1506:                           Use GSS-API to set the Kerberos V cred cache name
1.27      millert  1507:   --enable-static[=PKGS]  build static libraries [default=no]
                   1508:   --enable-shared[=PKGS]  build shared libraries [default=yes]
1.23      millert  1509:   --enable-fast-install[=PKGS]
                   1510:                           optimize for fast installation [default=yes]
                   1511:   --disable-libtool-lock  avoid locking (might break parallel builds)
1.27      millert  1512:   --disable-sia           Disable SIA on Digital UNIX
1.30      millert  1513:   --disable-pam-session   Disable PAM session support
1.9       millert  1514:
                   1515: Optional Packages:
                   1516:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                   1517:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                   1518:   --with-otp-only         deprecated
                   1519:   --with-alertmail        deprecated
                   1520:   --with-CC               C compiler to use
1.17      millert  1521:   --with-rpath            pass -R flag in addition to -L for lib paths
1.25      millert  1522:   --with-blibpath=PATH    pass -blibpath flag to ld for additional lib paths
1.39      millert  1523:   --with-bsm-audit        enable BSM audit support
1.9       millert  1524:   --with-incpath          additional places to look for include files
                   1525:   --with-libpath          additional places to look for libraries
                   1526:   --with-libraries        additional libraries to link with
1.15      david    1527:   --with-devel            add development options
1.11      millert  1528:   --with-efence           link with -lefence for malloc() debugging
1.9       millert  1529:   --with-csops            add CSOps standard options
                   1530:   --without-passwd        don't use passwd/shadow file for authentication
1.25      millert  1531:   --with-skey=DIR         enable S/Key support
                   1532:   --with-opie=DIR         enable OPIE support
1.9       millert  1533:   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1.40      millert  1534:   --with-SecurID=DIR      enable SecurID support
                   1535:   --with-fwtk=DIR         enable FWTK AuthSRV support
                   1536:   --with-kerb4=DIR        enable Kerberos IV support
                   1537:   --with-kerb5=DIR        enable Kerberos V support
1.25      millert  1538:   --with-aixauth          enable AIX general authentication support
1.9       millert  1539:   --with-pam              enable PAM support
                   1540:   --with-AFS              enable AFS support
                   1541:   --with-DCE              enable DCE support
                   1542:   --with-logincap         enable BSD login class support
                   1543:   --with-bsdauth          enable BSD authentication support
1.25      millert  1544:   --with-project          enable Solaris project support
1.9       millert  1545:   --without-lecture       don't print lecture for first-time sudoer
                   1546:   --with-logging          log via syslog, file, or both
                   1547:   --with-logfac           syslog facility to log with (default is "local2")
                   1548:   --with-goodpri          syslog priority for commands (def is "notice")
                   1549:   --with-badpri           syslog priority for failures (def is "alert")
                   1550:   --with-logpath          path to the sudo log file
                   1551:   --with-loglen           maximum length of a log file line (default is 80)
                   1552:   --with-ignore-dot       ignore '.' in the PATH
1.40      millert  1553:   --without-mail-if-no-user
                   1554:                           do not send mail if user not in sudoers
1.9       millert  1555:   --with-mail-if-no-host  send mail if user in sudoers but not for this host
                   1556:   --with-mail-if-noperms  send mail if user not allowed to run command
                   1557:   --with-mailto           who should get sudo mail (default is "root")
                   1558:   --with-mailsubject      subject of sudo mail
                   1559:   --with-passprompt       default password prompt
                   1560:   --with-badpass-message  message the user sees when the password is wrong
                   1561:   --with-fqdn             expect fully qualified hosts in sudoers
                   1562:   --with-timedir          path to the sudo timestamp dir
1.40      millert  1563:   --with-sendmail         set path to sendmail
1.9       millert  1564:   --without-sendmail      do not send mail at all
                   1565:   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
                   1566:   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
                   1567:   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
1.40      millert  1568:   --with-umask            umask with which the prog should run (default is
                   1569:                           022)
1.9       millert  1570:   --without-umask         Preserves the umask of the user invoking sudo.
                   1571:   --with-runas-default    User to run commands as (default is "root")
                   1572:   --with-exempt=group     no passwd needed for users in this group
                   1573:   --with-editor=path      Default editor for visudo (defaults to vi)
                   1574:   --with-env-editor       Use the environment variable EDITOR for visudo
                   1575:   --with-passwd-tries     number of tries to enter password (default is 3)
1.40      millert  1576:   --with-timeout          minutes before sudo asks for passwd again (def is 5
                   1577:                           minutes)
                   1578:   --with-password-timeout passwd prompt timeout in minutes (default is 5
                   1579:                           minutes)
1.9       millert  1580:   --with-tty-tickets      use a different ticket file for each tty
                   1581:   --with-insults          insult the user for entering an incorrect password
                   1582:   --with-all-insults      include all the sudo insult sets
                   1583:   --with-classic-insults  include the insults from the "classic" sudo
                   1584:   --with-csops-insults    include CSOps insults
                   1585:   --with-hal-insults      include 2001-like insults
                   1586:   --with-goons-insults    include the insults from the "Goon Show"
1.40      millert  1587:   --with-nsswitch=PATH    path to nsswitch.conf
                   1588:   --with-ldap=DIR         enable LDAP support
1.23      millert  1589:   --with-ldap-conf-file   path to LDAP configuration file
1.33      millert  1590:   --with-ldap-secret-file path to LDAP secret password file
1.40      millert  1591:   --with-pc-insults       replace politically incorrect insults with less
                   1592:                           offensive ones
1.20      millert  1593:   --with-secure-path      override the user's path with a built-in one
1.9       millert  1594:   --without-interfaces    don't try to read the ip addr of ether interfaces
1.16      millert  1595:   --with-stow             properly handle GNU stow packaging
1.37      millert  1596:   --with-askpass=PATH     Fully qualified pathname of askpass helper
1.40      millert  1597:   --with-libvas=NAME      Name of the libvas shared library
                   1598:                           (default=libvas.so)
                   1599:   --with-libvas-rpath=PATH
                   1600:                           Path to look for libvas in [default=/opt/quest/lib]
1.36      millert  1601:   --with-selinux          enable SELinux support
1.27      millert  1602:   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1.23      millert  1603:   --with-pic              try to use only PIC/non-PIC objects [default=use
                   1604:                           both]
1.25      millert  1605:   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
1.40      millert  1606:   --with-netsvc=PATH      path to netsvc.conf
1.9       millert  1607:
                   1608: Some influential environment variables:
                   1609:   CC          C compiler command
                   1610:   CFLAGS      C compiler flags
                   1611:   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
                   1612:               nonstandard directory <lib dir>
1.27      millert  1613:   LIBS        libraries to pass to the linker, e.g. -l<library>
                   1614:   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
                   1615:               you have headers in a nonstandard directory <include dir>
1.9       millert  1616:   CPP         C preprocessor
1.27      millert  1617:   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
                   1618:               the first program found out of: `bison -y', `byacc', `yacc'.
                   1619:   YFLAGS      The list of arguments that will be passed by default to $YACC.
                   1620:               This script will default YFLAGS to the empty string to avoid a
                   1621:               default value of `-d' given by some make applications.
1.9       millert  1622:
                   1623: Use these variables to override the choices made by `configure' or to help
                   1624: it to find libraries and programs with nonstandard names/locations.
                   1625:
1.40      millert  1626: Report bugs to <http://www.sudo.ws/bugs/>.
1.16      millert  1627: _ACEOF
1.27      millert  1628: ac_status=$?
1.9       millert  1629: fi
                   1630:
                   1631: if test "$ac_init_help" = "recursive"; then
                   1632:   # If there are subdirs, report their specific --help.
1.16      millert  1633:   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.27      millert  1634:     test -d "$ac_dir" || continue
1.16      millert  1635:     ac_builddir=.
                   1636:
1.27      millert  1637: case "$ac_dir" in
                   1638: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1639: *)
1.16      millert  1640:   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.27      millert  1641:   # A ".." for each directory in $ac_dir_suffix.
                   1642:   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
                   1643:   case $ac_top_builddir_sub in
                   1644:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   1645:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   1646:   esac ;;
                   1647: esac
                   1648: ac_abs_top_builddir=$ac_pwd
                   1649: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   1650: # for backward compatibility:
                   1651: ac_top_builddir=$ac_top_build_prefix
1.16      millert  1652:
                   1653: case $srcdir in
1.27      millert  1654:   .)  # We are building in place.
1.16      millert  1655:     ac_srcdir=.
1.27      millert  1656:     ac_top_srcdir=$ac_top_builddir_sub
                   1657:     ac_abs_top_srcdir=$ac_pwd ;;
                   1658:   [\\/]* | ?:[\\/]* )  # Absolute name.
1.16      millert  1659:     ac_srcdir=$srcdir$ac_dir_suffix;
1.27      millert  1660:     ac_top_srcdir=$srcdir
                   1661:     ac_abs_top_srcdir=$srcdir ;;
                   1662:   *) # Relative name.
                   1663:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   1664:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   1665:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   1666: esac
                   1667: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
                   1668:
                   1669:     cd "$ac_dir" || { ac_status=$?; continue; }
                   1670:     # Check for guested configure.
                   1671:     if test -f "$ac_srcdir/configure.gnu"; then
                   1672:       echo &&
                   1673:       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
                   1674:     elif test -f "$ac_srcdir/configure"; then
                   1675:       echo &&
                   1676:       $SHELL "$ac_srcdir/configure" --help=recursive
1.9       millert  1677:     else
1.16      millert  1678:       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.27      millert  1679:     fi || ac_status=$?
                   1680:     cd "$ac_pwd" || { ac_status=$?; break; }
1.9       millert  1681:   done
                   1682: fi
                   1683:
1.27      millert  1684: test -n "$ac_init_help" && exit $ac_status
1.9       millert  1685: if $ac_init_version; then
1.16      millert  1686:   cat <<\_ACEOF
1.41    ! millert  1687: sudo configure 1.7.2p2
1.27      millert  1688: generated by GNU Autoconf 2.61
1.9       millert  1689:
1.27      millert  1690: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
                   1691: 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.9       millert  1692: This configure script is free software; the Free Software Foundation
                   1693: gives unlimited permission to copy, distribute and modify it.
1.16      millert  1694: _ACEOF
1.27      millert  1695:   exit
1.9       millert  1696: fi
1.27      millert  1697: cat >config.log <<_ACEOF
1.9       millert  1698: This file contains any messages produced by compilers while
                   1699: running configure, to aid debugging if configure makes a mistake.
                   1700:
1.41    ! millert  1701: It was created by sudo $as_me 1.7.2p2, which was
1.27      millert  1702: generated by GNU Autoconf 2.61.  Invocation command line was
1.9       millert  1703:
                   1704:   $ $0 $@
                   1705:
1.16      millert  1706: _ACEOF
1.27      millert  1707: exec 5>>config.log
1.9       millert  1708: {
                   1709: cat <<_ASUNAME
1.16      millert  1710: ## --------- ##
                   1711: ## Platform. ##
                   1712: ## --------- ##
1.9       millert  1713:
                   1714: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
                   1715: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   1716: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   1717: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   1718: uname -v = `(uname -v) 2>/dev/null || echo unknown`
                   1719:
                   1720: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
                   1721: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
                   1722:
                   1723: /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
                   1724: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
                   1725: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.27      millert  1726: /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1.9       millert  1727: /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
                   1728: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
                   1729: /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
                   1730:
1.16      millert  1731: _ASUNAME
                   1732:
                   1733: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   1734: for as_dir in $PATH
                   1735: do
                   1736:   IFS=$as_save_IFS
                   1737:   test -z "$as_dir" && as_dir=.
                   1738:   echo "PATH: $as_dir"
                   1739: done
1.27      millert  1740: IFS=$as_save_IFS
1.9       millert  1741:
                   1742: } >&5
                   1743:
1.16      millert  1744: cat >&5 <<_ACEOF
                   1745:
                   1746:
                   1747: ## ----------- ##
                   1748: ## Core tests. ##
                   1749: ## ----------- ##
                   1750:
                   1751: _ACEOF
1.9       millert  1752:
                   1753:
                   1754: # Keep a trace of the command line.
                   1755: # Strip out --no-create and --no-recursion so they do not pile up.
1.16      millert  1756: # Strip out --silent because we don't want to record it for future runs.
1.9       millert  1757: # Also quote any args containing shell meta-characters.
1.16      millert  1758: # Make two passes to allow for proper duplicate-argument suppression.
1.9       millert  1759: ac_configure_args=
1.16      millert  1760: ac_configure_args0=
                   1761: ac_configure_args1=
                   1762: ac_must_keep_next=false
                   1763: for ac_pass in 1 2
1.9       millert  1764: do
1.16      millert  1765:   for ac_arg
                   1766:   do
                   1767:     case $ac_arg in
                   1768:     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
                   1769:     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   1770:     | -silent | --silent | --silen | --sile | --sil)
                   1771:       continue ;;
1.27      millert  1772:     *\'*)
1.16      millert  1773:       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
                   1774:     esac
                   1775:     case $ac_pass in
                   1776:     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
                   1777:     2)
                   1778:       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
                   1779:       if test $ac_must_keep_next = true; then
1.25      millert  1780:        ac_must_keep_next=false # Got value, back to normal.
1.16      millert  1781:       else
1.25      millert  1782:        case $ac_arg in
                   1783:          *=* | --config-cache | -C | -disable-* | --disable-* \
                   1784:          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
                   1785:          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
                   1786:          | -with-* | --with-* | -without-* | --without-* | --x)
                   1787:            case "$ac_configure_args0 " in
                   1788:              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
                   1789:            esac
                   1790:            ;;
                   1791:          -* ) ac_must_keep_next=true ;;
                   1792:        esac
1.16      millert  1793:       fi
1.27      millert  1794:       ac_configure_args="$ac_configure_args '$ac_arg'"
1.16      millert  1795:       ;;
                   1796:     esac
                   1797:   done
1.9       millert  1798: done
1.16      millert  1799: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
                   1800: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.9       millert  1801:
                   1802: # When interrupted or exit'd, cleanup temporary files, and complete
                   1803: # config.log.  We remove comments because anyway the quotes in there
                   1804: # would cause problems or look ugly.
1.27      millert  1805: # WARNING: Use '\'' to represent an apostrophe within the trap.
                   1806: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.9       millert  1807: trap 'exit_status=$?
                   1808:   # Save into config.log some information that might help in debugging.
1.16      millert  1809:   {
                   1810:     echo
                   1811:
                   1812:     cat <<\_ASBOX
                   1813: ## ---------------- ##
                   1814: ## Cache variables. ##
                   1815: ## ---------------- ##
                   1816: _ASBOX
                   1817:     echo
                   1818:     # The following way of writing the cache mishandles newlines in values,
1.27      millert  1819: (
                   1820:   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
                   1821:     eval ac_val=\$$ac_var
                   1822:     case $ac_val in #(
                   1823:     *${as_nl}*)
                   1824:       case $ac_var in #(
                   1825:       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
                   1826: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
                   1827:       esac
                   1828:       case $ac_var in #(
                   1829:       _ | IFS | as_nl) ;; #(
                   1830:       *) $as_unset $ac_var ;;
                   1831:       esac ;;
                   1832:     esac
                   1833:   done
1.9       millert  1834:   (set) 2>&1 |
1.27      millert  1835:     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
                   1836:     *${as_nl}ac_space=\ *)
1.9       millert  1837:       sed -n \
1.27      millert  1838:        "s/'\''/'\''\\\\'\'''\''/g;
                   1839:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
                   1840:       ;; #(
1.9       millert  1841:     *)
1.27      millert  1842:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.9       millert  1843:       ;;
1.27      millert  1844:     esac |
                   1845:     sort
                   1846: )
1.16      millert  1847:     echo
                   1848:
                   1849:     cat <<\_ASBOX
                   1850: ## ----------------- ##
                   1851: ## Output variables. ##
                   1852: ## ----------------- ##
                   1853: _ASBOX
                   1854:     echo
                   1855:     for ac_var in $ac_subst_vars
                   1856:     do
1.27      millert  1857:       eval ac_val=\$$ac_var
                   1858:       case $ac_val in
                   1859:       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   1860:       esac
                   1861:       echo "$ac_var='\''$ac_val'\''"
1.16      millert  1862:     done | sort
                   1863:     echo
                   1864:
                   1865:     if test -n "$ac_subst_files"; then
                   1866:       cat <<\_ASBOX
1.27      millert  1867: ## ------------------- ##
                   1868: ## File substitutions. ##
                   1869: ## ------------------- ##
1.16      millert  1870: _ASBOX
                   1871:       echo
                   1872:       for ac_var in $ac_subst_files
                   1873:       do
1.27      millert  1874:        eval ac_val=\$$ac_var
                   1875:        case $ac_val in
                   1876:        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
                   1877:        esac
                   1878:        echo "$ac_var='\''$ac_val'\''"
1.16      millert  1879:       done | sort
                   1880:       echo
                   1881:     fi
                   1882:
                   1883:     if test -s confdefs.h; then
                   1884:       cat <<\_ASBOX
                   1885: ## ----------- ##
                   1886: ## confdefs.h. ##
                   1887: ## ----------- ##
                   1888: _ASBOX
                   1889:       echo
1.27      millert  1890:       cat confdefs.h
1.16      millert  1891:       echo
                   1892:     fi
                   1893:     test "$ac_signal" != 0 &&
                   1894:       echo "$as_me: caught signal $ac_signal"
                   1895:     echo "$as_me: exit $exit_status"
                   1896:   } >&5
1.27      millert  1897:   rm -f core *.core core.conftest.* &&
                   1898:     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.9       millert  1899:     exit $exit_status
1.27      millert  1900: ' 0
1.9       millert  1901: for ac_signal in 1 2 13 15; do
                   1902:   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
                   1903: done
                   1904: ac_signal=0
1.1       millert  1905:
1.9       millert  1906: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.27      millert  1907: rm -f -r conftest* confdefs.h
1.9       millert  1908:
1.16      millert  1909: # Predefined preprocessor variables.
                   1910:
                   1911: cat >>confdefs.h <<_ACEOF
                   1912: #define PACKAGE_NAME "$PACKAGE_NAME"
                   1913: _ACEOF
                   1914:
                   1915:
                   1916: cat >>confdefs.h <<_ACEOF
                   1917: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
                   1918: _ACEOF
                   1919:
                   1920:
                   1921: cat >>confdefs.h <<_ACEOF
                   1922: #define PACKAGE_VERSION "$PACKAGE_VERSION"
                   1923: _ACEOF
                   1924:
                   1925:
                   1926: cat >>confdefs.h <<_ACEOF
                   1927: #define PACKAGE_STRING "$PACKAGE_STRING"
                   1928: _ACEOF
                   1929:
                   1930:
                   1931: cat >>confdefs.h <<_ACEOF
                   1932: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
                   1933: _ACEOF
                   1934:
                   1935:
1.9       millert  1936: # Let the site file select an alternate cache file if it wants to.
1.1       millert  1937: # Prefer explicitly selected file to automatically selected ones.
1.27      millert  1938: if test -n "$CONFIG_SITE"; then
                   1939:   set x "$CONFIG_SITE"
                   1940: elif test "x$prefix" != xNONE; then
                   1941:   set x "$prefix/share/config.site" "$prefix/etc/config.site"
                   1942: else
                   1943:   set x "$ac_default_prefix/share/config.site" \
                   1944:        "$ac_default_prefix/etc/config.site"
1.1       millert  1945: fi
1.27      millert  1946: shift
                   1947: for ac_site_file
                   1948: do
1.1       millert  1949:   if test -r "$ac_site_file"; then
1.16      millert  1950:     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1.9       millert  1951: echo "$as_me: loading site script $ac_site_file" >&6;}
1.16      millert  1952:     sed 's/^/| /' "$ac_site_file" >&5
1.1       millert  1953:     . "$ac_site_file"
                   1954:   fi
                   1955: done
                   1956:
                   1957: if test -r "$cache_file"; then
1.9       millert  1958:   # Some versions of bash will fail to source /dev/null (special
                   1959:   # files actually), so we avoid doing that.
                   1960:   if test -f "$cache_file"; then
1.16      millert  1961:     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1.9       millert  1962: echo "$as_me: loading cache $cache_file" >&6;}
                   1963:     case $cache_file in
1.27      millert  1964:       [\\/]* | ?:[\\/]* ) . "$cache_file";;
                   1965:       *)                      . "./$cache_file";;
1.9       millert  1966:     esac
                   1967:   fi
1.1       millert  1968: else
1.16      millert  1969:   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1.9       millert  1970: echo "$as_me: creating cache $cache_file" >&6;}
                   1971:   >$cache_file
                   1972: fi
                   1973:
                   1974: # Check that the precious variables saved in the cache have kept the same
                   1975: # value.
                   1976: ac_cache_corrupted=false
1.27      millert  1977: for ac_var in $ac_precious_vars; do
1.9       millert  1978:   eval ac_old_set=\$ac_cv_env_${ac_var}_set
                   1979:   eval ac_new_set=\$ac_env_${ac_var}_set
1.27      millert  1980:   eval ac_old_val=\$ac_cv_env_${ac_var}_value
                   1981:   eval ac_new_val=\$ac_env_${ac_var}_value
1.9       millert  1982:   case $ac_old_set,$ac_new_set in
                   1983:     set,)
1.16      millert  1984:       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1.9       millert  1985: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
                   1986:       ac_cache_corrupted=: ;;
                   1987:     ,set)
1.16      millert  1988:       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1.9       millert  1989: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
                   1990:       ac_cache_corrupted=: ;;
                   1991:     ,);;
                   1992:     *)
                   1993:       if test "x$ac_old_val" != "x$ac_new_val"; then
1.25      millert  1994:        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.9       millert  1995: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.25      millert  1996:        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1.9       millert  1997: echo "$as_me:   former value:  $ac_old_val" >&2;}
1.25      millert  1998:        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1.9       millert  1999: echo "$as_me:   current value: $ac_new_val" >&2;}
1.25      millert  2000:        ac_cache_corrupted=:
1.9       millert  2001:       fi;;
                   2002:   esac
1.16      millert  2003:   # Pass precious variables to config.status.
1.9       millert  2004:   if test "$ac_new_set" = set; then
                   2005:     case $ac_new_val in
1.27      millert  2006:     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.16      millert  2007:     *) ac_arg=$ac_var=$ac_new_val ;;
                   2008:     esac
                   2009:     case " $ac_configure_args " in
                   2010:       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
                   2011:       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1.9       millert  2012:     esac
                   2013:   fi
                   2014: done
                   2015: if $ac_cache_corrupted; then
1.16      millert  2016:   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1.9       millert  2017: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.16      millert  2018:   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1.9       millert  2019: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
                   2020:    { (exit 1); exit 1; }; }
1.1       millert  2021: fi
                   2022:
1.9       millert  2023:
                   2024:
1.16      millert  2025:
                   2026:
                   2027:
                   2028:
                   2029:
                   2030:
                   2031:
                   2032:
                   2033:
                   2034:
                   2035:
                   2036:
                   2037:
                   2038:
                   2039:
                   2040:
                   2041:
                   2042:
                   2043:
                   2044:
                   2045:
                   2046:
1.27      millert  2047: ac_ext=c
                   2048: ac_cpp='$CPP $CPPFLAGS'
                   2049: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   2050: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   2051: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.16      millert  2052:
                   2053:
1.27      millert  2054: ac_config_headers="$ac_config_headers config.h pathnames.h"
1.16      millert  2055:
1.40      millert  2056: { echo "$as_me:$LINENO: Configuring Sudo version $PACKAGE_VERSION" >&5
                   2057: echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
                   2058:
1.37      millert  2059:
                   2060:
                   2061:
                   2062:
                   2063:
                   2064:
                   2065:
                   2066:
1.25      millert  2067:
                   2068:
                   2069:
                   2070:
                   2071:
                   2072:
                   2073:
                   2074:
                   2075:
                   2076:
                   2077:
                   2078:
                   2079:
                   2080:
                   2081:
                   2082:
                   2083:
                   2084:
                   2085:
1.23      millert  2086:
                   2087:
                   2088:
                   2089:
                   2090:
1.16      millert  2091:
                   2092:
                   2093:
                   2094:
                   2095:
                   2096:
                   2097:
                   2098:
                   2099:
                   2100:
                   2101:
                   2102:
                   2103:
                   2104:
                   2105:
                   2106:
                   2107:
                   2108:
                   2109:
                   2110:
                   2111:
                   2112:
                   2113:
                   2114:
                   2115:
                   2116:
1.9       millert  2117:
1.32      millert  2118:
1.36      millert  2119:
                   2120:
                   2121:
                   2122:
                   2123:
1.39      millert  2124:
                   2125:
1.41    ! millert  2126:
1.9       millert  2127: timeout=5
                   2128: password_timeout=5
                   2129: sudo_umask=0022
                   2130: passprompt="Password:"
                   2131: long_otp_prompt=off
1.23      millert  2132: lecture=once
1.9       millert  2133: logfac=local2
                   2134: goodpri=notice
                   2135: badpri=alert
                   2136: loglen=80
                   2137: ignore_dot=off
                   2138: mail_no_user=on
                   2139: mail_no_host=off
                   2140: mail_no_perms=off
                   2141: mailto=root
                   2142: mailsub='*** SECURITY information for %h ***'
                   2143: badpass_message='Sorry, try again.'
                   2144: fqdn=off
                   2145: runas_default=root
                   2146: env_editor=off
                   2147: passwd_tries=3
                   2148: tty_tickets=off
                   2149: insults=off
1.23      millert  2150: root_sudo=on
1.25      millert  2151: path_info=on
1.41    ! millert  2152: secure_path="not set"
1.23      millert  2153: INSTALL_NOEXEC=
1.37      millert  2154: devdir='$(srcdir)'
1.1       millert  2155: PROGS="sudo visudo"
1.25      millert  2156: : ${MANTYPE='man'}
                   2157: : ${mansrcdir='.'}
                   2158: : ${SUDOERS_MODE='0440'}
                   2159: : ${SUDOERS_UID='0'}
                   2160: : ${SUDOERS_GID='0'}
1.1       millert  2161: DEV="#"
1.37      millert  2162: LDAP="#"
1.36      millert  2163: SELINUX="#"
                   2164: BAMAN='.\" '
                   2165: LCMAN='.\" '
                   2166: SEMAN='.\" '
1.27      millert  2167: AUTH_OBJS=
                   2168: AUTH_REG=
                   2169: AUTH_EXCL=
                   2170: AUTH_EXCL_DEF=
                   2171: AUTH_DEF=passwd
1.1       millert  2172:
                   2173: CHECKSHADOW=true
1.25      millert  2174: shadow_defs=
                   2175: shadow_funcs=
                   2176: shadow_libs=
                   2177: shadow_libs_optional=
1.1       millert  2178:
1.36      millert  2179: if test X"$prefix" = X"NONE"; then
                   2180:     test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
                   2181: else
                   2182:     test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
                   2183: fi
1.1       millert  2184: test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
                   2185: test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
1.16      millert  2186: test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
                   2187:
                   2188:
1.1       millert  2189:
1.27      millert  2190: # Check whether --with-otp-only was given.
1.1       millert  2191: if test "${with_otp_only+set}" = set; then
1.27      millert  2192:   withval=$with_otp_only; case $with_otp_only in
                   2193:     yes)       with_passwd="no"
1.17      millert  2194:                { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
                   2195: echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
1.1       millert  2196:                ;;
                   2197: esac
1.27      millert  2198: fi
                   2199:
1.1       millert  2200:
1.16      millert  2201:
1.27      millert  2202: # Check whether --with-alertmail was given.
1.1       millert  2203: if test "${with_alertmail+set}" = set; then
1.27      millert  2204:   withval=$with_alertmail; case $with_alertmail in
1.1       millert  2205:     *)         with_mailto="$with_alertmail"
1.17      millert  2206:                { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
                   2207: echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
1.1       millert  2208:                ;;
                   2209: esac
1.27      millert  2210: fi
                   2211:
1.1       millert  2212:
1.16      millert  2213:
                   2214:
1.27      millert  2215: # Check whether --with-CC was given.
1.1       millert  2216: if test "${with_CC+set}" = set; then
1.27      millert  2217:   withval=$with_CC; case $with_CC in
1.16      millert  2218:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
1.9       millert  2219: echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
                   2220:    { (exit 1); exit 1; }; }
                   2221:                ;;
1.16      millert  2222:     no)                { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
1.9       millert  2223: echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
                   2224:    { (exit 1); exit 1; }; }
1.1       millert  2225:                ;;
                   2226:     *)         CC=$with_CC
                   2227:                ;;
                   2228: esac
1.27      millert  2229: fi
                   2230:
1.1       millert  2231:
1.16      millert  2232:
1.27      millert  2233: # Check whether --with-rpath was given.
1.17      millert  2234: if test "${with_rpath+set}" = set; then
1.27      millert  2235:   withval=$with_rpath; case $with_rpath in
1.25      millert  2236:     yes|no)    ;;
1.17      millert  2237:     *)         { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
                   2238: echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
                   2239:    { (exit 1); exit 1; }; }
                   2240:                ;;
                   2241: esac
1.27      millert  2242: fi
                   2243:
1.17      millert  2244:
                   2245:
1.27      millert  2246: # Check whether --with-blibpath was given.
1.17      millert  2247: if test "${with_blibpath+set}" = set; then
1.27      millert  2248:   withval=$with_blibpath; case $with_blibpath in
1.25      millert  2249:     yes|no)    ;;
1.17      millert  2250:     *)         { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
                   2251: echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
                   2252:                ;;
                   2253: esac
1.27      millert  2254: fi
                   2255:
1.17      millert  2256:
                   2257:
1.39      millert  2258: # Check whether --with-bsm-audit was given.
                   2259: if test "${with_bsm_audit+set}" = set; then
                   2260:   withval=$with_bsm_audit; case $with_bsm_audit in
                   2261:     yes)       cat >>confdefs.h <<\_ACEOF
                   2262: #define HAVE_BSM_AUDIT 1
                   2263: _ACEOF
                   2264:
                   2265:                SUDO_LIBS="${SUDO_LIBS} -lbsm"
                   2266:                SUDO_OBJS="${SUDO_OBJS} bsm_audit.o"
                   2267:                ;;
                   2268:     no)                ;;
                   2269:     *)         { { echo "$as_me:$LINENO: error: \"--with-bsm-audit does not take an argument.\"" >&5
                   2270: echo "$as_me: error: \"--with-bsm-audit does not take an argument.\"" >&2;}
                   2271:    { (exit 1); exit 1; }; }
                   2272:                ;;
                   2273: esac
                   2274: fi
                   2275:
                   2276:
                   2277:
1.27      millert  2278: # Check whether --with-incpath was given.
1.1       millert  2279: if test "${with_incpath+set}" = set; then
1.27      millert  2280:   withval=$with_incpath; case $with_incpath in
1.16      millert  2281:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
1.9       millert  2282: echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
                   2283:    { (exit 1); exit 1; }; }
                   2284:                ;;
1.16      millert  2285:     no)                { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
1.9       millert  2286: echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
                   2287:    { (exit 1); exit 1; }; }
1.1       millert  2288:                ;;
1.17      millert  2289:     *)         { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
                   2290: echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
1.1       millert  2291:                for i in ${with_incpath}; do
                   2292:                    CPPFLAGS="${CPPFLAGS} -I${i}"
                   2293:                done
                   2294:                ;;
                   2295: esac
1.27      millert  2296: fi
                   2297:
1.1       millert  2298:
1.16      millert  2299:
1.27      millert  2300: # Check whether --with-libpath was given.
1.1       millert  2301: if test "${with_libpath+set}" = set; then
1.27      millert  2302:   withval=$with_libpath; case $with_libpath in
1.16      millert  2303:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
1.9       millert  2304: echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
                   2305:    { (exit 1); exit 1; }; }
                   2306:                ;;
1.16      millert  2307:     no)                { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
1.9       millert  2308: echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
                   2309:    { (exit 1); exit 1; }; }
1.1       millert  2310:                ;;
1.17      millert  2311:     *)         { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
                   2312: echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
1.1       millert  2313:                ;;
                   2314: esac
1.27      millert  2315: fi
                   2316:
1.1       millert  2317:
1.16      millert  2318:
1.27      millert  2319: # Check whether --with-libraries was given.
1.1       millert  2320: if test "${with_libraries+set}" = set; then
1.27      millert  2321:   withval=$with_libraries; case $with_libraries in
1.16      millert  2322:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
1.9       millert  2323: echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
                   2324:    { (exit 1); exit 1; }; }
                   2325:                ;;
1.16      millert  2326:     no)                { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
1.9       millert  2327: echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
                   2328:    { (exit 1); exit 1; }; }
1.1       millert  2329:                ;;
1.17      millert  2330:     *)         { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
                   2331: echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
1.1       millert  2332:                ;;
                   2333: esac
1.27      millert  2334: fi
                   2335:
1.1       millert  2336:
1.16      millert  2337:
1.27      millert  2338: # Check whether --with-devel was given.
1.1       millert  2339: if test "${with_devel+set}" = set; then
1.27      millert  2340:   withval=$with_devel; case $with_devel in
1.17      millert  2341:     yes)       { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
                   2342: echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
1.1       millert  2343:                PROGS="${PROGS} testsudoers"
                   2344:                OSDEFS="${OSDEFS} -DSUDO_DEVEL"
                   2345:                DEV=""
1.37      millert  2346:                devdir=.
1.1       millert  2347:                ;;
                   2348:     no)                ;;
1.17      millert  2349:     *)         { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
                   2350: echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
1.1       millert  2351:                ;;
                   2352: esac
1.27      millert  2353: fi
                   2354:
1.1       millert  2355:
1.16      millert  2356:
1.27      millert  2357: # Check whether --with-efence was given.
1.11      millert  2358: if test "${with_efence+set}" = set; then
1.27      millert  2359:   withval=$with_efence; case $with_efence in
1.17      millert  2360:     yes)       { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
                   2361: echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
1.11      millert  2362:                LIBS="${LIBS} -lefence"
                   2363:                if test -f /usr/local/lib/libefence.a; then
1.17      millert  2364:                    with_libpath="${with_libpath} /usr/local/lib"
1.11      millert  2365:                fi
                   2366:                ;;
                   2367:     no)                ;;
1.17      millert  2368:     *)         { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
                   2369: echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
1.11      millert  2370:                ;;
                   2371: esac
1.27      millert  2372: fi
                   2373:
1.11      millert  2374:
1.16      millert  2375:
1.27      millert  2376: # Check whether --with-csops was given.
1.1       millert  2377: if test "${with_csops+set}" = set; then
1.27      millert  2378:   withval=$with_csops; case $with_csops in
1.17      millert  2379:     yes)       { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
                   2380: echo "$as_me: Adding CSOps standard options" >&6;}
1.1       millert  2381:                CHECKSIA=false
                   2382:                with_ignore_dot=yes
1.9       millert  2383:                insults=on
1.1       millert  2384:                with_classic_insults=yes
                   2385:                with_csops_insults=yes
                   2386:                with_env_editor=yes
1.25      millert  2387:                : ${mansectsu='8'}
                   2388:                : ${mansectform='5'}
1.1       millert  2389:                ;;
                   2390:     no)                ;;
1.17      millert  2391:     *)         { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
                   2392: echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
1.1       millert  2393:                ;;
                   2394: esac
1.27      millert  2395: fi
                   2396:
1.1       millert  2397:
1.16      millert  2398:
1.27      millert  2399: # Check whether --with-passwd was given.
1.1       millert  2400: if test "${with_passwd+set}" = set; then
1.27      millert  2401:   withval=$with_passwd; case $with_passwd in
                   2402:     yes|no)    { echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
                   2403: echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6; }
                   2404:                { echo "$as_me:$LINENO: result: $with_passwd" >&5
                   2405: echo "${ECHO_T}$with_passwd" >&6; }
                   2406:                AUTH_DEF=""
                   2407:                test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
1.1       millert  2408:                ;;
1.16      millert  2409:     *)         { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
1.9       millert  2410: echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
                   2411:    { (exit 1); exit 1; }; }
1.1       millert  2412:                ;;
                   2413: esac
1.27      millert  2414: fi
1.1       millert  2415:
1.16      millert  2416:
1.27      millert  2417:
                   2418: # Check whether --with-skey was given.
1.1       millert  2419: if test "${with_skey+set}" = set; then
1.27      millert  2420:   withval=$with_skey; case $with_skey in
1.25      millert  2421:     no)                with_skey=""
                   2422:                ;;
1.27      millert  2423:     *)         cat >>confdefs.h <<\_ACEOF
1.1       millert  2424: #define HAVE_SKEY 1
1.16      millert  2425: _ACEOF
1.1       millert  2426:
1.27      millert  2427:                { echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
                   2428: echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6; }
                   2429:                { echo "$as_me:$LINENO: result: yes" >&5
                   2430: echo "${ECHO_T}yes" >&6; }
                   2431:                AUTH_REG="$AUTH_REG S/Key"
                   2432:                ;;
                   2433: esac
1.25      millert  2434: fi
                   2435:
1.1       millert  2436:
1.16      millert  2437:
1.27      millert  2438: # Check whether --with-opie was given.
1.1       millert  2439: if test "${with_opie+set}" = set; then
1.27      millert  2440:   withval=$with_opie; case $with_opie in
1.25      millert  2441:     no)                with_opie=""
                   2442:                ;;
1.27      millert  2443:     *)         cat >>confdefs.h <<\_ACEOF
1.1       millert  2444: #define HAVE_OPIE 1
1.16      millert  2445: _ACEOF
1.1       millert  2446:
1.27      millert  2447:                { echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
                   2448: echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6; }
                   2449:                { echo "$as_me:$LINENO: result: yes" >&5
                   2450: echo "${ECHO_T}yes" >&6; }
                   2451:                AUTH_REG="$AUTH_REG NRL_OPIE"
                   2452:                ;;
                   2453: esac
1.25      millert  2454: fi
                   2455:
1.1       millert  2456:
1.16      millert  2457:
1.27      millert  2458: # Check whether --with-long-otp-prompt was given.
1.1       millert  2459: if test "${with_long_otp_prompt+set}" = set; then
1.27      millert  2460:   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
1.23      millert  2461:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  2462: #define LONG_OTP_PROMPT 1
1.16      millert  2463: _ACEOF
1.1       millert  2464:
1.27      millert  2465:                { echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
                   2466: echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6; }
                   2467:                { echo "$as_me:$LINENO: result: yes" >&5
                   2468: echo "${ECHO_T}yes" >&6; }
1.9       millert  2469:                long_otp_prompt=on
1.1       millert  2470:                ;;
1.9       millert  2471:     no)                long_otp_prompt=off
                   2472:                ;;
1.16      millert  2473:     *)         { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
1.9       millert  2474: echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
                   2475:    { (exit 1); exit 1; }; }
1.1       millert  2476:                ;;
                   2477: esac
1.27      millert  2478: fi
                   2479:
1.1       millert  2480:
1.16      millert  2481:
1.27      millert  2482: # Check whether --with-SecurID was given.
1.1       millert  2483: if test "${with_SecurID+set}" = set; then
1.27      millert  2484:   withval=$with_SecurID; case $with_SecurID in
1.17      millert  2485:     no)                with_SecurID="";;
1.23      millert  2486:     *)         cat >>confdefs.h <<\_ACEOF
1.1       millert  2487: #define HAVE_SECURID 1
1.16      millert  2488: _ACEOF
1.1       millert  2489:
1.27      millert  2490:                { echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
                   2491: echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6; }
                   2492:                { echo "$as_me:$LINENO: result: yes" >&5
                   2493: echo "${ECHO_T}yes" >&6; }
                   2494:                AUTH_EXCL="$AUTH_EXCL SecurID"
1.1       millert  2495:                ;;
                   2496: esac
1.27      millert  2497: fi
                   2498:
1.1       millert  2499:
1.16      millert  2500:
1.27      millert  2501: # Check whether --with-fwtk was given.
1.1       millert  2502: if test "${with_fwtk+set}" = set; then
1.27      millert  2503:   withval=$with_fwtk; case $with_fwtk in
1.17      millert  2504:     no)                with_fwtk="";;
1.23      millert  2505:     *)         cat >>confdefs.h <<\_ACEOF
1.1       millert  2506: #define HAVE_FWTK 1
1.16      millert  2507: _ACEOF
1.1       millert  2508:
1.27      millert  2509:                { echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
                   2510: echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6; }
                   2511:                { echo "$as_me:$LINENO: result: yes" >&5
                   2512: echo "${ECHO_T}yes" >&6; }
                   2513:                AUTH_EXCL="$AUTH_EXCL FWTK"
                   2514:                ;;
                   2515: esac
1.25      millert  2516: fi
                   2517:
1.1       millert  2518:
1.16      millert  2519:
1.27      millert  2520: # Check whether --with-kerb4 was given.
1.1       millert  2521: if test "${with_kerb4+set}" = set; then
1.27      millert  2522:   withval=$with_kerb4; case $with_kerb4 in
1.17      millert  2523:     no)                with_kerb4="";;
1.27      millert  2524:     *)         { echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
                   2525: echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6; }
                   2526:                { echo "$as_me:$LINENO: result: yes" >&5
                   2527: echo "${ECHO_T}yes" >&6; }
                   2528:                AUTH_REG="$AUTH_REG kerb4"
1.1       millert  2529:                ;;
                   2530: esac
1.27      millert  2531: fi
                   2532:
1.1       millert  2533:
1.16      millert  2534:
1.27      millert  2535: # Check whether --with-kerb5 was given.
1.1       millert  2536: if test "${with_kerb5+set}" = set; then
1.27      millert  2537:   withval=$with_kerb5; case $with_kerb5 in
1.17      millert  2538:     no)                with_kerb5="";;
1.27      millert  2539:     *)         { echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
                   2540: echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6; }
                   2541:                { echo "$as_me:$LINENO: result: yes" >&5
                   2542: echo "${ECHO_T}yes" >&6; }
                   2543:                AUTH_REG="$AUTH_REG kerb5"
1.1       millert  2544:                ;;
                   2545: esac
1.27      millert  2546: fi
                   2547:
1.1       millert  2548:
1.16      millert  2549:
1.27      millert  2550: # Check whether --with-aixauth was given.
1.25      millert  2551: if test "${with_aixauth+set}" = set; then
1.27      millert  2552:   withval=$with_aixauth; case $with_aixauth in
                   2553:     yes)       AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
                   2554:     no)                ;;
1.25      millert  2555:     *)         { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
                   2556: echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
1.9       millert  2557:    { (exit 1); exit 1; }; }
1.1       millert  2558:                ;;
                   2559: esac
1.27      millert  2560: fi
                   2561:
1.1       millert  2562:
1.16      millert  2563:
1.27      millert  2564: # Check whether --with-pam was given.
1.1       millert  2565: if test "${with_pam+set}" = set; then
1.27      millert  2566:   withval=$with_pam; case $with_pam in
                   2567:     yes)       AUTH_EXCL="$AUTH_EXCL PAM";;
                   2568:     no)                ;;
1.16      millert  2569:     *)         { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
1.9       millert  2570: echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
                   2571:    { (exit 1); exit 1; }; }
1.1       millert  2572:                ;;
                   2573: esac
1.27      millert  2574: fi
                   2575:
1.1       millert  2576:
1.16      millert  2577:
1.27      millert  2578: # Check whether --with-AFS was given.
1.1       millert  2579: if test "${with_AFS+set}" = set; then
1.27      millert  2580:   withval=$with_AFS; case $with_AFS in
1.23      millert  2581:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  2582: #define HAVE_AFS 1
1.16      millert  2583: _ACEOF
1.1       millert  2584:
1.27      millert  2585:                { echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
                   2586: echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6; }
                   2587:                { echo "$as_me:$LINENO: result: yes" >&5
                   2588: echo "${ECHO_T}yes" >&6; }
                   2589:                AUTH_REG="$AUTH_REG AFS"
1.1       millert  2590:                ;;
                   2591:     no)                ;;
1.16      millert  2592:     *)         { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
1.9       millert  2593: echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
                   2594:    { (exit 1); exit 1; }; }
1.1       millert  2595:                ;;
                   2596: esac
1.27      millert  2597: fi
                   2598:
1.1       millert  2599:
1.16      millert  2600:
1.27      millert  2601: # Check whether --with-DCE was given.
1.1       millert  2602: if test "${with_DCE+set}" = set; then
1.27      millert  2603:   withval=$with_DCE; case $with_DCE in
1.23      millert  2604:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  2605: #define HAVE_DCE 1
1.16      millert  2606: _ACEOF
1.1       millert  2607:
1.27      millert  2608:                { echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
                   2609: echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6; }
                   2610:                { echo "$as_me:$LINENO: result: yes" >&5
                   2611: echo "${ECHO_T}yes" >&6; }
                   2612:                AUTH_REG="$AUTH_REG DCE"
1.1       millert  2613:                ;;
                   2614:     no)                ;;
1.16      millert  2615:     *)         { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
1.9       millert  2616: echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
                   2617:    { (exit 1); exit 1; }; }
1.1       millert  2618:                ;;
                   2619: esac
1.27      millert  2620: fi
                   2621:
1.1       millert  2622:
1.16      millert  2623:
1.27      millert  2624: # Check whether --with-logincap was given.
1.6       millert  2625: if test "${with_logincap+set}" = set; then
1.27      millert  2626:   withval=$with_logincap; case $with_logincap in
1.7       millert  2627:     yes|no)    ;;
1.16      millert  2628:     *)         { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
1.9       millert  2629: echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
                   2630:    { (exit 1); exit 1; }; }
1.7       millert  2631:                ;;
                   2632: esac
1.27      millert  2633: fi
                   2634:
1.6       millert  2635:
1.16      millert  2636:
1.27      millert  2637: # Check whether --with-bsdauth was given.
1.7       millert  2638: if test "${with_bsdauth+set}" = set; then
1.27      millert  2639:   withval=$with_bsdauth; case $with_bsdauth in
                   2640:     yes)       AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
                   2641:     no)                ;;
1.16      millert  2642:     *)         { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
1.9       millert  2643: echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
                   2644:    { (exit 1); exit 1; }; }
1.6       millert  2645:                ;;
                   2646: esac
1.27      millert  2647: fi
                   2648:
1.6       millert  2649:
1.25      millert  2650:
1.27      millert  2651: # Check whether --with-project was given.
1.25      millert  2652: if test "${with_project+set}" = set; then
1.27      millert  2653:   withval=$with_project; case $with_project in
1.25      millert  2654:     yes|no)    ;;
                   2655:     no)        ;;
                   2656:     *)         { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
                   2657: echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
                   2658:    { (exit 1); exit 1; }; }
                   2659:                ;;
                   2660: esac
1.27      millert  2661: fi
                   2662:
1.25      millert  2663:
1.27      millert  2664: { echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
                   2665: echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6; }
1.6       millert  2666:
1.27      millert  2667: # Check whether --with-lecture was given.
1.1       millert  2668: if test "${with_lecture+set}" = set; then
1.27      millert  2669:   withval=$with_lecture; case $with_lecture in
1.23      millert  2670:     yes|short|always)  lecture=once
1.1       millert  2671:                ;;
1.23      millert  2672:     no|none|never)     lecture=never
1.1       millert  2673:                ;;
1.16      millert  2674:     *)         { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
1.9       millert  2675: echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
                   2676:    { (exit 1); exit 1; }; }
1.1       millert  2677:                ;;
                   2678: esac
1.27      millert  2679: fi
                   2680:
1.23      millert  2681: if test "$lecture" = "once"; then
1.27      millert  2682:     { echo "$as_me:$LINENO: result: yes" >&5
                   2683: echo "${ECHO_T}yes" >&6; }
1.1       millert  2684: else
1.23      millert  2685:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2686: #define NO_LECTURE 1
1.16      millert  2687: _ACEOF
1.9       millert  2688:
1.27      millert  2689:     { echo "$as_me:$LINENO: result: no" >&5
                   2690: echo "${ECHO_T}no" >&6; }
1.1       millert  2691: fi
                   2692:
1.27      millert  2693: { echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
                   2694: echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6; }
1.1       millert  2695:
1.27      millert  2696: # Check whether --with-logging was given.
1.1       millert  2697: if test "${with_logging+set}" = set; then
1.27      millert  2698:   withval=$with_logging; case $with_logging in
1.16      millert  2699:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
1.9       millert  2700: echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
                   2701:    { (exit 1); exit 1; }; }
                   2702:                ;;
1.16      millert  2703:     no)                { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
1.9       millert  2704: echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
                   2705:    { (exit 1); exit 1; }; }
1.1       millert  2706:                ;;
1.23      millert  2707:     syslog)    cat >>confdefs.h <<\_ACEOF
1.1       millert  2708: #define LOGGING SLOG_SYSLOG
1.16      millert  2709: _ACEOF
1.1       millert  2710:
1.27      millert  2711:                { echo "$as_me:$LINENO: result: syslog" >&5
                   2712: echo "${ECHO_T}syslog" >&6; }
1.1       millert  2713:                ;;
1.16      millert  2714:     file)      cat >>confdefs.h <<\_ACEOF
1.1       millert  2715: #define LOGGING SLOG_FILE
1.16      millert  2716: _ACEOF
1.1       millert  2717:
1.27      millert  2718:                { echo "$as_me:$LINENO: result: file" >&5
                   2719: echo "${ECHO_T}file" >&6; }
1.1       millert  2720:                ;;
1.16      millert  2721:     both)      cat >>confdefs.h <<\_ACEOF
1.1       millert  2722: #define LOGGING SLOG_BOTH
1.16      millert  2723: _ACEOF
1.1       millert  2724:
1.27      millert  2725:                { echo "$as_me:$LINENO: result: both" >&5
                   2726: echo "${ECHO_T}both" >&6; }
1.1       millert  2727:                ;;
1.16      millert  2728:     *)         { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
1.9       millert  2729: echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
                   2730:    { (exit 1); exit 1; }; }
1.1       millert  2731:                ;;
                   2732: esac
                   2733: else
1.16      millert  2734:   cat >>confdefs.h <<\_ACEOF
1.1       millert  2735: #define LOGGING SLOG_SYSLOG
1.16      millert  2736: _ACEOF
1.27      millert  2737:  { echo "$as_me:$LINENO: result: syslog" >&5
                   2738: echo "${ECHO_T}syslog" >&6; }
                   2739: fi
                   2740:
1.1       millert  2741:
1.27      millert  2742: { echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
                   2743: echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6; }
1.1       millert  2744:
1.27      millert  2745: # Check whether --with-logfac was given.
1.1       millert  2746: if test "${with_logfac+set}" = set; then
1.27      millert  2747:   withval=$with_logfac; case $with_logfac in
1.16      millert  2748:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
1.9       millert  2749: echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
                   2750:    { (exit 1); exit 1; }; }
                   2751:                ;;
1.16      millert  2752:     no)                { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
1.9       millert  2753: echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
                   2754:    { (exit 1); exit 1; }; }
1.1       millert  2755:                ;;
1.9       millert  2756:     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)         logfac=$with_logfac
1.1       millert  2757:                ;;
1.16      millert  2758:     *)         { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
1.9       millert  2759: echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
                   2760:    { (exit 1); exit 1; }; }
1.1       millert  2761:                ;;
                   2762: esac
1.27      millert  2763: fi
                   2764:
1.9       millert  2765:
1.16      millert  2766: cat >>confdefs.h <<_ACEOF
1.9       millert  2767: #define LOGFAC "$logfac"
1.16      millert  2768: _ACEOF
1.1       millert  2769:
1.27      millert  2770: { echo "$as_me:$LINENO: result: $logfac" >&5
                   2771: echo "${ECHO_T}$logfac" >&6; }
1.9       millert  2772:
1.27      millert  2773: { echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
                   2774: echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6; }
1.1       millert  2775:
1.27      millert  2776: # Check whether --with-goodpri was given.
1.1       millert  2777: if test "${with_goodpri+set}" = set; then
1.27      millert  2778:   withval=$with_goodpri; case $with_goodpri in
1.16      millert  2779:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
1.9       millert  2780: echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
                   2781:    { (exit 1); exit 1; }; }
1.1       millert  2782:                ;;
1.16      millert  2783:     no)                { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
1.9       millert  2784: echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
                   2785:    { (exit 1); exit 1; }; }
1.1       millert  2786:                ;;
1.9       millert  2787:     alert|crit|debug|emerg|err|info|notice|warning)
                   2788:                goodpri=$with_goodpri
1.1       millert  2789:                ;;
1.16      millert  2790:     *)         { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
1.9       millert  2791: echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
                   2792:    { (exit 1); exit 1; }; }
1.1       millert  2793:                ;;
                   2794: esac
1.27      millert  2795: fi
                   2796:
1.9       millert  2797:
1.16      millert  2798: cat >>confdefs.h <<_ACEOF
1.9       millert  2799: #define PRI_SUCCESS "$goodpri"
1.16      millert  2800: _ACEOF
1.1       millert  2801:
1.27      millert  2802: { echo "$as_me:$LINENO: result: $goodpri" >&5
                   2803: echo "${ECHO_T}$goodpri" >&6; }
1.9       millert  2804:
1.27      millert  2805: { echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
                   2806: echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6; }
1.1       millert  2807:
1.27      millert  2808: # Check whether --with-badpri was given.
1.1       millert  2809: if test "${with_badpri+set}" = set; then
1.27      millert  2810:   withval=$with_badpri; case $with_badpri in
1.16      millert  2811:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
1.9       millert  2812: echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
                   2813:    { (exit 1); exit 1; }; }
1.1       millert  2814:                ;;
1.16      millert  2815:     no)                { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
1.9       millert  2816: echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
                   2817:    { (exit 1); exit 1; }; }
1.1       millert  2818:                ;;
1.9       millert  2819:     alert|crit|debug|emerg|err|info|notice|warning)
                   2820:                badpri=$with_badpri
1.1       millert  2821:                ;;
1.16      millert  2822:     *)         { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
1.9       millert  2823: echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
                   2824:    { (exit 1); exit 1; }; }
1.1       millert  2825:                ;;
                   2826: esac
1.27      millert  2827: fi
                   2828:
1.9       millert  2829:
1.16      millert  2830: cat >>confdefs.h <<_ACEOF
1.9       millert  2831: #define PRI_FAILURE "$badpri"
1.16      millert  2832: _ACEOF
                   2833:
1.27      millert  2834: { echo "$as_me:$LINENO: result: $badpri" >&5
                   2835: echo "${ECHO_T}$badpri" >&6; }
1.1       millert  2836:
                   2837:
1.27      millert  2838: # Check whether --with-logpath was given.
1.1       millert  2839: if test "${with_logpath+set}" = set; then
1.27      millert  2840:   withval=$with_logpath; case $with_logpath in
1.16      millert  2841:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
1.9       millert  2842: echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
                   2843:    { (exit 1); exit 1; }; }
1.1       millert  2844:                ;;
1.16      millert  2845:     no)                { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
1.9       millert  2846: echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
                   2847:    { (exit 1); exit 1; }; }
1.1       millert  2848:                ;;
                   2849: esac
1.27      millert  2850: fi
                   2851:
1.1       millert  2852:
1.27      millert  2853: { echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
                   2854: echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6; }
1.1       millert  2855:
1.27      millert  2856: # Check whether --with-loglen was given.
1.1       millert  2857: if test "${with_loglen+set}" = set; then
1.27      millert  2858:   withval=$with_loglen; case $with_loglen in
1.16      millert  2859:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
1.9       millert  2860: echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
                   2861:    { (exit 1); exit 1; }; }
1.1       millert  2862:                ;;
1.16      millert  2863:     no)                { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
1.9       millert  2864: echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
                   2865:    { (exit 1); exit 1; }; }
1.1       millert  2866:                ;;
1.9       millert  2867:     [0-9]*)    loglen=$with_loglen
1.1       millert  2868:                ;;
1.16      millert  2869:     *)         { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
1.9       millert  2870: echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
                   2871:    { (exit 1); exit 1; }; }
1.1       millert  2872:                ;;
                   2873: esac
1.27      millert  2874: fi
                   2875:
1.9       millert  2876:
1.16      millert  2877: cat >>confdefs.h <<_ACEOF
1.9       millert  2878: #define MAXLOGFILELEN $loglen
1.16      millert  2879: _ACEOF
1.1       millert  2880:
1.27      millert  2881: { echo "$as_me:$LINENO: result: $loglen" >&5
                   2882: echo "${ECHO_T}$loglen" >&6; }
1.9       millert  2883:
1.27      millert  2884: { echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
                   2885: echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6; }
1.1       millert  2886:
1.27      millert  2887: # Check whether --with-ignore-dot was given.
1.1       millert  2888: if test "${with_ignore_dot+set}" = set; then
1.27      millert  2889:   withval=$with_ignore_dot; case $with_ignore_dot in
1.9       millert  2890:     yes)       ignore_dot=on
1.1       millert  2891:                ;;
1.9       millert  2892:     no)                ignore_dot=off
1.1       millert  2893:                ;;
1.16      millert  2894:     *)         { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
1.9       millert  2895: echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
                   2896:    { (exit 1); exit 1; }; }
1.1       millert  2897:                ;;
                   2898: esac
1.27      millert  2899: fi
                   2900:
1.9       millert  2901: if test "$ignore_dot" = "on"; then
1.23      millert  2902:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2903: #define IGNORE_DOT_PATH 1
1.16      millert  2904: _ACEOF
1.9       millert  2905:
1.27      millert  2906:     { echo "$as_me:$LINENO: result: yes" >&5
                   2907: echo "${ECHO_T}yes" >&6; }
1.1       millert  2908: else
1.27      millert  2909:     { echo "$as_me:$LINENO: result: no" >&5
                   2910: echo "${ECHO_T}no" >&6; }
1.1       millert  2911: fi
                   2912:
1.27      millert  2913: { echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
                   2914: echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6; }
1.1       millert  2915:
1.27      millert  2916: # Check whether --with-mail-if-no-user was given.
1.9       millert  2917: if test "${with_mail_if_no_user+set}" = set; then
1.27      millert  2918:   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
1.9       millert  2919:     yes)       mail_no_user=on
                   2920:                ;;
                   2921:     no)                mail_no_user=off
1.1       millert  2922:                ;;
1.16      millert  2923:     *)         { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
1.9       millert  2924: echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
                   2925:    { (exit 1); exit 1; }; }
1.1       millert  2926:                ;;
1.9       millert  2927: esac
1.27      millert  2928: fi
                   2929:
1.9       millert  2930: if test "$mail_no_user" = "on"; then
1.23      millert  2931:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2932: #define SEND_MAIL_WHEN_NO_USER 1
1.16      millert  2933: _ACEOF
1.1       millert  2934:
1.27      millert  2935:     { echo "$as_me:$LINENO: result: yes" >&5
                   2936: echo "${ECHO_T}yes" >&6; }
1.1       millert  2937: else
1.27      millert  2938:     { echo "$as_me:$LINENO: result: no" >&5
                   2939: echo "${ECHO_T}no" >&6; }
1.1       millert  2940: fi
                   2941:
1.27      millert  2942: { echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
                   2943: echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6; }
1.1       millert  2944:
1.27      millert  2945: # Check whether --with-mail-if-no-host was given.
1.9       millert  2946: if test "${with_mail_if_no_host+set}" = set; then
1.27      millert  2947:   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
1.9       millert  2948:     yes)       mail_no_host=on
1.1       millert  2949:                ;;
1.9       millert  2950:     no)                mail_no_host=off
1.1       millert  2951:                ;;
1.16      millert  2952:     *)         { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
1.9       millert  2953: echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
                   2954:    { (exit 1); exit 1; }; }
1.1       millert  2955:                ;;
                   2956: esac
1.27      millert  2957: fi
                   2958:
1.9       millert  2959: if test "$mail_no_host" = "on"; then
1.23      millert  2960:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2961: #define SEND_MAIL_WHEN_NO_HOST 1
1.16      millert  2962: _ACEOF
1.1       millert  2963:
1.27      millert  2964:     { echo "$as_me:$LINENO: result: yes" >&5
                   2965: echo "${ECHO_T}yes" >&6; }
1.9       millert  2966: else
1.27      millert  2967:     { echo "$as_me:$LINENO: result: no" >&5
                   2968: echo "${ECHO_T}no" >&6; }
1.1       millert  2969: fi
                   2970:
1.27      millert  2971: { echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
                   2972: echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6; }
1.1       millert  2973:
1.27      millert  2974: # Check whether --with-mail-if-noperms was given.
1.9       millert  2975: if test "${with_mail_if_noperms+set}" = set; then
1.27      millert  2976:   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
1.9       millert  2977:     yes)       mail_noperms=on
1.1       millert  2978:                ;;
1.9       millert  2979:     no)                mail_noperms=off
1.1       millert  2980:                ;;
1.16      millert  2981:     *)         { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
1.9       millert  2982: echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
                   2983:    { (exit 1); exit 1; }; }
1.1       millert  2984:                ;;
                   2985: esac
1.27      millert  2986: fi
                   2987:
1.9       millert  2988: if test "$mail_noperms" = "on"; then
1.23      millert  2989:     cat >>confdefs.h <<\_ACEOF
1.9       millert  2990: #define SEND_MAIL_WHEN_NOT_OK 1
1.16      millert  2991: _ACEOF
1.9       millert  2992:
1.27      millert  2993:     { echo "$as_me:$LINENO: result: yes" >&5
                   2994: echo "${ECHO_T}yes" >&6; }
1.1       millert  2995: else
1.27      millert  2996:     { echo "$as_me:$LINENO: result: no" >&5
                   2997: echo "${ECHO_T}no" >&6; }
1.1       millert  2998: fi
                   2999:
1.27      millert  3000: { echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
                   3001: echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6; }
1.1       millert  3002:
1.27      millert  3003: # Check whether --with-mailto was given.
1.9       millert  3004: if test "${with_mailto+set}" = set; then
1.27      millert  3005:   withval=$with_mailto; case $with_mailto in
1.16      millert  3006:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
1.9       millert  3007: echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
                   3008:    { (exit 1); exit 1; }; }
1.1       millert  3009:                ;;
1.16      millert  3010:     no)                { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
1.9       millert  3011: echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
                   3012:    { (exit 1); exit 1; }; }
1.1       millert  3013:                ;;
1.9       millert  3014:     *)         mailto=$with_mailto
1.1       millert  3015:                ;;
                   3016: esac
1.27      millert  3017: fi
                   3018:
1.1       millert  3019:
1.16      millert  3020: cat >>confdefs.h <<_ACEOF
1.9       millert  3021: #define MAILTO "$mailto"
1.16      millert  3022: _ACEOF
1.1       millert  3023:
1.27      millert  3024: { echo "$as_me:$LINENO: result: $mailto" >&5
                   3025: echo "${ECHO_T}$mailto" >&6; }
1.1       millert  3026:
1.16      millert  3027:
1.27      millert  3028: # Check whether --with-mailsubject was given.
1.9       millert  3029: if test "${with_mailsubject+set}" = set; then
1.27      millert  3030:   withval=$with_mailsubject; case $with_mailsubject in
1.16      millert  3031:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
1.9       millert  3032: echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
                   3033:    { (exit 1); exit 1; }; }
1.1       millert  3034:                ;;
1.17      millert  3035:     no)                { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
                   3036: echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
1.1       millert  3037:                ;;
1.9       millert  3038:     *)         mailsub="$with_mailsubject"
1.27      millert  3039:                { echo "$as_me:$LINENO: checking sudo mail subject" >&5
                   3040: echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6; }
                   3041:                { echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
                   3042: echo "${ECHO_T}Using alert mail subject: $mailsub" >&6; }
1.1       millert  3043:                ;;
                   3044: esac
1.27      millert  3045: fi
                   3046:
1.9       millert  3047:
1.16      millert  3048: cat >>confdefs.h <<_ACEOF
1.9       millert  3049: #define MAILSUBJECT "$mailsub"
1.16      millert  3050: _ACEOF
                   3051:
1.1       millert  3052:
1.27      millert  3053: { echo "$as_me:$LINENO: checking for bad password prompt" >&5
                   3054: echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6; }
1.1       millert  3055:
1.27      millert  3056: # Check whether --with-passprompt was given.
1.1       millert  3057: if test "${with_passprompt+set}" = set; then
1.27      millert  3058:   withval=$with_passprompt; case $with_passprompt in
1.16      millert  3059:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
1.9       millert  3060: echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
                   3061:    { (exit 1); exit 1; }; }
1.1       millert  3062:                ;;
1.17      millert  3063:     no)                { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
                   3064: echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
1.1       millert  3065:                ;;
1.9       millert  3066:     *)         passprompt="$with_passprompt"
                   3067: esac
1.27      millert  3068: fi
                   3069:
                   3070: { echo "$as_me:$LINENO: result: $passprompt" >&5
                   3071: echo "${ECHO_T}$passprompt" >&6; }
1.1       millert  3072:
1.16      millert  3073: cat >>confdefs.h <<_ACEOF
1.9       millert  3074: #define PASSPROMPT "$passprompt"
1.16      millert  3075: _ACEOF
                   3076:
1.1       millert  3077:
1.27      millert  3078: { echo "$as_me:$LINENO: checking for bad password message" >&5
                   3079: echo $ECHO_N "checking for bad password message... $ECHO_C" >&6; }
1.1       millert  3080:
1.27      millert  3081: # Check whether --with-badpass-message was given.
1.1       millert  3082: if test "${with_badpass_message+set}" = set; then
1.27      millert  3083:   withval=$with_badpass_message; case $with_badpass_message in
1.16      millert  3084:     yes)       { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
1.9       millert  3085: echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
                   3086:    { (exit 1); exit 1; }; }
1.1       millert  3087:                ;;
1.17      millert  3088:     no)                { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
                   3089: echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
1.1       millert  3090:                ;;
1.9       millert  3091:     *)         badpass_message="$with_badpass_message"
1.1       millert  3092:                ;;
                   3093: esac
1.27      millert  3094: fi
                   3095:
1.9       millert  3096:
1.16      millert  3097: cat >>confdefs.h <<_ACEOF
1.9       millert  3098: #define INCORRECT_PASSWORD "$badpass_message"
1.16      millert  3099: _ACEOF
1.1       millert  3100:
1.27      millert  3101: { echo "$as_me:$LINENO: result: $badpass_message" >&5
                   3102: echo "${ECHO_T}$badpass_message" >&6; }
1.9       millert  3103:
1.27      millert  3104: { echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
                   3105: echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6; }
1.1       millert  3106:
1.27      millert  3107: # Check whether --with-fqdn was given.
1.1       millert  3108: if test "${with_fqdn+set}" = set; then
1.27      millert  3109:   withval=$with_fqdn; case $with_fqdn in
1.9       millert  3110:     yes)       fqdn=on
1.1       millert  3111:                ;;
1.9       millert  3112:     no)                fqdn=off
1.1       millert  3113:                ;;
1.16      millert  3114:     *)         { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
1.9       millert  3115: echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
                   3116:    { (exit 1); exit 1; }; }
1.1       millert  3117:                ;;
                   3118: esac
1.27      millert  3119: fi
                   3120:
1.9       millert  3121: if test "$fqdn" = "on"; then
1.23      millert  3122:     cat >>confdefs.h <<\_ACEOF
1.9       millert  3123: #define FQDN 1
1.16      millert  3124: _ACEOF
1.9       millert  3125:
1.27      millert  3126:     { echo "$as_me:$LINENO: result: yes" >&5
                   3127: echo "${ECHO_T}yes" >&6; }
1.1       millert  3128: else
1.27      millert  3129:     { echo "$as_me:$LINENO: result: no" >&5
                   3130: echo "${ECHO_T}no" >&6; }
1.1       millert  3131: fi
                   3132:
1.16      millert  3133:
1.27      millert  3134: # Check whether --with-timedir was given.
1.1       millert  3135: if test "${with_timedir+set}" = set; then
1.27      millert  3136:   withval=$with_timedir; case $with_timedir in
1.16      millert  3137:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
1.9       millert  3138: echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
                   3139:    { (exit 1); exit 1; }; }
1.1       millert  3140:                ;;
1.16      millert  3141:     no)                { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
1.9       millert  3142: echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
                   3143:    { (exit 1); exit 1; }; }
1.1       millert  3144:                ;;
                   3145: esac
1.27      millert  3146: fi
                   3147:
1.1       millert  3148:
1.16      millert  3149:
1.27      millert  3150: # Check whether --with-sendmail was given.
1.1       millert  3151: if test "${with_sendmail+set}" = set; then
1.27      millert  3152:   withval=$with_sendmail; case $with_sendmail in
1.1       millert  3153:     yes)       with_sendmail=""
                   3154:                ;;
                   3155:     no)                ;;
1.9       millert  3156:     *)         cat >>confdefs.h <<EOF
                   3157: #define _PATH_SUDO_SENDMAIL "$with_sendmail"
1.1       millert  3158: EOF
                   3159:
                   3160:                ;;
                   3161: esac
1.27      millert  3162: fi
                   3163:
1.1       millert  3164:
1.16      millert  3165:
1.27      millert  3166: # Check whether --with-sudoers-mode was given.
1.1       millert  3167: if test "${with_sudoers_mode+set}" = set; then
1.27      millert  3168:   withval=$with_sudoers_mode; case $with_sudoers_mode in
1.16      millert  3169:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
1.9       millert  3170: echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
                   3171:    { (exit 1); exit 1; }; }
                   3172:                ;;
1.16      millert  3173:     no)                { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
1.9       millert  3174: echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
                   3175:    { (exit 1); exit 1; }; }
1.1       millert  3176:                ;;
                   3177:     [1-9]*)    SUDOERS_MODE=0${with_sudoers_mode}
                   3178:                ;;
                   3179:     0*)                SUDOERS_MODE=$with_sudoers_mode
                   3180:                ;;
1.16      millert  3181:     *)         { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
                   3182: echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
1.9       millert  3183:    { (exit 1); exit 1; }; }
1.1       millert  3184:                ;;
                   3185: esac
1.27      millert  3186: fi
                   3187:
1.1       millert  3188:
1.16      millert  3189:
1.27      millert  3190: # Check whether --with-sudoers-uid was given.
1.1       millert  3191: if test "${with_sudoers_uid+set}" = set; then
1.27      millert  3192:   withval=$with_sudoers_uid; case $with_sudoers_uid in
1.16      millert  3193:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
1.9       millert  3194: echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
                   3195:    { (exit 1); exit 1; }; }
                   3196:                ;;
1.16      millert  3197:     no)                { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
1.9       millert  3198: echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
                   3199:    { (exit 1); exit 1; }; }
1.1       millert  3200:                ;;
                   3201:     [0-9]*)    SUDOERS_UID=$with_sudoers_uid
                   3202:                ;;
1.16      millert  3203:     *)         { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
                   3204: echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
1.9       millert  3205:    { (exit 1); exit 1; }; }
1.1       millert  3206:                ;;
                   3207: esac
1.27      millert  3208: fi
                   3209:
1.1       millert  3210:
1.16      millert  3211:
1.27      millert  3212: # Check whether --with-sudoers-gid was given.
1.1       millert  3213: if test "${with_sudoers_gid+set}" = set; then
1.27      millert  3214:   withval=$with_sudoers_gid; case $with_sudoers_gid in
1.16      millert  3215:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
1.9       millert  3216: echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
                   3217:    { (exit 1); exit 1; }; }
                   3218:                ;;
1.16      millert  3219:     no)                { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
1.9       millert  3220: echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
                   3221:    { (exit 1); exit 1; }; }
1.1       millert  3222:                ;;
                   3223:     [0-9]*)    SUDOERS_GID=$with_sudoers_gid
                   3224:                ;;
1.16      millert  3225:     *)         { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
                   3226: echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
1.9       millert  3227:    { (exit 1); exit 1; }; }
1.1       millert  3228:                ;;
                   3229: esac
1.27      millert  3230: fi
                   3231:
1.1       millert  3232:
1.27      millert  3233: { echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
                   3234: echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6; }
1.1       millert  3235:
1.27      millert  3236: # Check whether --with-umask was given.
1.1       millert  3237: if test "${with_umask+set}" = set; then
1.27      millert  3238:   withval=$with_umask; case $with_umask in
1.16      millert  3239:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
1.9       millert  3240: echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
                   3241:    { (exit 1); exit 1; }; }
1.1       millert  3242:                ;;
1.9       millert  3243:     no)                sudo_umask=0777
1.1       millert  3244:                ;;
1.9       millert  3245:     [0-9]*)    sudo_umask=$with_umask
1.1       millert  3246:                ;;
1.16      millert  3247:     *)         { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
1.9       millert  3248: echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
                   3249:    { (exit 1); exit 1; }; }
1.1       millert  3250:                ;;
                   3251: esac
1.27      millert  3252: fi
                   3253:
1.9       millert  3254:
1.16      millert  3255: cat >>confdefs.h <<_ACEOF
1.9       millert  3256: #define SUDO_UMASK $sudo_umask
1.16      millert  3257: _ACEOF
1.9       millert  3258:
                   3259: if test "$sudo_umask" = "0777"; then
1.27      millert  3260:     { echo "$as_me:$LINENO: result: user" >&5
                   3261: echo "${ECHO_T}user" >&6; }
1.1       millert  3262: else
1.27      millert  3263:     { echo "$as_me:$LINENO: result: $sudo_umask" >&5
                   3264: echo "${ECHO_T}$sudo_umask" >&6; }
1.1       millert  3265: fi
                   3266:
1.27      millert  3267: { echo "$as_me:$LINENO: checking for default user to run commands as" >&5
                   3268: echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6; }
1.1       millert  3269:
1.27      millert  3270: # Check whether --with-runas-default was given.
1.1       millert  3271: if test "${with_runas_default+set}" = set; then
1.27      millert  3272:   withval=$with_runas_default; case $with_runas_default in
1.16      millert  3273:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
1.9       millert  3274: echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
                   3275:    { (exit 1); exit 1; }; }
1.1       millert  3276:                ;;
1.16      millert  3277:     no)                { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
1.9       millert  3278: echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
                   3279:    { (exit 1); exit 1; }; }
1.1       millert  3280:                ;;
1.9       millert  3281:     *)         runas_default="$with_runas_default"
1.1       millert  3282:                ;;
                   3283: esac
1.27      millert  3284: fi
                   3285:
1.9       millert  3286:
1.16      millert  3287: cat >>confdefs.h <<_ACEOF
1.9       millert  3288: #define RUNAS_DEFAULT "$runas_default"
1.16      millert  3289: _ACEOF
1.1       millert  3290:
1.27      millert  3291: { echo "$as_me:$LINENO: result: $runas_default" >&5
                   3292: echo "${ECHO_T}$runas_default" >&6; }
1.1       millert  3293:
1.16      millert  3294:
1.27      millert  3295: # Check whether --with-exempt was given.
1.1       millert  3296: if test "${with_exempt+set}" = set; then
1.27      millert  3297:   withval=$with_exempt; case $with_exempt in
1.16      millert  3298:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
1.9       millert  3299: echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
                   3300:    { (exit 1); exit 1; }; }
                   3301:                ;;
1.16      millert  3302:     no)                { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
1.9       millert  3303: echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
                   3304:    { (exit 1); exit 1; }; }
1.1       millert  3305:                ;;
1.9       millert  3306:     *)
1.16      millert  3307: cat >>confdefs.h <<_ACEOF
1.1       millert  3308: #define EXEMPTGROUP "$with_exempt"
1.16      millert  3309: _ACEOF
1.1       millert  3310:
1.27      millert  3311:                { echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
                   3312: echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6; }
                   3313:                { echo "$as_me:$LINENO: result: $with_exempt" >&5
                   3314: echo "${ECHO_T}$with_exempt" >&6; }
1.1       millert  3315:                ;;
                   3316: esac
1.27      millert  3317: fi
                   3318:
1.1       millert  3319:
1.27      millert  3320: { echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
                   3321: echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6; }
1.1       millert  3322:
1.27      millert  3323: # Check whether --with-editor was given.
1.1       millert  3324: if test "${with_editor+set}" = set; then
1.27      millert  3325:   withval=$with_editor; case $with_editor in
1.16      millert  3326:     yes)       { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
1.9       millert  3327: echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
                   3328:    { (exit 1); exit 1; }; }
                   3329:                ;;
1.16      millert  3330:     no)                { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9       millert  3331: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
                   3332:    { (exit 1); exit 1; }; }
1.1       millert  3333:                ;;
1.9       millert  3334:     *)
1.16      millert  3335: cat >>confdefs.h <<_ACEOF
1.1       millert  3336: #define EDITOR "$with_editor"
1.16      millert  3337: _ACEOF
1.1       millert  3338:
1.27      millert  3339:                { echo "$as_me:$LINENO: result: $with_editor" >&5
                   3340: echo "${ECHO_T}$with_editor" >&6; }
1.1       millert  3341:                ;;
                   3342: esac
                   3343: else
1.16      millert  3344:   cat >>confdefs.h <<\_ACEOF
1.1       millert  3345: #define EDITOR _PATH_VI
1.16      millert  3346: _ACEOF
1.27      millert  3347:  { echo "$as_me:$LINENO: result: vi" >&5
                   3348: echo "${ECHO_T}vi" >&6; }
                   3349: fi
                   3350:
1.1       millert  3351:
1.27      millert  3352: { echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
                   3353: echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6; }
1.1       millert  3354:
1.27      millert  3355: # Check whether --with-env-editor was given.
1.1       millert  3356: if test "${with_env_editor+set}" = set; then
1.27      millert  3357:   withval=$with_env_editor; case $with_env_editor in
1.9       millert  3358:     yes)       env_editor=on
1.1       millert  3359:                ;;
1.9       millert  3360:     no)                env_editor=off
1.1       millert  3361:                ;;
1.16      millert  3362:     *)         { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
1.9       millert  3363: echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
                   3364:    { (exit 1); exit 1; }; }
1.1       millert  3365:                ;;
                   3366: esac
1.27      millert  3367: fi
                   3368:
1.9       millert  3369: if test "$env_editor" = "on"; then
1.23      millert  3370:     cat >>confdefs.h <<\_ACEOF
1.9       millert  3371: #define ENV_EDITOR 1
1.16      millert  3372: _ACEOF
1.9       millert  3373:
1.27      millert  3374:     { echo "$as_me:$LINENO: result: yes" >&5
                   3375: echo "${ECHO_T}yes" >&6; }
1.1       millert  3376: else
1.27      millert  3377:     { echo "$as_me:$LINENO: result: no" >&5
                   3378: echo "${ECHO_T}no" >&6; }
1.1       millert  3379: fi
                   3380:
1.27      millert  3381: { echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
                   3382: echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6; }
1.1       millert  3383:
1.27      millert  3384: # Check whether --with-passwd-tries was given.
1.1       millert  3385: if test "${with_passwd_tries+set}" = set; then
1.27      millert  3386:   withval=$with_passwd_tries; case $with_passwd_tries in
1.9       millert  3387:     yes)       ;;
1.16      millert  3388:     no)                { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9       millert  3389: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
                   3390:    { (exit 1); exit 1; }; }
1.1       millert  3391:                ;;
1.9       millert  3392:     [1-9]*)    passwd_tries=$with_passwd_tries
1.1       millert  3393:                ;;
1.16      millert  3394:     *)         { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
1.9       millert  3395: echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
                   3396:    { (exit 1); exit 1; }; }
1.1       millert  3397:                ;;
                   3398: esac
1.27      millert  3399: fi
                   3400:
1.9       millert  3401:
1.16      millert  3402: cat >>confdefs.h <<_ACEOF
1.9       millert  3403: #define TRIES_FOR_PASSWORD $passwd_tries
1.16      millert  3404: _ACEOF
1.1       millert  3405:
1.27      millert  3406: { echo "$as_me:$LINENO: result: $passwd_tries" >&5
                   3407: echo "${ECHO_T}$passwd_tries" >&6; }
1.9       millert  3408:
1.27      millert  3409: { echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
                   3410: echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6; }
1.1       millert  3411:
1.27      millert  3412: # Check whether --with-timeout was given.
1.1       millert  3413: if test "${with_timeout+set}" = set; then
1.27      millert  3414:   withval=$with_timeout; case $with_timeout in
1.9       millert  3415:     yes)       ;;
                   3416:     no)                timeout=0
1.1       millert  3417:                ;;
1.9       millert  3418:     [0-9]*)    timeout=$with_timeout
1.1       millert  3419:                ;;
1.16      millert  3420:     *)         { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9       millert  3421: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
                   3422:    { (exit 1); exit 1; }; }
1.1       millert  3423:                ;;
                   3424: esac
1.27      millert  3425: fi
                   3426:
1.9       millert  3427:
1.16      millert  3428: cat >>confdefs.h <<_ACEOF
1.9       millert  3429: #define TIMEOUT $timeout
1.16      millert  3430: _ACEOF
1.1       millert  3431:
1.27      millert  3432: { echo "$as_me:$LINENO: result: $timeout" >&5
                   3433: echo "${ECHO_T}$timeout" >&6; }
1.9       millert  3434:
1.27      millert  3435: { echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
                   3436: echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6; }
1.1       millert  3437:
1.27      millert  3438: # Check whether --with-password-timeout was given.
1.1       millert  3439: if test "${with_password_timeout+set}" = set; then
1.27      millert  3440:   withval=$with_password_timeout; case $with_password_timeout in
1.9       millert  3441:     yes)       ;;
                   3442:     no)                password_timeout=0
1.1       millert  3443:                ;;
1.9       millert  3444:     [0-9]*)    password_timeout=$with_password_timeout
1.1       millert  3445:                ;;
1.16      millert  3446:     *)         { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9       millert  3447: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
                   3448:    { (exit 1); exit 1; }; }
1.1       millert  3449:                ;;
                   3450: esac
1.27      millert  3451: fi
                   3452:
1.9       millert  3453:
1.16      millert  3454: cat >>confdefs.h <<_ACEOF
1.9       millert  3455: #define PASSWORD_TIMEOUT $password_timeout
1.16      millert  3456: _ACEOF
1.1       millert  3457:
1.27      millert  3458: { echo "$as_me:$LINENO: result: $password_timeout" >&5
                   3459: echo "${ECHO_T}$password_timeout" >&6; }
1.1       millert  3460:
1.27      millert  3461: { echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
                   3462: echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6; }
1.1       millert  3463:
1.27      millert  3464: # Check whether --with-tty-tickets was given.
1.1       millert  3465: if test "${with_tty_tickets+set}" = set; then
1.27      millert  3466:   withval=$with_tty_tickets; case $with_tty_tickets in
1.9       millert  3467:     yes)       tty_tickets=on
1.1       millert  3468:                ;;
1.9       millert  3469:     no)                tty_tickets=off
1.1       millert  3470:                ;;
1.16      millert  3471:     *)         { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
1.9       millert  3472: echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
                   3473:    { (exit 1); exit 1; }; }
1.1       millert  3474:                ;;
                   3475: esac
1.27      millert  3476: fi
                   3477:
1.9       millert  3478: if test "$tty_tickets" = "on"; then
1.23      millert  3479:     cat >>confdefs.h <<\_ACEOF
1.9       millert  3480: #define USE_TTY_TICKETS 1
1.16      millert  3481: _ACEOF
1.9       millert  3482:
1.27      millert  3483:     { echo "$as_me:$LINENO: result: yes" >&5
                   3484: echo "${ECHO_T}yes" >&6; }
1.1       millert  3485: else
1.27      millert  3486:     { echo "$as_me:$LINENO: result: no" >&5
                   3487: echo "${ECHO_T}no" >&6; }
1.1       millert  3488: fi
                   3489:
1.27      millert  3490: { echo "$as_me:$LINENO: checking whether to include insults" >&5
                   3491: echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6; }
1.1       millert  3492:
1.27      millert  3493: # Check whether --with-insults was given.
1.1       millert  3494: if test "${with_insults+set}" = set; then
1.27      millert  3495:   withval=$with_insults; case $with_insults in
1.9       millert  3496:     yes)       insults=on
1.1       millert  3497:                with_classic_insults=yes
                   3498:                with_csops_insults=yes
                   3499:                ;;
1.9       millert  3500:     no)                insults=off
1.1       millert  3501:                ;;
1.16      millert  3502:     *)         { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
1.9       millert  3503: echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
                   3504:    { (exit 1); exit 1; }; }
1.1       millert  3505:                ;;
                   3506: esac
1.27      millert  3507: fi
                   3508:
1.9       millert  3509: if test "$insults" = "on"; then
1.23      millert  3510:     cat >>confdefs.h <<\_ACEOF
1.9       millert  3511: #define USE_INSULTS 1
1.16      millert  3512: _ACEOF
1.9       millert  3513:
1.27      millert  3514:     { echo "$as_me:$LINENO: result: yes" >&5
                   3515: echo "${ECHO_T}yes" >&6; }
1.1       millert  3516: else
1.27      millert  3517:     { echo "$as_me:$LINENO: result: no" >&5
                   3518: echo "${ECHO_T}no" >&6; }
1.1       millert  3519: fi
                   3520:
1.16      millert  3521:
1.27      millert  3522: # Check whether --with-all-insults was given.
1.1       millert  3523: if test "${with_all_insults+set}" = set; then
1.27      millert  3524:   withval=$with_all_insults; case $with_all_insults in
1.1       millert  3525:     yes)       with_classic_insults=yes
                   3526:                with_csops_insults=yes
                   3527:                with_hal_insults=yes
                   3528:                with_goons_insults=yes
                   3529:                ;;
                   3530:     no)                ;;
1.16      millert  3531:     *)         { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
1.9       millert  3532: echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
                   3533:    { (exit 1); exit 1; }; }
1.1       millert  3534:                ;;
                   3535: esac
1.27      millert  3536: fi
                   3537:
1.1       millert  3538:
1.16      millert  3539:
1.27      millert  3540: # Check whether --with-classic-insults was given.
1.1       millert  3541: if test "${with_classic_insults+set}" = set; then
1.27      millert  3542:   withval=$with_classic_insults; case $with_classic_insults in
1.23      millert  3543:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  3544: #define CLASSIC_INSULTS 1
1.16      millert  3545: _ACEOF
1.1       millert  3546:
                   3547:                ;;
                   3548:     no)                ;;
1.16      millert  3549:     *)         { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
1.9       millert  3550: echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
                   3551:    { (exit 1); exit 1; }; }
1.1       millert  3552:                ;;
                   3553: esac
1.27      millert  3554: fi
                   3555:
1.1       millert  3556:
1.16      millert  3557:
1.27      millert  3558: # Check whether --with-csops-insults was given.
1.1       millert  3559: if test "${with_csops_insults+set}" = set; then
1.27      millert  3560:   withval=$with_csops_insults; case $with_csops_insults in
1.23      millert  3561:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  3562: #define CSOPS_INSULTS 1
1.16      millert  3563: _ACEOF
1.1       millert  3564:
                   3565:                ;;
                   3566:     no)                ;;
1.16      millert  3567:     *)         { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
1.9       millert  3568: echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
                   3569:    { (exit 1); exit 1; }; }
1.1       millert  3570:                ;;
                   3571: esac
1.27      millert  3572: fi
                   3573:
1.1       millert  3574:
1.16      millert  3575:
1.27      millert  3576: # Check whether --with-hal-insults was given.
1.1       millert  3577: if test "${with_hal_insults+set}" = set; then
1.27      millert  3578:   withval=$with_hal_insults; case $with_hal_insults in
1.23      millert  3579:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  3580: #define HAL_INSULTS 1
1.16      millert  3581: _ACEOF
1.1       millert  3582:
                   3583:                ;;
                   3584:     no)                ;;
1.16      millert  3585:     *)         { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
1.9       millert  3586: echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
                   3587:    { (exit 1); exit 1; }; }
1.1       millert  3588:                ;;
                   3589: esac
1.27      millert  3590: fi
                   3591:
1.1       millert  3592:
1.16      millert  3593:
1.27      millert  3594: # Check whether --with-goons-insults was given.
1.1       millert  3595: if test "${with_goons_insults+set}" = set; then
1.27      millert  3596:   withval=$with_goons_insults; case $with_goons_insults in
1.23      millert  3597:     yes)       cat >>confdefs.h <<\_ACEOF
1.1       millert  3598: #define GOONS_INSULTS 1
1.16      millert  3599: _ACEOF
1.1       millert  3600:
                   3601:                ;;
                   3602:     no)                ;;
1.16      millert  3603:     *)         { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
1.9       millert  3604: echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
                   3605:    { (exit 1); exit 1; }; }
1.1       millert  3606:                ;;
                   3607: esac
1.27      millert  3608: fi
                   3609:
1.1       millert  3610:
1.23      millert  3611:
1.37      millert  3612: # Check whether --with-nsswitch was given.
                   3613: if test "${with_nsswitch+set}" = set; then
                   3614:   withval=$with_nsswitch; case $with_nsswitch in
                   3615:     no)                ;;
                   3616:     yes)       with_nsswitch="/etc/nsswitch.conf"
                   3617:                ;;
                   3618:     *)         ;;
                   3619: esac
                   3620: fi
                   3621:
                   3622:
                   3623:
1.27      millert  3624: # Check whether --with-ldap was given.
1.23      millert  3625: if test "${with_ldap+set}" = set; then
1.27      millert  3626:   withval=$with_ldap; case $with_ldap in
1.39      millert  3627:     no)                ;;
1.23      millert  3628:     *)         cat >>confdefs.h <<\_ACEOF
                   3629: #define HAVE_LDAP 1
                   3630: _ACEOF
                   3631:
1.27      millert  3632:                { echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
                   3633: echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6; }
                   3634:                { echo "$as_me:$LINENO: result: yes" >&5
                   3635: echo "${ECHO_T}yes" >&6; }
1.23      millert  3636:                ;;
                   3637: esac
1.27      millert  3638: fi
                   3639:
1.23      millert  3640:
1.37      millert  3641:
1.27      millert  3642: # Check whether --with-ldap-conf-file was given.
1.23      millert  3643: if test "${with_ldap_conf_file+set}" = set; then
1.27      millert  3644:   withval=$with_ldap_conf_file;
1.37      millert  3645: fi
                   3646:
                   3647: cat >>confdefs.h <<EOF
                   3648: #define _PATH_LDAP_CONF "${with_ldap_conf_file-/etc/ldap.conf}"
                   3649: EOF
1.23      millert  3650:
1.37      millert  3651: ldap_conf=${with_ldap_conf_file-'/etc/ldap.conf'}
1.27      millert  3652:
1.23      millert  3653:
1.27      millert  3654: # Check whether --with-ldap-secret-file was given.
1.25      millert  3655: if test "${with_ldap_secret_file+set}" = set; then
1.27      millert  3656:   withval=$with_ldap_secret_file;
1.37      millert  3657: fi
1.25      millert  3658:
1.37      millert  3659: cat >>confdefs.h <<EOF
                   3660: #define _PATH_LDAP_SECRET "${with_ldap_secret_file-/etc/ldap.secret}"
                   3661: EOF
1.27      millert  3662:
1.37      millert  3663: ldap_secret=${with_ldap_secret_file-'/etc/ldap.secret'}
1.25      millert  3664:
1.23      millert  3665:
1.27      millert  3666: # Check whether --with-pc-insults was given.
1.23      millert  3667: if test "${with_pc_insults+set}" = set; then
1.27      millert  3668:   withval=$with_pc_insults; case $with_pc_insults in
1.23      millert  3669:     yes)       cat >>confdefs.h <<\_ACEOF
                   3670: #define PC_INSULTS 1
                   3671: _ACEOF
                   3672:
                   3673:                ;;
                   3674:     no)                ;;
                   3675:     *)         { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
                   3676: echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
                   3677:    { (exit 1); exit 1; }; }
                   3678:                ;;
                   3679: esac
1.27      millert  3680: fi
                   3681:
1.23      millert  3682:
1.9       millert  3683: if test "$insults" = "on"; then
1.27      millert  3684:     { echo "$as_me:$LINENO: checking which insult sets to include" >&5
                   3685: echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6; }
1.1       millert  3686:     i=""
                   3687:     test "$with_goons_insults" = "yes" && i="goons ${i}"
                   3688:     test "$with_hal_insults" = "yes" && i="hal ${i}"
                   3689:     test "$with_csops_insults" = "yes" && i="csops ${i}"
                   3690:     test "$with_classic_insults" = "yes" && i="classic ${i}"
1.27      millert  3691:     { echo "$as_me:$LINENO: result: $i" >&5
                   3692: echo "${ECHO_T}$i" >&6; }
1.1       millert  3693: fi
                   3694:
1.27      millert  3695: { echo "$as_me:$LINENO: checking whether to override the user's path" >&5
                   3696: echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6; }
1.9       millert  3697:
1.27      millert  3698: # Check whether --with-secure-path was given.
1.1       millert  3699: if test "${with_secure_path+set}" = set; then
1.27      millert  3700:   withval=$with_secure_path; case $with_secure_path in
1.41    ! millert  3701:     yes)       with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
        !          3702:                cat >>confdefs.h <<_ACEOF
        !          3703: #define SECURE_PATH "$with_secure_path"
1.16      millert  3704: _ACEOF
1.1       millert  3705:
1.41    ! millert  3706:                { echo "$as_me:$LINENO: result: $with_secure_path" >&5
        !          3707: echo "${ECHO_T}$with_secure_path" >&6; }
        !          3708:                secure_path="set to $with_secure_path"
1.1       millert  3709:                ;;
1.27      millert  3710:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   3711: echo "${ECHO_T}no" >&6; }
1.1       millert  3712:                ;;
1.16      millert  3713:     *)         cat >>confdefs.h <<_ACEOF
1.1       millert  3714: #define SECURE_PATH "$with_secure_path"
1.16      millert  3715: _ACEOF
1.1       millert  3716:
1.27      millert  3717:                { echo "$as_me:$LINENO: result: $with_secure_path" >&5
                   3718: echo "${ECHO_T}$with_secure_path" >&6; }
1.41    ! millert  3719:                secure_path="set to F<$with_secure_path>"
1.1       millert  3720:                ;;
                   3721: esac
                   3722: else
1.27      millert  3723:   { echo "$as_me:$LINENO: result: no" >&5
                   3724: echo "${ECHO_T}no" >&6; }
                   3725: fi
                   3726:
1.1       millert  3727:
1.27      millert  3728: { echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
                   3729: echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6; }
1.1       millert  3730:
1.27      millert  3731: # Check whether --with-interfaces was given.
1.1       millert  3732: if test "${with_interfaces+set}" = set; then
1.27      millert  3733:   withval=$with_interfaces; case $with_interfaces in
                   3734:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   3735: echo "${ECHO_T}yes" >&6; }
1.1       millert  3736:                ;;
1.23      millert  3737:     no)                cat >>confdefs.h <<\_ACEOF
1.1       millert  3738: #define STUB_LOAD_INTERFACES 1
1.16      millert  3739: _ACEOF
1.1       millert  3740:
1.27      millert  3741:                { echo "$as_me:$LINENO: result: no" >&5
                   3742: echo "${ECHO_T}no" >&6; }
1.1       millert  3743:                ;;
1.16      millert  3744:     *)         { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
1.9       millert  3745: echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
                   3746:    { (exit 1); exit 1; }; }
1.1       millert  3747:                ;;
                   3748: esac
                   3749: else
1.27      millert  3750:   { echo "$as_me:$LINENO: result: yes" >&5
                   3751: echo "${ECHO_T}yes" >&6; }
                   3752: fi
                   3753:
1.16      millert  3754:
1.27      millert  3755: { echo "$as_me:$LINENO: checking whether stow should be used" >&5
                   3756: echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6; }
1.16      millert  3757:
1.27      millert  3758: # Check whether --with-stow was given.
1.16      millert  3759: if test "${with_stow+set}" = set; then
1.27      millert  3760:   withval=$with_stow; case $with_stow in
                   3761:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   3762: echo "${ECHO_T}yes" >&6; }
1.23      millert  3763:                cat >>confdefs.h <<\_ACEOF
1.16      millert  3764: #define USE_STOW 1
                   3765: _ACEOF
                   3766:
                   3767:                ;;
1.27      millert  3768:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   3769: echo "${ECHO_T}no" >&6; }
1.16      millert  3770:                ;;
                   3771:     *)         { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
                   3772: echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
                   3773:    { (exit 1); exit 1; }; }
                   3774:                ;;
                   3775: esac
                   3776: else
1.27      millert  3777:   { echo "$as_me:$LINENO: result: no" >&5
                   3778: echo "${ECHO_T}no" >&6; }
                   3779: fi
                   3780:
1.1       millert  3781:
1.37      millert  3782: { echo "$as_me:$LINENO: checking whether to use an askpass helper" >&5
                   3783: echo $ECHO_N "checking whether to use an askpass helper... $ECHO_C" >&6; }
                   3784:
                   3785: # Check whether --with-askpass was given.
                   3786: if test "${with_askpass+set}" = set; then
                   3787:   withval=$with_askpass; case $with_askpass in
                   3788:     yes)       { { echo "$as_me:$LINENO: error: \"--with-askpass takes a path as an argument.\"" >&5
                   3789: echo "$as_me: error: \"--with-askpass takes a path as an argument.\"" >&2;}
                   3790:    { (exit 1); exit 1; }; }
                   3791:                ;;
                   3792:     no)                ;;
                   3793:     *)
                   3794: cat >>confdefs.h <<_ACEOF
                   3795: #define _PATH_SUDO_ASKPASS "$with_askpass"
                   3796: _ACEOF
                   3797:
                   3798:                ;;
                   3799: esac
                   3800: else
                   3801:   { echo "$as_me:$LINENO: result: no" >&5
                   3802: echo "${ECHO_T}no" >&6; }
                   3803: fi
                   3804:
                   3805:
1.16      millert  3806:
1.40      millert  3807: # Check whether --with-libvas was given.
                   3808: if test "${with_libvas+set}" = set; then
                   3809:   withval=$with_libvas; case $with_libvas in
                   3810:     yes)       with_libvas=libvas.so
                   3811:                ;;
                   3812:     no)                ;;
                   3813:     *)
                   3814: cat >>confdefs.h <<_ACEOF
                   3815: #define LIBVAS_SO "$with_with_libvas"
                   3816: _ACEOF
                   3817:
                   3818:                ;;
                   3819: esac
                   3820: if test X"$with_libvas" != X"no"; then
                   3821:
                   3822: cat >>confdefs.h <<_ACEOF
                   3823: #define LIBVAS_SO "$with_libvas"
                   3824: _ACEOF
                   3825:
                   3826:     cat >>confdefs.h <<\_ACEOF
                   3827: #define USING_NONUNIX_GROUPS 1
                   3828: _ACEOF
                   3829:
                   3830:     NONUNIX_GROUPS_IMPL="vasgroups.o"
                   3831:
                   3832: # Check whether --with-libvas-rpath was given.
                   3833: if test "${with_libvas_rpath+set}" = set; then
                   3834:   withval=$with_libvas_rpath; LIBVAS_RPATH=$withval
                   3835: else
                   3836:   LIBVAS_RPATH=/opt/quest/lib
                   3837: fi
                   3838:
                   3839: fi
                   3840:
                   3841: fi
                   3842:
                   3843:
                   3844:
1.27      millert  3845: { echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
                   3846: echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6; }
                   3847: # Check whether --enable-authentication was given.
1.1       millert  3848: if test "${enable_authentication+set}" = set; then
1.27      millert  3849:   enableval=$enable_authentication;  case "$enableval" in
                   3850:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   3851: echo "${ECHO_T}yes" >&6; }
1.1       millert  3852:                ;;
1.27      millert  3853:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   3854: echo "${ECHO_T}no" >&6; }
1.23      millert  3855:                cat >>confdefs.h <<\_ACEOF
1.1       millert  3856: #define NO_AUTHENTICATION 1
1.16      millert  3857: _ACEOF
1.1       millert  3858:
                   3859:                ;;
1.27      millert  3860:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   3861: echo "${ECHO_T}no" >&6; }
1.17      millert  3862:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
                   3863: echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
1.1       millert  3864:                ;;
                   3865:   esac
                   3866:
                   3867: else
1.27      millert  3868:   { echo "$as_me:$LINENO: result: yes" >&5
                   3869: echo "${ECHO_T}yes" >&6; }
                   3870: fi
                   3871:
                   3872:
                   3873: { echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
                   3874: echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6; }
                   3875: # Check whether --enable-root-mailer was given.
1.12      millert  3876: if test "${enable_root_mailer+set}" = set; then
1.27      millert  3877:   enableval=$enable_root_mailer;  case "$enableval" in
                   3878:     yes)       { echo "$as_me:$LINENO: result: no" >&5
                   3879: echo "${ECHO_T}no" >&6; }
1.12      millert  3880:                ;;
1.27      millert  3881:     no)                { echo "$as_me:$LINENO: result: yes" >&5
                   3882: echo "${ECHO_T}yes" >&6; }
1.23      millert  3883:                cat >>confdefs.h <<\_ACEOF
1.12      millert  3884: #define NO_ROOT_MAILER 1
1.16      millert  3885: _ACEOF
1.12      millert  3886:
                   3887:                ;;
1.27      millert  3888:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   3889: echo "${ECHO_T}no" >&6; }
1.17      millert  3890:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
                   3891: echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
1.12      millert  3892:                ;;
                   3893:   esac
                   3894:
                   3895: else
1.27      millert  3896:   { echo "$as_me:$LINENO: result: no" >&5
                   3897: echo "${ECHO_T}no" >&6; }
                   3898: fi
1.12      millert  3899:
1.27      millert  3900:
                   3901: # Check whether --enable-setreuid was given.
1.13      millert  3902: if test "${enable_setreuid+set}" = set; then
1.27      millert  3903:   enableval=$enable_setreuid;  case "$enableval" in
1.16      millert  3904:     no)                SKIP_SETREUID=yes
                   3905:                ;;
                   3906:     *)         ;;
                   3907:   esac
                   3908:
1.27      millert  3909: fi
                   3910:
1.16      millert  3911:
1.27      millert  3912: # Check whether --enable-setresuid was given.
1.16      millert  3913: if test "${enable_setresuid+set}" = set; then
1.27      millert  3914:   enableval=$enable_setresuid;  case "$enableval" in
1.16      millert  3915:     no)                SKIP_SETRESUID=yes
1.13      millert  3916:                ;;
                   3917:     *)         ;;
                   3918:   esac
                   3919:
1.27      millert  3920: fi
                   3921:
1.13      millert  3922:
1.27      millert  3923: { echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
                   3924: echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6; }
                   3925: # Check whether --enable-shadow was given.
1.1       millert  3926: if test "${enable_shadow+set}" = set; then
1.27      millert  3927:   enableval=$enable_shadow;  case "$enableval" in
                   3928:     yes)       { echo "$as_me:$LINENO: result: no" >&5
                   3929: echo "${ECHO_T}no" >&6; }
1.1       millert  3930:                ;;
1.27      millert  3931:     no)                { echo "$as_me:$LINENO: result: yes" >&5
                   3932: echo "${ECHO_T}yes" >&6; }
1.1       millert  3933:                CHECKSHADOW="false"
                   3934:                ;;
1.27      millert  3935:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   3936: echo "${ECHO_T}no" >&6; }
1.17      millert  3937:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
                   3938: echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
1.1       millert  3939:                ;;
                   3940:   esac
                   3941:
                   3942: else
1.27      millert  3943:   { echo "$as_me:$LINENO: result: no" >&5
                   3944: echo "${ECHO_T}no" >&6; }
                   3945: fi
                   3946:
                   3947:
                   3948: { echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
                   3949: echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6; }
                   3950: # Check whether --enable-root-sudo was given.
1.1       millert  3951: if test "${enable_root_sudo+set}" = set; then
1.27      millert  3952:   enableval=$enable_root_sudo;  case "$enableval" in
                   3953:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   3954: echo "${ECHO_T}yes" >&6; }
1.1       millert  3955:                ;;
1.23      millert  3956:     no)                cat >>confdefs.h <<\_ACEOF
1.1       millert  3957: #define NO_ROOT_SUDO 1
1.16      millert  3958: _ACEOF
1.1       millert  3959:
1.27      millert  3960:                { echo "$as_me:$LINENO: result: no" >&5
                   3961: echo "${ECHO_T}no" >&6; }
1.23      millert  3962:                root_sudo=off
1.1       millert  3963:                ;;
1.16      millert  3964:     *)         { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
1.9       millert  3965: echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
                   3966:    { (exit 1); exit 1; }; }
1.1       millert  3967:                ;;
                   3968:   esac
                   3969:
                   3970: else
1.27      millert  3971:   { echo "$as_me:$LINENO: result: yes" >&5
                   3972: echo "${ECHO_T}yes" >&6; }
                   3973: fi
                   3974:
                   3975:
                   3976: { echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
                   3977: echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6; }
                   3978: # Check whether --enable-log-host was given.
1.1       millert  3979: if test "${enable_log_host+set}" = set; then
1.27      millert  3980:   enableval=$enable_log_host;  case "$enableval" in
                   3981:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   3982: echo "${ECHO_T}yes" >&6; }
1.23      millert  3983:                cat >>confdefs.h <<\_ACEOF
1.1       millert  3984: #define HOST_IN_LOG 1
1.16      millert  3985: _ACEOF
1.1       millert  3986:
                   3987:                ;;
1.27      millert  3988:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   3989: echo "${ECHO_T}no" >&6; }
1.1       millert  3990:                ;;
1.27      millert  3991:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   3992: echo "${ECHO_T}no" >&6; }
1.17      millert  3993:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
                   3994: echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
1.1       millert  3995:                ;;
                   3996:   esac
                   3997:
                   3998: else
1.27      millert  3999:   { echo "$as_me:$LINENO: result: no" >&5
                   4000: echo "${ECHO_T}no" >&6; }
                   4001: fi
                   4002:
                   4003:
                   4004: { echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
                   4005: echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6; }
                   4006: # Check whether --enable-noargs-shell was given.
1.1       millert  4007: if test "${enable_noargs_shell+set}" = set; then
1.27      millert  4008:   enableval=$enable_noargs_shell;  case "$enableval" in
                   4009:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   4010: echo "${ECHO_T}yes" >&6; }
1.23      millert  4011:                cat >>confdefs.h <<\_ACEOF
1.1       millert  4012: #define SHELL_IF_NO_ARGS 1
1.16      millert  4013: _ACEOF
1.1       millert  4014:
                   4015:                ;;
1.27      millert  4016:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   4017: echo "${ECHO_T}no" >&6; }
1.1       millert  4018:                ;;
1.27      millert  4019:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   4020: echo "${ECHO_T}no" >&6; }
1.17      millert  4021:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
                   4022: echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
1.1       millert  4023:                ;;
                   4024:   esac
                   4025:
                   4026: else
1.27      millert  4027:   { echo "$as_me:$LINENO: result: no" >&5
                   4028: echo "${ECHO_T}no" >&6; }
                   4029: fi
                   4030:
                   4031:
                   4032: { echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
                   4033: echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6; }
                   4034: # Check whether --enable-shell-sets-home was given.
1.1       millert  4035: if test "${enable_shell_sets_home+set}" = set; then
1.27      millert  4036:   enableval=$enable_shell_sets_home;  case "$enableval" in
                   4037:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   4038: echo "${ECHO_T}yes" >&6; }
1.23      millert  4039:                cat >>confdefs.h <<\_ACEOF
1.1       millert  4040: #define SHELL_SETS_HOME 1
1.16      millert  4041: _ACEOF
1.1       millert  4042:
                   4043:                ;;
1.27      millert  4044:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   4045: echo "${ECHO_T}no" >&6; }
1.1       millert  4046:                ;;
1.27      millert  4047:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   4048: echo "${ECHO_T}no" >&6; }
1.17      millert  4049:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
                   4050: echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
1.1       millert  4051:                ;;
                   4052:   esac
                   4053:
                   4054: else
1.27      millert  4055:   { echo "$as_me:$LINENO: result: no" >&5
                   4056: echo "${ECHO_T}no" >&6; }
                   4057: fi
                   4058:
                   4059:
                   4060: { echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
                   4061: echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6; }
                   4062: # Check whether --enable-path_info was given.
1.1       millert  4063: if test "${enable_path_info+set}" = set; then
1.27      millert  4064:   enableval=$enable_path_info;  case "$enableval" in
                   4065:     yes)       { echo "$as_me:$LINENO: result: no" >&5
                   4066: echo "${ECHO_T}no" >&6; }
1.1       millert  4067:                ;;
1.27      millert  4068:     no)                { echo "$as_me:$LINENO: result: yes" >&5
                   4069: echo "${ECHO_T}yes" >&6; }
1.23      millert  4070:                cat >>confdefs.h <<\_ACEOF
1.1       millert  4071: #define DONT_LEAK_PATH_INFO 1
1.16      millert  4072: _ACEOF
1.1       millert  4073:
1.25      millert  4074:                path_info=off
1.1       millert  4075:                ;;
1.27      millert  4076:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   4077: echo "${ECHO_T}no" >&6; }
1.17      millert  4078:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
                   4079: echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
1.1       millert  4080:                ;;
                   4081:   esac
                   4082:
                   4083: else
1.27      millert  4084:   { echo "$as_me:$LINENO: result: no" >&5
                   4085: echo "${ECHO_T}no" >&6; }
                   4086: fi
                   4087:
1.1       millert  4088:
1.39      millert  4089: { echo "$as_me:$LINENO: checking whether to enable environment debugging" >&5
                   4090: echo $ECHO_N "checking whether to enable environment debugging... $ECHO_C" >&6; }
                   4091: # Check whether --enable-env_debug was given.
                   4092: if test "${enable_env_debug+set}" = set; then
                   4093:   enableval=$enable_env_debug;  case "$enableval" in
                   4094:     yes)       { echo "$as_me:$LINENO: result: yes" >&5
                   4095: echo "${ECHO_T}yes" >&6; }
                   4096:                cat >>confdefs.h <<\_ACEOF
                   4097: #define ENV_DEBUG 1
                   4098: _ACEOF
                   4099:
                   4100:                ;;
                   4101:     no)                { echo "$as_me:$LINENO: result: no" >&5
                   4102: echo "${ECHO_T}no" >&6; }
                   4103:                ;;
                   4104:     *)         { echo "$as_me:$LINENO: result: no" >&5
                   4105: echo "${ECHO_T}no" >&6; }
                   4106:                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
                   4107: echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
                   4108:                ;;
                   4109:   esac
                   4110:
                   4111: else
                   4112:   { echo "$as_me:$LINENO: result: no" >&5
                   4113: echo "${ECHO_T}no" >&6; }
                   4114: fi
                   4115:
                   4116:
1.36      millert  4117:
                   4118: # Check whether --with-selinux was given.
                   4119: if test "${with_selinux+set}" = set; then
                   4120:   withval=$with_selinux; case $with_selinux in
1.37      millert  4121:     yes)       SELINUX_USAGE="[-r role] [-t type] "
                   4122:                cat >>confdefs.h <<\_ACEOF
1.36      millert  4123: #define HAVE_SELINUX 1
                   4124: _ACEOF
                   4125:
                   4126:                SUDO_LIBS="${SUDO_LIBS} -lselinux"
                   4127:                SUDO_OBJS="${SUDO_OBJS} selinux.o"
                   4128:                PROGS="${PROGS} sesh"
                   4129:                SELINUX=""
                   4130:                SEMAN=""
                   4131:                ;;
                   4132:     no)                ;;
                   4133:     *)         { { echo "$as_me:$LINENO: error: \"--with-selinux does not take an argument.\"" >&5
                   4134: echo "$as_me: error: \"--with-selinux does not take an argument.\"" >&2;}
                   4135:    { (exit 1); exit 1; }; }
                   4136:                ;;
                   4137: esac
                   4138: fi
                   4139:
                   4140:
1.37      millert  4141: # Check whether --enable-gss_krb5_ccache_name was given.
                   4142: if test "${enable_gss_krb5_ccache_name+set}" = set; then
                   4143:   enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
                   4144: else
                   4145:   check_gss_krb5_ccache_name=no
                   4146: fi
                   4147:
                   4148:
1.1       millert  4149: # Extract the first word of "egrep", so it can be a program name with args.
                   4150: set dummy egrep; ac_word=$2
1.27      millert  4151: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   4152: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9       millert  4153: if test "${ac_cv_prog_EGREPPROG+set}" = set; then
                   4154:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4155: else
                   4156:   if test -n "$EGREPPROG"; then
                   4157:   ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
                   4158: else
1.16      millert  4159: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4160: for as_dir in $PATH
                   4161: do
                   4162:   IFS=$as_save_IFS
                   4163:   test -z "$as_dir" && as_dir=.
                   4164:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  4165:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  4166:     ac_cv_prog_EGREPPROG="egrep"
                   4167:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4168:     break 2
                   4169:   fi
                   4170: done
1.9       millert  4171: done
1.27      millert  4172: IFS=$as_save_IFS
1.9       millert  4173:
1.1       millert  4174: fi
                   4175: fi
1.9       millert  4176: EGREPPROG=$ac_cv_prog_EGREPPROG
1.1       millert  4177: if test -n "$EGREPPROG"; then
1.27      millert  4178:   { echo "$as_me:$LINENO: result: $EGREPPROG" >&5
                   4179: echo "${ECHO_T}$EGREPPROG" >&6; }
1.1       millert  4180: else
1.27      millert  4181:   { echo "$as_me:$LINENO: result: no" >&5
                   4182: echo "${ECHO_T}no" >&6; }
1.1       millert  4183: fi
                   4184:
1.27      millert  4185:
1.1       millert  4186: if test -z "$EGREPPROG"; then
1.17      millert  4187:     { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
                   4188: echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
                   4189:    { (exit 1); exit 1; }; }
1.1       millert  4190: fi
                   4191:
1.9       millert  4192: if test "$with_devel" != "yes"; then
                   4193:     ac_cv_prog_cc_g=no
                   4194: fi
                   4195:
                   4196: ac_ext=c
                   4197: ac_cpp='$CPP $CPPFLAGS'
                   4198: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   4199: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   4200: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   4201: if test -n "$ac_tool_prefix"; then
                   4202:   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
                   4203: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.27      millert  4204: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   4205: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9       millert  4206: if test "${ac_cv_prog_CC+set}" = set; then
                   4207:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4208: else
                   4209:   if test -n "$CC"; then
                   4210:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   4211: else
1.16      millert  4212: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4213: for as_dir in $PATH
                   4214: do
                   4215:   IFS=$as_save_IFS
                   4216:   test -z "$as_dir" && as_dir=.
                   4217:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  4218:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  4219:     ac_cv_prog_CC="${ac_tool_prefix}gcc"
                   4220:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4221:     break 2
                   4222:   fi
                   4223: done
1.9       millert  4224: done
1.27      millert  4225: IFS=$as_save_IFS
1.9       millert  4226:
1.1       millert  4227: fi
                   4228: fi
1.9       millert  4229: CC=$ac_cv_prog_CC
1.1       millert  4230: if test -n "$CC"; then
1.27      millert  4231:   { echo "$as_me:$LINENO: result: $CC" >&5
                   4232: echo "${ECHO_T}$CC" >&6; }
1.1       millert  4233: else
1.27      millert  4234:   { echo "$as_me:$LINENO: result: no" >&5
                   4235: echo "${ECHO_T}no" >&6; }
1.9       millert  4236: fi
                   4237:
1.27      millert  4238:
1.9       millert  4239: fi
                   4240: if test -z "$ac_cv_prog_CC"; then
                   4241:   ac_ct_CC=$CC
                   4242:   # Extract the first word of "gcc", so it can be a program name with args.
                   4243: set dummy gcc; ac_word=$2
1.27      millert  4244: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   4245: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9       millert  4246: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   4247:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4248: else
                   4249:   if test -n "$ac_ct_CC"; then
                   4250:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   4251: else
1.16      millert  4252: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4253: for as_dir in $PATH
                   4254: do
                   4255:   IFS=$as_save_IFS
                   4256:   test -z "$as_dir" && as_dir=.
                   4257:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  4258:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  4259:     ac_cv_prog_ac_ct_CC="gcc"
                   4260:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4261:     break 2
                   4262:   fi
                   4263: done
1.9       millert  4264: done
1.27      millert  4265: IFS=$as_save_IFS
1.9       millert  4266:
                   4267: fi
                   4268: fi
                   4269: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   4270: if test -n "$ac_ct_CC"; then
1.27      millert  4271:   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
                   4272: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.9       millert  4273: else
1.27      millert  4274:   { echo "$as_me:$LINENO: result: no" >&5
                   4275: echo "${ECHO_T}no" >&6; }
1.9       millert  4276: fi
                   4277:
1.27      millert  4278:   if test "x$ac_ct_CC" = x; then
                   4279:     CC=""
                   4280:   else
                   4281:     case $cross_compiling:$ac_tool_warned in
                   4282: yes:)
                   4283: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   4284: whose name does not start with the host triplet.  If you think this
                   4285: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   4286: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   4287: whose name does not start with the host triplet.  If you think this
                   4288: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   4289: ac_tool_warned=yes ;;
                   4290: esac
                   4291:     CC=$ac_ct_CC
                   4292:   fi
1.9       millert  4293: else
                   4294:   CC="$ac_cv_prog_CC"
1.1       millert  4295: fi
                   4296:
                   4297: if test -z "$CC"; then
1.27      millert  4298:           if test -n "$ac_tool_prefix"; then
                   4299:     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.9       millert  4300: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.27      millert  4301: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   4302: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9       millert  4303: if test "${ac_cv_prog_CC+set}" = set; then
                   4304:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4305: else
                   4306:   if test -n "$CC"; then
                   4307:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   4308: else
1.16      millert  4309: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4310: for as_dir in $PATH
                   4311: do
                   4312:   IFS=$as_save_IFS
                   4313:   test -z "$as_dir" && as_dir=.
                   4314:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  4315:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  4316:     ac_cv_prog_CC="${ac_tool_prefix}cc"
                   4317:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4318:     break 2
                   4319:   fi
                   4320: done
1.9       millert  4321: done
1.27      millert  4322: IFS=$as_save_IFS
1.9       millert  4323:
                   4324: fi
                   4325: fi
                   4326: CC=$ac_cv_prog_CC
                   4327: if test -n "$CC"; then
1.27      millert  4328:   { echo "$as_me:$LINENO: result: $CC" >&5
                   4329: echo "${ECHO_T}$CC" >&6; }
1.9       millert  4330: else
1.27      millert  4331:   { echo "$as_me:$LINENO: result: no" >&5
                   4332: echo "${ECHO_T}no" >&6; }
1.9       millert  4333: fi
                   4334:
1.27      millert  4335:
1.16      millert  4336:   fi
1.9       millert  4337: fi
                   4338: if test -z "$CC"; then
                   4339:   # Extract the first word of "cc", so it can be a program name with args.
                   4340: set dummy cc; ac_word=$2
1.27      millert  4341: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   4342: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9       millert  4343: if test "${ac_cv_prog_CC+set}" = set; then
                   4344:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4345: else
                   4346:   if test -n "$CC"; then
                   4347:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   4348: else
                   4349:   ac_prog_rejected=no
1.16      millert  4350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4351: for as_dir in $PATH
                   4352: do
                   4353:   IFS=$as_save_IFS
                   4354:   test -z "$as_dir" && as_dir=.
                   4355:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  4356:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  4357:     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
                   4358:        ac_prog_rejected=yes
                   4359:        continue
                   4360:      fi
                   4361:     ac_cv_prog_CC="cc"
                   4362:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4363:     break 2
                   4364:   fi
                   4365: done
1.9       millert  4366: done
1.27      millert  4367: IFS=$as_save_IFS
1.9       millert  4368:
1.1       millert  4369: if test $ac_prog_rejected = yes; then
                   4370:   # We found a bogon in the path, so make sure we never use it.
                   4371:   set dummy $ac_cv_prog_CC
                   4372:   shift
1.9       millert  4373:   if test $# != 0; then
1.1       millert  4374:     # We chose a different compiler from the bogus one.
                   4375:     # However, it has the same basename, so the bogon will be chosen
                   4376:     # first if we set CC to just the basename; use the full file name.
                   4377:     shift
1.16      millert  4378:     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1       millert  4379:   fi
                   4380: fi
                   4381: fi
                   4382: fi
1.9       millert  4383: CC=$ac_cv_prog_CC
1.1       millert  4384: if test -n "$CC"; then
1.27      millert  4385:   { echo "$as_me:$LINENO: result: $CC" >&5
                   4386: echo "${ECHO_T}$CC" >&6; }
1.9       millert  4387: else
1.27      millert  4388:   { echo "$as_me:$LINENO: result: no" >&5
                   4389: echo "${ECHO_T}no" >&6; }
1.9       millert  4390: fi
                   4391:
1.27      millert  4392:
1.9       millert  4393: fi
                   4394: if test -z "$CC"; then
                   4395:   if test -n "$ac_tool_prefix"; then
1.27      millert  4396:   for ac_prog in cl.exe
1.9       millert  4397:   do
                   4398:     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
                   4399: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.27      millert  4400: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   4401: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9       millert  4402: if test "${ac_cv_prog_CC+set}" = set; then
                   4403:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4404: else
                   4405:   if test -n "$CC"; then
                   4406:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   4407: else
1.16      millert  4408: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4409: for as_dir in $PATH
                   4410: do
                   4411:   IFS=$as_save_IFS
                   4412:   test -z "$as_dir" && as_dir=.
                   4413:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  4414:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  4415:     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
                   4416:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4417:     break 2
                   4418:   fi
                   4419: done
1.9       millert  4420: done
1.27      millert  4421: IFS=$as_save_IFS
1.9       millert  4422:
                   4423: fi
                   4424: fi
                   4425: CC=$ac_cv_prog_CC
                   4426: if test -n "$CC"; then
1.27      millert  4427:   { echo "$as_me:$LINENO: result: $CC" >&5
                   4428: echo "${ECHO_T}$CC" >&6; }
1.9       millert  4429: else
1.27      millert  4430:   { echo "$as_me:$LINENO: result: no" >&5
                   4431: echo "${ECHO_T}no" >&6; }
1.9       millert  4432: fi
                   4433:
1.27      millert  4434:
1.9       millert  4435:     test -n "$CC" && break
                   4436:   done
                   4437: fi
                   4438: if test -z "$CC"; then
                   4439:   ac_ct_CC=$CC
1.27      millert  4440:   for ac_prog in cl.exe
1.9       millert  4441: do
                   4442:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   4443: set dummy $ac_prog; ac_word=$2
1.27      millert  4444: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   4445: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9       millert  4446: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
                   4447:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4448: else
                   4449:   if test -n "$ac_ct_CC"; then
                   4450:   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
                   4451: else
1.16      millert  4452: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   4453: for as_dir in $PATH
                   4454: do
                   4455:   IFS=$as_save_IFS
                   4456:   test -z "$as_dir" && as_dir=.
                   4457:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  4458:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16      millert  4459:     ac_cv_prog_ac_ct_CC="$ac_prog"
                   4460:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   4461:     break 2
                   4462:   fi
                   4463: done
1.9       millert  4464: done
1.27      millert  4465: IFS=$as_save_IFS
1.9       millert  4466:
                   4467: fi
                   4468: fi
                   4469: ac_ct_CC=$ac_cv_prog_ac_ct_CC
                   4470: if test -n "$ac_ct_CC"; then
1.27      millert  4471:   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
                   4472: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1       millert  4473: else
1.27      millert  4474:   { echo "$as_me:$LINENO: result: no" >&5
                   4475: echo "${ECHO_T}no" >&6; }
1.9       millert  4476: fi
                   4477:
1.27      millert  4478:
1.9       millert  4479:   test -n "$ac_ct_CC" && break
                   4480: done
                   4481:
1.27      millert  4482:   if test "x$ac_ct_CC" = x; then
                   4483:     CC=""
                   4484:   else
                   4485:     case $cross_compiling:$ac_tool_warned in
                   4486: yes:)
                   4487: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   4488: whose name does not start with the host triplet.  If you think this
                   4489: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   4490: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   4491: whose name does not start with the host triplet.  If you think this
                   4492: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   4493: ac_tool_warned=yes ;;
                   4494: esac
                   4495:     CC=$ac_ct_CC
                   4496:   fi
1.1       millert  4497: fi
                   4498:
                   4499: fi
                   4500:
1.16      millert  4501:
                   4502: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
                   4503: See \`config.log' for more details." >&5
                   4504: echo "$as_me: error: no acceptable C compiler found in \$PATH
                   4505: See \`config.log' for more details." >&2;}
1.9       millert  4506:    { (exit 1); exit 1; }; }
                   4507:
                   4508: # Provide some information about the compiler.
1.27      millert  4509: echo "$as_me:$LINENO: checking for C compiler version" >&5
1.9       millert  4510: ac_compiler=`set X $ac_compile; echo $2`
1.27      millert  4511: { (ac_try="$ac_compiler --version >&5"
                   4512: case "(($ac_try" in
                   4513:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4514:   *) ac_try_echo=$ac_try;;
                   4515: esac
                   4516: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4517:   (eval "$ac_compiler --version >&5") 2>&5
1.9       millert  4518:   ac_status=$?
1.16      millert  4519:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4520:   (exit $ac_status); }
1.27      millert  4521: { (ac_try="$ac_compiler -v >&5"
                   4522: case "(($ac_try" in
                   4523:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4524:   *) ac_try_echo=$ac_try;;
                   4525: esac
                   4526: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4527:   (eval "$ac_compiler -v >&5") 2>&5
1.9       millert  4528:   ac_status=$?
1.16      millert  4529:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4530:   (exit $ac_status); }
1.27      millert  4531: { (ac_try="$ac_compiler -V >&5"
                   4532: case "(($ac_try" in
                   4533:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4534:   *) ac_try_echo=$ac_try;;
                   4535: esac
                   4536: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4537:   (eval "$ac_compiler -V >&5") 2>&5
1.9       millert  4538:   ac_status=$?
1.16      millert  4539:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4540:   (exit $ac_status); }
                   4541:
                   4542: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4543: /* confdefs.h.  */
                   4544: _ACEOF
                   4545: cat confdefs.h >>conftest.$ac_ext
                   4546: cat >>conftest.$ac_ext <<_ACEOF
                   4547: /* end confdefs.h.  */
1.9       millert  4548:
                   4549: int
                   4550: main ()
                   4551: {
1.1       millert  4552:
1.9       millert  4553:   ;
                   4554:   return 0;
                   4555: }
                   4556: _ACEOF
                   4557: ac_clean_files_save=$ac_clean_files
1.16      millert  4558: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.9       millert  4559: # Try to create an executable without -o first, disregard a.out.
                   4560: # It will help us diagnose broken compilers, and finding out an intuition
                   4561: # of exeext.
1.27      millert  4562: { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
                   4563: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1.9       millert  4564: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.27      millert  4565: #
                   4566: # List of possible output files, starting from the most likely.
                   4567: # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
                   4568: # only as a last resort.  b.out is created by i960 compilers.
                   4569: ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
                   4570: #
                   4571: # The IRIX 6 linker writes into existing files which may not be
                   4572: # executable, retaining their permissions.  Remove them first so a
                   4573: # subsequent execution test works.
                   4574: ac_rmfiles=
                   4575: for ac_file in $ac_files
                   4576: do
                   4577:   case $ac_file in
                   4578:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
                   4579:     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
                   4580:   esac
                   4581: done
                   4582: rm -f $ac_rmfiles
                   4583:
                   4584: if { (ac_try="$ac_link_default"
                   4585: case "(($ac_try" in
                   4586:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4587:   *) ac_try_echo=$ac_try;;
                   4588: esac
                   4589: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4590:   (eval "$ac_link_default") 2>&5
1.9       millert  4591:   ac_status=$?
1.16      millert  4592:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4593:   (exit $ac_status); }; then
1.27      millert  4594:   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
                   4595: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
                   4596: # in a Makefile.  We should not override ac_cv_exeext if it was cached,
                   4597: # so that the user can short-circuit this test for compilers unknown to
                   4598: # Autoconf.
                   4599: for ac_file in $ac_files ''
1.16      millert  4600: do
                   4601:   test -f "$ac_file" || continue
1.9       millert  4602:   case $ac_file in
1.27      millert  4603:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1.25      millert  4604:        ;;
1.16      millert  4605:     [ab].out )
1.25      millert  4606:        # We found the default executable, but exeext='' is most
                   4607:        # certainly right.
                   4608:        break;;
1.16      millert  4609:     *.* )
1.27      millert  4610:         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
                   4611:        then :; else
                   4612:           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
                   4613:        fi
                   4614:        # We set ac_cv_exeext here because the later test for it is not
                   4615:        # safe: cross compilers may not add the suffix if given an `-o'
                   4616:        # argument, so we may need to know it at that point already.
                   4617:        # Even if this section looks crufty: it has the advantage of
                   4618:        # actually working.
1.25      millert  4619:        break;;
1.16      millert  4620:     * )
1.25      millert  4621:        break;;
1.9       millert  4622:   esac
                   4623: done
1.27      millert  4624: test "$ac_cv_exeext" = no && ac_cv_exeext=
                   4625:
1.9       millert  4626: else
1.27      millert  4627:   ac_file=''
                   4628: fi
                   4629:
                   4630: { echo "$as_me:$LINENO: result: $ac_file" >&5
                   4631: echo "${ECHO_T}$ac_file" >&6; }
                   4632: if test -z "$ac_file"; then
1.9       millert  4633:   echo "$as_me: failed program was:" >&5
1.16      millert  4634: sed 's/^/| /' conftest.$ac_ext >&5
                   4635:
                   4636: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
                   4637: See \`config.log' for more details." >&5
                   4638: echo "$as_me: error: C compiler cannot create executables
                   4639: See \`config.log' for more details." >&2;}
1.9       millert  4640:    { (exit 77); exit 77; }; }
                   4641: fi
                   4642:
                   4643: ac_exeext=$ac_cv_exeext
                   4644:
1.27      millert  4645: # Check that the compiler produces executables we can run.  If not, either
1.9       millert  4646: # the compiler is broken, or we cross compile.
1.27      millert  4647: { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
                   4648: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1.9       millert  4649: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
                   4650: # If not cross compiling, check that we can run a simple program.
                   4651: if test "$cross_compiling" != yes; then
                   4652:   if { ac_try='./$ac_file'
1.27      millert  4653:   { (case "(($ac_try" in
                   4654:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4655:   *) ac_try_echo=$ac_try;;
                   4656: esac
                   4657: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4658:   (eval "$ac_try") 2>&5
1.9       millert  4659:   ac_status=$?
1.16      millert  4660:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4661:   (exit $ac_status); }; }; then
                   4662:     cross_compiling=no
1.1       millert  4663:   else
1.9       millert  4664:     if test "$cross_compiling" = maybe; then
                   4665:        cross_compiling=yes
                   4666:     else
1.16      millert  4667:        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
                   4668: If you meant to cross compile, use \`--host'.
                   4669: See \`config.log' for more details." >&5
1.9       millert  4670: echo "$as_me: error: cannot run C compiled programs.
1.16      millert  4671: If you meant to cross compile, use \`--host'.
                   4672: See \`config.log' for more details." >&2;}
1.9       millert  4673:    { (exit 1); exit 1; }; }
                   4674:     fi
1.1       millert  4675:   fi
1.9       millert  4676: fi
1.27      millert  4677: { echo "$as_me:$LINENO: result: yes" >&5
                   4678: echo "${ECHO_T}yes" >&6; }
1.9       millert  4679:
1.16      millert  4680: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.9       millert  4681: ac_clean_files=$ac_clean_files_save
1.27      millert  4682: # Check that the compiler produces executables we can run.  If not, either
1.9       millert  4683: # the compiler is broken, or we cross compile.
1.27      millert  4684: { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
                   4685: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
                   4686: { echo "$as_me:$LINENO: result: $cross_compiling" >&5
                   4687: echo "${ECHO_T}$cross_compiling" >&6; }
                   4688:
                   4689: { echo "$as_me:$LINENO: checking for suffix of executables" >&5
                   4690: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
                   4691: if { (ac_try="$ac_link"
                   4692: case "(($ac_try" in
                   4693:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4694:   *) ac_try_echo=$ac_try;;
                   4695: esac
                   4696: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4697:   (eval "$ac_link") 2>&5
1.9       millert  4698:   ac_status=$?
1.16      millert  4699:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4700:   (exit $ac_status); }; then
                   4701:   # If both `conftest.exe' and `conftest' are `present' (well, observable)
                   4702: # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
                   4703: # work properly (i.e., refer to `conftest.exe'), while it won't with
                   4704: # `rm'.
1.16      millert  4705: for ac_file in conftest.exe conftest conftest.*; do
                   4706:   test -f "$ac_file" || continue
1.9       millert  4707:   case $ac_file in
1.27      millert  4708:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.9       millert  4709:     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.25      millert  4710:          break;;
1.9       millert  4711:     * ) break;;
                   4712:   esac
                   4713: done
1.1       millert  4714: else
1.16      millert  4715:   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
                   4716: See \`config.log' for more details." >&5
                   4717: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
                   4718: See \`config.log' for more details." >&2;}
1.9       millert  4719:    { (exit 1); exit 1; }; }
1.1       millert  4720: fi
                   4721:
1.9       millert  4722: rm -f conftest$ac_cv_exeext
1.27      millert  4723: { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
                   4724: echo "${ECHO_T}$ac_cv_exeext" >&6; }
1.1       millert  4725:
1.9       millert  4726: rm -f conftest.$ac_ext
                   4727: EXEEXT=$ac_cv_exeext
                   4728: ac_exeext=$EXEEXT
1.27      millert  4729: { echo "$as_me:$LINENO: checking for suffix of object files" >&5
                   4730: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1.9       millert  4731: if test "${ac_cv_objext+set}" = set; then
                   4732:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4733: else
1.9       millert  4734:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4735: /* confdefs.h.  */
                   4736: _ACEOF
                   4737: cat confdefs.h >>conftest.$ac_ext
                   4738: cat >>conftest.$ac_ext <<_ACEOF
                   4739: /* end confdefs.h.  */
1.9       millert  4740:
                   4741: int
                   4742: main ()
                   4743: {
                   4744:
                   4745:   ;
                   4746:   return 0;
                   4747: }
                   4748: _ACEOF
                   4749: rm -f conftest.o conftest.obj
1.27      millert  4750: if { (ac_try="$ac_compile"
                   4751: case "(($ac_try" in
                   4752:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4753:   *) ac_try_echo=$ac_try;;
                   4754: esac
                   4755: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4756:   (eval "$ac_compile") 2>&5
1.9       millert  4757:   ac_status=$?
1.16      millert  4758:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  4759:   (exit $ac_status); }; then
1.27      millert  4760:   for ac_file in conftest.o conftest.obj conftest.*; do
                   4761:   test -f "$ac_file" || continue;
1.9       millert  4762:   case $ac_file in
1.27      millert  4763:     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1.9       millert  4764:     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
                   4765:        break;;
                   4766:   esac
                   4767: done
1.1       millert  4768: else
1.9       millert  4769:   echo "$as_me: failed program was:" >&5
1.16      millert  4770: sed 's/^/| /' conftest.$ac_ext >&5
                   4771:
                   4772: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
                   4773: See \`config.log' for more details." >&5
                   4774: echo "$as_me: error: cannot compute suffix of object files: cannot compile
                   4775: See \`config.log' for more details." >&2;}
1.9       millert  4776:    { (exit 1); exit 1; }; }
1.1       millert  4777: fi
1.9       millert  4778:
                   4779: rm -f conftest.$ac_cv_objext conftest.$ac_ext
1.1       millert  4780: fi
1.27      millert  4781: { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
                   4782: echo "${ECHO_T}$ac_cv_objext" >&6; }
1.9       millert  4783: OBJEXT=$ac_cv_objext
                   4784: ac_objext=$OBJEXT
1.27      millert  4785: { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
                   4786: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.9       millert  4787: if test "${ac_cv_c_compiler_gnu+set}" = set; then
                   4788:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4789: else
                   4790:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4791: /* confdefs.h.  */
                   4792: _ACEOF
                   4793: cat confdefs.h >>conftest.$ac_ext
                   4794: cat >>conftest.$ac_ext <<_ACEOF
                   4795: /* end confdefs.h.  */
1.1       millert  4796:
1.9       millert  4797: int
                   4798: main ()
                   4799: {
                   4800: #ifndef __GNUC__
                   4801:        choke me
                   4802: #endif
1.1       millert  4803:
1.9       millert  4804:   ;
                   4805:   return 0;
                   4806: }
                   4807: _ACEOF
                   4808: rm -f conftest.$ac_objext
1.27      millert  4809: if { (ac_try="$ac_compile"
                   4810: case "(($ac_try" in
                   4811:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4812:   *) ac_try_echo=$ac_try;;
                   4813: esac
                   4814: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4815:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  4816:   ac_status=$?
1.25      millert  4817:   grep -v '^ *+' conftest.er1 >conftest.err
                   4818:   rm -f conftest.er1
                   4819:   cat conftest.err >&5
1.16      millert  4820:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  4821:   (exit $ac_status); } && {
                   4822:         test -z "$ac_c_werror_flag" ||
                   4823:         test ! -s conftest.err
                   4824:        } && test -s conftest.$ac_objext; then
1.9       millert  4825:   ac_compiler_gnu=yes
                   4826: else
                   4827:   echo "$as_me: failed program was:" >&5
1.16      millert  4828: sed 's/^/| /' conftest.$ac_ext >&5
                   4829:
1.27      millert  4830:        ac_compiler_gnu=no
1.9       millert  4831: fi
1.27      millert  4832:
                   4833: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  4834: ac_cv_c_compiler_gnu=$ac_compiler_gnu
                   4835:
                   4836: fi
1.27      millert  4837: { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
                   4838: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.9       millert  4839: GCC=`test $ac_compiler_gnu = yes && echo yes`
                   4840: ac_test_CFLAGS=${CFLAGS+set}
                   4841: ac_save_CFLAGS=$CFLAGS
1.27      millert  4842: { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
                   4843: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.9       millert  4844: if test "${ac_cv_prog_cc_g+set}" = set; then
                   4845:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  4846: else
1.27      millert  4847:   ac_save_c_werror_flag=$ac_c_werror_flag
                   4848:    ac_c_werror_flag=yes
                   4849:    ac_cv_prog_cc_g=no
                   4850:    CFLAGS="-g"
                   4851:    cat >conftest.$ac_ext <<_ACEOF
1.16      millert  4852: /* confdefs.h.  */
                   4853: _ACEOF
                   4854: cat confdefs.h >>conftest.$ac_ext
                   4855: cat >>conftest.$ac_ext <<_ACEOF
                   4856: /* end confdefs.h.  */
1.9       millert  4857:
                   4858: int
                   4859: main ()
                   4860: {
                   4861:
                   4862:   ;
                   4863:   return 0;
                   4864: }
                   4865: _ACEOF
                   4866: rm -f conftest.$ac_objext
1.27      millert  4867: if { (ac_try="$ac_compile"
                   4868: case "(($ac_try" in
                   4869:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4870:   *) ac_try_echo=$ac_try;;
                   4871: esac
                   4872: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4873:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  4874:   ac_status=$?
1.25      millert  4875:   grep -v '^ *+' conftest.er1 >conftest.err
                   4876:   rm -f conftest.er1
                   4877:   cat conftest.err >&5
1.16      millert  4878:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  4879:   (exit $ac_status); } && {
                   4880:         test -z "$ac_c_werror_flag" ||
                   4881:         test ! -s conftest.err
                   4882:        } && test -s conftest.$ac_objext; then
                   4883:   ac_cv_prog_cc_g=yes
                   4884: else
                   4885:   echo "$as_me: failed program was:" >&5
                   4886: sed 's/^/| /' conftest.$ac_ext >&5
                   4887:
                   4888:        CFLAGS=""
                   4889:       cat >conftest.$ac_ext <<_ACEOF
                   4890: /* confdefs.h.  */
                   4891: _ACEOF
                   4892: cat confdefs.h >>conftest.$ac_ext
                   4893: cat >>conftest.$ac_ext <<_ACEOF
                   4894: /* end confdefs.h.  */
                   4895:
                   4896: int
                   4897: main ()
                   4898: {
                   4899:
                   4900:   ;
                   4901:   return 0;
                   4902: }
                   4903: _ACEOF
                   4904: rm -f conftest.$ac_objext
                   4905: if { (ac_try="$ac_compile"
                   4906: case "(($ac_try" in
                   4907:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4908:   *) ac_try_echo=$ac_try;;
                   4909: esac
                   4910: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4911:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  4912:   ac_status=$?
1.27      millert  4913:   grep -v '^ *+' conftest.er1 >conftest.err
                   4914:   rm -f conftest.er1
                   4915:   cat conftest.err >&5
1.25      millert  4916:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  4917:   (exit $ac_status); } && {
                   4918:         test -z "$ac_c_werror_flag" ||
                   4919:         test ! -s conftest.err
                   4920:        } && test -s conftest.$ac_objext; then
                   4921:   :
                   4922: else
                   4923:   echo "$as_me: failed program was:" >&5
                   4924: sed 's/^/| /' conftest.$ac_ext >&5
                   4925:
                   4926:        ac_c_werror_flag=$ac_save_c_werror_flag
                   4927:         CFLAGS="-g"
                   4928:         cat >conftest.$ac_ext <<_ACEOF
                   4929: /* confdefs.h.  */
                   4930: _ACEOF
                   4931: cat confdefs.h >>conftest.$ac_ext
                   4932: cat >>conftest.$ac_ext <<_ACEOF
                   4933: /* end confdefs.h.  */
                   4934:
                   4935: int
                   4936: main ()
                   4937: {
                   4938:
                   4939:   ;
                   4940:   return 0;
                   4941: }
                   4942: _ACEOF
                   4943: rm -f conftest.$ac_objext
                   4944: if { (ac_try="$ac_compile"
                   4945: case "(($ac_try" in
                   4946:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   4947:   *) ac_try_echo=$ac_try;;
                   4948: esac
                   4949: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   4950:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  4951:   ac_status=$?
1.27      millert  4952:   grep -v '^ *+' conftest.er1 >conftest.err
                   4953:   rm -f conftest.er1
                   4954:   cat conftest.err >&5
1.16      millert  4955:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  4956:   (exit $ac_status); } && {
                   4957:         test -z "$ac_c_werror_flag" ||
                   4958:         test ! -s conftest.err
                   4959:        } && test -s conftest.$ac_objext; then
1.1       millert  4960:   ac_cv_prog_cc_g=yes
                   4961: else
1.9       millert  4962:   echo "$as_me: failed program was:" >&5
1.16      millert  4963: sed 's/^/| /' conftest.$ac_ext >&5
                   4964:
1.27      millert  4965:
                   4966: fi
                   4967:
                   4968: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4969: fi
                   4970:
                   4971: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  4972: fi
1.27      millert  4973:
                   4974: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   4975:    ac_c_werror_flag=$ac_save_c_werror_flag
1.9       millert  4976: fi
1.27      millert  4977: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
                   4978: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.9       millert  4979: if test "$ac_test_CFLAGS" = set; then
                   4980:   CFLAGS=$ac_save_CFLAGS
                   4981: elif test $ac_cv_prog_cc_g = yes; then
                   4982:   if test "$GCC" = yes; then
                   4983:     CFLAGS="-g -O2"
                   4984:   else
                   4985:     CFLAGS="-g"
                   4986:   fi
                   4987: else
                   4988:   if test "$GCC" = yes; then
                   4989:     CFLAGS="-O2"
                   4990:   else
                   4991:     CFLAGS=
                   4992:   fi
                   4993: fi
1.27      millert  4994: { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
                   4995: echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
                   4996: if test "${ac_cv_prog_cc_c89+set}" = set; then
1.16      millert  4997:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   4998: else
1.27      millert  4999:   ac_cv_prog_cc_c89=no
1.16      millert  5000: ac_save_CC=$CC
1.9       millert  5001: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  5002: /* confdefs.h.  */
1.9       millert  5003: _ACEOF
1.16      millert  5004: cat confdefs.h >>conftest.$ac_ext
                   5005: cat >>conftest.$ac_ext <<_ACEOF
                   5006: /* end confdefs.h.  */
                   5007: #include <stdarg.h>
                   5008: #include <stdio.h>
                   5009: #include <sys/types.h>
                   5010: #include <sys/stat.h>
                   5011: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
                   5012: struct buf { int x; };
                   5013: FILE * (*rcsopen) (struct buf *, struct stat *, int);
                   5014: static char *e (p, i)
                   5015:      char **p;
                   5016:      int i;
1.9       millert  5017: {
1.16      millert  5018:   return p[i];
1.9       millert  5019: }
1.16      millert  5020: static char *f (char * (*g) (char **, int), char **p, ...)
                   5021: {
                   5022:   char *s;
                   5023:   va_list v;
                   5024:   va_start (v,p);
                   5025:   s = g (p, va_arg (v,int));
                   5026:   va_end (v);
                   5027:   return s;
                   5028: }
1.25      millert  5029:
                   5030: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
                   5031:    function prototypes and stuff, but not '\xHH' hex character constants.
                   5032:    These don't provoke an error unfortunately, instead are silently treated
1.27      millert  5033:    as 'x'.  The following induces an error, until -std is added to get
1.25      millert  5034:    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
                   5035:    array size at least.  It's necessary to write '\x00'==0 to get something
1.27      millert  5036:    that's true only with -std.  */
1.25      millert  5037: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
                   5038:
1.27      millert  5039: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
                   5040:    inside strings and character constants.  */
                   5041: #define FOO(x) 'x'
                   5042: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
                   5043:
1.16      millert  5044: int test (int i, double x);
                   5045: struct s1 {int (*f) (int a);};
                   5046: struct s2 {int (*f) (double a);};
                   5047: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
                   5048: int argc;
                   5049: char **argv;
                   5050: int
                   5051: main ()
                   5052: {
                   5053: return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
                   5054:   ;
                   5055:   return 0;
                   5056: }
                   5057: _ACEOF
1.27      millert  5058: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
                   5059:        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.16      millert  5060: do
                   5061:   CC="$ac_save_CC $ac_arg"
                   5062:   rm -f conftest.$ac_objext
1.27      millert  5063: if { (ac_try="$ac_compile"
                   5064: case "(($ac_try" in
                   5065:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5066:   *) ac_try_echo=$ac_try;;
                   5067: esac
                   5068: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5069:   (eval "$ac_compile") 2>conftest.er1
1.16      millert  5070:   ac_status=$?
1.25      millert  5071:   grep -v '^ *+' conftest.er1 >conftest.err
                   5072:   rm -f conftest.er1
                   5073:   cat conftest.err >&5
1.16      millert  5074:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  5075:   (exit $ac_status); } && {
                   5076:         test -z "$ac_c_werror_flag" ||
                   5077:         test ! -s conftest.err
                   5078:        } && test -s conftest.$ac_objext; then
                   5079:   ac_cv_prog_cc_c89=$ac_arg
1.16      millert  5080: else
                   5081:   echo "$as_me: failed program was:" >&5
                   5082: sed 's/^/| /' conftest.$ac_ext >&5
                   5083:
1.27      millert  5084:
1.16      millert  5085: fi
1.27      millert  5086:
                   5087: rm -f core conftest.err conftest.$ac_objext
                   5088:   test "x$ac_cv_prog_cc_c89" != "xno" && break
1.16      millert  5089: done
1.27      millert  5090: rm -f conftest.$ac_ext
1.16      millert  5091: CC=$ac_save_CC
                   5092:
                   5093: fi
1.27      millert  5094: # AC_CACHE_VAL
                   5095: case "x$ac_cv_prog_cc_c89" in
                   5096:   x)
                   5097:     { echo "$as_me:$LINENO: result: none needed" >&5
                   5098: echo "${ECHO_T}none needed" >&6; } ;;
                   5099:   xno)
                   5100:     { echo "$as_me:$LINENO: result: unsupported" >&5
                   5101: echo "${ECHO_T}unsupported" >&6; } ;;
1.16      millert  5102:   *)
1.27      millert  5103:     CC="$CC $ac_cv_prog_cc_c89"
                   5104:     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
                   5105: echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.16      millert  5106: esac
                   5107:
1.27      millert  5108:
                   5109: ac_ext=c
                   5110: ac_cpp='$CPP $CPPFLAGS'
                   5111: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5112: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5113: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   5114:
                   5115:
                   5116: { echo "$as_me:$LINENO: checking for library containing strerror" >&5
                   5117: echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
                   5118: if test "${ac_cv_search_strerror+set}" = set; then
                   5119:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5120: else
                   5121:   ac_func_search_save_LIBS=$LIBS
1.16      millert  5122: cat >conftest.$ac_ext <<_ACEOF
                   5123: /* confdefs.h.  */
                   5124: _ACEOF
                   5125: cat confdefs.h >>conftest.$ac_ext
                   5126: cat >>conftest.$ac_ext <<_ACEOF
                   5127: /* end confdefs.h.  */
1.27      millert  5128:
                   5129: /* Override any GCC internal prototype to avoid an error.
                   5130:    Use char because int might match the return type of a GCC
                   5131:    builtin and then its argument prototype would still apply.  */
                   5132: #ifdef __cplusplus
                   5133: extern "C"
                   5134: #endif
                   5135: char strerror ();
1.16      millert  5136: int
                   5137: main ()
                   5138: {
1.27      millert  5139: return strerror ();
1.16      millert  5140:   ;
                   5141:   return 0;
                   5142: }
                   5143: _ACEOF
1.27      millert  5144: for ac_lib in '' cposix; do
                   5145:   if test -z "$ac_lib"; then
                   5146:     ac_res="none required"
                   5147:   else
                   5148:     ac_res=-l$ac_lib
                   5149:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   5150:   fi
                   5151:   rm -f conftest.$ac_objext conftest$ac_exeext
                   5152: if { (ac_try="$ac_link"
                   5153: case "(($ac_try" in
                   5154:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5155:   *) ac_try_echo=$ac_try;;
                   5156: esac
                   5157: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5158:   (eval "$ac_link") 2>conftest.er1
1.16      millert  5159:   ac_status=$?
1.25      millert  5160:   grep -v '^ *+' conftest.er1 >conftest.err
                   5161:   rm -f conftest.er1
                   5162:   cat conftest.err >&5
1.16      millert  5163:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  5164:   (exit $ac_status); } && {
                   5165:         test -z "$ac_c_werror_flag" ||
                   5166:         test ! -s conftest.err
                   5167:        } && test -s conftest$ac_exeext &&
                   5168:        $as_test_x conftest$ac_exeext; then
                   5169:   ac_cv_search_strerror=$ac_res
1.9       millert  5170: else
                   5171:   echo "$as_me: failed program was:" >&5
1.16      millert  5172: sed 's/^/| /' conftest.$ac_ext >&5
                   5173:
1.27      millert  5174:
                   5175: fi
                   5176:
                   5177: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   5178:       conftest$ac_exeext
                   5179:   if test "${ac_cv_search_strerror+set}" = set; then
                   5180:   break
1.9       millert  5181: fi
1.27      millert  5182: done
1.16      millert  5183: if test "${ac_cv_search_strerror+set}" = set; then
1.27      millert  5184:   :
1.9       millert  5185: else
1.27      millert  5186:   ac_cv_search_strerror=no
1.16      millert  5187: fi
1.27      millert  5188: rm conftest.$ac_ext
1.16      millert  5189: LIBS=$ac_func_search_save_LIBS
1.9       millert  5190: fi
1.27      millert  5191: { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
                   5192: echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
                   5193: ac_res=$ac_cv_search_strerror
                   5194: if test "$ac_res" != no; then
                   5195:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.9       millert  5196:
                   5197: fi
                   5198:
                   5199: ac_ext=c
                   5200: ac_cpp='$CPP $CPPFLAGS'
                   5201: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5202: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5203: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.27      millert  5204: { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
                   5205: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1.1       millert  5206: # On Suns, sometimes $CPP names a directory.
                   5207: if test -n "$CPP" && test -d "$CPP"; then
                   5208:   CPP=
                   5209: fi
                   5210: if test -z "$CPP"; then
1.9       millert  5211:   if test "${ac_cv_prog_CPP+set}" = set; then
                   5212:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5213: else
1.9       millert  5214:       # Double quotes because CPP needs to be expanded
                   5215:     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
                   5216:     do
                   5217:       ac_preproc_ok=false
                   5218: for ac_c_preproc_warn_flag in '' yes
                   5219: do
                   5220:   # Use a header file that comes with gcc, so configuring glibc
                   5221:   # with a fresh cross-compiler works.
1.16      millert  5222:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5223:   # <limits.h> exists even on freestanding compilers.
1.1       millert  5224:   # On the NeXT, cc -E runs the code through the compiler's parser,
1.9       millert  5225:   # not just through cpp. "Syntax error" is here to catch this case.
                   5226:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  5227: /* confdefs.h.  */
                   5228: _ACEOF
                   5229: cat confdefs.h >>conftest.$ac_ext
                   5230: cat >>conftest.$ac_ext <<_ACEOF
                   5231: /* end confdefs.h.  */
                   5232: #ifdef __STDC__
                   5233: # include <limits.h>
                   5234: #else
                   5235: # include <assert.h>
                   5236: #endif
1.25      millert  5237:                     Syntax error
1.9       millert  5238: _ACEOF
1.27      millert  5239: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   5240: case "(($ac_try" in
                   5241:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5242:   *) ac_try_echo=$ac_try;;
                   5243: esac
                   5244: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5245:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  5246:   ac_status=$?
1.16      millert  5247:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  5248:   rm -f conftest.er1
                   5249:   cat conftest.err >&5
1.16      millert  5250:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  5251:   (exit $ac_status); } >/dev/null && {
                   5252:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   5253:         test ! -s conftest.err
                   5254:        }; then
1.1       millert  5255:   :
                   5256: else
1.9       millert  5257:   echo "$as_me: failed program was:" >&5
1.16      millert  5258: sed 's/^/| /' conftest.$ac_ext >&5
                   5259:
1.9       millert  5260:   # Broken: fails on valid input.
                   5261: continue
                   5262: fi
1.27      millert  5263:
1.9       millert  5264: rm -f conftest.err conftest.$ac_ext
                   5265:
1.27      millert  5266:   # OK, works on sane cases.  Now check whether nonexistent headers
1.9       millert  5267:   # can be detected and how.
                   5268:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  5269: /* confdefs.h.  */
                   5270: _ACEOF
                   5271: cat confdefs.h >>conftest.$ac_ext
                   5272: cat >>conftest.$ac_ext <<_ACEOF
                   5273: /* end confdefs.h.  */
1.9       millert  5274: #include <ac_nonexistent.h>
                   5275: _ACEOF
1.27      millert  5276: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   5277: case "(($ac_try" in
                   5278:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5279:   *) ac_try_echo=$ac_try;;
                   5280: esac
                   5281: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5282:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  5283:   ac_status=$?
1.16      millert  5284:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  5285:   rm -f conftest.er1
                   5286:   cat conftest.err >&5
1.16      millert  5287:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  5288:   (exit $ac_status); } >/dev/null && {
                   5289:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   5290:         test ! -s conftest.err
                   5291:        }; then
1.9       millert  5292:   # Broken: success on invalid input.
                   5293: continue
                   5294: else
                   5295:   echo "$as_me: failed program was:" >&5
1.16      millert  5296: sed 's/^/| /' conftest.$ac_ext >&5
                   5297:
1.9       millert  5298:   # Passes both tests.
                   5299: ac_preproc_ok=:
                   5300: break
                   5301: fi
1.27      millert  5302:
1.9       millert  5303: rm -f conftest.err conftest.$ac_ext
                   5304:
                   5305: done
                   5306: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   5307: rm -f conftest.err conftest.$ac_ext
                   5308: if $ac_preproc_ok; then
                   5309:   break
                   5310: fi
                   5311:
                   5312:     done
                   5313:     ac_cv_prog_CPP=$CPP
                   5314:
                   5315: fi
                   5316:   CPP=$ac_cv_prog_CPP
                   5317: else
                   5318:   ac_cv_prog_CPP=$CPP
                   5319: fi
1.27      millert  5320: { echo "$as_me:$LINENO: result: $CPP" >&5
                   5321: echo "${ECHO_T}$CPP" >&6; }
1.9       millert  5322: ac_preproc_ok=false
                   5323: for ac_c_preproc_warn_flag in '' yes
                   5324: do
                   5325:   # Use a header file that comes with gcc, so configuring glibc
                   5326:   # with a fresh cross-compiler works.
1.16      millert  5327:   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   5328:   # <limits.h> exists even on freestanding compilers.
1.9       millert  5329:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   5330:   # not just through cpp. "Syntax error" is here to catch this case.
                   5331:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  5332: /* confdefs.h.  */
                   5333: _ACEOF
                   5334: cat confdefs.h >>conftest.$ac_ext
                   5335: cat >>conftest.$ac_ext <<_ACEOF
                   5336: /* end confdefs.h.  */
                   5337: #ifdef __STDC__
                   5338: # include <limits.h>
                   5339: #else
                   5340: # include <assert.h>
                   5341: #endif
1.25      millert  5342:                     Syntax error
1.9       millert  5343: _ACEOF
1.27      millert  5344: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   5345: case "(($ac_try" in
                   5346:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5347:   *) ac_try_echo=$ac_try;;
                   5348: esac
                   5349: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5350:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  5351:   ac_status=$?
1.16      millert  5352:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  5353:   rm -f conftest.er1
                   5354:   cat conftest.err >&5
1.16      millert  5355:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  5356:   (exit $ac_status); } >/dev/null && {
                   5357:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   5358:         test ! -s conftest.err
                   5359:        }; then
1.1       millert  5360:   :
                   5361: else
1.9       millert  5362:   echo "$as_me: failed program was:" >&5
1.16      millert  5363: sed 's/^/| /' conftest.$ac_ext >&5
                   5364:
1.9       millert  5365:   # Broken: fails on valid input.
                   5366: continue
1.1       millert  5367: fi
1.27      millert  5368:
1.9       millert  5369: rm -f conftest.err conftest.$ac_ext
                   5370:
1.27      millert  5371:   # OK, works on sane cases.  Now check whether nonexistent headers
1.9       millert  5372:   # can be detected and how.
                   5373:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  5374: /* confdefs.h.  */
                   5375: _ACEOF
                   5376: cat confdefs.h >>conftest.$ac_ext
                   5377: cat >>conftest.$ac_ext <<_ACEOF
                   5378: /* end confdefs.h.  */
1.9       millert  5379: #include <ac_nonexistent.h>
                   5380: _ACEOF
1.27      millert  5381: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   5382: case "(($ac_try" in
                   5383:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   5384:   *) ac_try_echo=$ac_try;;
                   5385: esac
                   5386: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   5387:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  5388:   ac_status=$?
1.16      millert  5389:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  5390:   rm -f conftest.er1
                   5391:   cat conftest.err >&5
1.16      millert  5392:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  5393:   (exit $ac_status); } >/dev/null && {
                   5394:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   5395:         test ! -s conftest.err
                   5396:        }; then
1.9       millert  5397:   # Broken: success on invalid input.
                   5398: continue
1.1       millert  5399: else
1.9       millert  5400:   echo "$as_me: failed program was:" >&5
1.16      millert  5401: sed 's/^/| /' conftest.$ac_ext >&5
                   5402:
1.9       millert  5403:   # Passes both tests.
                   5404: ac_preproc_ok=:
                   5405: break
1.1       millert  5406: fi
1.27      millert  5407:
1.9       millert  5408: rm -f conftest.err conftest.$ac_ext
1.1       millert  5409:
1.9       millert  5410: done
                   5411: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
                   5412: rm -f conftest.err conftest.$ac_ext
                   5413: if $ac_preproc_ok; then
                   5414:   :
1.1       millert  5415: else
1.16      millert  5416:   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
                   5417: See \`config.log' for more details." >&5
                   5418: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
                   5419: See \`config.log' for more details." >&2;}
1.9       millert  5420:    { (exit 1); exit 1; }; }
1.1       millert  5421: fi
                   5422:
1.9       millert  5423: ac_ext=c
                   5424: ac_cpp='$CPP $CPPFLAGS'
                   5425: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   5426: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   5427: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1       millert  5428:
1.16      millert  5429:
1.23      millert  5430: ac_aux_dir=
1.27      millert  5431: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
                   5432:   if test -f "$ac_dir/install-sh"; then
1.23      millert  5433:     ac_aux_dir=$ac_dir
                   5434:     ac_install_sh="$ac_aux_dir/install-sh -c"
                   5435:     break
1.27      millert  5436:   elif test -f "$ac_dir/install.sh"; then
1.23      millert  5437:     ac_aux_dir=$ac_dir
                   5438:     ac_install_sh="$ac_aux_dir/install.sh -c"
                   5439:     break
1.27      millert  5440:   elif test -f "$ac_dir/shtool"; then
1.23      millert  5441:     ac_aux_dir=$ac_dir
                   5442:     ac_install_sh="$ac_aux_dir/shtool install -c"
                   5443:     break
                   5444:   fi
                   5445: done
                   5446: if test -z "$ac_aux_dir"; then
1.27      millert  5447:   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
                   5448: echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1.23      millert  5449:    { (exit 1); exit 1; }; }
1.1       millert  5450: fi
1.27      millert  5451:
                   5452: # These three variables are undocumented and unsupported,
                   5453: # and are intended to be withdrawn in a future Autoconf release.
                   5454: # They can cause serious problems if a builder's source tree is in a directory
                   5455: # whose full name contains unusual characters.
                   5456: ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
                   5457: ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
                   5458: ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
                   5459:
1.23      millert  5460:
                   5461: # Make sure we can run config.sub.
1.27      millert  5462: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
                   5463:   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
                   5464: echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1.23      millert  5465:    { (exit 1); exit 1; }; }
1.1       millert  5466:
1.27      millert  5467: { echo "$as_me:$LINENO: checking build system type" >&5
                   5468: echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1.23      millert  5469: if test "${ac_cv_build+set}" = set; then
1.9       millert  5470:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5471: else
1.27      millert  5472:   ac_build_alias=$build_alias
                   5473: test "x$ac_build_alias" = x &&
                   5474:   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
                   5475: test "x$ac_build_alias" = x &&
1.23      millert  5476:   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
                   5477: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
                   5478:    { (exit 1); exit 1; }; }
1.27      millert  5479: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
                   5480:   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
                   5481: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1.23      millert  5482:    { (exit 1); exit 1; }; }
1.9       millert  5483:
1.1       millert  5484: fi
1.27      millert  5485: { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
                   5486: echo "${ECHO_T}$ac_cv_build" >&6; }
                   5487: case $ac_cv_build in
                   5488: *-*-*) ;;
                   5489: *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
                   5490: echo "$as_me: error: invalid value of canonical build" >&2;}
                   5491:    { (exit 1); exit 1; }; };;
                   5492: esac
1.23      millert  5493: build=$ac_cv_build
1.27      millert  5494: ac_save_IFS=$IFS; IFS='-'
                   5495: set x $ac_cv_build
                   5496: shift
                   5497: build_cpu=$1
                   5498: build_vendor=$2
                   5499: shift; shift
                   5500: # Remember, the first character of IFS is used to create $*,
                   5501: # except with old shells:
                   5502: build_os=$*
                   5503: IFS=$ac_save_IFS
                   5504: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.23      millert  5505:
                   5506:
1.27      millert  5507: { echo "$as_me:$LINENO: checking host system type" >&5
                   5508: echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1.23      millert  5509: if test "${ac_cv_host+set}" = set; then
                   5510:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  5511: else
1.27      millert  5512:   if test "x$host_alias" = x; then
                   5513:   ac_cv_host=$ac_cv_build
                   5514: else
                   5515:   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
                   5516:     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
                   5517: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1.23      millert  5518:    { (exit 1); exit 1; }; }
1.27      millert  5519: fi
1.23      millert  5520:
1.1       millert  5521: fi
1.27      millert  5522: { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
                   5523: echo "${ECHO_T}$ac_cv_host" >&6; }
                   5524: case $ac_cv_host in
                   5525: *-*-*) ;;
                   5526: *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
                   5527: echo "$as_me: error: invalid value of canonical host" >&2;}
                   5528:    { (exit 1); exit 1; }; };;
                   5529: esac
1.23      millert  5530: host=$ac_cv_host
1.27      millert  5531: ac_save_IFS=$IFS; IFS='-'
                   5532: set x $ac_cv_host
                   5533: shift
                   5534: host_cpu=$1
                   5535: host_vendor=$2
                   5536: shift; shift
                   5537: # Remember, the first character of IFS is used to create $*,
                   5538: # except with old shells:
                   5539: host_os=$*
                   5540: IFS=$ac_save_IFS
                   5541: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.1       millert  5542:
1.23      millert  5543:
1.27      millert  5544: # Check whether --enable-static was given.
                   5545: if test "${enable_static+set}" = set; then
                   5546:   enableval=$enable_static; p=${PACKAGE-default}
                   5547:     case $enableval in
                   5548:     yes) enable_static=yes ;;
                   5549:     no) enable_static=no ;;
                   5550:     *)
                   5551:      enable_static=no
                   5552:       # Look at the argument we got.  We use all the common list separators.
                   5553:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   5554:       for pkg in $enableval; do
                   5555:        IFS="$lt_save_ifs"
                   5556:        if test "X$pkg" = "X$p"; then
                   5557:          enable_static=yes
                   5558:        fi
                   5559:       done
                   5560:       IFS="$lt_save_ifs"
                   5561:       ;;
                   5562:     esac
                   5563: else
                   5564:   enable_static=no
                   5565: fi
1.23      millert  5566:
                   5567:
                   5568:
1.40      millert  5569:
                   5570:
1.27      millert  5571: # Check whether --enable-shared was given.
                   5572: if test "${enable_shared+set}" = set; then
                   5573:   enableval=$enable_shared; p=${PACKAGE-default}
                   5574:     case $enableval in
                   5575:     yes) enable_shared=yes ;;
                   5576:     no) enable_shared=no ;;
                   5577:     *)
                   5578:       enable_shared=no
                   5579:       # Look at the argument we got.  We use all the common list separators.
                   5580:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   5581:       for pkg in $enableval; do
                   5582:        IFS="$lt_save_ifs"
                   5583:        if test "X$pkg" = "X$p"; then
                   5584:          enable_shared=yes
                   5585:        fi
                   5586:       done
                   5587:       IFS="$lt_save_ifs"
                   5588:       ;;
                   5589:     esac
                   5590: else
                   5591:   enable_shared=yes
                   5592: fi
1.25      millert  5593:
                   5594:
1.27      millert  5595: # Check whether --enable-fast-install was given.
                   5596: if test "${enable_fast_install+set}" = set; then
                   5597:   enableval=$enable_fast_install; p=${PACKAGE-default}
                   5598:     case $enableval in
                   5599:     yes) enable_fast_install=yes ;;
                   5600:     no) enable_fast_install=no ;;
                   5601:     *)
                   5602:       enable_fast_install=no
                   5603:       # Look at the argument we got.  We use all the common list separators.
                   5604:       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
                   5605:       for pkg in $enableval; do
                   5606:        IFS="$lt_save_ifs"
                   5607:        if test "X$pkg" = "X$p"; then
                   5608:          enable_fast_install=yes
                   5609:        fi
                   5610:       done
                   5611:       IFS="$lt_save_ifs"
                   5612:       ;;
                   5613:     esac
                   5614: else
                   5615:   enable_fast_install=yes
                   5616: fi
1.25      millert  5617:
                   5618:
1.27      millert  5619: { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
                   5620: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
1.23      millert  5621: if test "${lt_cv_path_SED+set}" = set; then
                   5622:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5623: else
                   5624:   # Loop through the user's path and test for sed and gsed.
                   5625: # Then use that list of sed's as ones to test for truncation.
                   5626: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5627: for as_dir in $PATH
                   5628: do
                   5629:   IFS=$as_save_IFS
                   5630:   test -z "$as_dir" && as_dir=.
                   5631:   for lt_ac_prog in sed gsed; do
                   5632:     for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  5633:       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
1.23      millert  5634:         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
                   5635:       fi
                   5636:     done
                   5637:   done
                   5638: done
1.27      millert  5639: IFS=$as_save_IFS
1.23      millert  5640: lt_ac_max=0
                   5641: lt_ac_count=0
                   5642: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
                   5643: # along with /bin/sed that truncates output.
                   5644: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
1.27      millert  5645:   test ! -f $lt_ac_sed && continue
1.23      millert  5646:   cat /dev/null > conftest.in
                   5647:   lt_ac_count=0
1.27      millert  5648:   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
1.23      millert  5649:   # Check for GNU sed and select it if it is found.
                   5650:   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
                   5651:     lt_cv_path_SED=$lt_ac_sed
                   5652:     break
                   5653:   fi
                   5654:   while true; do
                   5655:     cat conftest.in conftest.in >conftest.tmp
                   5656:     mv conftest.tmp conftest.in
                   5657:     cp conftest.in conftest.nl
1.27      millert  5658:     echo >>conftest.nl
1.23      millert  5659:     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
                   5660:     cmp -s conftest.out conftest.nl || break
                   5661:     # 10000 chars as input seems more than enough
                   5662:     test $lt_ac_count -gt 10 && break
                   5663:     lt_ac_count=`expr $lt_ac_count + 1`
                   5664:     if test $lt_ac_count -gt $lt_ac_max; then
                   5665:       lt_ac_max=$lt_ac_count
                   5666:       lt_cv_path_SED=$lt_ac_sed
                   5667:     fi
                   5668:   done
                   5669: done
                   5670:
                   5671: fi
                   5672:
1.25      millert  5673: SED=$lt_cv_path_SED
                   5674:
1.27      millert  5675: { echo "$as_me:$LINENO: result: $SED" >&5
                   5676: echo "${ECHO_T}$SED" >&6; }
1.23      millert  5677:
1.27      millert  5678: { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
                   5679: echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
                   5680: if test "${ac_cv_path_GREP+set}" = set; then
                   5681:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5682: else
                   5683:   # Extract the first word of "grep ggrep" to use in msg output
                   5684: if test -z "$GREP"; then
                   5685: set dummy grep ggrep; ac_prog_name=$2
                   5686: if test "${ac_cv_path_GREP+set}" = set; then
                   5687:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5688: else
                   5689:   ac_path_GREP_found=false
                   5690: # Loop through the user's path and test for each of PROGNAME-LIST
                   5691: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5692: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   5693: do
                   5694:   IFS=$as_save_IFS
                   5695:   test -z "$as_dir" && as_dir=.
                   5696:   for ac_prog in grep ggrep; do
                   5697:   for ac_exec_ext in '' $ac_executable_extensions; do
                   5698:     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
                   5699:     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
                   5700:     # Check for GNU ac_path_GREP and select it if it is found.
                   5701:   # Check for GNU $ac_path_GREP
                   5702: case `"$ac_path_GREP" --version 2>&1` in
                   5703: *GNU*)
                   5704:   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
                   5705: *)
                   5706:   ac_count=0
                   5707:   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
                   5708:   while :
                   5709:   do
                   5710:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   5711:     mv "conftest.tmp" "conftest.in"
                   5712:     cp "conftest.in" "conftest.nl"
                   5713:     echo 'GREP' >> "conftest.nl"
                   5714:     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   5715:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   5716:     ac_count=`expr $ac_count + 1`
                   5717:     if test $ac_count -gt ${ac_path_GREP_max-0}; then
                   5718:       # Best one so far, save it but keep looking for a better one
                   5719:       ac_cv_path_GREP="$ac_path_GREP"
                   5720:       ac_path_GREP_max=$ac_count
                   5721:     fi
                   5722:     # 10*(2^10) chars as input seems more than enough
                   5723:     test $ac_count -gt 10 && break
                   5724:   done
                   5725:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   5726: esac
1.25      millert  5727:
                   5728:
1.27      millert  5729:     $ac_path_GREP_found && break 3
                   5730:   done
                   5731: done
1.25      millert  5732:
1.27      millert  5733: done
                   5734: IFS=$as_save_IFS
1.25      millert  5735:
                   5736:
1.27      millert  5737: fi
1.25      millert  5738:
1.27      millert  5739: GREP="$ac_cv_path_GREP"
                   5740: if test -z "$GREP"; then
                   5741:   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
                   5742: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
                   5743:    { (exit 1); exit 1; }; }
                   5744: fi
1.25      millert  5745:
1.27      millert  5746: else
                   5747:   ac_cv_path_GREP=$GREP
                   5748: fi
1.25      millert  5749:
                   5750:
1.27      millert  5751: fi
                   5752: { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
                   5753: echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
                   5754:  GREP="$ac_cv_path_GREP"
1.25      millert  5755:
                   5756:
1.27      millert  5757: { echo "$as_me:$LINENO: checking for egrep" >&5
                   5758: echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
                   5759: if test "${ac_cv_path_EGREP+set}" = set; then
                   5760:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5761: else
                   5762:   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
                   5763:    then ac_cv_path_EGREP="$GREP -E"
                   5764:    else
                   5765:      # Extract the first word of "egrep" to use in msg output
                   5766: if test -z "$EGREP"; then
                   5767: set dummy egrep; ac_prog_name=$2
                   5768: if test "${ac_cv_path_EGREP+set}" = set; then
1.23      millert  5769:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5770: else
1.27      millert  5771:   ac_path_EGREP_found=false
                   5772: # Loop through the user's path and test for each of PROGNAME-LIST
                   5773: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   5774: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
                   5775: do
                   5776:   IFS=$as_save_IFS
                   5777:   test -z "$as_dir" && as_dir=.
                   5778:   for ac_prog in egrep; do
                   5779:   for ac_exec_ext in '' $ac_executable_extensions; do
                   5780:     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
                   5781:     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
                   5782:     # Check for GNU ac_path_EGREP and select it if it is found.
                   5783:   # Check for GNU $ac_path_EGREP
                   5784: case `"$ac_path_EGREP" --version 2>&1` in
                   5785: *GNU*)
                   5786:   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
                   5787: *)
                   5788:   ac_count=0
                   5789:   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
                   5790:   while :
                   5791:   do
                   5792:     cat "conftest.in" "conftest.in" >"conftest.tmp"
                   5793:     mv "conftest.tmp" "conftest.in"
                   5794:     cp "conftest.in" "conftest.nl"
                   5795:     echo 'EGREP' >> "conftest.nl"
                   5796:     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
                   5797:     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
                   5798:     ac_count=`expr $ac_count + 1`
                   5799:     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
                   5800:       # Best one so far, save it but keep looking for a better one
                   5801:       ac_cv_path_EGREP="$ac_path_EGREP"
                   5802:       ac_path_EGREP_max=$ac_count
1.23      millert  5803:     fi
1.27      millert  5804:     # 10*(2^10) chars as input seems more than enough
                   5805:     test $ac_count -gt 10 && break
                   5806:   done
                   5807:   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
                   5808: esac
1.25      millert  5809:
                   5810:
1.27      millert  5811:     $ac_path_EGREP_found && break 3
                   5812:   done
                   5813: done
1.25      millert  5814:
1.27      millert  5815: done
                   5816: IFS=$as_save_IFS
1.25      millert  5817:
                   5818:
1.27      millert  5819: fi
1.25      millert  5820:
1.27      millert  5821: EGREP="$ac_cv_path_EGREP"
                   5822: if test -z "$EGREP"; then
                   5823:   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
                   5824: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
                   5825:    { (exit 1); exit 1; }; }
                   5826: fi
1.25      millert  5827:
1.27      millert  5828: else
                   5829:   ac_cv_path_EGREP=$EGREP
                   5830: fi
1.25      millert  5831:
                   5832:
1.27      millert  5833:    fi
                   5834: fi
                   5835: { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
                   5836: echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
                   5837:  EGREP="$ac_cv_path_EGREP"
1.25      millert  5838:
                   5839:
                   5840:
1.27      millert  5841: # Check whether --with-gnu-ld was given.
1.23      millert  5842: if test "${with_gnu_ld+set}" = set; then
1.27      millert  5843:   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.23      millert  5844: else
                   5845:   with_gnu_ld=no
1.27      millert  5846: fi
                   5847:
1.23      millert  5848: ac_prog=ld
                   5849: if test "$GCC" = yes; then
                   5850:   # Check if gcc -print-prog-name=ld gives a path.
1.27      millert  5851:   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
                   5852: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
1.23      millert  5853:   case $host in
                   5854:   *-*-mingw*)
                   5855:     # gcc leaves a trailing carriage return which upsets mingw
                   5856:     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
                   5857:   *)
                   5858:     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
                   5859:   esac
                   5860:   case $ac_prog in
                   5861:     # Accept absolute paths.
                   5862:     [\\/]* | ?:[\\/]*)
                   5863:       re_direlt='/[^/][^/]*/\.\./'
1.25      millert  5864:       # Canonicalize the pathname of ld
1.27      millert  5865:       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
                   5866:       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
                   5867:        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
1.23      millert  5868:       done
                   5869:       test -z "$LD" && LD="$ac_prog"
                   5870:       ;;
                   5871:   "")
                   5872:     # If it fails, then pretend we aren't using GCC.
                   5873:     ac_prog=ld
                   5874:     ;;
                   5875:   *)
                   5876:     # If it is relative, then search for the first ld in PATH.
                   5877:     with_gnu_ld=unknown
                   5878:     ;;
                   5879:   esac
                   5880: elif test "$with_gnu_ld" = yes; then
1.27      millert  5881:   { echo "$as_me:$LINENO: checking for GNU ld" >&5
                   5882: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
1.23      millert  5883: else
1.27      millert  5884:   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
                   5885: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
1.23      millert  5886: fi
                   5887: if test "${lt_cv_path_LD+set}" = set; then
                   5888:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5889: else
                   5890:   if test -z "$LD"; then
                   5891:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   5892:   for ac_dir in $PATH; do
                   5893:     IFS="$lt_save_ifs"
                   5894:     test -z "$ac_dir" && ac_dir=.
                   5895:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
                   5896:       lt_cv_path_LD="$ac_dir/$ac_prog"
                   5897:       # Check to see if the program is GNU ld.  I'd rather use --version,
1.27      millert  5898:       # but apparently some variants of GNU ld only accept -v.
1.23      millert  5899:       # Break only if it was the GNU/non-GNU ld that we prefer.
                   5900:       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
                   5901:       *GNU* | *'with BFD'*)
                   5902:        test "$with_gnu_ld" != no && break
                   5903:        ;;
                   5904:       *)
                   5905:        test "$with_gnu_ld" != yes && break
                   5906:        ;;
                   5907:       esac
                   5908:     fi
                   5909:   done
                   5910:   IFS="$lt_save_ifs"
                   5911: else
                   5912:   lt_cv_path_LD="$LD" # Let the user override the test with a path.
                   5913: fi
                   5914: fi
                   5915:
                   5916: LD="$lt_cv_path_LD"
                   5917: if test -n "$LD"; then
1.27      millert  5918:   { echo "$as_me:$LINENO: result: $LD" >&5
                   5919: echo "${ECHO_T}$LD" >&6; }
1.23      millert  5920: else
1.27      millert  5921:   { echo "$as_me:$LINENO: result: no" >&5
                   5922: echo "${ECHO_T}no" >&6; }
1.23      millert  5923: fi
                   5924: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
                   5925: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
                   5926:    { (exit 1); exit 1; }; }
1.27      millert  5927: { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
                   5928: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
1.23      millert  5929: if test "${lt_cv_prog_gnu_ld+set}" = set; then
                   5930:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5931: else
1.27      millert  5932:   # I'd rather use --version here, but apparently some GNU lds only accept -v.
1.25      millert  5933: case `$LD -v 2>&1 </dev/null` in
1.23      millert  5934: *GNU* | *'with BFD'*)
                   5935:   lt_cv_prog_gnu_ld=yes
                   5936:   ;;
                   5937: *)
                   5938:   lt_cv_prog_gnu_ld=no
                   5939:   ;;
                   5940: esac
                   5941: fi
1.27      millert  5942: { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
                   5943: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
1.23      millert  5944: with_gnu_ld=$lt_cv_prog_gnu_ld
                   5945:
                   5946:
1.27      millert  5947: { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
                   5948: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
                   5949: if test "${lt_cv_ld_reload_flag+set}" = set; then
                   5950:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5951: else
                   5952:   lt_cv_ld_reload_flag='-r'
                   5953: fi
                   5954: { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
                   5955: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
                   5956: reload_flag=$lt_cv_ld_reload_flag
                   5957: case $reload_flag in
                   5958: "" | " "*) ;;
                   5959: *) reload_flag=" $reload_flag" ;;
                   5960: esac
                   5961: reload_cmds='$LD$reload_flag -o $output$reload_objs'
                   5962: case $host_os in
                   5963:   darwin*)
                   5964:     if test "$GCC" = yes; then
                   5965:       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
                   5966:     else
                   5967:       reload_cmds='$LD$reload_flag -o $output$reload_objs'
                   5968:     fi
                   5969:     ;;
                   5970: esac
1.25      millert  5971:
1.27      millert  5972: { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
                   5973: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
1.23      millert  5974: if test "${lt_cv_path_NM+set}" = set; then
                   5975:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   5976: else
                   5977:   if test -n "$NM"; then
                   5978:   # Let the user override the test.
                   5979:   lt_cv_path_NM="$NM"
                   5980: else
1.27      millert  5981:   lt_nm_to_check="${ac_tool_prefix}nm"
                   5982:   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
                   5983:     lt_nm_to_check="$lt_nm_to_check nm"
                   5984:   fi
                   5985:   for lt_tmp_nm in $lt_nm_to_check; do
                   5986:     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   5987:     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
                   5988:       IFS="$lt_save_ifs"
                   5989:       test -z "$ac_dir" && ac_dir=.
                   5990:       tmp_nm="$ac_dir/$lt_tmp_nm"
                   5991:       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
                   5992:        # Check to see if the nm accepts a BSD-compat flag.
                   5993:        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
                   5994:        #   nm: unknown option "B" ignored
                   5995:        # Tru64's nm complains that /dev/null is an invalid object file
                   5996:        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
                   5997:        */dev/null* | *'Invalid file or object type'*)
                   5998:          lt_cv_path_NM="$tmp_nm -B"
1.23      millert  5999:          break
                   6000:          ;;
                   6001:        *)
1.27      millert  6002:          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
                   6003:          */dev/null*)
                   6004:            lt_cv_path_NM="$tmp_nm -p"
                   6005:            break
                   6006:            ;;
                   6007:          *)
                   6008:            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
                   6009:            continue # so that we can try to find one that supports BSD flags
                   6010:            ;;
                   6011:          esac
1.23      millert  6012:          ;;
                   6013:        esac
1.27      millert  6014:       fi
                   6015:     done
                   6016:     IFS="$lt_save_ifs"
1.23      millert  6017:   done
                   6018:   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
                   6019: fi
                   6020: fi
1.27      millert  6021: { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
                   6022: echo "${ECHO_T}$lt_cv_path_NM" >&6; }
1.23      millert  6023: NM="$lt_cv_path_NM"
1.25      millert  6024:
1.27      millert  6025: { echo "$as_me:$LINENO: checking whether ln -s works" >&5
                   6026: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
1.23      millert  6027: LN_S=$as_ln_s
                   6028: if test "$LN_S" = "ln -s"; then
1.27      millert  6029:   { echo "$as_me:$LINENO: result: yes" >&5
                   6030: echo "${ECHO_T}yes" >&6; }
1.25      millert  6031: else
1.27      millert  6032:   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
                   6033: echo "${ECHO_T}no, using $LN_S" >&6; }
1.25      millert  6034: fi
                   6035:
1.27      millert  6036: { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
                   6037: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
1.23      millert  6038: if test "${lt_cv_deplibs_check_method+set}" = set; then
                   6039:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6040: else
                   6041:   lt_cv_file_magic_cmd='$MAGIC_CMD'
                   6042: lt_cv_file_magic_test_file=
                   6043: lt_cv_deplibs_check_method='unknown'
                   6044: # Need to set the preceding variable on all platforms that support
                   6045: # interlibrary dependencies.
                   6046: # 'none' -- dependencies not supported.
                   6047: # `unknown' -- same as none, but documents that we really don't know.
                   6048: # 'pass_all' -- all dependencies passed with no checks.
                   6049: # 'test_compile' -- check by making test program.
                   6050: # 'file_magic [[regex]]' -- check by looking for files in library path
                   6051: # which responds to the $file_magic_cmd with a given extended regex.
                   6052: # If you have `file' or equivalent on your system and you're not sure
                   6053: # whether `pass_all' will *always* work, you probably want this one.
                   6054:
                   6055: case $host_os in
1.36      millert  6056: aix[4-9]*)
1.23      millert  6057:   lt_cv_deplibs_check_method=pass_all
                   6058:   ;;
                   6059:
                   6060: beos*)
                   6061:   lt_cv_deplibs_check_method=pass_all
                   6062:   ;;
                   6063:
1.25      millert  6064: bsdi[45]*)
1.23      millert  6065:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
                   6066:   lt_cv_file_magic_cmd='/usr/bin/file -L'
                   6067:   lt_cv_file_magic_test_file=/shlib/libc.so
                   6068:   ;;
                   6069:
1.25      millert  6070: cygwin*)
                   6071:   # func_win32_libid is a shell function defined in ltmain.sh
1.23      millert  6072:   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
1.25      millert  6073:   lt_cv_file_magic_cmd='func_win32_libid'
                   6074:   ;;
                   6075:
1.27      millert  6076: mingw* | pw32*)
1.25      millert  6077:   # Base MSYS/MinGW do not provide the 'file' command needed by
1.27      millert  6078:   # func_win32_libid shell function, so use a weaker test based on 'objdump',
                   6079:   # unless we find 'file', for example because we are cross-compiling.
                   6080:   if ( file / ) >/dev/null 2>&1; then
                   6081:     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
                   6082:     lt_cv_file_magic_cmd='func_win32_libid'
                   6083:   else
                   6084:     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
                   6085:     lt_cv_file_magic_cmd='$OBJDUMP -f'
                   6086:   fi
1.23      millert  6087:   ;;
                   6088:
                   6089: darwin* | rhapsody*)
1.25      millert  6090:   lt_cv_deplibs_check_method=pass_all
                   6091:   ;;
1.23      millert  6092:
1.27      millert  6093: freebsd* | dragonfly*)
                   6094:   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1.23      millert  6095:     case $host_cpu in
                   6096:     i*86 )
                   6097:       # Not sure whether the presence of OpenBSD here was a mistake.
                   6098:       # Let's accept both of them until this is cleared up.
1.27      millert  6099:       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.23      millert  6100:       lt_cv_file_magic_cmd=/usr/bin/file
1.27      millert  6101:       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.23      millert  6102:       ;;
                   6103:     esac
                   6104:   else
                   6105:     lt_cv_deplibs_check_method=pass_all
                   6106:   fi
                   6107:   ;;
                   6108:
                   6109: gnu*)
                   6110:   lt_cv_deplibs_check_method=pass_all
                   6111:   ;;
                   6112:
                   6113: hpux10.20* | hpux11*)
                   6114:   lt_cv_file_magic_cmd=/usr/bin/file
1.27      millert  6115:   case $host_cpu in
1.23      millert  6116:   ia64*)
                   6117:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
                   6118:     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
                   6119:     ;;
                   6120:   hppa*64*)
                   6121:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
                   6122:     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
                   6123:     ;;
                   6124:   *)
                   6125:     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
                   6126:     lt_cv_file_magic_test_file=/usr/lib/libc.sl
                   6127:     ;;
                   6128:   esac
                   6129:   ;;
                   6130:
1.27      millert  6131: interix[3-9]*)
                   6132:   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
                   6133:   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
                   6134:   ;;
                   6135:
1.23      millert  6136: irix5* | irix6* | nonstopux*)
1.25      millert  6137:   case $LD in
                   6138:   *-32|*"-32 ") libmagic=32-bit;;
                   6139:   *-n32|*"-n32 ") libmagic=N32;;
                   6140:   *-64|*"-64 ") libmagic=64-bit;;
                   6141:   *) libmagic=never-match;;
1.23      millert  6142:   esac
                   6143:   lt_cv_deplibs_check_method=pass_all
                   6144:   ;;
                   6145:
                   6146: # This must be Linux ELF.
1.27      millert  6147: linux* | k*bsd*-gnu)
1.25      millert  6148:   lt_cv_deplibs_check_method=pass_all
1.23      millert  6149:   ;;
                   6150:
1.27      millert  6151: netbsd*)
                   6152:   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1.23      millert  6153:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
                   6154:   else
                   6155:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
                   6156:   fi
                   6157:   ;;
                   6158:
                   6159: newos6*)
                   6160:   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
                   6161:   lt_cv_file_magic_cmd=/usr/bin/file
                   6162:   lt_cv_file_magic_test_file=/usr/lib/libnls.so
                   6163:   ;;
                   6164:
1.27      millert  6165: nto-qnx*)
                   6166:   lt_cv_deplibs_check_method=unknown
1.23      millert  6167:   ;;
                   6168:
                   6169: openbsd*)
1.27      millert  6170:   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.25      millert  6171:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.23      millert  6172:   else
1.25      millert  6173:     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.23      millert  6174:   fi
                   6175:   ;;
                   6176:
                   6177: osf3* | osf4* | osf5*)
                   6178:   lt_cv_deplibs_check_method=pass_all
                   6179:   ;;
                   6180:
1.27      millert  6181: rdos*)
1.23      millert  6182:   lt_cv_deplibs_check_method=pass_all
                   6183:   ;;
                   6184:
                   6185: solaris*)
                   6186:   lt_cv_deplibs_check_method=pass_all
                   6187:   ;;
                   6188:
1.27      millert  6189: sysv4 | sysv4.3*)
1.23      millert  6190:   case $host_vendor in
                   6191:   motorola)
                   6192:     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1.27      millert  6193:     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1.23      millert  6194:     ;;
                   6195:   ncr)
                   6196:     lt_cv_deplibs_check_method=pass_all
                   6197:     ;;
                   6198:   sequent)
                   6199:     lt_cv_file_magic_cmd='/bin/file'
                   6200:     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
                   6201:     ;;
                   6202:   sni)
                   6203:     lt_cv_file_magic_cmd='/bin/file'
                   6204:     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
                   6205:     lt_cv_file_magic_test_file=/lib/libc.so
                   6206:     ;;
                   6207:   siemens)
                   6208:     lt_cv_deplibs_check_method=pass_all
                   6209:     ;;
1.27      millert  6210:   pc)
                   6211:     lt_cv_deplibs_check_method=pass_all
                   6212:     ;;
1.23      millert  6213:   esac
                   6214:   ;;
                   6215:
1.27      millert  6216: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.25      millert  6217:   lt_cv_deplibs_check_method=pass_all
                   6218:   ;;
1.23      millert  6219: esac
                   6220:
                   6221: fi
1.27      millert  6222: { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
                   6223: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
1.23      millert  6224: file_magic_cmd=$lt_cv_file_magic_cmd
                   6225: deplibs_check_method=$lt_cv_deplibs_check_method
                   6226: test -z "$deplibs_check_method" && deplibs_check_method=unknown
                   6227:
                   6228:
                   6229:
                   6230:
1.27      millert  6231: # If no C compiler was specified, use CC.
                   6232: LTCC=${LTCC-"$CC"}
1.23      millert  6233:
1.27      millert  6234: # If no C compiler flags were specified, use CFLAGS.
                   6235: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.23      millert  6236:
1.27      millert  6237: # Allow CC to be a program name with arguments.
                   6238: compiler=$CC
1.23      millert  6239:
1.27      millert  6240: # Check whether --enable-libtool-lock was given.
                   6241: if test "${enable_libtool_lock+set}" = set; then
                   6242:   enableval=$enable_libtool_lock;
                   6243: fi
1.23      millert  6244:
1.27      millert  6245: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.23      millert  6246:
1.27      millert  6247: # Some flags need to be propagated to the compiler or linker for good
                   6248: # libtool support.
                   6249: case $host in
                   6250: ia64-*-hpux*)
                   6251:   # Find out which ABI we are using.
                   6252:   echo 'int i;' > conftest.$ac_ext
                   6253:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   6254:   (eval $ac_compile) 2>&5
                   6255:   ac_status=$?
                   6256:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6257:   (exit $ac_status); }; then
                   6258:     case `/usr/bin/file conftest.$ac_objext` in
                   6259:     *ELF-32*)
                   6260:       HPUX_IA64_MODE="32"
                   6261:       ;;
                   6262:     *ELF-64*)
                   6263:       HPUX_IA64_MODE="64"
                   6264:       ;;
                   6265:     esac
                   6266:   fi
                   6267:   rm -rf conftest*
                   6268:   ;;
                   6269: *-*-irix6*)
                   6270:   # Find out which ABI we are using.
1.41    ! millert  6271:   echo '#line 6271 "configure"' > conftest.$ac_ext
1.27      millert  6272:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   6273:   (eval $ac_compile) 2>&5
                   6274:   ac_status=$?
                   6275:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6276:   (exit $ac_status); }; then
                   6277:    if test "$lt_cv_prog_gnu_ld" = yes; then
                   6278:     case `/usr/bin/file conftest.$ac_objext` in
                   6279:     *32-bit*)
                   6280:       LD="${LD-ld} -melf32bsmip"
                   6281:       ;;
                   6282:     *N32*)
                   6283:       LD="${LD-ld} -melf32bmipn32"
                   6284:       ;;
                   6285:     *64-bit*)
                   6286:       LD="${LD-ld} -melf64bmip"
                   6287:       ;;
                   6288:     esac
                   6289:    else
                   6290:     case `/usr/bin/file conftest.$ac_objext` in
                   6291:     *32-bit*)
                   6292:       LD="${LD-ld} -32"
                   6293:       ;;
                   6294:     *N32*)
                   6295:       LD="${LD-ld} -n32"
                   6296:       ;;
                   6297:     *64-bit*)
                   6298:       LD="${LD-ld} -64"
                   6299:       ;;
                   6300:     esac
                   6301:    fi
                   6302:   fi
                   6303:   rm -rf conftest*
                   6304:   ;;
1.23      millert  6305:
1.27      millert  6306: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
                   6307: s390*-*linux*|sparc*-*linux*)
                   6308:   # Find out which ABI we are using.
                   6309:   echo 'int i;' > conftest.$ac_ext
                   6310:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   6311:   (eval $ac_compile) 2>&5
                   6312:   ac_status=$?
                   6313:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6314:   (exit $ac_status); }; then
                   6315:     case `/usr/bin/file conftest.o` in
                   6316:     *32-bit*)
                   6317:       case $host in
                   6318:         x86_64-*kfreebsd*-gnu)
                   6319:           LD="${LD-ld} -m elf_i386_fbsd"
                   6320:           ;;
                   6321:         x86_64-*linux*)
                   6322:           LD="${LD-ld} -m elf_i386"
                   6323:           ;;
                   6324:         ppc64-*linux*|powerpc64-*linux*)
                   6325:           LD="${LD-ld} -m elf32ppclinux"
                   6326:           ;;
                   6327:         s390x-*linux*)
                   6328:           LD="${LD-ld} -m elf_s390"
                   6329:           ;;
                   6330:         sparc64-*linux*)
                   6331:           LD="${LD-ld} -m elf32_sparc"
                   6332:           ;;
                   6333:       esac
                   6334:       ;;
                   6335:     *64-bit*)
                   6336:       case $host in
                   6337:         x86_64-*kfreebsd*-gnu)
                   6338:           LD="${LD-ld} -m elf_x86_64_fbsd"
                   6339:           ;;
                   6340:         x86_64-*linux*)
                   6341:           LD="${LD-ld} -m elf_x86_64"
                   6342:           ;;
                   6343:         ppc*-*linux*|powerpc*-*linux*)
                   6344:           LD="${LD-ld} -m elf64ppc"
                   6345:           ;;
                   6346:         s390*-*linux*)
                   6347:           LD="${LD-ld} -m elf64_s390"
                   6348:           ;;
                   6349:         sparc*-*linux*)
                   6350:           LD="${LD-ld} -m elf64_sparc"
                   6351:           ;;
                   6352:       esac
                   6353:       ;;
                   6354:     esac
                   6355:   fi
                   6356:   rm -rf conftest*
                   6357:   ;;
1.25      millert  6358:
1.27      millert  6359: *-*-sco3.2v5*)
                   6360:   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
                   6361:   SAVE_CFLAGS="$CFLAGS"
                   6362:   CFLAGS="$CFLAGS -belf"
                   6363:   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
                   6364: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
                   6365: if test "${lt_cv_cc_needs_belf+set}" = set; then
1.23      millert  6366:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6367: else
1.27      millert  6368:   ac_ext=c
                   6369: ac_cpp='$CPP $CPPFLAGS'
                   6370: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   6371: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   6372: ac_compiler_gnu=$ac_cv_c_compiler_gnu
                   6373:
                   6374:      cat >conftest.$ac_ext <<_ACEOF
                   6375: /* confdefs.h.  */
                   6376: _ACEOF
                   6377: cat confdefs.h >>conftest.$ac_ext
                   6378: cat >>conftest.$ac_ext <<_ACEOF
                   6379: /* end confdefs.h.  */
                   6380:
                   6381: int
                   6382: main ()
                   6383: {
1.23      millert  6384:
1.27      millert  6385:   ;
                   6386:   return 0;
                   6387: }
                   6388: _ACEOF
                   6389: rm -f conftest.$ac_objext conftest$ac_exeext
                   6390: if { (ac_try="$ac_link"
                   6391: case "(($ac_try" in
                   6392:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6393:   *) ac_try_echo=$ac_try;;
                   6394: esac
                   6395: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6396:   (eval "$ac_link") 2>conftest.er1
                   6397:   ac_status=$?
                   6398:   grep -v '^ *+' conftest.er1 >conftest.err
                   6399:   rm -f conftest.er1
                   6400:   cat conftest.err >&5
                   6401:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6402:   (exit $ac_status); } && {
                   6403:         test -z "$ac_c_werror_flag" ||
                   6404:         test ! -s conftest.err
                   6405:        } && test -s conftest$ac_exeext &&
                   6406:        $as_test_x conftest$ac_exeext; then
                   6407:   lt_cv_cc_needs_belf=yes
1.25      millert  6408: else
1.27      millert  6409:   echo "$as_me: failed program was:" >&5
                   6410: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6411:
1.27      millert  6412:        lt_cv_cc_needs_belf=no
1.25      millert  6413: fi
1.23      millert  6414:
1.27      millert  6415: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   6416:       conftest$ac_exeext conftest.$ac_ext
                   6417:      ac_ext=c
                   6418: ac_cpp='$CPP $CPPFLAGS'
                   6419: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   6420: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   6421: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23      millert  6422:
                   6423: fi
1.27      millert  6424: { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
                   6425: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
                   6426:   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
                   6427:     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
                   6428:     CFLAGS="$SAVE_CFLAGS"
                   6429:   fi
                   6430:   ;;
                   6431: sparc*-*solaris*)
                   6432:   # Find out which ABI we are using.
                   6433:   echo 'int i;' > conftest.$ac_ext
                   6434:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   6435:   (eval $ac_compile) 2>&5
                   6436:   ac_status=$?
                   6437:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6438:   (exit $ac_status); }; then
                   6439:     case `/usr/bin/file conftest.o` in
                   6440:     *64-bit*)
                   6441:       case $lt_cv_prog_gnu_ld in
                   6442:       yes*) LD="${LD-ld} -m elf64_sparc" ;;
1.36      millert  6443:       *)
                   6444:         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
                   6445:          LD="${LD-ld} -64"
                   6446:        fi
                   6447:        ;;
1.27      millert  6448:       esac
                   6449:       ;;
                   6450:     esac
                   6451:   fi
                   6452:   rm -rf conftest*
                   6453:   ;;
1.25      millert  6454:
                   6455:
1.27      millert  6456: esac
1.25      millert  6457:
1.27      millert  6458: need_locks="$enable_libtool_lock"
1.25      millert  6459:
                   6460:
                   6461:
1.27      millert  6462: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
                   6463: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
                   6464: if test "${ac_cv_header_stdc+set}" = set; then
                   6465:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6466: else
                   6467:   cat >conftest.$ac_ext <<_ACEOF
                   6468: /* confdefs.h.  */
                   6469: _ACEOF
                   6470: cat confdefs.h >>conftest.$ac_ext
                   6471: cat >>conftest.$ac_ext <<_ACEOF
                   6472: /* end confdefs.h.  */
                   6473: #include <stdlib.h>
                   6474: #include <stdarg.h>
                   6475: #include <string.h>
                   6476: #include <float.h>
1.23      millert  6477:
1.27      millert  6478: int
                   6479: main ()
                   6480: {
1.23      millert  6481:
1.27      millert  6482:   ;
                   6483:   return 0;
                   6484: }
                   6485: _ACEOF
                   6486: rm -f conftest.$ac_objext
                   6487: if { (ac_try="$ac_compile"
                   6488: case "(($ac_try" in
                   6489:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6490:   *) ac_try_echo=$ac_try;;
                   6491: esac
                   6492: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6493:   (eval "$ac_compile") 2>conftest.er1
                   6494:   ac_status=$?
                   6495:   grep -v '^ *+' conftest.er1 >conftest.err
                   6496:   rm -f conftest.er1
                   6497:   cat conftest.err >&5
                   6498:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6499:   (exit $ac_status); } && {
                   6500:         test -z "$ac_c_werror_flag" ||
                   6501:         test ! -s conftest.err
                   6502:        } && test -s conftest.$ac_objext; then
                   6503:   ac_cv_header_stdc=yes
                   6504: else
                   6505:   echo "$as_me: failed program was:" >&5
                   6506: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6507:
1.27      millert  6508:        ac_cv_header_stdc=no
                   6509: fi
1.23      millert  6510:
1.27      millert  6511: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.23      millert  6512:
1.27      millert  6513: if test $ac_cv_header_stdc = yes; then
                   6514:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   6515:   cat >conftest.$ac_ext <<_ACEOF
                   6516: /* confdefs.h.  */
                   6517: _ACEOF
                   6518: cat confdefs.h >>conftest.$ac_ext
                   6519: cat >>conftest.$ac_ext <<_ACEOF
                   6520: /* end confdefs.h.  */
                   6521: #include <string.h>
1.23      millert  6522:
1.27      millert  6523: _ACEOF
                   6524: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6525:   $EGREP "memchr" >/dev/null 2>&1; then
                   6526:   :
1.25      millert  6527: else
1.27      millert  6528:   ac_cv_header_stdc=no
1.25      millert  6529: fi
1.27      millert  6530: rm -f conftest*
1.23      millert  6531:
1.25      millert  6532: fi
1.23      millert  6533:
1.27      millert  6534: if test $ac_cv_header_stdc = yes; then
                   6535:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   6536:   cat >conftest.$ac_ext <<_ACEOF
                   6537: /* confdefs.h.  */
                   6538: _ACEOF
                   6539: cat confdefs.h >>conftest.$ac_ext
                   6540: cat >>conftest.$ac_ext <<_ACEOF
                   6541: /* end confdefs.h.  */
                   6542: #include <stdlib.h>
                   6543:
                   6544: _ACEOF
                   6545: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6546:   $EGREP "free" >/dev/null 2>&1; then
                   6547:   :
1.25      millert  6548: else
1.27      millert  6549:   ac_cv_header_stdc=no
1.23      millert  6550: fi
1.27      millert  6551: rm -f conftest*
1.23      millert  6552:
                   6553: fi
                   6554:
1.27      millert  6555: if test $ac_cv_header_stdc = yes; then
                   6556:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   6557:   if test "$cross_compiling" = yes; then
                   6558:   :
                   6559: else
                   6560:   cat >conftest.$ac_ext <<_ACEOF
                   6561: /* confdefs.h.  */
                   6562: _ACEOF
                   6563: cat confdefs.h >>conftest.$ac_ext
                   6564: cat >>conftest.$ac_ext <<_ACEOF
                   6565: /* end confdefs.h.  */
                   6566: #include <ctype.h>
                   6567: #include <stdlib.h>
                   6568: #if ((' ' & 0x0FF) == 0x020)
                   6569: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   6570: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   6571: #else
                   6572: # define ISLOWER(c) \
                   6573:                   (('a' <= (c) && (c) <= 'i') \
                   6574:                     || ('j' <= (c) && (c) <= 'r') \
                   6575:                     || ('s' <= (c) && (c) <= 'z'))
                   6576: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   6577: #endif
1.25      millert  6578:
1.27      millert  6579: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   6580: int
                   6581: main ()
                   6582: {
                   6583:   int i;
                   6584:   for (i = 0; i < 256; i++)
                   6585:     if (XOR (islower (i), ISLOWER (i))
                   6586:        || toupper (i) != TOUPPER (i))
                   6587:       return 2;
                   6588:   return 0;
                   6589: }
                   6590: _ACEOF
                   6591: rm -f conftest$ac_exeext
                   6592: if { (ac_try="$ac_link"
                   6593: case "(($ac_try" in
                   6594:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6595:   *) ac_try_echo=$ac_try;;
                   6596: esac
                   6597: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6598:   (eval "$ac_link") 2>&5
                   6599:   ac_status=$?
                   6600:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6601:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   6602:   { (case "(($ac_try" in
                   6603:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6604:   *) ac_try_echo=$ac_try;;
                   6605: esac
                   6606: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6607:   (eval "$ac_try") 2>&5
                   6608:   ac_status=$?
                   6609:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6610:   (exit $ac_status); }; }; then
                   6611:   :
1.25      millert  6612: else
1.27      millert  6613:   echo "$as_me: program exited with status $ac_status" >&5
                   6614: echo "$as_me: failed program was:" >&5
                   6615: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6616:
1.27      millert  6617: ( exit $ac_status )
                   6618: ac_cv_header_stdc=no
1.25      millert  6619: fi
1.27      millert  6620: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.23      millert  6621: fi
                   6622:
                   6623:
                   6624: fi
                   6625: fi
1.27      millert  6626: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
                   6627: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
                   6628: if test $ac_cv_header_stdc = yes; then
                   6629:
                   6630: cat >>confdefs.h <<\_ACEOF
                   6631: #define STDC_HEADERS 1
                   6632: _ACEOF
1.23      millert  6633:
                   6634: fi
                   6635:
1.27      millert  6636: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.23      millert  6637:
                   6638:
                   6639:
                   6640:
                   6641:
                   6642:
                   6643:
                   6644:
                   6645:
1.27      millert  6646: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
                   6647:                  inttypes.h stdint.h unistd.h
                   6648: do
                   6649: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   6650: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   6651: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   6652: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   6653:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6654: else
                   6655:   cat >conftest.$ac_ext <<_ACEOF
                   6656: /* confdefs.h.  */
                   6657: _ACEOF
                   6658: cat confdefs.h >>conftest.$ac_ext
                   6659: cat >>conftest.$ac_ext <<_ACEOF
                   6660: /* end confdefs.h.  */
                   6661: $ac_includes_default
1.23      millert  6662:
1.27      millert  6663: #include <$ac_header>
                   6664: _ACEOF
                   6665: rm -f conftest.$ac_objext
                   6666: if { (ac_try="$ac_compile"
                   6667: case "(($ac_try" in
                   6668:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6669:   *) ac_try_echo=$ac_try;;
                   6670: esac
                   6671: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6672:   (eval "$ac_compile") 2>conftest.er1
                   6673:   ac_status=$?
                   6674:   grep -v '^ *+' conftest.er1 >conftest.err
                   6675:   rm -f conftest.er1
                   6676:   cat conftest.err >&5
                   6677:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6678:   (exit $ac_status); } && {
                   6679:         test -z "$ac_c_werror_flag" ||
                   6680:         test ! -s conftest.err
                   6681:        } && test -s conftest.$ac_objext; then
                   6682:   eval "$as_ac_Header=yes"
                   6683: else
                   6684:   echo "$as_me: failed program was:" >&5
                   6685: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6686:
1.27      millert  6687:        eval "$as_ac_Header=no"
                   6688: fi
1.23      millert  6689:
1.27      millert  6690: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   6691: fi
                   6692: ac_res=`eval echo '${'$as_ac_Header'}'`
                   6693:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   6694: echo "${ECHO_T}$ac_res" >&6; }
                   6695: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   6696:   cat >>confdefs.h <<_ACEOF
                   6697: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   6698: _ACEOF
1.23      millert  6699:
1.27      millert  6700: fi
1.23      millert  6701:
1.27      millert  6702: done
1.23      millert  6703:
                   6704:
                   6705:
1.27      millert  6706: for ac_header in dlfcn.h
                   6707: do
                   6708: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   6709: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   6710:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   6711: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   6712: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   6713:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6714: fi
                   6715: ac_res=`eval echo '${'$as_ac_Header'}'`
                   6716:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   6717: echo "${ECHO_T}$ac_res" >&6; }
                   6718: else
                   6719:   # Is the header compilable?
                   6720: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   6721: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
                   6722: cat >conftest.$ac_ext <<_ACEOF
                   6723: /* confdefs.h.  */
                   6724: _ACEOF
                   6725: cat confdefs.h >>conftest.$ac_ext
                   6726: cat >>conftest.$ac_ext <<_ACEOF
                   6727: /* end confdefs.h.  */
                   6728: $ac_includes_default
                   6729: #include <$ac_header>
                   6730: _ACEOF
                   6731: rm -f conftest.$ac_objext
                   6732: if { (ac_try="$ac_compile"
                   6733: case "(($ac_try" in
                   6734:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6735:   *) ac_try_echo=$ac_try;;
                   6736: esac
                   6737: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6738:   (eval "$ac_compile") 2>conftest.er1
                   6739:   ac_status=$?
                   6740:   grep -v '^ *+' conftest.er1 >conftest.err
                   6741:   rm -f conftest.er1
                   6742:   cat conftest.err >&5
                   6743:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6744:   (exit $ac_status); } && {
                   6745:         test -z "$ac_c_werror_flag" ||
                   6746:         test ! -s conftest.err
                   6747:        } && test -s conftest.$ac_objext; then
                   6748:   ac_header_compiler=yes
                   6749: else
                   6750:   echo "$as_me: failed program was:" >&5
                   6751: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6752:
1.27      millert  6753:        ac_header_compiler=no
                   6754: fi
1.23      millert  6755:
1.27      millert  6756: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   6757: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   6758: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.23      millert  6759:
1.27      millert  6760: # Is the header present?
                   6761: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   6762: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
                   6763: cat >conftest.$ac_ext <<_ACEOF
                   6764: /* confdefs.h.  */
                   6765: _ACEOF
                   6766: cat confdefs.h >>conftest.$ac_ext
                   6767: cat >>conftest.$ac_ext <<_ACEOF
                   6768: /* end confdefs.h.  */
                   6769: #include <$ac_header>
                   6770: _ACEOF
                   6771: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   6772: case "(($ac_try" in
                   6773:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   6774:   *) ac_try_echo=$ac_try;;
                   6775: esac
                   6776: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   6777:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
                   6778:   ac_status=$?
                   6779:   grep -v '^ *+' conftest.er1 >conftest.err
                   6780:   rm -f conftest.er1
                   6781:   cat conftest.err >&5
                   6782:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   6783:   (exit $ac_status); } >/dev/null && {
                   6784:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   6785:         test ! -s conftest.err
                   6786:        }; then
                   6787:   ac_header_preproc=yes
                   6788: else
                   6789:   echo "$as_me: failed program was:" >&5
                   6790: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  6791:
1.27      millert  6792:   ac_header_preproc=no
                   6793: fi
1.23      millert  6794:
1.27      millert  6795: rm -f conftest.err conftest.$ac_ext
                   6796: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   6797: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.23      millert  6798:
1.27      millert  6799: # So?  What about this header?
                   6800: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   6801:   yes:no: )
                   6802:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   6803: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   6804:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   6805: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   6806:     ac_header_preproc=yes
                   6807:     ;;
                   6808:   no:yes:* )
                   6809:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   6810: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   6811:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   6812: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   6813:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   6814: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   6815:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   6816: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   6817:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   6818: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   6819:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   6820: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.40      millert  6821:     ( cat <<\_ASBOX
                   6822: ## --------------------------------------- ##
                   6823: ## Report this to http://www.sudo.ws/bugs/ ##
                   6824: ## --------------------------------------- ##
                   6825: _ASBOX
                   6826:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.27      millert  6827:     ;;
                   6828: esac
                   6829: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   6830: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   6831: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  6832:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6833: else
1.27      millert  6834:   eval "$as_ac_Header=\$ac_header_preproc"
                   6835: fi
                   6836: ac_res=`eval echo '${'$as_ac_Header'}'`
                   6837:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   6838: echo "${ECHO_T}$ac_res" >&6; }
                   6839:
                   6840: fi
                   6841: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   6842:   cat >>confdefs.h <<_ACEOF
                   6843: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   6844: _ACEOF
                   6845:
                   6846: fi
1.23      millert  6847:
1.27      millert  6848: done
1.23      millert  6849:
                   6850:
1.27      millert  6851: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
                   6852: # find the maximum length of command line arguments
                   6853: { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
                   6854: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
                   6855: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
                   6856:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6857: else
                   6858:     i=0
                   6859:   teststring="ABCD"
                   6860:
                   6861:   case $build_os in
                   6862:   msdosdjgpp*)
                   6863:     # On DJGPP, this test can blow up pretty badly due to problems in libc
                   6864:     # (any single argument exceeding 2000 bytes causes a buffer overrun
                   6865:     # during glob expansion).  Even if it were fixed, the result of this
                   6866:     # check would be larger than it should be.
                   6867:     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
                   6868:     ;;
                   6869:
                   6870:   gnu*)
                   6871:     # Under GNU Hurd, this test is not required because there is
                   6872:     # no limit to the length of command line arguments.
                   6873:     # Libtool will interpret -1 as no limit whatsoever
                   6874:     lt_cv_sys_max_cmd_len=-1;
                   6875:     ;;
                   6876:
                   6877:   cygwin* | mingw*)
                   6878:     # On Win9x/ME, this test blows up -- it succeeds, but takes
                   6879:     # about 5 minutes as the teststring grows exponentially.
                   6880:     # Worse, since 9x/ME are not pre-emptively multitasking,
                   6881:     # you end up with a "frozen" computer, even though with patience
                   6882:     # the test eventually succeeds (with a max line length of 256k).
                   6883:     # Instead, let's just punt: use the minimum linelength reported by
                   6884:     # all of the supported platforms: 8192 (on NT/2K/XP).
                   6885:     lt_cv_sys_max_cmd_len=8192;
                   6886:     ;;
                   6887:
                   6888:   amigaos*)
                   6889:     # On AmigaOS with pdksh, this test takes hours, literally.
                   6890:     # So we just punt and use a minimum line length of 8192.
                   6891:     lt_cv_sys_max_cmd_len=8192;
                   6892:     ;;
                   6893:
                   6894:   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
                   6895:     # This has been around since 386BSD, at least.  Likely further.
                   6896:     if test -x /sbin/sysctl; then
                   6897:       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
                   6898:     elif test -x /usr/sbin/sysctl; then
                   6899:       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
                   6900:     else
                   6901:       lt_cv_sys_max_cmd_len=65536      # usable default for all BSDs
                   6902:     fi
                   6903:     # And add a safety zone
                   6904:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
                   6905:     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
                   6906:     ;;
                   6907:
                   6908:   interix*)
                   6909:     # We know the value 262144 and hardcode it with a safety zone (like BSD)
                   6910:     lt_cv_sys_max_cmd_len=196608
                   6911:     ;;
                   6912:
                   6913:   osf*)
                   6914:     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
                   6915:     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
                   6916:     # nice to cause kernel panics so lets avoid the loop below.
                   6917:     # First set a reasonable default.
                   6918:     lt_cv_sys_max_cmd_len=16384
                   6919:     #
                   6920:     if test -x /sbin/sysconfig; then
                   6921:       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
                   6922:         *1*) lt_cv_sys_max_cmd_len=-1 ;;
                   6923:       esac
                   6924:     fi
                   6925:     ;;
                   6926:   sco3.2v5*)
                   6927:     lt_cv_sys_max_cmd_len=102400
                   6928:     ;;
                   6929:   sysv5* | sco5v6* | sysv4.2uw2*)
                   6930:     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
                   6931:     if test -n "$kargmax"; then
                   6932:       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[        ]//'`
                   6933:     else
                   6934:       lt_cv_sys_max_cmd_len=32768
                   6935:     fi
                   6936:     ;;
                   6937:   *)
                   6938:     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
                   6939:     if test -n "$lt_cv_sys_max_cmd_len"; then
                   6940:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
                   6941:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
                   6942:     else
                   6943:       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
                   6944:       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
                   6945:               = "XX$teststring") >/dev/null 2>&1 &&
                   6946:              new_result=`expr "X$teststring" : ".*" 2>&1` &&
                   6947:              lt_cv_sys_max_cmd_len=$new_result &&
                   6948:              test $i != 17 # 1/2 MB should be enough
                   6949:       do
                   6950:         i=`expr $i + 1`
                   6951:         teststring=$teststring$teststring
                   6952:       done
                   6953:       teststring=
                   6954:       # Add a significant safety factor because C++ compilers can tack on massive
                   6955:       # amounts of additional arguments before passing them to the linker.
                   6956:       # It appears as though 1/2 is a usable value.
                   6957:       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
                   6958:     fi
                   6959:     ;;
                   6960:   esac
                   6961:
                   6962: fi
                   6963:
                   6964: if test -n $lt_cv_sys_max_cmd_len ; then
                   6965:   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
                   6966: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
                   6967: else
                   6968:   { echo "$as_me:$LINENO: result: none" >&5
                   6969: echo "${ECHO_T}none" >&6; }
                   6970: fi
                   6971:
                   6972:
                   6973:
                   6974:
                   6975:
                   6976: # Check for command to grab the raw symbol name followed by C symbol from nm.
                   6977: { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
                   6978: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
                   6979: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
                   6980:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   6981: else
                   6982:
                   6983: # These are sane defaults that work on at least a few old systems.
                   6984: # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
                   6985:
                   6986: # Character class describing NM global symbol codes.
                   6987: symcode='[BCDEGRST]'
                   6988:
                   6989: # Regexp to match symbols that can be accessed directly from C.
                   6990: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
                   6991:
                   6992: # Transform an extracted symbol line into a proper C declaration
                   6993: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
                   6994:
                   6995: # Transform an extracted symbol line into symbol name and symbol address
                   6996: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
1.23      millert  6997:
1.25      millert  6998: # Define system-specific variables.
                   6999: case $host_os in
                   7000: aix*)
                   7001:   symcode='[BCDT]'
                   7002:   ;;
                   7003: cygwin* | mingw* | pw32*)
                   7004:   symcode='[ABCDGISTW]'
                   7005:   ;;
1.27      millert  7006: hpux*) # Its linker distinguishes data from code symbols
1.25      millert  7007:   if test "$host_cpu" = ia64; then
                   7008:     symcode='[ABCDEGRST]'
                   7009:   fi
1.27      millert  7010:   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
                   7011:   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
                   7012:   ;;
                   7013: linux* | k*bsd*-gnu)
                   7014:   if test "$host_cpu" = ia64; then
                   7015:     symcode='[ABCDGIRSTW]'
                   7016:     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
                   7017:     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
                   7018:   fi
1.25      millert  7019:   ;;
                   7020: irix* | nonstopux*)
                   7021:   symcode='[BCDEGRST]'
                   7022:   ;;
                   7023: osf*)
                   7024:   symcode='[BCDEGQRST]'
                   7025:   ;;
1.27      millert  7026: solaris*)
1.25      millert  7027:   symcode='[BDRT]'
                   7028:   ;;
1.27      millert  7029: sco3.2v5*)
                   7030:   symcode='[DT]'
                   7031:   ;;
                   7032: sysv4.2uw2*)
                   7033:   symcode='[DT]'
                   7034:   ;;
                   7035: sysv5* | sco5v6* | unixware* | OpenUNIX*)
                   7036:   symcode='[ABDT]'
                   7037:   ;;
1.25      millert  7038: sysv4)
                   7039:   symcode='[DFNSTU]'
                   7040:   ;;
                   7041: esac
1.23      millert  7042:
1.25      millert  7043: # Handle CRLF in mingw tool chain
                   7044: opt_cr=
                   7045: case $build_os in
                   7046: mingw*)
1.27      millert  7047:   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1.25      millert  7048:   ;;
                   7049: esac
                   7050:
1.27      millert  7051: # If we're using GNU nm, then use its standard symbol codes.
                   7052: case `$NM -V 2>&1` in
                   7053: *GNU* | *'with BFD'*)
                   7054:   symcode='[ABCDGIRSTW]' ;;
                   7055: esac
                   7056:
                   7057: # Try without a prefix undercore, then with it.
1.25      millert  7058: for ac_symprfx in "" "_"; do
                   7059:
1.27      millert  7060:   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
                   7061:   symxfrm="\\1 $ac_symprfx\\2 \\2"
                   7062:
1.25      millert  7063:   # Write the raw and C identifiers.
1.27      millert  7064:   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.23      millert  7065:
1.25      millert  7066:   # Check to see that the pipe works correctly.
                   7067:   pipe_works=no
                   7068:
                   7069:   rm -f conftest*
1.27      millert  7070:   cat > conftest.$ac_ext <<EOF
1.25      millert  7071: #ifdef __cplusplus
                   7072: extern "C" {
                   7073: #endif
                   7074: char nm_test_var;
                   7075: void nm_test_func(){}
                   7076: #ifdef __cplusplus
                   7077: }
                   7078: #endif
                   7079: int main(){nm_test_var='a';nm_test_func();return(0);}
1.27      millert  7080: EOF
1.25      millert  7081:
                   7082:   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   7083:   (eval $ac_compile) 2>&5
1.23      millert  7084:   ac_status=$?
                   7085:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  7086:   (exit $ac_status); }; then
                   7087:     # Now try to grab the symbols.
                   7088:     nlist=conftest.nm
                   7089:     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
                   7090:   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
1.23      millert  7091:   ac_status=$?
                   7092:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  7093:   (exit $ac_status); } && test -s "$nlist"; then
                   7094:       # Try sorting and uniquifying the output.
                   7095:       if sort "$nlist" | uniq > "$nlist"T; then
                   7096:        mv -f "$nlist"T "$nlist"
                   7097:       else
                   7098:        rm -f "$nlist"T
                   7099:       fi
                   7100:
                   7101:       # Make sure that we snagged all the symbols we need.
1.27      millert  7102:       if grep ' nm_test_var$' "$nlist" >/dev/null; then
                   7103:        if grep ' nm_test_func$' "$nlist" >/dev/null; then
                   7104:          cat <<EOF > conftest.$ac_ext
1.25      millert  7105: #ifdef __cplusplus
                   7106: extern "C" {
                   7107: #endif
                   7108:
1.27      millert  7109: EOF
1.25      millert  7110:          # Now generate the symbol file.
1.27      millert  7111:          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
1.23      millert  7112:
1.27      millert  7113:          cat <<EOF >> conftest.$ac_ext
                   7114: #if defined (__STDC__) && __STDC__
                   7115: # define lt_ptr_t void *
                   7116: #else
                   7117: # define lt_ptr_t char *
                   7118: # define const
                   7119: #endif
1.23      millert  7120:
1.27      millert  7121: /* The mapping between symbol names and symbols. */
1.25      millert  7122: const struct {
                   7123:   const char *name;
1.27      millert  7124:   lt_ptr_t address;
1.25      millert  7125: }
1.27      millert  7126: lt_preloaded_symbols[] =
1.23      millert  7127: {
1.27      millert  7128: EOF
                   7129:          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
                   7130:          cat <<\EOF >> conftest.$ac_ext
                   7131:   {0, (lt_ptr_t) 0}
1.25      millert  7132: };
                   7133:
                   7134: #ifdef __cplusplus
1.23      millert  7135: }
1.25      millert  7136: #endif
1.27      millert  7137: EOF
1.25      millert  7138:          # Now try linking the two files.
                   7139:          mv conftest.$ac_objext conftstm.$ac_objext
                   7140:          lt_save_LIBS="$LIBS"
                   7141:          lt_save_CFLAGS="$CFLAGS"
                   7142:          LIBS="conftstm.$ac_objext"
                   7143:          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
                   7144:          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   7145:   (eval $ac_link) 2>&5
1.23      millert  7146:   ac_status=$?
                   7147:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25      millert  7148:   (exit $ac_status); } && test -s conftest${ac_exeext}; then
                   7149:            pipe_works=yes
                   7150:          fi
                   7151:          LIBS="$lt_save_LIBS"
                   7152:          CFLAGS="$lt_save_CFLAGS"
                   7153:        else
                   7154:          echo "cannot find nm_test_func in $nlist" >&5
                   7155:        fi
                   7156:       else
                   7157:        echo "cannot find nm_test_var in $nlist" >&5
                   7158:       fi
                   7159:     else
                   7160:       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
                   7161:     fi
                   7162:   else
                   7163:     echo "$progname: failed program was:" >&5
                   7164:     cat conftest.$ac_ext >&5
                   7165:   fi
1.36      millert  7166:   rm -rf conftest* conftst*
1.25      millert  7167:
                   7168:   # Do not use the global_symbol_pipe unless it works.
                   7169:   if test "$pipe_works" = yes; then
                   7170:     break
                   7171:   else
                   7172:     lt_cv_sys_global_symbol_pipe=
                   7173:   fi
                   7174: done
1.23      millert  7175:
                   7176: fi
                   7177:
1.25      millert  7178: if test -z "$lt_cv_sys_global_symbol_pipe"; then
                   7179:   lt_cv_sys_global_symbol_to_cdecl=
                   7180: fi
                   7181: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.27      millert  7182:   { echo "$as_me:$LINENO: result: failed" >&5
                   7183: echo "${ECHO_T}failed" >&6; }
1.25      millert  7184: else
1.27      millert  7185:   { echo "$as_me:$LINENO: result: ok" >&5
                   7186: echo "${ECHO_T}ok" >&6; }
1.23      millert  7187: fi
1.25      millert  7188:
1.27      millert  7189: { echo "$as_me:$LINENO: checking for objdir" >&5
                   7190: echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
                   7191: if test "${lt_cv_objdir+set}" = set; then
                   7192:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7193: else
                   7194:   rm -f .libs 2>/dev/null
                   7195: mkdir .libs 2>/dev/null
                   7196: if test -d .libs; then
                   7197:   lt_cv_objdir=.libs
                   7198: else
                   7199:   # MS-DOS does not allow filenames that begin with a dot.
                   7200:   lt_cv_objdir=_libs
                   7201: fi
                   7202: rmdir .libs 2>/dev/null
                   7203: fi
                   7204: { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
                   7205: echo "${ECHO_T}$lt_cv_objdir" >&6; }
                   7206: objdir=$lt_cv_objdir
1.25      millert  7207:
                   7208:
                   7209:
                   7210:
                   7211:
1.27      millert  7212: case $host_os in
                   7213: aix3*)
                   7214:   # AIX sometimes has problems with the GCC collect2 program.  For some
                   7215:   # reason, if we set the COLLECT_NAMES environment variable, the problems
                   7216:   # vanish in a puff of smoke.
                   7217:   if test "X${COLLECT_NAMES+set}" != Xset; then
                   7218:     COLLECT_NAMES=
                   7219:     export COLLECT_NAMES
                   7220:   fi
                   7221:   ;;
                   7222: esac
1.25      millert  7223:
1.27      millert  7224: # Sed substitution that helps us do robust quoting.  It backslashifies
                   7225: # metacharacters that are still active within double-quoted strings.
                   7226: Xsed='sed -e 1s/^X//'
                   7227: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
1.25      millert  7228:
1.27      millert  7229: # Same as above, but do not quote variable references.
                   7230: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
1.25      millert  7231:
1.27      millert  7232: # Sed substitution to delay expansion of an escaped shell variable in a
                   7233: # double_quote_subst'ed string.
                   7234: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.25      millert  7235:
1.27      millert  7236: # Sed substitution to avoid accidental globbing in evaled expressions
                   7237: no_glob_subst='s/\*/\\\*/g'
1.25      millert  7238:
1.27      millert  7239: # Constants:
                   7240: rm="rm -f"
1.25      millert  7241:
1.27      millert  7242: # Global variables:
                   7243: default_ofile=libtool
                   7244: can_build_shared=yes
1.25      millert  7245:
1.27      millert  7246: # All known linkers require a `.a' archive for static linking (except MSVC,
                   7247: # which needs '.lib').
                   7248: libext=a
                   7249: ltmain="$ac_aux_dir/ltmain.sh"
                   7250: ofile="$default_ofile"
                   7251: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.25      millert  7252:
1.27      millert  7253: if test -n "$ac_tool_prefix"; then
                   7254:   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
                   7255: set dummy ${ac_tool_prefix}ar; ac_word=$2
                   7256: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7257: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7258: if test "${ac_cv_prog_AR+set}" = set; then
                   7259:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7260: else
                   7261:   if test -n "$AR"; then
                   7262:   ac_cv_prog_AR="$AR" # Let the user override the test.
                   7263: else
                   7264: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7265: for as_dir in $PATH
                   7266: do
                   7267:   IFS=$as_save_IFS
                   7268:   test -z "$as_dir" && as_dir=.
                   7269:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7270:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7271:     ac_cv_prog_AR="${ac_tool_prefix}ar"
                   7272:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7273:     break 2
                   7274:   fi
                   7275: done
                   7276: done
                   7277: IFS=$as_save_IFS
1.25      millert  7278:
1.27      millert  7279: fi
                   7280: fi
                   7281: AR=$ac_cv_prog_AR
                   7282: if test -n "$AR"; then
                   7283:   { echo "$as_me:$LINENO: result: $AR" >&5
                   7284: echo "${ECHO_T}$AR" >&6; }
                   7285: else
                   7286:   { echo "$as_me:$LINENO: result: no" >&5
                   7287: echo "${ECHO_T}no" >&6; }
                   7288: fi
1.25      millert  7289:
                   7290:
1.27      millert  7291: fi
                   7292: if test -z "$ac_cv_prog_AR"; then
                   7293:   ac_ct_AR=$AR
                   7294:   # Extract the first word of "ar", so it can be a program name with args.
                   7295: set dummy ar; ac_word=$2
                   7296: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7297: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7298: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
                   7299:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7300: else
                   7301:   if test -n "$ac_ct_AR"; then
                   7302:   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
                   7303: else
                   7304: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7305: for as_dir in $PATH
                   7306: do
                   7307:   IFS=$as_save_IFS
                   7308:   test -z "$as_dir" && as_dir=.
                   7309:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7310:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7311:     ac_cv_prog_ac_ct_AR="ar"
                   7312:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7313:     break 2
                   7314:   fi
                   7315: done
                   7316: done
                   7317: IFS=$as_save_IFS
1.25      millert  7318:
1.27      millert  7319: fi
                   7320: fi
                   7321: ac_ct_AR=$ac_cv_prog_ac_ct_AR
                   7322: if test -n "$ac_ct_AR"; then
                   7323:   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
                   7324: echo "${ECHO_T}$ac_ct_AR" >&6; }
                   7325: else
                   7326:   { echo "$as_me:$LINENO: result: no" >&5
                   7327: echo "${ECHO_T}no" >&6; }
                   7328: fi
1.25      millert  7329:
1.27      millert  7330:   if test "x$ac_ct_AR" = x; then
                   7331:     AR="false"
                   7332:   else
                   7333:     case $cross_compiling:$ac_tool_warned in
                   7334: yes:)
                   7335: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   7336: whose name does not start with the host triplet.  If you think this
                   7337: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   7338: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   7339: whose name does not start with the host triplet.  If you think this
                   7340: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   7341: ac_tool_warned=yes ;;
                   7342: esac
                   7343:     AR=$ac_ct_AR
                   7344:   fi
                   7345: else
                   7346:   AR="$ac_cv_prog_AR"
                   7347: fi
1.25      millert  7348:
1.27      millert  7349: if test -n "$ac_tool_prefix"; then
                   7350:   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
                   7351: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
                   7352: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7353: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7354: if test "${ac_cv_prog_RANLIB+set}" = set; then
                   7355:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7356: else
                   7357:   if test -n "$RANLIB"; then
                   7358:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
                   7359: else
                   7360: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7361: for as_dir in $PATH
                   7362: do
                   7363:   IFS=$as_save_IFS
                   7364:   test -z "$as_dir" && as_dir=.
                   7365:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7366:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7367:     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
                   7368:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7369:     break 2
                   7370:   fi
                   7371: done
                   7372: done
                   7373: IFS=$as_save_IFS
1.25      millert  7374:
1.27      millert  7375: fi
                   7376: fi
                   7377: RANLIB=$ac_cv_prog_RANLIB
                   7378: if test -n "$RANLIB"; then
                   7379:   { echo "$as_me:$LINENO: result: $RANLIB" >&5
                   7380: echo "${ECHO_T}$RANLIB" >&6; }
                   7381: else
                   7382:   { echo "$as_me:$LINENO: result: no" >&5
                   7383: echo "${ECHO_T}no" >&6; }
                   7384: fi
1.25      millert  7385:
                   7386:
1.27      millert  7387: fi
                   7388: if test -z "$ac_cv_prog_RANLIB"; then
                   7389:   ac_ct_RANLIB=$RANLIB
                   7390:   # Extract the first word of "ranlib", so it can be a program name with args.
                   7391: set dummy ranlib; ac_word=$2
                   7392: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7393: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7394: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1.23      millert  7395:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7396: else
1.27      millert  7397:   if test -n "$ac_ct_RANLIB"; then
                   7398:   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1.23      millert  7399: else
1.27      millert  7400: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7401: for as_dir in $PATH
                   7402: do
                   7403:   IFS=$as_save_IFS
                   7404:   test -z "$as_dir" && as_dir=.
                   7405:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7406:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7407:     ac_cv_prog_ac_ct_RANLIB="ranlib"
                   7408:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7409:     break 2
                   7410:   fi
                   7411: done
                   7412: done
                   7413: IFS=$as_save_IFS
1.23      millert  7414:
                   7415: fi
1.27      millert  7416: fi
                   7417: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
                   7418: if test -n "$ac_ct_RANLIB"; then
                   7419:   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
                   7420: echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
1.23      millert  7421: else
1.27      millert  7422:   { echo "$as_me:$LINENO: result: no" >&5
                   7423: echo "${ECHO_T}no" >&6; }
1.25      millert  7424: fi
1.23      millert  7425:
1.27      millert  7426:   if test "x$ac_ct_RANLIB" = x; then
                   7427:     RANLIB=":"
                   7428:   else
                   7429:     case $cross_compiling:$ac_tool_warned in
                   7430: yes:)
                   7431: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   7432: whose name does not start with the host triplet.  If you think this
                   7433: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   7434: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   7435: whose name does not start with the host triplet.  If you think this
                   7436: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   7437: ac_tool_warned=yes ;;
                   7438: esac
                   7439:     RANLIB=$ac_ct_RANLIB
                   7440:   fi
                   7441: else
                   7442:   RANLIB="$ac_cv_prog_RANLIB"
1.23      millert  7443: fi
1.25      millert  7444:
1.27      millert  7445: if test -n "$ac_tool_prefix"; then
                   7446:   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
                   7447: set dummy ${ac_tool_prefix}strip; ac_word=$2
                   7448: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7449: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7450: if test "${ac_cv_prog_STRIP+set}" = set; then
                   7451:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7452: else
                   7453:   if test -n "$STRIP"; then
                   7454:   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
                   7455: else
                   7456: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7457: for as_dir in $PATH
                   7458: do
                   7459:   IFS=$as_save_IFS
                   7460:   test -z "$as_dir" && as_dir=.
                   7461:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7462:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7463:     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
                   7464:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7465:     break 2
                   7466:   fi
                   7467: done
                   7468: done
                   7469: IFS=$as_save_IFS
1.25      millert  7470:
1.27      millert  7471: fi
                   7472: fi
                   7473: STRIP=$ac_cv_prog_STRIP
                   7474: if test -n "$STRIP"; then
                   7475:   { echo "$as_me:$LINENO: result: $STRIP" >&5
                   7476: echo "${ECHO_T}$STRIP" >&6; }
1.25      millert  7477: else
1.27      millert  7478:   { echo "$as_me:$LINENO: result: no" >&5
                   7479: echo "${ECHO_T}no" >&6; }
1.25      millert  7480: fi
1.27      millert  7481:
1.25      millert  7482:
                   7483: fi
1.27      millert  7484: if test -z "$ac_cv_prog_STRIP"; then
                   7485:   ac_ct_STRIP=$STRIP
                   7486:   # Extract the first word of "strip", so it can be a program name with args.
                   7487: set dummy strip; ac_word=$2
                   7488: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7489: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7490: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
                   7491:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  7492: else
1.27      millert  7493:   if test -n "$ac_ct_STRIP"; then
                   7494:   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.23      millert  7495: else
1.27      millert  7496: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7497: for as_dir in $PATH
                   7498: do
                   7499:   IFS=$as_save_IFS
                   7500:   test -z "$as_dir" && as_dir=.
                   7501:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7502:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7503:     ac_cv_prog_ac_ct_STRIP="strip"
                   7504:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7505:     break 2
                   7506:   fi
                   7507: done
                   7508: done
                   7509: IFS=$as_save_IFS
1.23      millert  7510:
1.25      millert  7511: fi
                   7512: fi
1.27      millert  7513: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
                   7514: if test -n "$ac_ct_STRIP"; then
                   7515:   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
                   7516: echo "${ECHO_T}$ac_ct_STRIP" >&6; }
                   7517: else
                   7518:   { echo "$as_me:$LINENO: result: no" >&5
                   7519: echo "${ECHO_T}no" >&6; }
1.23      millert  7520: fi
1.25      millert  7521:
1.27      millert  7522:   if test "x$ac_ct_STRIP" = x; then
                   7523:     STRIP=":"
                   7524:   else
                   7525:     case $cross_compiling:$ac_tool_warned in
                   7526: yes:)
                   7527: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   7528: whose name does not start with the host triplet.  If you think this
                   7529: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   7530: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   7531: whose name does not start with the host triplet.  If you think this
                   7532: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   7533: ac_tool_warned=yes ;;
                   7534: esac
                   7535:     STRIP=$ac_ct_STRIP
                   7536:   fi
                   7537: else
                   7538:   STRIP="$ac_cv_prog_STRIP"
1.23      millert  7539: fi
                   7540:
1.25      millert  7541:
1.27      millert  7542: old_CC="$CC"
                   7543: old_CFLAGS="$CFLAGS"
1.25      millert  7544:
1.27      millert  7545: # Set sane defaults for various variables
                   7546: test -z "$AR" && AR=ar
                   7547: test -z "$AR_FLAGS" && AR_FLAGS=cru
                   7548: test -z "$AS" && AS=as
                   7549: test -z "$CC" && CC=cc
                   7550: test -z "$LTCC" && LTCC=$CC
                   7551: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
                   7552: test -z "$DLLTOOL" && DLLTOOL=dlltool
                   7553: test -z "$LD" && LD=ld
                   7554: test -z "$LN_S" && LN_S="ln -s"
                   7555: test -z "$MAGIC_CMD" && MAGIC_CMD=file
                   7556: test -z "$NM" && NM=nm
                   7557: test -z "$SED" && SED=sed
                   7558: test -z "$OBJDUMP" && OBJDUMP=objdump
                   7559: test -z "$RANLIB" && RANLIB=:
                   7560: test -z "$STRIP" && STRIP=:
                   7561: test -z "$ac_objext" && ac_objext=o
1.25      millert  7562:
1.27      millert  7563: # Determine commands to create old-style static archives.
                   7564: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
                   7565: old_postinstall_cmds='chmod 644 $oldlib'
                   7566: old_postuninstall_cmds=
1.25      millert  7567:
1.27      millert  7568: if test -n "$RANLIB"; then
                   7569:   case $host_os in
                   7570:   openbsd*)
                   7571:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
                   7572:     ;;
                   7573:   *)
                   7574:     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
                   7575:     ;;
                   7576:   esac
                   7577:   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
                   7578: fi
1.25      millert  7579:
1.27      millert  7580: for cc_temp in $compiler""; do
                   7581:   case $cc_temp in
                   7582:     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
                   7583:     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
                   7584:     \-*) ;;
                   7585:     *) break;;
                   7586:   esac
                   7587: done
                   7588: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.25      millert  7589:
                   7590:
1.27      millert  7591: # Only perform the check for file, if the check method requires it
                   7592: case $deplibs_check_method in
                   7593: file_magic*)
                   7594:   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
                   7595:     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
                   7596: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
                   7597: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
1.23      millert  7598:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7599: else
1.27      millert  7600:   case $MAGIC_CMD in
                   7601: [\\/*] |  ?:[\\/]*)
                   7602:   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
                   7603:   ;;
                   7604: *)
                   7605:   lt_save_MAGIC_CMD="$MAGIC_CMD"
                   7606:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   7607:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
                   7608:   for ac_dir in $ac_dummy; do
                   7609:     IFS="$lt_save_ifs"
                   7610:     test -z "$ac_dir" && ac_dir=.
                   7611:     if test -f $ac_dir/${ac_tool_prefix}file; then
                   7612:       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
                   7613:       if test -n "$file_magic_test_file"; then
                   7614:        case $deplibs_check_method in
                   7615:        "file_magic "*)
                   7616:          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
                   7617:          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   7618:          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
                   7619:            $EGREP "$file_magic_regex" > /dev/null; then
                   7620:            :
                   7621:          else
                   7622:            cat <<EOF 1>&2
1.25      millert  7623:
1.27      millert  7624: *** Warning: the command libtool uses to detect shared libraries,
                   7625: *** $file_magic_cmd, produces output that libtool cannot recognize.
                   7626: *** The result is that libtool may fail to recognize shared libraries
                   7627: *** as such.  This will affect the creation of libtool libraries that
                   7628: *** depend on shared libraries, but programs linked with such libtool
                   7629: *** libraries will work regardless of this problem.  Nevertheless, you
                   7630: *** may want to report the problem to your system manager and/or to
                   7631: *** bug-libtool@gnu.org
1.23      millert  7632:
1.27      millert  7633: EOF
                   7634:          fi ;;
                   7635:        esac
                   7636:       fi
                   7637:       break
                   7638:     fi
                   7639:   done
                   7640:   IFS="$lt_save_ifs"
                   7641:   MAGIC_CMD="$lt_save_MAGIC_CMD"
                   7642:   ;;
                   7643: esac
1.25      millert  7644: fi
                   7645:
1.27      millert  7646: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   7647: if test -n "$MAGIC_CMD"; then
                   7648:   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
                   7649: echo "${ECHO_T}$MAGIC_CMD" >&6; }
                   7650: else
                   7651:   { echo "$as_me:$LINENO: result: no" >&5
                   7652: echo "${ECHO_T}no" >&6; }
1.23      millert  7653: fi
                   7654:
1.27      millert  7655: if test -z "$lt_cv_path_MAGIC_CMD"; then
                   7656:   if test -n "$ac_tool_prefix"; then
                   7657:     { echo "$as_me:$LINENO: checking for file" >&5
                   7658: echo $ECHO_N "checking for file... $ECHO_C" >&6; }
                   7659: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
1.25      millert  7660:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7661: else
1.27      millert  7662:   case $MAGIC_CMD in
                   7663: [\\/*] |  ?:[\\/]*)
                   7664:   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
                   7665:   ;;
                   7666: *)
                   7667:   lt_save_MAGIC_CMD="$MAGIC_CMD"
                   7668:   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
                   7669:   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
                   7670:   for ac_dir in $ac_dummy; do
                   7671:     IFS="$lt_save_ifs"
                   7672:     test -z "$ac_dir" && ac_dir=.
                   7673:     if test -f $ac_dir/file; then
                   7674:       lt_cv_path_MAGIC_CMD="$ac_dir/file"
                   7675:       if test -n "$file_magic_test_file"; then
                   7676:        case $deplibs_check_method in
                   7677:        "file_magic "*)
                   7678:          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
                   7679:          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   7680:          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
                   7681:            $EGREP "$file_magic_regex" > /dev/null; then
                   7682:            :
                   7683:          else
                   7684:            cat <<EOF 1>&2
1.25      millert  7685:
1.27      millert  7686: *** Warning: the command libtool uses to detect shared libraries,
                   7687: *** $file_magic_cmd, produces output that libtool cannot recognize.
                   7688: *** The result is that libtool may fail to recognize shared libraries
                   7689: *** as such.  This will affect the creation of libtool libraries that
                   7690: *** depend on shared libraries, but programs linked with such libtool
                   7691: *** libraries will work regardless of this problem.  Nevertheless, you
                   7692: *** may want to report the problem to your system manager and/or to
                   7693: *** bug-libtool@gnu.org
1.23      millert  7694:
1.27      millert  7695: EOF
                   7696:          fi ;;
                   7697:        esac
                   7698:       fi
                   7699:       break
                   7700:     fi
                   7701:   done
                   7702:   IFS="$lt_save_ifs"
                   7703:   MAGIC_CMD="$lt_save_MAGIC_CMD"
                   7704:   ;;
                   7705: esac
1.25      millert  7706: fi
1.27      millert  7707:
                   7708: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
                   7709: if test -n "$MAGIC_CMD"; then
                   7710:   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
                   7711: echo "${ECHO_T}$MAGIC_CMD" >&6; }
                   7712: else
                   7713:   { echo "$as_me:$LINENO: result: no" >&5
                   7714: echo "${ECHO_T}no" >&6; }
1.25      millert  7715: fi
                   7716:
1.27      millert  7717:   else
                   7718:     MAGIC_CMD=:
                   7719:   fi
1.23      millert  7720: fi
                   7721:
1.27      millert  7722:   fi
                   7723:   ;;
                   7724: esac
1.23      millert  7725:
1.36      millert  7726:
                   7727:   case $host_os in
                   7728:     rhapsody* | darwin*)
                   7729:     if test -n "$ac_tool_prefix"; then
                   7730:   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
                   7731: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
                   7732: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7733: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7734: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
                   7735:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7736: else
                   7737:   if test -n "$DSYMUTIL"; then
                   7738:   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
                   7739: else
                   7740: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7741: for as_dir in $PATH
                   7742: do
                   7743:   IFS=$as_save_IFS
                   7744:   test -z "$as_dir" && as_dir=.
                   7745:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7746:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7747:     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
                   7748:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7749:     break 2
                   7750:   fi
                   7751: done
                   7752: done
                   7753: IFS=$as_save_IFS
                   7754:
                   7755: fi
                   7756: fi
                   7757: DSYMUTIL=$ac_cv_prog_DSYMUTIL
                   7758: if test -n "$DSYMUTIL"; then
                   7759:   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
                   7760: echo "${ECHO_T}$DSYMUTIL" >&6; }
                   7761: else
                   7762:   { echo "$as_me:$LINENO: result: no" >&5
                   7763: echo "${ECHO_T}no" >&6; }
                   7764: fi
                   7765:
                   7766:
                   7767: fi
                   7768: if test -z "$ac_cv_prog_DSYMUTIL"; then
                   7769:   ac_ct_DSYMUTIL=$DSYMUTIL
                   7770:   # Extract the first word of "dsymutil", so it can be a program name with args.
                   7771: set dummy dsymutil; ac_word=$2
                   7772: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7773: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7774: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
                   7775:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7776: else
                   7777:   if test -n "$ac_ct_DSYMUTIL"; then
                   7778:   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
                   7779: else
                   7780: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7781: for as_dir in $PATH
                   7782: do
                   7783:   IFS=$as_save_IFS
                   7784:   test -z "$as_dir" && as_dir=.
                   7785:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7786:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7787:     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
                   7788:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7789:     break 2
                   7790:   fi
                   7791: done
                   7792: done
                   7793: IFS=$as_save_IFS
                   7794:
                   7795: fi
                   7796: fi
                   7797: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
                   7798: if test -n "$ac_ct_DSYMUTIL"; then
                   7799:   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
                   7800: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
                   7801: else
                   7802:   { echo "$as_me:$LINENO: result: no" >&5
                   7803: echo "${ECHO_T}no" >&6; }
                   7804: fi
                   7805:
                   7806:   if test "x$ac_ct_DSYMUTIL" = x; then
                   7807:     DSYMUTIL=":"
                   7808:   else
                   7809:     case $cross_compiling:$ac_tool_warned in
                   7810: yes:)
                   7811: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   7812: whose name does not start with the host triplet.  If you think this
                   7813: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   7814: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   7815: whose name does not start with the host triplet.  If you think this
                   7816: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   7817: ac_tool_warned=yes ;;
                   7818: esac
                   7819:     DSYMUTIL=$ac_ct_DSYMUTIL
                   7820:   fi
                   7821: else
                   7822:   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
                   7823: fi
                   7824:
                   7825:     if test -n "$ac_tool_prefix"; then
                   7826:   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
                   7827: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
                   7828: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7829: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7830: if test "${ac_cv_prog_NMEDIT+set}" = set; then
                   7831:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7832: else
                   7833:   if test -n "$NMEDIT"; then
                   7834:   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
                   7835: else
                   7836: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7837: for as_dir in $PATH
                   7838: do
                   7839:   IFS=$as_save_IFS
                   7840:   test -z "$as_dir" && as_dir=.
                   7841:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7842:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7843:     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
                   7844:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7845:     break 2
                   7846:   fi
                   7847: done
                   7848: done
                   7849: IFS=$as_save_IFS
                   7850:
                   7851: fi
                   7852: fi
                   7853: NMEDIT=$ac_cv_prog_NMEDIT
                   7854: if test -n "$NMEDIT"; then
                   7855:   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
                   7856: echo "${ECHO_T}$NMEDIT" >&6; }
                   7857: else
                   7858:   { echo "$as_me:$LINENO: result: no" >&5
                   7859: echo "${ECHO_T}no" >&6; }
                   7860: fi
                   7861:
                   7862:
                   7863: fi
                   7864: if test -z "$ac_cv_prog_NMEDIT"; then
                   7865:   ac_ct_NMEDIT=$NMEDIT
                   7866:   # Extract the first word of "nmedit", so it can be a program name with args.
                   7867: set dummy nmedit; ac_word=$2
                   7868: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   7869: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   7870: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
                   7871:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7872: else
                   7873:   if test -n "$ac_ct_NMEDIT"; then
                   7874:   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
                   7875: else
                   7876: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   7877: for as_dir in $PATH
                   7878: do
                   7879:   IFS=$as_save_IFS
                   7880:   test -z "$as_dir" && as_dir=.
                   7881:   for ac_exec_ext in '' $ac_executable_extensions; do
                   7882:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   7883:     ac_cv_prog_ac_ct_NMEDIT="nmedit"
                   7884:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   7885:     break 2
                   7886:   fi
                   7887: done
                   7888: done
                   7889: IFS=$as_save_IFS
                   7890:
                   7891: fi
                   7892: fi
                   7893: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
                   7894: if test -n "$ac_ct_NMEDIT"; then
                   7895:   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
                   7896: echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
                   7897: else
                   7898:   { echo "$as_me:$LINENO: result: no" >&5
                   7899: echo "${ECHO_T}no" >&6; }
                   7900: fi
                   7901:
                   7902:   if test "x$ac_ct_NMEDIT" = x; then
                   7903:     NMEDIT=":"
                   7904:   else
                   7905:     case $cross_compiling:$ac_tool_warned in
                   7906: yes:)
                   7907: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
                   7908: whose name does not start with the host triplet.  If you think this
                   7909: configuration is useful to you, please write to autoconf@gnu.org." >&5
                   7910: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
                   7911: whose name does not start with the host triplet.  If you think this
                   7912: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
                   7913: ac_tool_warned=yes ;;
                   7914: esac
                   7915:     NMEDIT=$ac_ct_NMEDIT
                   7916:   fi
                   7917: else
                   7918:   NMEDIT="$ac_cv_prog_NMEDIT"
                   7919: fi
                   7920:
                   7921:
                   7922:     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
                   7923: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
                   7924: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
                   7925:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7926: else
                   7927:   lt_cv_apple_cc_single_mod=no
                   7928:       if test -z "${LT_MULTI_MODULE}"; then
                   7929:    # By default we will add the -single_module flag. You can override
                   7930:    # by either setting the environment variable LT_MULTI_MODULE
                   7931:    # non-empty at configure time, or by adding -multi_module to the
                   7932:    # link flags.
                   7933:    echo "int foo(void){return 1;}" > conftest.c
                   7934:    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
                   7935:      -dynamiclib ${wl}-single_module conftest.c
                   7936:    if test -f libconftest.dylib; then
                   7937:      lt_cv_apple_cc_single_mod=yes
                   7938:      rm -rf libconftest.dylib*
                   7939:    fi
                   7940:    rm conftest.c
                   7941:       fi
                   7942: fi
                   7943: { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
                   7944: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
                   7945:     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
                   7946: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
                   7947: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
                   7948:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   7949: else
                   7950:   lt_cv_ld_exported_symbols_list=no
                   7951:       save_LDFLAGS=$LDFLAGS
                   7952:       echo "_main" > conftest.sym
                   7953:       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
                   7954:       cat >conftest.$ac_ext <<_ACEOF
                   7955: /* confdefs.h.  */
                   7956: _ACEOF
                   7957: cat confdefs.h >>conftest.$ac_ext
                   7958: cat >>conftest.$ac_ext <<_ACEOF
                   7959: /* end confdefs.h.  */
                   7960:
                   7961: int
                   7962: main ()
                   7963: {
                   7964:
                   7965:   ;
                   7966:   return 0;
                   7967: }
                   7968: _ACEOF
                   7969: rm -f conftest.$ac_objext conftest$ac_exeext
                   7970: if { (ac_try="$ac_link"
                   7971: case "(($ac_try" in
                   7972:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   7973:   *) ac_try_echo=$ac_try;;
                   7974: esac
                   7975: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   7976:   (eval "$ac_link") 2>conftest.er1
                   7977:   ac_status=$?
                   7978:   grep -v '^ *+' conftest.er1 >conftest.err
                   7979:   rm -f conftest.er1
                   7980:   cat conftest.err >&5
                   7981:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   7982:   (exit $ac_status); } && {
                   7983:         test -z "$ac_c_werror_flag" ||
                   7984:         test ! -s conftest.err
                   7985:        } && test -s conftest$ac_exeext &&
                   7986:        $as_test_x conftest$ac_exeext; then
                   7987:   lt_cv_ld_exported_symbols_list=yes
                   7988: else
                   7989:   echo "$as_me: failed program was:" >&5
                   7990: sed 's/^/| /' conftest.$ac_ext >&5
                   7991:
                   7992:        lt_cv_ld_exported_symbols_list=no
                   7993: fi
                   7994:
                   7995: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   7996:       conftest$ac_exeext conftest.$ac_ext
                   7997:    LDFLAGS="$save_LDFLAGS"
                   7998:
                   7999: fi
                   8000: { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
                   8001: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
                   8002:     case $host_os in
                   8003:     rhapsody* | darwin1.[0123])
                   8004:       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
                   8005:     darwin1.*)
                   8006:      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
                   8007:     darwin*)
                   8008:       # if running on 10.5 or later, the deployment target defaults
                   8009:       # to the OS version, if on x86, and 10.4, the deployment
                   8010:       # target defaults to 10.4. Don't you love it?
                   8011:       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
                   8012:    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
                   8013:      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
                   8014:    10.[012]*)
                   8015:      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
                   8016:    10.*)
                   8017:      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
                   8018:       esac
                   8019:     ;;
                   8020:   esac
                   8021:     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
                   8022:       _lt_dar_single_mod='$single_module'
                   8023:     fi
                   8024:     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
                   8025:       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
                   8026:     else
                   8027:       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
                   8028:     fi
                   8029:     if test "$DSYMUTIL" != ":"; then
                   8030:       _lt_dsymutil="~$DSYMUTIL \$lib || :"
                   8031:     else
                   8032:       _lt_dsymutil=
                   8033:     fi
                   8034:     ;;
                   8035:   esac
                   8036:
                   8037:
1.40      millert  8038: enable_dlopen=yes
1.27      millert  8039: enable_win32_dll=no
1.25      millert  8040:
1.27      millert  8041: # Check whether --enable-libtool-lock was given.
                   8042: if test "${enable_libtool_lock+set}" = set; then
                   8043:   enableval=$enable_libtool_lock;
                   8044: fi
1.25      millert  8045:
1.27      millert  8046: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.25      millert  8047:
1.23      millert  8048:
1.27      millert  8049: # Check whether --with-pic was given.
                   8050: if test "${with_pic+set}" = set; then
                   8051:   withval=$with_pic; pic_mode="$withval"
1.23      millert  8052: else
1.27      millert  8053:   pic_mode=default
                   8054: fi
1.25      millert  8055:
1.27      millert  8056: test -z "$pic_mode" && pic_mode=default
1.23      millert  8057:
1.27      millert  8058: # Use C for the default configuration in the libtool script
                   8059: tagname=
                   8060: lt_save_CC="$CC"
                   8061: ac_ext=c
                   8062: ac_cpp='$CPP $CPPFLAGS'
                   8063: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   8064: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   8065: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23      millert  8066:
                   8067:
1.27      millert  8068: # Source file extension for C test sources.
                   8069: ac_ext=c
1.23      millert  8070:
1.27      millert  8071: # Object file extension for compiled C test sources.
                   8072: objext=o
                   8073: objext=$objext
1.23      millert  8074:
1.27      millert  8075: # Code to be used in simple compile tests
                   8076: lt_simple_compile_test_code="int some_variable = 0;"
1.23      millert  8077:
1.27      millert  8078: # Code to be used in simple link tests
                   8079: lt_simple_link_test_code='int main(){return(0);}'
1.23      millert  8080:
                   8081:
1.27      millert  8082: # If no C compiler was specified, use CC.
                   8083: LTCC=${LTCC-"$CC"}
1.23      millert  8084:
1.27      millert  8085: # If no C compiler flags were specified, use CFLAGS.
                   8086: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.23      millert  8087:
1.27      millert  8088: # Allow CC to be a program name with arguments.
                   8089: compiler=$CC
1.23      millert  8090:
                   8091:
1.27      millert  8092: # save warnings/boilerplate of simple test code
                   8093: ac_outfile=conftest.$ac_objext
                   8094: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
                   8095: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
                   8096: _lt_compiler_boilerplate=`cat conftest.err`
                   8097: $rm conftest*
                   8098:
                   8099: ac_outfile=conftest.$ac_objext
                   8100: echo "$lt_simple_link_test_code" >conftest.$ac_ext
                   8101: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
                   8102: _lt_linker_boilerplate=`cat conftest.err`
1.36      millert  8103: $rm -r conftest*
1.23      millert  8104:
                   8105:
1.27      millert  8106: ## CAVEAT EMPTOR:
                   8107: ## There is no encapsulation within the following macros, do not change
                   8108: ## the running order or otherwise move them around unless you know exactly
                   8109: ## what you are doing...
1.23      millert  8110:
1.27      millert  8111: lt_prog_compiler_no_builtin_flag=
1.23      millert  8112:
1.27      millert  8113: if test "$GCC" = yes; then
                   8114:   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
1.23      millert  8115:
                   8116:
1.27      millert  8117: { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
                   8118: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
                   8119: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
                   8120:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  8121: else
1.27      millert  8122:   lt_cv_prog_compiler_rtti_exceptions=no
                   8123:   ac_outfile=conftest.$ac_objext
                   8124:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   8125:    lt_compiler_flag="-fno-rtti -fno-exceptions"
                   8126:    # Insert the option either (1) after the last *FLAGS variable, or
                   8127:    # (2) before a word containing "conftest.", or (3) at the end.
                   8128:    # Note that $ac_compile itself does not contain backslashes and begins
                   8129:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   8130:    # The option is referenced via a variable to avoid confusing sed.
                   8131:    lt_compile=`echo "$ac_compile" | $SED \
                   8132:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   8133:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   8134:    -e 's:$: $lt_compiler_flag:'`
1.41    ! millert  8135:    (eval echo "\"\$as_me:8135: $lt_compile\"" >&5)
1.27      millert  8136:    (eval "$lt_compile" 2>conftest.err)
                   8137:    ac_status=$?
                   8138:    cat conftest.err >&5
1.41    ! millert  8139:    echo "$as_me:8139: \$? = $ac_status" >&5
1.27      millert  8140:    if (exit $ac_status) && test -s "$ac_outfile"; then
                   8141:      # The compiler can only warn and ignore the option if not recognized
                   8142:      # So say no if there are warnings other than the usual output.
                   8143:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
                   8144:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   8145:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
                   8146:        lt_cv_prog_compiler_rtti_exceptions=yes
                   8147:      fi
                   8148:    fi
                   8149:    $rm conftest*
1.23      millert  8150:
1.25      millert  8151: fi
1.27      millert  8152: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
                   8153: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.25      millert  8154:
1.27      millert  8155: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
                   8156:     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
1.25      millert  8157: else
1.27      millert  8158:     :
                   8159: fi
1.23      millert  8160:
1.25      millert  8161: fi
1.23      millert  8162:
1.27      millert  8163: lt_prog_compiler_wl=
                   8164: lt_prog_compiler_pic=
                   8165: lt_prog_compiler_static=
1.23      millert  8166:
1.27      millert  8167: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
                   8168: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
1.25      millert  8169:
1.27      millert  8170:   if test "$GCC" = yes; then
                   8171:     lt_prog_compiler_wl='-Wl,'
                   8172:     lt_prog_compiler_static='-static'
1.25      millert  8173:
1.27      millert  8174:     case $host_os in
                   8175:       aix*)
                   8176:       # All AIX code is PIC.
                   8177:       if test "$host_cpu" = ia64; then
                   8178:        # AIX 5 now supports IA64 processor
                   8179:        lt_prog_compiler_static='-Bstatic'
                   8180:       fi
                   8181:       ;;
1.25      millert  8182:
1.27      millert  8183:     amigaos*)
                   8184:       # FIXME: we need at least 68020 code to build shared libraries, but
                   8185:       # adding the `-m68020' flag to GCC prevents building anything better,
                   8186:       # like `-m68040'.
                   8187:       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
                   8188:       ;;
1.25      millert  8189:
1.27      millert  8190:     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
                   8191:       # PIC is the default for these OSes.
                   8192:       ;;
1.23      millert  8193:
1.27      millert  8194:     mingw* | cygwin* | pw32* | os2*)
                   8195:       # This hack is so that the source file can tell whether it is being
                   8196:       # built for inclusion in a dll (and should export symbols for example).
                   8197:       # Although the cygwin gcc ignores -fPIC, still need this for old-style
                   8198:       # (--disable-auto-import) libraries
                   8199:       lt_prog_compiler_pic='-DDLL_EXPORT'
                   8200:       ;;
1.23      millert  8201:
1.27      millert  8202:     darwin* | rhapsody*)
                   8203:       # PIC is the default on this platform
                   8204:       # Common symbols not allowed in MH_DYLIB files
                   8205:       lt_prog_compiler_pic='-fno-common'
                   8206:       ;;
1.23      millert  8207:
1.27      millert  8208:     interix[3-9]*)
                   8209:       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
                   8210:       # Instead, we relocate shared libraries at runtime.
                   8211:       ;;
1.23      millert  8212:
1.27      millert  8213:     msdosdjgpp*)
                   8214:       # Just because we use GCC doesn't mean we suddenly get shared libraries
                   8215:       # on systems that don't support them.
                   8216:       lt_prog_compiler_can_build_shared=no
                   8217:       enable_shared=no
                   8218:       ;;
1.23      millert  8219:
1.27      millert  8220:     sysv4*MP*)
                   8221:       if test -d /usr/nec; then
                   8222:        lt_prog_compiler_pic=-Kconform_pic
                   8223:       fi
                   8224:       ;;
1.23      millert  8225:
1.27      millert  8226:     hpux*)
                   8227:       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
                   8228:       # not for PA HP-UX.
                   8229:       case $host_cpu in
                   8230:       hppa*64*|ia64*)
                   8231:        # +Z the default
                   8232:        ;;
                   8233:       *)
                   8234:        lt_prog_compiler_pic='-fPIC'
                   8235:        ;;
                   8236:       esac
                   8237:       ;;
1.23      millert  8238:
1.27      millert  8239:     *)
                   8240:       lt_prog_compiler_pic='-fPIC'
                   8241:       ;;
                   8242:     esac
                   8243:   else
                   8244:     # PORTME Check for flag to pass linker flags through the system compiler.
                   8245:     case $host_os in
                   8246:     aix*)
                   8247:       lt_prog_compiler_wl='-Wl,'
                   8248:       if test "$host_cpu" = ia64; then
                   8249:        # AIX 5 now supports IA64 processor
                   8250:        lt_prog_compiler_static='-Bstatic'
                   8251:       else
                   8252:        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
                   8253:       fi
                   8254:       ;;
                   8255:       darwin*)
                   8256:         # PIC is the default on this platform
                   8257:         # Common symbols not allowed in MH_DYLIB files
                   8258:        case $cc_basename in
                   8259:          xlc*)
                   8260:          lt_prog_compiler_pic='-qnocommon'
                   8261:          lt_prog_compiler_wl='-Wl,'
                   8262:          ;;
                   8263:        esac
                   8264:        ;;
1.23      millert  8265:
1.27      millert  8266:     mingw* | cygwin* | pw32* | os2*)
                   8267:       # This hack is so that the source file can tell whether it is being
                   8268:       # built for inclusion in a dll (and should export symbols for example).
                   8269:       lt_prog_compiler_pic='-DDLL_EXPORT'
                   8270:       ;;
1.25      millert  8271:
1.27      millert  8272:     hpux9* | hpux10* | hpux11*)
                   8273:       lt_prog_compiler_wl='-Wl,'
                   8274:       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
                   8275:       # not for PA HP-UX.
                   8276:       case $host_cpu in
                   8277:       hppa*64*|ia64*)
                   8278:        # +Z the default
                   8279:        ;;
                   8280:       *)
                   8281:        lt_prog_compiler_pic='+Z'
                   8282:        ;;
                   8283:       esac
                   8284:       # Is there a better lt_prog_compiler_static that works with the bundled CC?
                   8285:       lt_prog_compiler_static='${wl}-a ${wl}archive'
                   8286:       ;;
1.23      millert  8287:
1.27      millert  8288:     irix5* | irix6* | nonstopux*)
                   8289:       lt_prog_compiler_wl='-Wl,'
                   8290:       # PIC (with -KPIC) is the default.
                   8291:       lt_prog_compiler_static='-non_shared'
                   8292:       ;;
1.23      millert  8293:
1.27      millert  8294:     newsos6)
                   8295:       lt_prog_compiler_pic='-KPIC'
                   8296:       lt_prog_compiler_static='-Bstatic'
                   8297:       ;;
1.23      millert  8298:
1.27      millert  8299:     linux* | k*bsd*-gnu)
                   8300:       case $cc_basename in
                   8301:       icc* | ecc*)
                   8302:        lt_prog_compiler_wl='-Wl,'
                   8303:        lt_prog_compiler_pic='-KPIC'
                   8304:        lt_prog_compiler_static='-static'
                   8305:         ;;
                   8306:       pgcc* | pgf77* | pgf90* | pgf95*)
                   8307:         # Portland Group compilers (*not* the Pentium gcc compiler,
                   8308:        # which looks to be a dead project)
                   8309:        lt_prog_compiler_wl='-Wl,'
                   8310:        lt_prog_compiler_pic='-fpic'
                   8311:        lt_prog_compiler_static='-Bstatic'
                   8312:         ;;
                   8313:       ccc*)
                   8314:         lt_prog_compiler_wl='-Wl,'
                   8315:         # All Alpha code is PIC.
                   8316:         lt_prog_compiler_static='-non_shared'
                   8317:         ;;
                   8318:       *)
                   8319:         case `$CC -V 2>&1 | sed 5q` in
                   8320:        *Sun\ C*)
                   8321:          # Sun C 5.9
                   8322:          lt_prog_compiler_pic='-KPIC'
                   8323:          lt_prog_compiler_static='-Bstatic'
                   8324:          lt_prog_compiler_wl='-Wl,'
                   8325:          ;;
                   8326:        *Sun\ F*)
                   8327:          # Sun Fortran 8.3 passes all unrecognized flags to the linker
                   8328:          lt_prog_compiler_pic='-KPIC'
                   8329:          lt_prog_compiler_static='-Bstatic'
                   8330:          lt_prog_compiler_wl=''
                   8331:          ;;
                   8332:        esac
                   8333:        ;;
                   8334:       esac
                   8335:       ;;
1.23      millert  8336:
1.27      millert  8337:     osf3* | osf4* | osf5*)
                   8338:       lt_prog_compiler_wl='-Wl,'
                   8339:       # All OSF/1 code is PIC.
                   8340:       lt_prog_compiler_static='-non_shared'
                   8341:       ;;
1.23      millert  8342:
1.27      millert  8343:     rdos*)
                   8344:       lt_prog_compiler_static='-non_shared'
                   8345:       ;;
1.25      millert  8346:
1.27      millert  8347:     solaris*)
                   8348:       lt_prog_compiler_pic='-KPIC'
                   8349:       lt_prog_compiler_static='-Bstatic'
                   8350:       case $cc_basename in
                   8351:       f77* | f90* | f95*)
                   8352:        lt_prog_compiler_wl='-Qoption ld ';;
                   8353:       *)
                   8354:        lt_prog_compiler_wl='-Wl,';;
                   8355:       esac
                   8356:       ;;
1.25      millert  8357:
1.27      millert  8358:     sunos4*)
                   8359:       lt_prog_compiler_wl='-Qoption ld '
                   8360:       lt_prog_compiler_pic='-PIC'
                   8361:       lt_prog_compiler_static='-Bstatic'
                   8362:       ;;
1.25      millert  8363:
1.27      millert  8364:     sysv4 | sysv4.2uw2* | sysv4.3*)
                   8365:       lt_prog_compiler_wl='-Wl,'
                   8366:       lt_prog_compiler_pic='-KPIC'
                   8367:       lt_prog_compiler_static='-Bstatic'
                   8368:       ;;
1.25      millert  8369:
1.27      millert  8370:     sysv4*MP*)
                   8371:       if test -d /usr/nec ;then
                   8372:        lt_prog_compiler_pic='-Kconform_pic'
                   8373:        lt_prog_compiler_static='-Bstatic'
                   8374:       fi
                   8375:       ;;
1.25      millert  8376:
1.27      millert  8377:     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
                   8378:       lt_prog_compiler_wl='-Wl,'
                   8379:       lt_prog_compiler_pic='-KPIC'
                   8380:       lt_prog_compiler_static='-Bstatic'
                   8381:       ;;
1.25      millert  8382:
1.27      millert  8383:     unicos*)
                   8384:       lt_prog_compiler_wl='-Wl,'
                   8385:       lt_prog_compiler_can_build_shared=no
                   8386:       ;;
1.23      millert  8387:
1.27      millert  8388:     uts4*)
                   8389:       lt_prog_compiler_pic='-pic'
                   8390:       lt_prog_compiler_static='-Bstatic'
                   8391:       ;;
1.23      millert  8392:
1.27      millert  8393:     *)
                   8394:       lt_prog_compiler_can_build_shared=no
                   8395:       ;;
1.25      millert  8396:     esac
                   8397:   fi
1.23      millert  8398:
1.27      millert  8399: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
                   8400: echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
1.23      millert  8401:
1.27      millert  8402: #
                   8403: # Check to make sure the PIC flag actually works.
                   8404: #
                   8405: if test -n "$lt_prog_compiler_pic"; then
1.23      millert  8406:
1.27      millert  8407: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
                   8408: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
1.36      millert  8409: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
1.23      millert  8410:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8411: else
1.36      millert  8412:   lt_cv_prog_compiler_pic_works=no
1.27      millert  8413:   ac_outfile=conftest.$ac_objext
                   8414:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   8415:    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
                   8416:    # Insert the option either (1) after the last *FLAGS variable, or
                   8417:    # (2) before a word containing "conftest.", or (3) at the end.
                   8418:    # Note that $ac_compile itself does not contain backslashes and begins
                   8419:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   8420:    # The option is referenced via a variable to avoid confusing sed.
                   8421:    lt_compile=`echo "$ac_compile" | $SED \
                   8422:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   8423:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   8424:    -e 's:$: $lt_compiler_flag:'`
1.41    ! millert  8425:    (eval echo "\"\$as_me:8425: $lt_compile\"" >&5)
1.27      millert  8426:    (eval "$lt_compile" 2>conftest.err)
                   8427:    ac_status=$?
                   8428:    cat conftest.err >&5
1.41    ! millert  8429:    echo "$as_me:8429: \$? = $ac_status" >&5
1.27      millert  8430:    if (exit $ac_status) && test -s "$ac_outfile"; then
                   8431:      # The compiler can only warn and ignore the option if not recognized
                   8432:      # So say no if there are warnings other than the usual output.
                   8433:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
                   8434:      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   8435:      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.36      millert  8436:        lt_cv_prog_compiler_pic_works=yes
1.27      millert  8437:      fi
                   8438:    fi
                   8439:    $rm conftest*
1.23      millert  8440:
1.27      millert  8441: fi
1.36      millert  8442: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
                   8443: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
1.23      millert  8444:
1.36      millert  8445: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1.27      millert  8446:     case $lt_prog_compiler_pic in
                   8447:      "" | " "*) ;;
                   8448:      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
                   8449:      esac
                   8450: else
                   8451:     lt_prog_compiler_pic=
                   8452:      lt_prog_compiler_can_build_shared=no
1.23      millert  8453: fi
1.25      millert  8454:
1.23      millert  8455: fi
1.27      millert  8456: case $host_os in
                   8457:   # For platforms which do not support PIC, -DPIC is meaningless:
                   8458:   *djgpp*)
                   8459:     lt_prog_compiler_pic=
                   8460:     ;;
                   8461:   *)
                   8462:     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
1.25      millert  8463:     ;;
1.27      millert  8464: esac
1.25      millert  8465:
1.27      millert  8466: #
                   8467: # Check to make sure the static flag actually works.
                   8468: #
                   8469: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
                   8470: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
                   8471: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
1.36      millert  8472: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
1.27      millert  8473:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8474: else
1.36      millert  8475:   lt_cv_prog_compiler_static_works=no
1.27      millert  8476:    save_LDFLAGS="$LDFLAGS"
                   8477:    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
                   8478:    echo "$lt_simple_link_test_code" > conftest.$ac_ext
                   8479:    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
                   8480:      # The linker can only warn and ignore the option if not recognized
                   8481:      # So say no if there are warnings
                   8482:      if test -s conftest.err; then
                   8483:        # Append any errors to the config.log.
                   8484:        cat conftest.err 1>&5
                   8485:        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
                   8486:        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
                   8487:        if diff conftest.exp conftest.er2 >/dev/null; then
1.36      millert  8488:          lt_cv_prog_compiler_static_works=yes
1.27      millert  8489:        fi
                   8490:      else
1.36      millert  8491:        lt_cv_prog_compiler_static_works=yes
1.27      millert  8492:      fi
                   8493:    fi
1.36      millert  8494:    $rm -r conftest*
1.27      millert  8495:    LDFLAGS="$save_LDFLAGS"
1.25      millert  8496:
1.23      millert  8497: fi
1.36      millert  8498: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
                   8499: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
1.23      millert  8500:
1.36      millert  8501: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1.27      millert  8502:     :
                   8503: else
                   8504:     lt_prog_compiler_static=
                   8505: fi
1.23      millert  8506:
                   8507:
1.27      millert  8508: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
                   8509: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
                   8510: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
                   8511:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   8512: else
                   8513:   lt_cv_prog_compiler_c_o=no
                   8514:    $rm -r conftest 2>/dev/null
                   8515:    mkdir conftest
                   8516:    cd conftest
                   8517:    mkdir out
                   8518:    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
                   8519:
                   8520:    lt_compiler_flag="-o out/conftest2.$ac_objext"
                   8521:    # Insert the option either (1) after the last *FLAGS variable, or
                   8522:    # (2) before a word containing "conftest.", or (3) at the end.
                   8523:    # Note that $ac_compile itself does not contain backslashes and begins
                   8524:    # with a dollar sign (not a hyphen), so the echo should work correctly.
                   8525:    lt_compile=`echo "$ac_compile" | $SED \
                   8526:    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
                   8527:    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
                   8528:    -e 's:$: $lt_compiler_flag:'`
1.41    ! millert  8529:    (eval echo "\"\$as_me:8529: $lt_compile\"" >&5)
1.27      millert  8530:    (eval "$lt_compile" 2>out/conftest.err)
                   8531:    ac_status=$?
                   8532:    cat out/conftest.err >&5
1.41    ! millert  8533:    echo "$as_me:8533: \$? = $ac_status" >&5
1.27      millert  8534:    if (exit $ac_status) && test -s out/conftest2.$ac_objext
                   8535:    then
                   8536:      # The compiler can only warn and ignore the option if not recognized
                   8537:      # So say no if there are warnings
                   8538:      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
                   8539:      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
                   8540:      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
                   8541:        lt_cv_prog_compiler_c_o=yes
                   8542:      fi
                   8543:    fi
                   8544:    chmod u+w . 2>&5
                   8545:    $rm conftest*
                   8546:    # SGI C++ compiler will create directory out/ii_files/ for
                   8547:    # template instantiation
                   8548:    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
                   8549:    $rm out/* && rmdir out
                   8550:    cd ..
                   8551:    rmdir conftest
                   8552:    $rm conftest*
1.23      millert  8553:
1.27      millert  8554: fi
                   8555: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
                   8556: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
                   8557:
                   8558:
                   8559: hard_links="nottested"
                   8560: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
                   8561:   # do not overwrite the value of need_locks provided by the user
                   8562:   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
                   8563: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
                   8564:   hard_links=yes
                   8565:   $rm conftest*
                   8566:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
                   8567:   touch conftest.a
                   8568:   ln conftest.a conftest.b 2>&5 || hard_links=no
                   8569:   ln conftest.a conftest.b 2>/dev/null && hard_links=no
                   8570:   { echo "$as_me:$LINENO: result: $hard_links" >&5
                   8571: echo "${ECHO_T}$hard_links" >&6; }
                   8572:   if test "$hard_links" = no; then
                   8573:     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
                   8574: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
                   8575:     need_locks=warn
                   8576:   fi
                   8577: else
                   8578:   need_locks=no
                   8579: fi
1.23      millert  8580:
1.27      millert  8581: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
                   8582: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
1.23      millert  8583:
1.27      millert  8584:   runpath_var=
                   8585:   allow_undefined_flag=
                   8586:   enable_shared_with_static_runtimes=no
                   8587:   archive_cmds=
                   8588:   archive_expsym_cmds=
                   8589:   old_archive_From_new_cmds=
                   8590:   old_archive_from_expsyms_cmds=
                   8591:   export_dynamic_flag_spec=
                   8592:   whole_archive_flag_spec=
                   8593:   thread_safe_flag_spec=
                   8594:   hardcode_libdir_flag_spec=
                   8595:   hardcode_libdir_flag_spec_ld=
                   8596:   hardcode_libdir_separator=
                   8597:   hardcode_direct=no
                   8598:   hardcode_minus_L=no
                   8599:   hardcode_shlibpath_var=unsupported
                   8600:   link_all_deplibs=unknown
                   8601:   hardcode_automatic=no
                   8602:   module_cmds=
                   8603:   module_expsym_cmds=
                   8604:   always_export_symbols=no
                   8605:   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
                   8606:   # include_expsyms should be a list of space-separated symbols to be *always*
                   8607:   # included in the symbol list
                   8608:   include_expsyms=
                   8609:   # exclude_expsyms can be an extended regexp of symbols to exclude
                   8610:   # it will be wrapped by ` (' and `)$', so one must not match beginning or
                   8611:   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
                   8612:   # as well as any symbol that contains `d'.
1.36      millert  8613:   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1.27      millert  8614:   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
                   8615:   # platforms (ab)use it in PIC code, but their linkers get confused if
                   8616:   # the symbol is explicitly referenced.  Since portable code cannot
                   8617:   # rely on this symbol name, it's probably fine to never include it in
                   8618:   # preloaded symbol tables.
1.36      millert  8619:   # Exclude shared library initialization/finalization symbols.
1.27      millert  8620:   extract_expsyms_cmds=
                   8621:   # Just being paranoid about ensuring that cc_basename is set.
                   8622:   for cc_temp in $compiler""; do
                   8623:   case $cc_temp in
                   8624:     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
                   8625:     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
                   8626:     \-*) ;;
                   8627:     *) break;;
                   8628:   esac
                   8629: done
                   8630: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.23      millert  8631:
1.27      millert  8632:   case $host_os in
                   8633:   cygwin* | mingw* | pw32*)
                   8634:     # FIXME: the MSVC++ port hasn't been tested in a loooong time
                   8635:     # When not using gcc, we currently assume that we are using
                   8636:     # Microsoft Visual C++.
                   8637:     if test "$GCC" != yes; then
                   8638:       with_gnu_ld=no
                   8639:     fi
                   8640:     ;;
                   8641:   interix*)
                   8642:     # we just hope/assume this is gcc and not c89 (= MSVC++)
                   8643:     with_gnu_ld=yes
                   8644:     ;;
                   8645:   openbsd*)
                   8646:     with_gnu_ld=no
                   8647:     ;;
                   8648:   esac
1.23      millert  8649:
1.27      millert  8650:   ld_shlibs=yes
                   8651:   if test "$with_gnu_ld" = yes; then
                   8652:     # If archive_cmds runs LD, not CC, wlarc should be empty
                   8653:     wlarc='${wl}'
1.23      millert  8654:
1.27      millert  8655:     # Set some defaults for GNU ld with shared library support. These
                   8656:     # are reset later if shared libraries are not supported. Putting them
                   8657:     # here allows them to be overridden if necessary.
                   8658:     runpath_var=LD_RUN_PATH
                   8659:     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
                   8660:     export_dynamic_flag_spec='${wl}--export-dynamic'
                   8661:     # ancient GNU ld didn't support --whole-archive et. al.
                   8662:     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
                   8663:        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
                   8664:       else
                   8665:        whole_archive_flag_spec=
                   8666:     fi
                   8667:     supports_anon_versioning=no
                   8668:     case `$LD -v 2>/dev/null` in
                   8669:       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
                   8670:       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
                   8671:       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
                   8672:       *\ 2.11.*) ;; # other 2.11 versions
                   8673:       *) supports_anon_versioning=yes ;;
                   8674:     esac
1.23      millert  8675:
1.27      millert  8676:     # See if GNU ld supports shared libraries.
                   8677:     case $host_os in
1.36      millert  8678:     aix[3-9]*)
1.27      millert  8679:       # On AIX/PPC, the GNU linker is very broken
                   8680:       if test "$host_cpu" != ia64; then
                   8681:        ld_shlibs=no
                   8682:        cat <<EOF 1>&2
1.23      millert  8683:
1.27      millert  8684: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
                   8685: *** to be unable to reliably create shared libraries on AIX.
                   8686: *** Therefore, libtool is disabling shared libraries support.  If you
                   8687: *** really care for shared libraries, you may want to modify your PATH
                   8688: *** so that a non-GNU linker is found, and then restart.
1.23      millert  8689:
1.27      millert  8690: EOF
                   8691:       fi
                   8692:       ;;
1.23      millert  8693:
1.27      millert  8694:     amigaos*)
                   8695:       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
                   8696:       hardcode_libdir_flag_spec='-L$libdir'
                   8697:       hardcode_minus_L=yes
1.23      millert  8698:
1.27      millert  8699:       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
                   8700:       # that the semantics of dynamic libraries on AmigaOS, at least up
                   8701:       # to version 4, is to share data among multiple programs linked
                   8702:       # with the same dynamic library.  Since this doesn't match the
                   8703:       # behavior of shared libraries on other platforms, we can't use
                   8704:       # them.
                   8705:       ld_shlibs=no
                   8706:       ;;
1.23      millert  8707:
1.27      millert  8708:     beos*)
                   8709:       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   8710:        allow_undefined_flag=unsupported
                   8711:        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
                   8712:        # support --undefined.  This deserves some investigation.  FIXME
                   8713:        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   8714:       else
                   8715:        ld_shlibs=no
                   8716:       fi
                   8717:       ;;
1.23      millert  8718:
1.27      millert  8719:     cygwin* | mingw* | pw32*)
                   8720:       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
                   8721:       # as there is no search path for DLLs.
                   8722:       hardcode_libdir_flag_spec='-L$libdir'
                   8723:       allow_undefined_flag=unsupported
                   8724:       always_export_symbols=no
                   8725:       enable_shared_with_static_runtimes=yes
                   8726:       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1.25      millert  8727:
1.27      millert  8728:       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
                   8729:         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
                   8730:        # If the export-symbols file already is a .def file (1st line
                   8731:        # is EXPORTS), use it as is; otherwise, prepend...
                   8732:        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
                   8733:          cp $export_symbols $output_objdir/$soname.def;
                   8734:        else
                   8735:          echo EXPORTS > $output_objdir/$soname.def;
                   8736:          cat $export_symbols >> $output_objdir/$soname.def;
                   8737:        fi~
                   8738:        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
                   8739:       else
                   8740:        ld_shlibs=no
                   8741:       fi
                   8742:       ;;
1.25      millert  8743:
1.27      millert  8744:     interix[3-9]*)
                   8745:       hardcode_direct=no
                   8746:       hardcode_shlibpath_var=no
                   8747:       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
                   8748:       export_dynamic_flag_spec='${wl}-E'
                   8749:       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
                   8750:       # Instead, shared libraries are loaded at an image base (0x10000000 by
                   8751:       # default) and relocated if they conflict, which is a slow very memory
                   8752:       # consuming and fragmenting process.  To avoid this, we pick a random,
                   8753:       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
                   8754:       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
                   8755:       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
                   8756:       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
                   8757:       ;;
                   8758:
                   8759:     gnu* | linux* | k*bsd*-gnu)
                   8760:       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   8761:        tmp_addflag=
                   8762:        case $cc_basename,$host_cpu in
                   8763:        pgcc*)                          # Portland Group C compiler
                   8764:          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
                   8765:          tmp_addflag=' $pic_flag'
1.25      millert  8766:          ;;
1.27      millert  8767:        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
                   8768:          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
                   8769:          tmp_addflag=' $pic_flag -Mnomain' ;;
                   8770:        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
                   8771:          tmp_addflag=' -i_dynamic' ;;
                   8772:        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
                   8773:          tmp_addflag=' -i_dynamic -nofor_main' ;;
                   8774:        ifc* | ifort*)                  # Intel Fortran compiler
                   8775:          tmp_addflag=' -nofor_main' ;;
1.25      millert  8776:        esac
1.27      millert  8777:        case `$CC -V 2>&1 | sed 5q` in
                   8778:        *Sun\ C*)                       # Sun C 5.9
                   8779:          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
                   8780:          tmp_sharedflag='-G' ;;
                   8781:        *Sun\ F*)                       # Sun Fortran 8.3
                   8782:          tmp_sharedflag='-G' ;;
                   8783:        *)
                   8784:          tmp_sharedflag='-shared' ;;
1.25      millert  8785:        esac
1.27      millert  8786:        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.25      millert  8787:
1.27      millert  8788:        if test $supports_anon_versioning = yes; then
                   8789:          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
                   8790:   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
                   8791:   $echo "local: *; };" >> $output_objdir/$libname.ver~
                   8792:          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
                   8793:        fi
                   8794:       else
                   8795:        ld_shlibs=no
                   8796:       fi
                   8797:       ;;
1.23      millert  8798:
1.27      millert  8799:     netbsd*)
                   8800:       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
                   8801:        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
                   8802:        wlarc=
                   8803:       else
                   8804:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   8805:        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   8806:       fi
                   8807:       ;;
1.23      millert  8808:
1.27      millert  8809:     solaris*)
                   8810:       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
                   8811:        ld_shlibs=no
                   8812:        cat <<EOF 1>&2
                   8813:
                   8814: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
                   8815: *** create shared libraries on Solaris systems.  Therefore, libtool
                   8816: *** is disabling shared libraries support.  We urge you to upgrade GNU
                   8817: *** binutils to release 2.9.1 or newer.  Another option is to modify
                   8818: *** your PATH or compiler configuration so that the native linker is
                   8819: *** used, and then restart.
                   8820:
                   8821: EOF
                   8822:       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   8823:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   8824:        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   8825:       else
                   8826:        ld_shlibs=no
                   8827:       fi
                   8828:       ;;
                   8829:
                   8830:     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
                   8831:       case `$LD -v 2>&1` in
                   8832:         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
                   8833:        ld_shlibs=no
                   8834:        cat <<_LT_EOF 1>&2
                   8835:
                   8836: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
                   8837: *** reliably create shared libraries on SCO systems.  Therefore, libtool
                   8838: *** is disabling shared libraries support.  We urge you to upgrade GNU
                   8839: *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
                   8840: *** your PATH or compiler configuration so that the native linker is
                   8841: *** used, and then restart.
                   8842:
                   8843: _LT_EOF
                   8844:        ;;
                   8845:        *)
                   8846:          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   8847:            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
                   8848:            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
                   8849:            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
                   8850:          else
                   8851:            ld_shlibs=no
                   8852:          fi
                   8853:        ;;
                   8854:       esac
                   8855:       ;;
                   8856:
                   8857:     sunos4*)
                   8858:       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   8859:       wlarc=
                   8860:       hardcode_direct=yes
                   8861:       hardcode_shlibpath_var=no
                   8862:       ;;
                   8863:
                   8864:     *)
                   8865:       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
                   8866:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
                   8867:        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
                   8868:       else
                   8869:        ld_shlibs=no
                   8870:       fi
                   8871:       ;;
                   8872:     esac
                   8873:
                   8874:     if test "$ld_shlibs" = no; then
                   8875:       runpath_var=
                   8876:       hardcode_libdir_flag_spec=
                   8877:       export_dynamic_flag_spec=
                   8878:       whole_archive_flag_spec=
                   8879:     fi
                   8880:   else
                   8881:     # PORTME fill in a description of your system's linker (not GNU ld)
                   8882:     case $host_os in
                   8883:     aix3*)
                   8884:       allow_undefined_flag=unsupported
                   8885:       always_export_symbols=yes
                   8886:       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
                   8887:       # Note: this linker hardcodes the directories in LIBPATH if there
                   8888:       # are no directories specified by -L.
                   8889:       hardcode_minus_L=yes
                   8890:       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
                   8891:        # Neither direct hardcoding nor static linking is supported with a
                   8892:        # broken collect2.
                   8893:        hardcode_direct=unsupported
                   8894:       fi
                   8895:       ;;
                   8896:
1.36      millert  8897:     aix[4-9]*)
1.27      millert  8898:       if test "$host_cpu" = ia64; then
                   8899:        # On IA64, the linker does run time linking by default, so we don't
                   8900:        # have to do anything special.
                   8901:        aix_use_runtimelinking=no
                   8902:        exp_sym_flag='-Bexport'
                   8903:        no_entry_flag=""
                   8904:       else
                   8905:        # If we're using GNU nm, then we don't want the "-C" option.
                   8906:        # -C means demangle to AIX nm, but means don't demangle with GNU nm
                   8907:        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
                   8908:          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
                   8909:        else
                   8910:          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
                   8911:        fi
                   8912:        aix_use_runtimelinking=no
                   8913:
                   8914:        # Test if we are trying to use run time linking or normal
                   8915:        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
                   8916:        # need to do runtime linking.
1.36      millert  8917:        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1.27      millert  8918:          for ld_flag in $LDFLAGS; do
                   8919:          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
                   8920:            aix_use_runtimelinking=yes
                   8921:            break
                   8922:          fi
                   8923:          done
                   8924:          ;;
                   8925:        esac
                   8926:
                   8927:        exp_sym_flag='-bexport'
                   8928:        no_entry_flag='-bnoentry'
                   8929:       fi
                   8930:
                   8931:       # When large executables or shared objects are built, AIX ld can
                   8932:       # have problems creating the table of contents.  If linking a library
                   8933:       # or program results in "error TOC overflow" add -mminimal-toc to
                   8934:       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
                   8935:       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
                   8936:
                   8937:       archive_cmds=''
                   8938:       hardcode_direct=yes
                   8939:       hardcode_libdir_separator=':'
                   8940:       link_all_deplibs=yes
                   8941:
                   8942:       if test "$GCC" = yes; then
                   8943:        case $host_os in aix4.[012]|aix4.[012].*)
                   8944:        # We only want to do this on AIX 4.2 and lower, the check
                   8945:        # below for broken collect2 doesn't work under 4.3+
                   8946:          collect2name=`${CC} -print-prog-name=collect2`
                   8947:          if test -f "$collect2name" && \
                   8948:           strings "$collect2name" | grep resolve_lib_name >/dev/null
                   8949:          then
                   8950:          # We have reworked collect2
                   8951:          :
                   8952:          else
                   8953:          # We have old collect2
                   8954:          hardcode_direct=unsupported
                   8955:          # It fails to find uninstalled libraries when the uninstalled
                   8956:          # path is not listed in the libpath.  Setting hardcode_minus_L
                   8957:          # to unsupported forces relinking
                   8958:          hardcode_minus_L=yes
                   8959:          hardcode_libdir_flag_spec='-L$libdir'
                   8960:          hardcode_libdir_separator=
                   8961:          fi
                   8962:          ;;
                   8963:        esac
                   8964:        shared_flag='-shared'
                   8965:        if test "$aix_use_runtimelinking" = yes; then
                   8966:          shared_flag="$shared_flag "'${wl}-G'
                   8967:        fi
                   8968:       else
                   8969:        # not using gcc
                   8970:        if test "$host_cpu" = ia64; then
                   8971:        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
                   8972:        # chokes on -Wl,-G. The following line is correct:
                   8973:          shared_flag='-G'
                   8974:        else
                   8975:          if test "$aix_use_runtimelinking" = yes; then
                   8976:            shared_flag='${wl}-G'
                   8977:          else
                   8978:            shared_flag='${wl}-bM:SRE'
                   8979:          fi
                   8980:        fi
                   8981:       fi
                   8982:
                   8983:       # It seems that -bexpall does not export symbols beginning with
                   8984:       # underscore (_), so it is better to generate a list of symbols to export.
                   8985:       always_export_symbols=yes
                   8986:       if test "$aix_use_runtimelinking" = yes; then
                   8987:        # Warning - without using the other runtime loading flags (-brtl),
                   8988:        # -berok will link without error, but may produce a broken library.
                   8989:        allow_undefined_flag='-berok'
                   8990:        # Determine the default libpath from the value encoded in an empty executable.
                   8991:        cat >conftest.$ac_ext <<_ACEOF
                   8992: /* confdefs.h.  */
                   8993: _ACEOF
                   8994: cat confdefs.h >>conftest.$ac_ext
                   8995: cat >>conftest.$ac_ext <<_ACEOF
                   8996: /* end confdefs.h.  */
                   8997:
                   8998: int
                   8999: main ()
                   9000: {
1.23      millert  9001:
1.25      millert  9002:   ;
                   9003:   return 0;
                   9004: }
                   9005: _ACEOF
                   9006: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  9007: if { (ac_try="$ac_link"
                   9008: case "(($ac_try" in
                   9009:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   9010:   *) ac_try_echo=$ac_try;;
                   9011: esac
                   9012: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   9013:   (eval "$ac_link") 2>conftest.er1
1.25      millert  9014:   ac_status=$?
                   9015:   grep -v '^ *+' conftest.er1 >conftest.err
                   9016:   rm -f conftest.er1
                   9017:   cat conftest.err >&5
                   9018:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  9019:   (exit $ac_status); } && {
                   9020:         test -z "$ac_c_werror_flag" ||
                   9021:         test ! -s conftest.err
                   9022:        } && test -s conftest$ac_exeext &&
                   9023:        $as_test_x conftest$ac_exeext; then
                   9024:
                   9025: lt_aix_libpath_sed='
                   9026:     /Import File Strings/,/^$/ {
                   9027:        /^0/ {
                   9028:            s/^0  *\(.*\)$/\1/
                   9029:            p
                   9030:        }
                   9031:     }'
                   9032: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   9033: # Check for a 64-bit object if we didn't find anything.
                   9034: if test -z "$aix_libpath"; then
                   9035:   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   9036: fi
1.23      millert  9037: else
1.25      millert  9038:   echo "$as_me: failed program was:" >&5
                   9039: sed 's/^/| /' conftest.$ac_ext >&5
                   9040:
1.23      millert  9041:
                   9042: fi
                   9043:
1.27      millert  9044: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   9045:       conftest$ac_exeext conftest.$ac_ext
                   9046: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.25      millert  9047:
1.27      millert  9048:        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
                   9049:        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
                   9050:        else
                   9051:        if test "$host_cpu" = ia64; then
                   9052:          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
                   9053:          allow_undefined_flag="-z nodefs"
                   9054:          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
                   9055:        else
                   9056:         # Determine the default libpath from the value encoded in an empty executable.
                   9057:         cat >conftest.$ac_ext <<_ACEOF
                   9058: /* confdefs.h.  */
                   9059: _ACEOF
                   9060: cat confdefs.h >>conftest.$ac_ext
                   9061: cat >>conftest.$ac_ext <<_ACEOF
                   9062: /* end confdefs.h.  */
1.23      millert  9063:
1.27      millert  9064: int
                   9065: main ()
                   9066: {
1.23      millert  9067:
1.27      millert  9068:   ;
                   9069:   return 0;
                   9070: }
                   9071: _ACEOF
                   9072: rm -f conftest.$ac_objext conftest$ac_exeext
                   9073: if { (ac_try="$ac_link"
                   9074: case "(($ac_try" in
                   9075:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   9076:   *) ac_try_echo=$ac_try;;
                   9077: esac
                   9078: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   9079:   (eval "$ac_link") 2>conftest.er1
                   9080:   ac_status=$?
                   9081:   grep -v '^ *+' conftest.er1 >conftest.err
                   9082:   rm -f conftest.er1
                   9083:   cat conftest.err >&5
                   9084:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   9085:   (exit $ac_status); } && {
                   9086:         test -z "$ac_c_werror_flag" ||
                   9087:         test ! -s conftest.err
                   9088:        } && test -s conftest$ac_exeext &&
                   9089:        $as_test_x conftest$ac_exeext; then
1.23      millert  9090:
1.27      millert  9091: lt_aix_libpath_sed='
                   9092:     /Import File Strings/,/^$/ {
                   9093:        /^0/ {
                   9094:            s/^0  *\(.*\)$/\1/
                   9095:            p
                   9096:        }
                   9097:     }'
                   9098: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   9099: # Check for a 64-bit object if we didn't find anything.
                   9100: if test -z "$aix_libpath"; then
                   9101:   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
                   9102: fi
1.23      millert  9103: else
1.27      millert  9104:   echo "$as_me: failed program was:" >&5
                   9105: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  9106:
                   9107:
1.27      millert  9108: fi
1.23      millert  9109:
1.27      millert  9110: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   9111:       conftest$ac_exeext conftest.$ac_ext
                   9112: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.23      millert  9113:
1.27      millert  9114:         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
                   9115:          # Warning - without using the other run time loading flags,
                   9116:          # -berok will link without error, but may produce a broken library.
                   9117:          no_undefined_flag=' ${wl}-bernotok'
                   9118:          allow_undefined_flag=' ${wl}-berok'
                   9119:          # Exported symbols can be pulled into shared objects from archives
                   9120:          whole_archive_flag_spec='$convenience'
                   9121:          archive_cmds_need_lc=yes
                   9122:          # This is similar to how AIX traditionally builds its shared libraries.
                   9123:          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
                   9124:        fi
                   9125:       fi
                   9126:       ;;
1.23      millert  9127:
1.27      millert  9128:     amigaos*)
                   9129:       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
                   9130:       hardcode_libdir_flag_spec='-L$libdir'
                   9131:       hardcode_minus_L=yes
                   9132:       # see comment about different semantics on the GNU ld section
                   9133:       ld_shlibs=no
                   9134:       ;;
1.23      millert  9135:
1.27      millert  9136:     bsdi[45]*)
                   9137:       export_dynamic_flag_spec=-rdynamic
                   9138:       ;;
1.25      millert  9139:
1.27      millert  9140:     cygwin* | mingw* | pw32*)
                   9141:       # When not using gcc, we currently assume that we are using
                   9142:       # Microsoft Visual C++.
                   9143:       # hardcode_libdir_flag_spec is actually meaningless, as there is
                   9144:       # no search path for DLLs.
                   9145:       hardcode_libdir_flag_spec=' '
                   9146:       allow_undefined_flag=unsupported
                   9147:       # Tell ltmain to make .lib files, not .a files.
                   9148:       libext=lib
                   9149:       # Tell ltmain to make .dll files, not .so files.
                   9150:       shrext_cmds=".dll"
                   9151:       # FIXME: Setting linknames here is a bad hack.
                   9152:       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
                   9153:       # The linker will automatically build a .lib file if we build a DLL.
                   9154:       old_archive_From_new_cmds='true'
                   9155:       # FIXME: Should let the user specify the lib program.
                   9156:       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
                   9157:       fix_srcfile_path='`cygpath -w "$srcfile"`'
                   9158:       enable_shared_with_static_runtimes=yes
                   9159:       ;;
1.25      millert  9160:
1.27      millert  9161:     darwin* | rhapsody*)
                   9162:       case $host_os in
                   9163:         rhapsody* | darwin1.[012])
                   9164:          allow_undefined_flag='${wl}-undefined ${wl}suppress'
                   9165:          ;;
                   9166:        *) # Darwin 1.3 on
                   9167:          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
                   9168:            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
                   9169:          else
                   9170:            case ${MACOSX_DEPLOYMENT_TARGET} in
                   9171:              10.[012])
                   9172:                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
                   9173:                ;;
                   9174:              10.*)
                   9175:                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
                   9176:                ;;
                   9177:            esac
                   9178:          fi
                   9179:          ;;
                   9180:       esac
                   9181:       archive_cmds_need_lc=no
                   9182:       hardcode_direct=no
                   9183:       hardcode_automatic=yes
                   9184:       hardcode_shlibpath_var=unsupported
                   9185:       whole_archive_flag_spec=''
                   9186:       link_all_deplibs=yes
                   9187:     if test "$GCC" = yes ; then
                   9188:        output_verbose_link_cmd='echo'
1.36      millert  9189:         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
                   9190:         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
                   9191:         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
                   9192:         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1.27      millert  9193:     else
                   9194:       case $cc_basename in
                   9195:         xlc*)
                   9196:          output_verbose_link_cmd='echo'
                   9197:          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
                   9198:          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
                   9199:           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
                   9200:          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
                   9201:           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
                   9202:           ;;
                   9203:        *)
                   9204:          ld_shlibs=no
                   9205:           ;;
                   9206:       esac
                   9207:     fi
                   9208:       ;;
1.25      millert  9209:
1.27      millert  9210:     dgux*)
                   9211:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9212:       hardcode_libdir_flag_spec='-L$libdir'
                   9213:       hardcode_shlibpath_var=no
1.25      millert  9214:       ;;
                   9215:
1.27      millert  9216:     freebsd1*)
                   9217:       ld_shlibs=no
                   9218:       ;;
1.23      millert  9219:
1.27      millert  9220:     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
                   9221:     # support.  Future versions do this automatically, but an explicit c++rt0.o
                   9222:     # does not break anything, and helps significantly (at the cost of a little
                   9223:     # extra space).
                   9224:     freebsd2.2*)
                   9225:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
                   9226:       hardcode_libdir_flag_spec='-R$libdir'
                   9227:       hardcode_direct=yes
                   9228:       hardcode_shlibpath_var=no
                   9229:       ;;
1.23      millert  9230:
1.27      millert  9231:     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
                   9232:     freebsd2*)
                   9233:       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   9234:       hardcode_direct=yes
                   9235:       hardcode_minus_L=yes
                   9236:       hardcode_shlibpath_var=no
                   9237:       ;;
1.23      millert  9238:
1.27      millert  9239:     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
                   9240:     freebsd* | dragonfly*)
                   9241:       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
                   9242:       hardcode_libdir_flag_spec='-R$libdir'
                   9243:       hardcode_direct=yes
                   9244:       hardcode_shlibpath_var=no
                   9245:       ;;
1.23      millert  9246:
1.27      millert  9247:     hpux9*)
                   9248:       if test "$GCC" = yes; then
                   9249:        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
                   9250:       else
                   9251:        archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
                   9252:       fi
                   9253:       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   9254:       hardcode_libdir_separator=:
                   9255:       hardcode_direct=yes
1.23      millert  9256:
1.27      millert  9257:       # hardcode_minus_L: Not really in the search PATH,
                   9258:       # but as the default location of the library.
                   9259:       hardcode_minus_L=yes
                   9260:       export_dynamic_flag_spec='${wl}-E'
                   9261:       ;;
1.23      millert  9262:
1.27      millert  9263:     hpux10*)
                   9264:       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
                   9265:        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
                   9266:       else
                   9267:        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
                   9268:       fi
                   9269:       if test "$with_gnu_ld" = no; then
                   9270:        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   9271:        hardcode_libdir_separator=:
1.23      millert  9272:
1.27      millert  9273:        hardcode_direct=yes
                   9274:        export_dynamic_flag_spec='${wl}-E'
1.23      millert  9275:
1.27      millert  9276:        # hardcode_minus_L: Not really in the search PATH,
                   9277:        # but as the default location of the library.
                   9278:        hardcode_minus_L=yes
                   9279:       fi
                   9280:       ;;
1.23      millert  9281:
1.27      millert  9282:     hpux11*)
                   9283:       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
                   9284:        case $host_cpu in
                   9285:        hppa*64*)
                   9286:          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9287:          ;;
                   9288:        ia64*)
                   9289:          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
                   9290:          ;;
                   9291:        *)
                   9292:          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
                   9293:          ;;
                   9294:        esac
                   9295:       else
                   9296:        case $host_cpu in
                   9297:        hppa*64*)
                   9298:          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9299:          ;;
                   9300:        ia64*)
                   9301:          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
                   9302:          ;;
                   9303:        *)
                   9304:          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
                   9305:          ;;
                   9306:        esac
                   9307:       fi
                   9308:       if test "$with_gnu_ld" = no; then
                   9309:        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
                   9310:        hardcode_libdir_separator=:
1.23      millert  9311:
1.27      millert  9312:        case $host_cpu in
                   9313:        hppa*64*|ia64*)
                   9314:          hardcode_libdir_flag_spec_ld='+b $libdir'
                   9315:          hardcode_direct=no
                   9316:          hardcode_shlibpath_var=no
                   9317:          ;;
                   9318:        *)
                   9319:          hardcode_direct=yes
                   9320:          export_dynamic_flag_spec='${wl}-E'
1.23      millert  9321:
1.27      millert  9322:          # hardcode_minus_L: Not really in the search PATH,
                   9323:          # but as the default location of the library.
                   9324:          hardcode_minus_L=yes
                   9325:          ;;
                   9326:        esac
                   9327:       fi
                   9328:       ;;
1.23      millert  9329:
1.27      millert  9330:     irix5* | irix6* | nonstopux*)
                   9331:       if test "$GCC" = yes; then
                   9332:        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
                   9333:       else
                   9334:        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
                   9335:        hardcode_libdir_flag_spec_ld='-rpath $libdir'
                   9336:       fi
                   9337:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   9338:       hardcode_libdir_separator=:
                   9339:       link_all_deplibs=yes
                   9340:       ;;
1.23      millert  9341:
1.27      millert  9342:     netbsd*)
                   9343:       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
                   9344:        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
                   9345:       else
                   9346:        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
                   9347:       fi
                   9348:       hardcode_libdir_flag_spec='-R$libdir'
                   9349:       hardcode_direct=yes
                   9350:       hardcode_shlibpath_var=no
                   9351:       ;;
1.23      millert  9352:
1.27      millert  9353:     newsos6)
                   9354:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9355:       hardcode_direct=yes
                   9356:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   9357:       hardcode_libdir_separator=:
                   9358:       hardcode_shlibpath_var=no
                   9359:       ;;
1.23      millert  9360:
1.27      millert  9361:     openbsd*)
                   9362:       if test -f /usr/libexec/ld.so; then
                   9363:        hardcode_direct=yes
                   9364:        hardcode_shlibpath_var=no
                   9365:        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
                   9366:          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
                   9367:          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
                   9368:          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
                   9369:          export_dynamic_flag_spec='${wl}-E'
                   9370:        else
                   9371:          case $host_os in
                   9372:           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
                   9373:             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
                   9374:             hardcode_libdir_flag_spec='-R$libdir'
                   9375:             ;;
                   9376:           *)
                   9377:             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
                   9378:             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
                   9379:             ;;
                   9380:          esac
                   9381:         fi
                   9382:       else
                   9383:        ld_shlibs=no
                   9384:       fi
                   9385:       ;;
1.23      millert  9386:
1.27      millert  9387:     os2*)
                   9388:       hardcode_libdir_flag_spec='-L$libdir'
                   9389:       hardcode_minus_L=yes
                   9390:       allow_undefined_flag=unsupported
                   9391:       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
                   9392:       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
                   9393:       ;;
1.23      millert  9394:
1.27      millert  9395:     osf3*)
                   9396:       if test "$GCC" = yes; then
                   9397:        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
                   9398:        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
                   9399:       else
                   9400:        allow_undefined_flag=' -expect_unresolved \*'
                   9401:        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
                   9402:       fi
                   9403:       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   9404:       hardcode_libdir_separator=:
1.25      millert  9405:       ;;
1.23      millert  9406:
1.27      millert  9407:     osf4* | osf5*)     # as osf3* with the addition of -msym flag
                   9408:       if test "$GCC" = yes; then
                   9409:        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
                   9410:        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
                   9411:        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
                   9412:       else
                   9413:        allow_undefined_flag=' -expect_unresolved \*'
                   9414:        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
                   9415:        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
                   9416:        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
1.23      millert  9417:
1.27      millert  9418:        # Both c and cxx compiler support -rpath directly
                   9419:        hardcode_libdir_flag_spec='-rpath $libdir'
                   9420:       fi
                   9421:       hardcode_libdir_separator=:
                   9422:       ;;
1.23      millert  9423:
1.27      millert  9424:     solaris*)
                   9425:       no_undefined_flag=' -z text'
                   9426:       if test "$GCC" = yes; then
                   9427:        wlarc='${wl}'
                   9428:        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9429:        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
                   9430:          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
                   9431:       else
                   9432:        wlarc=''
                   9433:        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9434:        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
                   9435:        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
                   9436:       fi
                   9437:       hardcode_libdir_flag_spec='-R$libdir'
                   9438:       hardcode_shlibpath_var=no
                   9439:       case $host_os in
                   9440:       solaris2.[0-5] | solaris2.[0-5].*) ;;
                   9441:       *)
                   9442:        # The compiler driver will combine and reorder linker options,
                   9443:        # but understands `-z linker_flag'.  GCC discards it without `$wl',
                   9444:        # but is careful enough not to reorder.
                   9445:        # Supported since Solaris 2.6 (maybe 2.5.1?)
                   9446:        if test "$GCC" = yes; then
                   9447:          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
                   9448:        else
                   9449:          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
                   9450:        fi
                   9451:        ;;
                   9452:       esac
                   9453:       link_all_deplibs=yes
                   9454:       ;;
1.23      millert  9455:
1.27      millert  9456:     sunos4*)
                   9457:       if test "x$host_vendor" = xsequent; then
                   9458:        # Use $CC to link under sequent, because it throws in some extra .o
                   9459:        # files that make .init and .fini sections work.
                   9460:        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
                   9461:       else
                   9462:        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
                   9463:       fi
                   9464:       hardcode_libdir_flag_spec='-L$libdir'
                   9465:       hardcode_direct=yes
                   9466:       hardcode_minus_L=yes
                   9467:       hardcode_shlibpath_var=no
                   9468:       ;;
1.23      millert  9469:
1.27      millert  9470:     sysv4)
                   9471:       case $host_vendor in
                   9472:        sni)
                   9473:          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9474:          hardcode_direct=yes # is this really true???
                   9475:        ;;
                   9476:        siemens)
                   9477:          ## LD is ld it makes a PLAMLIB
                   9478:          ## CC just makes a GrossModule.
                   9479:          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
                   9480:          reload_cmds='$CC -r -o $output$reload_objs'
                   9481:          hardcode_direct=no
                   9482:         ;;
                   9483:        motorola)
                   9484:          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9485:          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
                   9486:        ;;
                   9487:       esac
                   9488:       runpath_var='LD_RUN_PATH'
                   9489:       hardcode_shlibpath_var=no
                   9490:       ;;
1.23      millert  9491:
1.27      millert  9492:     sysv4.3*)
                   9493:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9494:       hardcode_shlibpath_var=no
                   9495:       export_dynamic_flag_spec='-Bexport'
                   9496:       ;;
1.23      millert  9497:
1.27      millert  9498:     sysv4*MP*)
                   9499:       if test -d /usr/nec; then
                   9500:        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9501:        hardcode_shlibpath_var=no
                   9502:        runpath_var=LD_RUN_PATH
                   9503:        hardcode_runpath_var=yes
                   9504:        ld_shlibs=yes
                   9505:       fi
                   9506:       ;;
1.23      millert  9507:
1.27      millert  9508:     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
                   9509:       no_undefined_flag='${wl}-z,text'
                   9510:       archive_cmds_need_lc=no
                   9511:       hardcode_shlibpath_var=no
                   9512:       runpath_var='LD_RUN_PATH'
1.23      millert  9513:
1.27      millert  9514:       if test "$GCC" = yes; then
                   9515:        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9516:        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9517:       else
                   9518:        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9519:        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9520:       fi
                   9521:       ;;
1.23      millert  9522:
1.27      millert  9523:     sysv5* | sco3.2v5* | sco5v6*)
                   9524:       # Note: We can NOT use -z defs as we might desire, because we do not
                   9525:       # link with -lc, and that would cause any symbols used from libc to
                   9526:       # always be unresolved, which means just about no library would
                   9527:       # ever link correctly.  If we're not using GNU ld we use -z text
                   9528:       # though, which does catch some bad symbols but isn't as heavy-handed
                   9529:       # as -z defs.
                   9530:       no_undefined_flag='${wl}-z,text'
                   9531:       allow_undefined_flag='${wl}-z,nodefs'
                   9532:       archive_cmds_need_lc=no
                   9533:       hardcode_shlibpath_var=no
                   9534:       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
                   9535:       hardcode_libdir_separator=':'
                   9536:       link_all_deplibs=yes
                   9537:       export_dynamic_flag_spec='${wl}-Bexport'
                   9538:       runpath_var='LD_RUN_PATH'
1.23      millert  9539:
1.27      millert  9540:       if test "$GCC" = yes; then
                   9541:        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9542:        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9543:       else
                   9544:        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9545:        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
                   9546:       fi
                   9547:       ;;
1.23      millert  9548:
1.27      millert  9549:     uts4*)
                   9550:       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
                   9551:       hardcode_libdir_flag_spec='-L$libdir'
                   9552:       hardcode_shlibpath_var=no
                   9553:       ;;
1.23      millert  9554:
1.27      millert  9555:     *)
                   9556:       ld_shlibs=no
                   9557:       ;;
                   9558:     esac
                   9559:   fi
1.23      millert  9560:
1.27      millert  9561: { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
                   9562: echo "${ECHO_T}$ld_shlibs" >&6; }
                   9563: test "$ld_shlibs" = no && can_build_shared=no
1.23      millert  9564:
1.27      millert  9565: #
                   9566: # Do we need to explicitly link libc?
                   9567: #
                   9568: case "x$archive_cmds_need_lc" in
                   9569: x|xyes)
                   9570:   # Assume -lc should be added
                   9571:   archive_cmds_need_lc=yes
1.23      millert  9572:
1.27      millert  9573:   if test "$enable_shared" = yes && test "$GCC" = yes; then
                   9574:     case $archive_cmds in
                   9575:     *'~'*)
                   9576:       # FIXME: we may have to deal with multi-command sequences.
                   9577:       ;;
                   9578:     '$CC '*)
                   9579:       # Test whether the compiler implicitly links with -lc since on some
                   9580:       # systems, -lgcc has to come before -lc. If gcc already passes -lc
                   9581:       # to ld, don't add -lc before -lgcc.
                   9582:       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
                   9583: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
                   9584:       $rm conftest*
                   9585:       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.25      millert  9586:
1.27      millert  9587:       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
                   9588:   (eval $ac_compile) 2>&5
                   9589:   ac_status=$?
                   9590:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   9591:   (exit $ac_status); } 2>conftest.err; then
                   9592:         soname=conftest
                   9593:         lib=conftest
                   9594:         libobjs=conftest.$ac_objext
                   9595:         deplibs=
                   9596:         wl=$lt_prog_compiler_wl
                   9597:        pic_flag=$lt_prog_compiler_pic
                   9598:         compiler_flags=-v
                   9599:         linker_flags=-v
                   9600:         verstring=
                   9601:         output_objdir=.
                   9602:         libname=conftest
                   9603:         lt_save_allow_undefined_flag=$allow_undefined_flag
                   9604:         allow_undefined_flag=
                   9605:         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
                   9606:   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
                   9607:   ac_status=$?
                   9608:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   9609:   (exit $ac_status); }
                   9610:         then
                   9611:          archive_cmds_need_lc=no
                   9612:         else
                   9613:          archive_cmds_need_lc=yes
                   9614:         fi
                   9615:         allow_undefined_flag=$lt_save_allow_undefined_flag
                   9616:       else
                   9617:         cat conftest.err 1>&5
                   9618:       fi
                   9619:       $rm conftest*
                   9620:       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
                   9621: echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
                   9622:       ;;
                   9623:     esac
                   9624:   fi
                   9625:   ;;
                   9626: esac
1.23      millert  9627:
1.27      millert  9628: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
                   9629: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
                   9630: library_names_spec=
                   9631: libname_spec='lib$name'
                   9632: soname_spec=
                   9633: shrext_cmds=".so"
                   9634: postinstall_cmds=
                   9635: postuninstall_cmds=
                   9636: finish_cmds=
                   9637: finish_eval=
                   9638: shlibpath_var=
                   9639: shlibpath_overrides_runpath=unknown
                   9640: version_type=none
                   9641: dynamic_linker="$host_os ld.so"
                   9642: sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.23      millert  9643:
1.27      millert  9644: if test "$GCC" = yes; then
                   9645:   case $host_os in
                   9646:     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
                   9647:     *) lt_awk_arg="/^libraries:/" ;;
                   9648:   esac
                   9649:   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
                   9650:   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
                   9651:     # if the path contains ";" then we assume it to be the separator
                   9652:     # otherwise default to the standard path separator (i.e. ":") - it is
                   9653:     # assumed that no part of a normal pathname contains ";" but that should
                   9654:     # okay in the real world where ";" in dirpaths is itself problematic.
                   9655:     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
                   9656:   else
                   9657:     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
                   9658:   fi
                   9659:   # Ok, now we have the path, separated by spaces, we can step through it
                   9660:   # and add multilib dir if necessary.
                   9661:   lt_tmp_lt_search_path_spec=
                   9662:   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
                   9663:   for lt_sys_path in $lt_search_path_spec; do
                   9664:     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
                   9665:       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
                   9666:     else
                   9667:       test -d "$lt_sys_path" && \
                   9668:        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
                   9669:     fi
                   9670:   done
                   9671:   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
                   9672: BEGIN {RS=" "; FS="/|\n";} {
                   9673:   lt_foo="";
                   9674:   lt_count=0;
                   9675:   for (lt_i = NF; lt_i > 0; lt_i--) {
                   9676:     if ($lt_i != "" && $lt_i != ".") {
                   9677:       if ($lt_i == "..") {
                   9678:         lt_count++;
                   9679:       } else {
                   9680:         if (lt_count == 0) {
                   9681:           lt_foo="/" $lt_i lt_foo;
                   9682:         } else {
                   9683:           lt_count--;
                   9684:         }
                   9685:       }
                   9686:     }
                   9687:   }
                   9688:   if (lt_foo != "") { lt_freq[lt_foo]++; }
                   9689:   if (lt_freq[lt_foo] == 1) { print lt_foo; }
                   9690: }'`
                   9691:   sys_lib_search_path_spec=`echo $lt_search_path_spec`
1.25      millert  9692: else
1.27      millert  9693:   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.25      millert  9694: fi
1.27      millert  9695: need_lib_prefix=no
                   9696: hardcode_into_libs=no
1.25      millert  9697:
1.27      millert  9698: # when you set need_version to no, make sure it does not cause -set_version
                   9699: # flags to be left without arguments
                   9700: need_version=no
1.25      millert  9701:
1.27      millert  9702: case $host_os in
                   9703: aix3*)
                   9704:   version_type=linux
                   9705:   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
                   9706:   shlibpath_var=LIBPATH
1.25      millert  9707:
1.27      millert  9708:   # AIX 3 has no versioning support, so we append a major version to the name.
                   9709:   soname_spec='${libname}${release}${shared_ext}$major'
                   9710:   ;;
1.23      millert  9711:
1.36      millert  9712: aix[4-9]*)
1.27      millert  9713:   version_type=linux
                   9714:   need_lib_prefix=no
                   9715:   need_version=no
                   9716:   hardcode_into_libs=yes
                   9717:   if test "$host_cpu" = ia64; then
                   9718:     # AIX 5 supports IA64
                   9719:     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
                   9720:     shlibpath_var=LD_LIBRARY_PATH
                   9721:   else
                   9722:     # With GCC up to 2.95.x, collect2 would create an import file
                   9723:     # for dependence libraries.  The import file would start with
                   9724:     # the line `#! .'.  This would cause the generated library to
                   9725:     # depend on `.', always an invalid library.  This was fixed in
                   9726:     # development snapshots of GCC prior to 3.0.
                   9727:     case $host_os in
                   9728:       aix4 | aix4.[01] | aix4.[01].*)
                   9729:       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
                   9730:           echo ' yes '
                   9731:           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
                   9732:        :
                   9733:       else
                   9734:        can_build_shared=no
                   9735:       fi
                   9736:       ;;
                   9737:     esac
                   9738:     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
                   9739:     # soname into executable. Probably we can add versioning support to
                   9740:     # collect2, so additional links can be useful in future.
                   9741:     if test "$aix_use_runtimelinking" = yes; then
                   9742:       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
                   9743:       # instead of lib<name>.a to let people know that these are not
                   9744:       # typical AIX shared libraries.
                   9745:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9746:     else
                   9747:       # We preserve .a as extension for shared libraries through AIX4.2
                   9748:       # and later when we are not doing run time linking.
                   9749:       library_names_spec='${libname}${release}.a $libname.a'
                   9750:       soname_spec='${libname}${release}${shared_ext}$major'
                   9751:     fi
                   9752:     shlibpath_var=LIBPATH
                   9753:   fi
                   9754:   ;;
1.23      millert  9755:
1.27      millert  9756: amigaos*)
                   9757:   library_names_spec='$libname.ixlibrary $libname.a'
                   9758:   # Create ${libname}_ixlibrary.a entries in /sys/libs.
                   9759:   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
                   9760:   ;;
1.23      millert  9761:
1.27      millert  9762: beos*)
                   9763:   library_names_spec='${libname}${shared_ext}'
                   9764:   dynamic_linker="$host_os ld.so"
                   9765:   shlibpath_var=LIBRARY_PATH
                   9766:   ;;
1.23      millert  9767:
1.27      millert  9768: bsdi[45]*)
                   9769:   version_type=linux
                   9770:   need_version=no
                   9771:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9772:   soname_spec='${libname}${release}${shared_ext}$major'
                   9773:   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
                   9774:   shlibpath_var=LD_LIBRARY_PATH
                   9775:   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
                   9776:   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
                   9777:   # the default ld.so.conf also contains /usr/contrib/lib and
                   9778:   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
                   9779:   # libtool to hard-code these into programs
                   9780:   ;;
1.23      millert  9781:
1.27      millert  9782: cygwin* | mingw* | pw32*)
                   9783:   version_type=windows
                   9784:   shrext_cmds=".dll"
                   9785:   need_version=no
                   9786:   need_lib_prefix=no
1.23      millert  9787:
1.27      millert  9788:   case $GCC,$host_os in
                   9789:   yes,cygwin* | yes,mingw* | yes,pw32*)
                   9790:     library_names_spec='$libname.dll.a'
                   9791:     # DLL is installed to $(libdir)/../bin by postinstall_cmds
                   9792:     postinstall_cmds='base_file=`basename \${file}`~
                   9793:       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
                   9794:       dldir=$destdir/`dirname \$dlpath`~
                   9795:       test -d \$dldir || mkdir -p \$dldir~
                   9796:       $install_prog $dir/$dlname \$dldir/$dlname~
                   9797:       chmod a+x \$dldir/$dlname'
                   9798:     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
                   9799:       dlpath=$dir/\$dldll~
                   9800:        $rm \$dlpath'
                   9801:     shlibpath_overrides_runpath=yes
1.23      millert  9802:
1.27      millert  9803:     case $host_os in
                   9804:     cygwin*)
                   9805:       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
                   9806:       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   9807:       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
                   9808:       ;;
                   9809:     mingw*)
                   9810:       # MinGW DLLs use traditional 'lib' prefix
                   9811:       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   9812:       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
                   9813:       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
                   9814:         # It is most probably a Windows format PATH printed by
                   9815:         # mingw gcc, but we are running on Cygwin. Gcc prints its search
                   9816:         # path with ; separators, and with drive letters. We can handle the
                   9817:         # drive letters (cygwin fileutils understands them), so leave them,
                   9818:         # especially as we might pass files found there to a mingw objdump,
                   9819:         # which wouldn't understand a cygwinified path. Ahh.
                   9820:         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
                   9821:       else
                   9822:         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
                   9823:       fi
                   9824:       ;;
                   9825:     pw32*)
                   9826:       # pw32 DLLs use 'pw' prefix rather than 'lib'
                   9827:       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
                   9828:       ;;
                   9829:     esac
                   9830:     ;;
1.23      millert  9831:
1.27      millert  9832:   *)
                   9833:     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
                   9834:     ;;
                   9835:   esac
                   9836:   dynamic_linker='Win32 ld.exe'
                   9837:   # FIXME: first we should search . and the directory the executable is in
                   9838:   shlibpath_var=PATH
                   9839:   ;;
1.23      millert  9840:
1.27      millert  9841: darwin* | rhapsody*)
                   9842:   dynamic_linker="$host_os dyld"
                   9843:   version_type=darwin
                   9844:   need_lib_prefix=no
                   9845:   need_version=no
                   9846:   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
                   9847:   soname_spec='${libname}${release}${major}$shared_ext'
                   9848:   shlibpath_overrides_runpath=yes
                   9849:   shlibpath_var=DYLD_LIBRARY_PATH
                   9850:   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.23      millert  9851:
1.27      millert  9852:   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
                   9853:   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
                   9854:   ;;
1.23      millert  9855:
1.27      millert  9856: dgux*)
                   9857:   version_type=linux
                   9858:   need_lib_prefix=no
                   9859:   need_version=no
                   9860:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
                   9861:   soname_spec='${libname}${release}${shared_ext}$major'
                   9862:   shlibpath_var=LD_LIBRARY_PATH
                   9863:   ;;
1.23      millert  9864:
1.27      millert  9865: freebsd1*)
                   9866:   dynamic_linker=no
                   9867:   ;;
1.23      millert  9868:
1.27      millert  9869: freebsd* | dragonfly*)
                   9870:   # DragonFly does not have aout.  When/if they implement a new
                   9871:   # versioning mechanism, adjust this.
                   9872:   if test -x /usr/bin/objformat; then
                   9873:     objformat=`/usr/bin/objformat`
                   9874:   else
                   9875:     case $host_os in
                   9876:     freebsd[123]*) objformat=aout ;;
                   9877:     *) objformat=elf ;;
                   9878:     esac
                   9879:   fi
                   9880:   version_type=freebsd-$objformat
                   9881:   case $version_type in
                   9882:     freebsd-elf*)
                   9883:       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
                   9884:       need_version=no
                   9885:       need_lib_prefix=no
                   9886:       ;;
                   9887:     freebsd-*)
                   9888:       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
                   9889:       need_version=no
                   9890:       ;;
                   9891:   esac
                   9892:   shlibpath_var=LD_LIBRARY_PATH
                   9893:   case $host_os in
                   9894:   freebsd2*)
                   9895:     shlibpath_overrides_runpath=yes
                   9896:     ;;
                   9897:   freebsd3.[01]* | freebsdelf3.[01]*)
                   9898:     shlibpath_overrides_runpath=yes
                   9899:     hardcode_into_libs=yes
                   9900:     ;;
                   9901:   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
                   9902:   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
                   9903:     shlibpath_overrides_runpath=no
                   9904:     hardcode_into_libs=yes
                   9905:     ;;
                   9906:   *) # from 4.6 on, and DragonFly
                   9907:     shlibpath_overrides_runpath=yes
                   9908:     hardcode_into_libs=yes
                   9909:     ;;
                   9910:   esac
                   9911:   ;;
1.23      millert  9912:
1.27      millert  9913: gnu*)
                   9914:   version_type=linux
                   9915:   need_lib_prefix=no
                   9916:   need_version=no
                   9917:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
                   9918:   soname_spec='${libname}${release}${shared_ext}$major'
                   9919:   shlibpath_var=LD_LIBRARY_PATH
                   9920:   hardcode_into_libs=yes
                   9921:   ;;
1.23      millert  9922:
1.27      millert  9923: hpux9* | hpux10* | hpux11*)
                   9924:   # Give a soname corresponding to the major version so that dld.sl refuses to
                   9925:   # link against other versions.
                   9926:   version_type=sunos
                   9927:   need_lib_prefix=no
                   9928:   need_version=no
                   9929:   case $host_cpu in
                   9930:   ia64*)
                   9931:     shrext_cmds='.so'
                   9932:     hardcode_into_libs=yes
                   9933:     dynamic_linker="$host_os dld.so"
                   9934:     shlibpath_var=LD_LIBRARY_PATH
                   9935:     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
                   9936:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9937:     soname_spec='${libname}${release}${shared_ext}$major'
                   9938:     if test "X$HPUX_IA64_MODE" = X32; then
                   9939:       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
                   9940:     else
                   9941:       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
                   9942:     fi
                   9943:     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
                   9944:     ;;
                   9945:    hppa*64*)
                   9946:      shrext_cmds='.sl'
                   9947:      hardcode_into_libs=yes
                   9948:      dynamic_linker="$host_os dld.sl"
                   9949:      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
                   9950:      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
                   9951:      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9952:      soname_spec='${libname}${release}${shared_ext}$major'
                   9953:      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
                   9954:      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
                   9955:      ;;
                   9956:    *)
                   9957:     shrext_cmds='.sl'
                   9958:     dynamic_linker="$host_os dld.sl"
                   9959:     shlibpath_var=SHLIB_PATH
                   9960:     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
                   9961:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   9962:     soname_spec='${libname}${release}${shared_ext}$major'
                   9963:     ;;
                   9964:   esac
                   9965:   # HP-UX runs *really* slowly unless shared libraries are mode 555.
                   9966:   postinstall_cmds='chmod 555 $lib'
                   9967:   ;;
1.23      millert  9968:
1.27      millert  9969: interix[3-9]*)
                   9970:   version_type=linux
                   9971:   need_lib_prefix=no
                   9972:   need_version=no
                   9973:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
                   9974:   soname_spec='${libname}${release}${shared_ext}$major'
                   9975:   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
                   9976:   shlibpath_var=LD_LIBRARY_PATH
                   9977:   shlibpath_overrides_runpath=no
                   9978:   hardcode_into_libs=yes
                   9979:   ;;
1.23      millert  9980:
1.27      millert  9981: irix5* | irix6* | nonstopux*)
                   9982:   case $host_os in
                   9983:     nonstopux*) version_type=nonstopux ;;
                   9984:     *)
                   9985:        if test "$lt_cv_prog_gnu_ld" = yes; then
                   9986:                version_type=linux
                   9987:        else
                   9988:                version_type=irix
                   9989:        fi ;;
                   9990:   esac
                   9991:   need_lib_prefix=no
                   9992:   need_version=no
                   9993:   soname_spec='${libname}${release}${shared_ext}$major'
                   9994:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
                   9995:   case $host_os in
                   9996:   irix5* | nonstopux*)
                   9997:     libsuff= shlibsuff=
                   9998:     ;;
                   9999:   *)
                   10000:     case $LD in # libtool.m4 will add one of these switches to LD
                   10001:     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
                   10002:       libsuff= shlibsuff= libmagic=32-bit;;
                   10003:     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
                   10004:       libsuff=32 shlibsuff=N32 libmagic=N32;;
                   10005:     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
                   10006:       libsuff=64 shlibsuff=64 libmagic=64-bit;;
                   10007:     *) libsuff= shlibsuff= libmagic=never-match;;
                   10008:     esac
                   10009:     ;;
                   10010:   esac
                   10011:   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
                   10012:   shlibpath_overrides_runpath=no
                   10013:   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
                   10014:   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
                   10015:   hardcode_into_libs=yes
                   10016:   ;;
1.23      millert  10017:
1.27      millert  10018: # No shared lib support for Linux oldld, aout, or coff.
                   10019: linux*oldld* | linux*aout* | linux*coff*)
                   10020:   dynamic_linker=no
1.25      millert  10021:   ;;
1.23      millert  10022:
1.27      millert  10023: # This must be Linux ELF.
                   10024: linux* | k*bsd*-gnu)
                   10025:   version_type=linux
                   10026:   need_lib_prefix=no
                   10027:   need_version=no
                   10028:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10029:   soname_spec='${libname}${release}${shared_ext}$major'
                   10030:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
                   10031:   shlibpath_var=LD_LIBRARY_PATH
                   10032:   shlibpath_overrides_runpath=no
                   10033:   # This implies no fast_install, which is unacceptable.
                   10034:   # Some rework will be needed to allow for fast_install
                   10035:   # before this can be enabled.
                   10036:   hardcode_into_libs=yes
1.23      millert  10037:
1.27      millert  10038:   # Append ld.so.conf contents to the search path
                   10039:   if test -f /etc/ld.so.conf; then
                   10040:     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[     ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
                   10041:     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
                   10042:   fi
1.23      millert  10043:
1.27      millert  10044:   # We used to test for /lib/ld.so.1 and disable shared libraries on
                   10045:   # powerpc, because MkLinux only supported shared libraries with the
                   10046:   # GNU dynamic linker.  Since this was broken with cross compilers,
                   10047:   # most powerpc-linux boxes support dynamic linking these days and
                   10048:   # people can always --disable-shared, the test was removed, and we
                   10049:   # assume the GNU/Linux dynamic linker is in use.
                   10050:   dynamic_linker='GNU/Linux ld.so'
                   10051:   ;;
1.23      millert  10052:
1.27      millert  10053: netbsd*)
                   10054:   version_type=sunos
                   10055:   need_lib_prefix=no
                   10056:   need_version=no
                   10057:   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
                   10058:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
                   10059:     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
                   10060:     dynamic_linker='NetBSD (a.out) ld.so'
                   10061:   else
                   10062:     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
                   10063:     soname_spec='${libname}${release}${shared_ext}$major'
                   10064:     dynamic_linker='NetBSD ld.elf_so'
                   10065:   fi
                   10066:   shlibpath_var=LD_LIBRARY_PATH
                   10067:   shlibpath_overrides_runpath=yes
                   10068:   hardcode_into_libs=yes
                   10069:   ;;
1.23      millert  10070:
1.27      millert  10071: newsos6)
                   10072:   version_type=linux
                   10073:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10074:   shlibpath_var=LD_LIBRARY_PATH
                   10075:   shlibpath_overrides_runpath=yes
                   10076:   ;;
1.23      millert  10077:
1.27      millert  10078: nto-qnx*)
                   10079:   version_type=linux
                   10080:   need_lib_prefix=no
                   10081:   need_version=no
                   10082:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10083:   soname_spec='${libname}${release}${shared_ext}$major'
                   10084:   shlibpath_var=LD_LIBRARY_PATH
                   10085:   shlibpath_overrides_runpath=yes
                   10086:   ;;
1.23      millert  10087:
1.27      millert  10088: openbsd*)
                   10089:   version_type=sunos
                   10090:   sys_lib_dlsearch_path_spec="/usr/lib"
                   10091:   need_lib_prefix=no
                   10092:   need_version=no
                   10093:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
                   10094:   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
                   10095:   shlibpath_var=LD_LIBRARY_PATH
                   10096:   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
                   10097:     case $host_os in
                   10098:       openbsd2.[89] | openbsd2.[89].*)
                   10099:        shlibpath_overrides_runpath=no
                   10100:        ;;
                   10101:       *)
                   10102:        shlibpath_overrides_runpath=yes
                   10103:        ;;
                   10104:       esac
                   10105:   else
                   10106:     shlibpath_overrides_runpath=yes
                   10107:   fi
                   10108:   ;;
1.23      millert  10109:
1.27      millert  10110: os2*)
                   10111:   libname_spec='$name'
                   10112:   shrext_cmds=".dll"
                   10113:   need_lib_prefix=no
                   10114:   library_names_spec='$libname${shared_ext} $libname.a'
                   10115:   dynamic_linker='OS/2 ld.exe'
                   10116:   shlibpath_var=LIBPATH
                   10117:   ;;
1.23      millert  10118:
1.27      millert  10119: osf3* | osf4* | osf5*)
                   10120:   version_type=osf
                   10121:   need_lib_prefix=no
                   10122:   need_version=no
                   10123:   soname_spec='${libname}${release}${shared_ext}$major'
                   10124:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10125:   shlibpath_var=LD_LIBRARY_PATH
                   10126:   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
                   10127:   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
                   10128:   ;;
1.23      millert  10129:
1.27      millert  10130: rdos*)
                   10131:   dynamic_linker=no
                   10132:   ;;
1.23      millert  10133:
1.27      millert  10134: solaris*)
                   10135:   version_type=linux
                   10136:   need_lib_prefix=no
                   10137:   need_version=no
                   10138:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10139:   soname_spec='${libname}${release}${shared_ext}$major'
                   10140:   shlibpath_var=LD_LIBRARY_PATH
                   10141:   shlibpath_overrides_runpath=yes
                   10142:   hardcode_into_libs=yes
                   10143:   # ldd complains unless libraries are executable
                   10144:   postinstall_cmds='chmod +x $lib'
                   10145:   ;;
1.23      millert  10146:
1.27      millert  10147: sunos4*)
                   10148:   version_type=sunos
                   10149:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
                   10150:   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
                   10151:   shlibpath_var=LD_LIBRARY_PATH
                   10152:   shlibpath_overrides_runpath=yes
                   10153:   if test "$with_gnu_ld" = yes; then
                   10154:     need_lib_prefix=no
                   10155:   fi
                   10156:   need_version=no
                   10157:   ;;
1.23      millert  10158:
1.27      millert  10159: sysv4 | sysv4.3*)
                   10160:   version_type=linux
                   10161:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10162:   soname_spec='${libname}${release}${shared_ext}$major'
                   10163:   shlibpath_var=LD_LIBRARY_PATH
                   10164:   case $host_vendor in
                   10165:     sni)
                   10166:       shlibpath_overrides_runpath=no
                   10167:       need_lib_prefix=no
                   10168:       export_dynamic_flag_spec='${wl}-Blargedynsym'
                   10169:       runpath_var=LD_RUN_PATH
                   10170:       ;;
                   10171:     siemens)
                   10172:       need_lib_prefix=no
                   10173:       ;;
                   10174:     motorola)
                   10175:       need_lib_prefix=no
                   10176:       need_version=no
                   10177:       shlibpath_overrides_runpath=no
                   10178:       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
                   10179:       ;;
                   10180:   esac
1.25      millert  10181:   ;;
                   10182:
1.27      millert  10183: sysv4*MP*)
                   10184:   if test -d /usr/nec ;then
                   10185:     version_type=linux
                   10186:     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
                   10187:     soname_spec='$libname${shared_ext}.$major'
                   10188:     shlibpath_var=LD_LIBRARY_PATH
                   10189:   fi
                   10190:   ;;
1.25      millert  10191:
1.27      millert  10192: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
                   10193:   version_type=freebsd-elf
                   10194:   need_lib_prefix=no
                   10195:   need_version=no
                   10196:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
                   10197:   soname_spec='${libname}${release}${shared_ext}$major'
                   10198:   shlibpath_var=LD_LIBRARY_PATH
                   10199:   hardcode_into_libs=yes
                   10200:   if test "$with_gnu_ld" = yes; then
                   10201:     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
                   10202:     shlibpath_overrides_runpath=no
                   10203:   else
                   10204:     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
                   10205:     shlibpath_overrides_runpath=yes
                   10206:     case $host_os in
                   10207:       sco3.2v5*)
                   10208:         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
                   10209:        ;;
                   10210:     esac
                   10211:   fi
                   10212:   sys_lib_dlsearch_path_spec='/usr/lib'
1.25      millert  10213:   ;;
1.23      millert  10214:
1.27      millert  10215: uts4*)
                   10216:   version_type=linux
                   10217:   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
                   10218:   soname_spec='${libname}${release}${shared_ext}$major'
                   10219:   shlibpath_var=LD_LIBRARY_PATH
                   10220:   ;;
1.23      millert  10221:
1.25      millert  10222: *)
1.27      millert  10223:   dynamic_linker=no
1.25      millert  10224:   ;;
                   10225: esac
1.27      millert  10226: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
                   10227: echo "${ECHO_T}$dynamic_linker" >&6; }
                   10228: test "$dynamic_linker" = no && can_build_shared=no
1.23      millert  10229:
1.36      millert  10230: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
                   10231:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10232: else
                   10233:   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
                   10234: fi
                   10235:
                   10236: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
                   10237: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
                   10238:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10239: else
                   10240:   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
                   10241: fi
                   10242:
                   10243: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
                   10244:
1.27      millert  10245: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
                   10246: if test "$GCC" = yes; then
                   10247:   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1.25      millert  10248: fi
                   10249:
1.27      millert  10250: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
                   10251: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
                   10252: hardcode_action=
                   10253: if test -n "$hardcode_libdir_flag_spec" || \
                   10254:    test -n "$runpath_var" || \
                   10255:    test "X$hardcode_automatic" = "Xyes" ; then
1.23      millert  10256:
1.32      millert  10257:   # We can hardcode non-existent directories.
1.27      millert  10258:   if test "$hardcode_direct" != no &&
                   10259:      # If the only mechanism to avoid hardcoding is shlibpath_var, we
                   10260:      # have to relink, otherwise we might link with an installed library
                   10261:      # when we should be linking with a yet-to-be-installed one
                   10262:      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
                   10263:      test "$hardcode_minus_L" != no; then
                   10264:     # Linking always hardcodes the temporary library directory.
                   10265:     hardcode_action=relink
1.25      millert  10266:   else
1.27      millert  10267:     # We can link without hardcoding, and we can hardcode nonexisting dirs.
                   10268:     hardcode_action=immediate
1.25      millert  10269:   fi
1.27      millert  10270: else
                   10271:   # We cannot hardcode anything, or else we can only hardcode existing
                   10272:   # directories.
                   10273:   hardcode_action=unsupported
1.23      millert  10274: fi
1.27      millert  10275: { echo "$as_me:$LINENO: result: $hardcode_action" >&5
                   10276: echo "${ECHO_T}$hardcode_action" >&6; }
1.23      millert  10277:
1.27      millert  10278: if test "$hardcode_action" = relink; then
                   10279:   # Fast installation is not supported
                   10280:   enable_fast_install=no
                   10281: elif test "$shlibpath_overrides_runpath" = yes ||
                   10282:      test "$enable_shared" = no; then
                   10283:   # Fast installation is not necessary
                   10284:   enable_fast_install=needless
                   10285: fi
1.25      millert  10286:
1.27      millert  10287: striplib=
                   10288: old_striplib=
                   10289: { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
                   10290: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
                   10291: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
                   10292:   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
                   10293:   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
                   10294:   { echo "$as_me:$LINENO: result: yes" >&5
                   10295: echo "${ECHO_T}yes" >&6; }
                   10296: else
                   10297: # FIXME - insert some real tests, host_os isn't really good enough
                   10298:   case $host_os in
                   10299:    darwin*)
                   10300:        if test -n "$STRIP" ; then
                   10301:          striplib="$STRIP -x"
                   10302:          old_striplib="$STRIP -S"
                   10303:          { echo "$as_me:$LINENO: result: yes" >&5
                   10304: echo "${ECHO_T}yes" >&6; }
                   10305:        else
                   10306:   { echo "$as_me:$LINENO: result: no" >&5
                   10307: echo "${ECHO_T}no" >&6; }
                   10308: fi
                   10309:        ;;
                   10310:    *)
                   10311:   { echo "$as_me:$LINENO: result: no" >&5
                   10312: echo "${ECHO_T}no" >&6; }
                   10313:     ;;
                   10314:   esac
                   10315: fi
1.25      millert  10316:
1.27      millert  10317: if test "x$enable_dlopen" != xyes; then
                   10318:   enable_dlopen=unknown
                   10319:   enable_dlopen_self=unknown
                   10320:   enable_dlopen_self_static=unknown
                   10321: else
                   10322:   lt_cv_dlopen=no
                   10323:   lt_cv_dlopen_libs=
1.25      millert  10324:
1.27      millert  10325:   case $host_os in
                   10326:   beos*)
                   10327:     lt_cv_dlopen="load_add_on"
                   10328:     lt_cv_dlopen_libs=
                   10329:     lt_cv_dlopen_self=yes
                   10330:     ;;
1.23      millert  10331:
1.27      millert  10332:   mingw* | pw32*)
                   10333:     lt_cv_dlopen="LoadLibrary"
                   10334:     lt_cv_dlopen_libs=
                   10335:    ;;
1.23      millert  10336:
1.27      millert  10337:   cygwin*)
                   10338:     lt_cv_dlopen="dlopen"
                   10339:     lt_cv_dlopen_libs=
                   10340:    ;;
1.23      millert  10341:
1.27      millert  10342:   darwin*)
                   10343:   # if libdl is installed we need to link against it
                   10344:     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
                   10345: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
                   10346: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
                   10347:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10348: else
                   10349:   ac_check_lib_save_LIBS=$LIBS
                   10350: LIBS="-ldl  $LIBS"
                   10351: cat >conftest.$ac_ext <<_ACEOF
                   10352: /* confdefs.h.  */
                   10353: _ACEOF
                   10354: cat confdefs.h >>conftest.$ac_ext
                   10355: cat >>conftest.$ac_ext <<_ACEOF
                   10356: /* end confdefs.h.  */
1.23      millert  10357:
1.27      millert  10358: /* Override any GCC internal prototype to avoid an error.
                   10359:    Use char because int might match the return type of a GCC
                   10360:    builtin and then its argument prototype would still apply.  */
                   10361: #ifdef __cplusplus
                   10362: extern "C"
                   10363: #endif
                   10364: char dlopen ();
                   10365: int
                   10366: main ()
                   10367: {
                   10368: return dlopen ();
                   10369:   ;
                   10370:   return 0;
                   10371: }
                   10372: _ACEOF
                   10373: rm -f conftest.$ac_objext conftest$ac_exeext
                   10374: if { (ac_try="$ac_link"
                   10375: case "(($ac_try" in
                   10376:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10377:   *) ac_try_echo=$ac_try;;
                   10378: esac
                   10379: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10380:   (eval "$ac_link") 2>conftest.er1
                   10381:   ac_status=$?
                   10382:   grep -v '^ *+' conftest.er1 >conftest.err
                   10383:   rm -f conftest.er1
                   10384:   cat conftest.err >&5
                   10385:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10386:   (exit $ac_status); } && {
                   10387:         test -z "$ac_c_werror_flag" ||
                   10388:         test ! -s conftest.err
                   10389:        } && test -s conftest$ac_exeext &&
                   10390:        $as_test_x conftest$ac_exeext; then
                   10391:   ac_cv_lib_dl_dlopen=yes
                   10392: else
                   10393:   echo "$as_me: failed program was:" >&5
                   10394: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  10395:
1.27      millert  10396:        ac_cv_lib_dl_dlopen=no
                   10397: fi
1.23      millert  10398:
1.27      millert  10399: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10400:       conftest$ac_exeext conftest.$ac_ext
                   10401: LIBS=$ac_check_lib_save_LIBS
                   10402: fi
                   10403: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
                   10404: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
                   10405: if test $ac_cv_lib_dl_dlopen = yes; then
                   10406:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
                   10407: else
1.23      millert  10408:
1.27      millert  10409:     lt_cv_dlopen="dyld"
                   10410:     lt_cv_dlopen_libs=
                   10411:     lt_cv_dlopen_self=yes
1.23      millert  10412:
1.27      millert  10413: fi
1.23      millert  10414:
1.27      millert  10415:    ;;
1.23      millert  10416:
1.27      millert  10417:   *)
                   10418:     { echo "$as_me:$LINENO: checking for shl_load" >&5
                   10419: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
                   10420: if test "${ac_cv_func_shl_load+set}" = set; then
                   10421:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10422: else
                   10423:   cat >conftest.$ac_ext <<_ACEOF
                   10424: /* confdefs.h.  */
                   10425: _ACEOF
                   10426: cat confdefs.h >>conftest.$ac_ext
                   10427: cat >>conftest.$ac_ext <<_ACEOF
                   10428: /* end confdefs.h.  */
                   10429: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
                   10430:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   10431: #define shl_load innocuous_shl_load
1.23      millert  10432:
1.27      millert  10433: /* System header to define __stub macros and hopefully few prototypes,
                   10434:     which can conflict with char shl_load (); below.
                   10435:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   10436:     <limits.h> exists even on freestanding compilers.  */
1.23      millert  10437:
1.27      millert  10438: #ifdef __STDC__
                   10439: # include <limits.h>
                   10440: #else
                   10441: # include <assert.h>
                   10442: #endif
1.23      millert  10443:
1.27      millert  10444: #undef shl_load
1.23      millert  10445:
1.27      millert  10446: /* Override any GCC internal prototype to avoid an error.
                   10447:    Use char because int might match the return type of a GCC
                   10448:    builtin and then its argument prototype would still apply.  */
                   10449: #ifdef __cplusplus
                   10450: extern "C"
                   10451: #endif
                   10452: char shl_load ();
                   10453: /* The GNU C library defines this for functions which it implements
                   10454:     to always fail with ENOSYS.  Some functions are actually named
                   10455:     something starting with __ and the normal name is an alias.  */
                   10456: #if defined __stub_shl_load || defined __stub___shl_load
                   10457: choke me
                   10458: #endif
1.23      millert  10459:
1.27      millert  10460: int
                   10461: main ()
                   10462: {
                   10463: return shl_load ();
                   10464:   ;
                   10465:   return 0;
                   10466: }
                   10467: _ACEOF
                   10468: rm -f conftest.$ac_objext conftest$ac_exeext
                   10469: if { (ac_try="$ac_link"
                   10470: case "(($ac_try" in
                   10471:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10472:   *) ac_try_echo=$ac_try;;
                   10473: esac
                   10474: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10475:   (eval "$ac_link") 2>conftest.er1
                   10476:   ac_status=$?
                   10477:   grep -v '^ *+' conftest.er1 >conftest.err
                   10478:   rm -f conftest.er1
                   10479:   cat conftest.err >&5
                   10480:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10481:   (exit $ac_status); } && {
                   10482:         test -z "$ac_c_werror_flag" ||
                   10483:         test ! -s conftest.err
                   10484:        } && test -s conftest$ac_exeext &&
                   10485:        $as_test_x conftest$ac_exeext; then
                   10486:   ac_cv_func_shl_load=yes
                   10487: else
                   10488:   echo "$as_me: failed program was:" >&5
                   10489: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  10490:
1.27      millert  10491:        ac_cv_func_shl_load=no
                   10492: fi
1.23      millert  10493:
1.27      millert  10494: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10495:       conftest$ac_exeext conftest.$ac_ext
1.25      millert  10496: fi
1.27      millert  10497: { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
                   10498: echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
                   10499: if test $ac_cv_func_shl_load = yes; then
                   10500:   lt_cv_dlopen="shl_load"
                   10501: else
                   10502:   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
                   10503: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
                   10504: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
1.25      millert  10505:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10506: else
1.27      millert  10507:   ac_check_lib_save_LIBS=$LIBS
                   10508: LIBS="-ldld  $LIBS"
                   10509: cat >conftest.$ac_ext <<_ACEOF
                   10510: /* confdefs.h.  */
                   10511: _ACEOF
                   10512: cat confdefs.h >>conftest.$ac_ext
                   10513: cat >>conftest.$ac_ext <<_ACEOF
                   10514: /* end confdefs.h.  */
1.25      millert  10515:
1.27      millert  10516: /* Override any GCC internal prototype to avoid an error.
                   10517:    Use char because int might match the return type of a GCC
                   10518:    builtin and then its argument prototype would still apply.  */
                   10519: #ifdef __cplusplus
                   10520: extern "C"
                   10521: #endif
                   10522: char shl_load ();
                   10523: int
                   10524: main ()
                   10525: {
                   10526: return shl_load ();
                   10527:   ;
                   10528:   return 0;
                   10529: }
                   10530: _ACEOF
                   10531: rm -f conftest.$ac_objext conftest$ac_exeext
                   10532: if { (ac_try="$ac_link"
                   10533: case "(($ac_try" in
                   10534:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10535:   *) ac_try_echo=$ac_try;;
                   10536: esac
                   10537: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10538:   (eval "$ac_link") 2>conftest.er1
                   10539:   ac_status=$?
                   10540:   grep -v '^ *+' conftest.er1 >conftest.err
                   10541:   rm -f conftest.er1
                   10542:   cat conftest.err >&5
                   10543:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10544:   (exit $ac_status); } && {
                   10545:         test -z "$ac_c_werror_flag" ||
                   10546:         test ! -s conftest.err
                   10547:        } && test -s conftest$ac_exeext &&
                   10548:        $as_test_x conftest$ac_exeext; then
                   10549:   ac_cv_lib_dld_shl_load=yes
1.25      millert  10550: else
1.27      millert  10551:   echo "$as_me: failed program was:" >&5
                   10552: sed 's/^/| /' conftest.$ac_ext >&5
1.25      millert  10553:
1.27      millert  10554:        ac_cv_lib_dld_shl_load=no
1.25      millert  10555: fi
                   10556:
1.27      millert  10557: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10558:       conftest$ac_exeext conftest.$ac_ext
                   10559: LIBS=$ac_check_lib_save_LIBS
                   10560: fi
                   10561: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
                   10562: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
                   10563: if test $ac_cv_lib_dld_shl_load = yes; then
1.36      millert  10564:   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1.27      millert  10565: else
                   10566:   { echo "$as_me:$LINENO: checking for dlopen" >&5
                   10567: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
                   10568: if test "${ac_cv_func_dlopen+set}" = set; then
                   10569:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10570: else
                   10571:   cat >conftest.$ac_ext <<_ACEOF
                   10572: /* confdefs.h.  */
                   10573: _ACEOF
                   10574: cat confdefs.h >>conftest.$ac_ext
                   10575: cat >>conftest.$ac_ext <<_ACEOF
                   10576: /* end confdefs.h.  */
                   10577: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
                   10578:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   10579: #define dlopen innocuous_dlopen
                   10580:
                   10581: /* System header to define __stub macros and hopefully few prototypes,
                   10582:     which can conflict with char dlopen (); below.
                   10583:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   10584:     <limits.h> exists even on freestanding compilers.  */
                   10585:
                   10586: #ifdef __STDC__
                   10587: # include <limits.h>
                   10588: #else
                   10589: # include <assert.h>
                   10590: #endif
                   10591:
                   10592: #undef dlopen
                   10593:
                   10594: /* Override any GCC internal prototype to avoid an error.
                   10595:    Use char because int might match the return type of a GCC
                   10596:    builtin and then its argument prototype would still apply.  */
                   10597: #ifdef __cplusplus
                   10598: extern "C"
                   10599: #endif
                   10600: char dlopen ();
                   10601: /* The GNU C library defines this for functions which it implements
                   10602:     to always fail with ENOSYS.  Some functions are actually named
                   10603:     something starting with __ and the normal name is an alias.  */
                   10604: #if defined __stub_dlopen || defined __stub___dlopen
                   10605: choke me
                   10606: #endif
                   10607:
                   10608: int
                   10609: main ()
                   10610: {
                   10611: return dlopen ();
                   10612:   ;
                   10613:   return 0;
                   10614: }
                   10615: _ACEOF
                   10616: rm -f conftest.$ac_objext conftest$ac_exeext
                   10617: if { (ac_try="$ac_link"
                   10618: case "(($ac_try" in
                   10619:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10620:   *) ac_try_echo=$ac_try;;
                   10621: esac
                   10622: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10623:   (eval "$ac_link") 2>conftest.er1
                   10624:   ac_status=$?
                   10625:   grep -v '^ *+' conftest.er1 >conftest.err
                   10626:   rm -f conftest.er1
                   10627:   cat conftest.err >&5
                   10628:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10629:   (exit $ac_status); } && {
                   10630:         test -z "$ac_c_werror_flag" ||
                   10631:         test ! -s conftest.err
                   10632:        } && test -s conftest$ac_exeext &&
                   10633:        $as_test_x conftest$ac_exeext; then
                   10634:   ac_cv_func_dlopen=yes
                   10635: else
                   10636:   echo "$as_me: failed program was:" >&5
                   10637: sed 's/^/| /' conftest.$ac_ext >&5
                   10638:
                   10639:        ac_cv_func_dlopen=no
                   10640: fi
                   10641:
                   10642: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10643:       conftest$ac_exeext conftest.$ac_ext
                   10644: fi
                   10645: { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
                   10646: echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
                   10647: if test $ac_cv_func_dlopen = yes; then
                   10648:   lt_cv_dlopen="dlopen"
                   10649: else
                   10650:   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
                   10651: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
                   10652: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
                   10653:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10654: else
                   10655:   ac_check_lib_save_LIBS=$LIBS
                   10656: LIBS="-ldl  $LIBS"
                   10657: cat >conftest.$ac_ext <<_ACEOF
                   10658: /* confdefs.h.  */
                   10659: _ACEOF
                   10660: cat confdefs.h >>conftest.$ac_ext
                   10661: cat >>conftest.$ac_ext <<_ACEOF
                   10662: /* end confdefs.h.  */
                   10663:
                   10664: /* Override any GCC internal prototype to avoid an error.
                   10665:    Use char because int might match the return type of a GCC
                   10666:    builtin and then its argument prototype would still apply.  */
                   10667: #ifdef __cplusplus
                   10668: extern "C"
                   10669: #endif
                   10670: char dlopen ();
                   10671: int
                   10672: main ()
                   10673: {
                   10674: return dlopen ();
                   10675:   ;
                   10676:   return 0;
                   10677: }
                   10678: _ACEOF
                   10679: rm -f conftest.$ac_objext conftest$ac_exeext
                   10680: if { (ac_try="$ac_link"
                   10681: case "(($ac_try" in
                   10682:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10683:   *) ac_try_echo=$ac_try;;
                   10684: esac
                   10685: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10686:   (eval "$ac_link") 2>conftest.er1
                   10687:   ac_status=$?
                   10688:   grep -v '^ *+' conftest.er1 >conftest.err
                   10689:   rm -f conftest.er1
                   10690:   cat conftest.err >&5
                   10691:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10692:   (exit $ac_status); } && {
                   10693:         test -z "$ac_c_werror_flag" ||
                   10694:         test ! -s conftest.err
                   10695:        } && test -s conftest$ac_exeext &&
                   10696:        $as_test_x conftest$ac_exeext; then
                   10697:   ac_cv_lib_dl_dlopen=yes
                   10698: else
                   10699:   echo "$as_me: failed program was:" >&5
                   10700: sed 's/^/| /' conftest.$ac_ext >&5
                   10701:
                   10702:        ac_cv_lib_dl_dlopen=no
                   10703: fi
                   10704:
                   10705: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10706:       conftest$ac_exeext conftest.$ac_ext
                   10707: LIBS=$ac_check_lib_save_LIBS
                   10708: fi
                   10709: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
                   10710: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
                   10711: if test $ac_cv_lib_dl_dlopen = yes; then
                   10712:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
                   10713: else
                   10714:   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
                   10715: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
                   10716: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
                   10717:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10718: else
                   10719:   ac_check_lib_save_LIBS=$LIBS
                   10720: LIBS="-lsvld  $LIBS"
                   10721: cat >conftest.$ac_ext <<_ACEOF
                   10722: /* confdefs.h.  */
                   10723: _ACEOF
                   10724: cat confdefs.h >>conftest.$ac_ext
                   10725: cat >>conftest.$ac_ext <<_ACEOF
                   10726: /* end confdefs.h.  */
                   10727:
                   10728: /* Override any GCC internal prototype to avoid an error.
                   10729:    Use char because int might match the return type of a GCC
                   10730:    builtin and then its argument prototype would still apply.  */
                   10731: #ifdef __cplusplus
                   10732: extern "C"
                   10733: #endif
                   10734: char dlopen ();
                   10735: int
                   10736: main ()
                   10737: {
                   10738: return dlopen ();
                   10739:   ;
                   10740:   return 0;
                   10741: }
                   10742: _ACEOF
                   10743: rm -f conftest.$ac_objext conftest$ac_exeext
                   10744: if { (ac_try="$ac_link"
                   10745: case "(($ac_try" in
                   10746:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10747:   *) ac_try_echo=$ac_try;;
                   10748: esac
                   10749: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10750:   (eval "$ac_link") 2>conftest.er1
                   10751:   ac_status=$?
                   10752:   grep -v '^ *+' conftest.er1 >conftest.err
                   10753:   rm -f conftest.er1
                   10754:   cat conftest.err >&5
                   10755:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10756:   (exit $ac_status); } && {
                   10757:         test -z "$ac_c_werror_flag" ||
                   10758:         test ! -s conftest.err
                   10759:        } && test -s conftest$ac_exeext &&
                   10760:        $as_test_x conftest$ac_exeext; then
                   10761:   ac_cv_lib_svld_dlopen=yes
                   10762: else
                   10763:   echo "$as_me: failed program was:" >&5
                   10764: sed 's/^/| /' conftest.$ac_ext >&5
1.25      millert  10765:
1.27      millert  10766:        ac_cv_lib_svld_dlopen=no
                   10767: fi
1.25      millert  10768:
1.27      millert  10769: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10770:       conftest$ac_exeext conftest.$ac_ext
                   10771: LIBS=$ac_check_lib_save_LIBS
                   10772: fi
                   10773: { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
                   10774: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
                   10775: if test $ac_cv_lib_svld_dlopen = yes; then
                   10776:   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
                   10777: else
                   10778:   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
                   10779: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
                   10780: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
                   10781:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10782: else
                   10783:   ac_check_lib_save_LIBS=$LIBS
                   10784: LIBS="-ldld  $LIBS"
                   10785: cat >conftest.$ac_ext <<_ACEOF
                   10786: /* confdefs.h.  */
                   10787: _ACEOF
                   10788: cat confdefs.h >>conftest.$ac_ext
                   10789: cat >>conftest.$ac_ext <<_ACEOF
                   10790: /* end confdefs.h.  */
1.25      millert  10791:
1.27      millert  10792: /* Override any GCC internal prototype to avoid an error.
                   10793:    Use char because int might match the return type of a GCC
                   10794:    builtin and then its argument prototype would still apply.  */
                   10795: #ifdef __cplusplus
                   10796: extern "C"
                   10797: #endif
                   10798: char dld_link ();
                   10799: int
                   10800: main ()
                   10801: {
                   10802: return dld_link ();
                   10803:   ;
                   10804:   return 0;
                   10805: }
                   10806: _ACEOF
                   10807: rm -f conftest.$ac_objext conftest$ac_exeext
                   10808: if { (ac_try="$ac_link"
                   10809: case "(($ac_try" in
                   10810:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   10811:   *) ac_try_echo=$ac_try;;
                   10812: esac
                   10813: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   10814:   (eval "$ac_link") 2>conftest.er1
                   10815:   ac_status=$?
                   10816:   grep -v '^ *+' conftest.er1 >conftest.err
                   10817:   rm -f conftest.er1
                   10818:   cat conftest.err >&5
                   10819:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10820:   (exit $ac_status); } && {
                   10821:         test -z "$ac_c_werror_flag" ||
                   10822:         test ! -s conftest.err
                   10823:        } && test -s conftest$ac_exeext &&
                   10824:        $as_test_x conftest$ac_exeext; then
                   10825:   ac_cv_lib_dld_dld_link=yes
                   10826: else
                   10827:   echo "$as_me: failed program was:" >&5
                   10828: sed 's/^/| /' conftest.$ac_ext >&5
1.25      millert  10829:
1.27      millert  10830:        ac_cv_lib_dld_dld_link=no
                   10831: fi
1.25      millert  10832:
1.27      millert  10833: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   10834:       conftest$ac_exeext conftest.$ac_ext
                   10835: LIBS=$ac_check_lib_save_LIBS
                   10836: fi
                   10837: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
                   10838: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
                   10839: if test $ac_cv_lib_dld_dld_link = yes; then
1.36      millert  10840:   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1.27      millert  10841: fi
1.25      millert  10842:
1.23      millert  10843:
1.27      millert  10844: fi
1.23      millert  10845:
                   10846:
1.27      millert  10847: fi
1.23      millert  10848:
1.25      millert  10849:
1.27      millert  10850: fi
1.23      millert  10851:
                   10852:
1.27      millert  10853: fi
1.23      millert  10854:
                   10855:
1.27      millert  10856: fi
1.23      millert  10857:
1.27      millert  10858:     ;;
                   10859:   esac
1.23      millert  10860:
1.27      millert  10861:   if test "x$lt_cv_dlopen" != xno; then
                   10862:     enable_dlopen=yes
                   10863:   else
                   10864:     enable_dlopen=no
                   10865:   fi
1.25      millert  10866:
1.27      millert  10867:   case $lt_cv_dlopen in
                   10868:   dlopen)
                   10869:     save_CPPFLAGS="$CPPFLAGS"
                   10870:     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.23      millert  10871:
1.27      millert  10872:     save_LDFLAGS="$LDFLAGS"
                   10873:     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.25      millert  10874:
1.27      millert  10875:     save_LIBS="$LIBS"
                   10876:     LIBS="$lt_cv_dlopen_libs $LIBS"
1.23      millert  10877:
1.27      millert  10878:     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
                   10879: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
                   10880: if test "${lt_cv_dlopen_self+set}" = set; then
                   10881:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   10882: else
                   10883:          if test "$cross_compiling" = yes; then :
                   10884:   lt_cv_dlopen_self=cross
                   10885: else
                   10886:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
                   10887:   lt_status=$lt_dlunknown
                   10888:   cat > conftest.$ac_ext <<EOF
1.41    ! millert  10889: #line 10889 "configure"
1.27      millert  10890: #include "confdefs.h"
1.23      millert  10891:
1.27      millert  10892: #if HAVE_DLFCN_H
                   10893: #include <dlfcn.h>
                   10894: #endif
1.25      millert  10895:
1.27      millert  10896: #include <stdio.h>
1.25      millert  10897:
1.27      millert  10898: #ifdef RTLD_GLOBAL
                   10899: #  define LT_DLGLOBAL          RTLD_GLOBAL
                   10900: #else
                   10901: #  ifdef DL_GLOBAL
                   10902: #    define LT_DLGLOBAL                DL_GLOBAL
                   10903: #  else
                   10904: #    define LT_DLGLOBAL                0
                   10905: #  endif
                   10906: #endif
1.25      millert  10907:
1.27      millert  10908: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
                   10909:    find out it does not work in some platform. */
                   10910: #ifndef LT_DLLAZY_OR_NOW
                   10911: #  ifdef RTLD_LAZY
                   10912: #    define LT_DLLAZY_OR_NOW           RTLD_LAZY
                   10913: #  else
                   10914: #    ifdef DL_LAZY
                   10915: #      define LT_DLLAZY_OR_NOW         DL_LAZY
                   10916: #    else
                   10917: #      ifdef RTLD_NOW
                   10918: #        define LT_DLLAZY_OR_NOW       RTLD_NOW
                   10919: #      else
                   10920: #        ifdef DL_NOW
                   10921: #          define LT_DLLAZY_OR_NOW     DL_NOW
                   10922: #        else
                   10923: #          define LT_DLLAZY_OR_NOW     0
                   10924: #        endif
                   10925: #      endif
                   10926: #    endif
                   10927: #  endif
                   10928: #endif
1.23      millert  10929:
1.27      millert  10930: #ifdef __cplusplus
                   10931: extern "C" void exit (int);
                   10932: #endif
1.23      millert  10933:
1.27      millert  10934: void fnord() { int i=42;}
                   10935: int main ()
                   10936: {
                   10937:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
                   10938:   int status = $lt_dlunknown;
1.23      millert  10939:
1.27      millert  10940:   if (self)
                   10941:     {
                   10942:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
                   10943:       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
                   10944:       /* dlclose (self); */
                   10945:     }
                   10946:   else
                   10947:     puts (dlerror ());
1.23      millert  10948:
1.27      millert  10949:     exit (status);
                   10950: }
                   10951: EOF
                   10952:   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   10953:   (eval $ac_link) 2>&5
                   10954:   ac_status=$?
                   10955:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   10956:   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
                   10957:     (./conftest; exit; ) >&5 2>/dev/null
                   10958:     lt_status=$?
                   10959:     case x$lt_status in
                   10960:       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
                   10961:       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
                   10962:       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1.23      millert  10963:     esac
1.27      millert  10964:   else :
                   10965:     # compilation failed
                   10966:     lt_cv_dlopen_self=no
1.23      millert  10967:   fi
1.27      millert  10968: fi
                   10969: rm -fr conftest*
1.23      millert  10970:
                   10971:
1.27      millert  10972: fi
                   10973: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
                   10974: echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
1.23      millert  10975:
1.27      millert  10976:     if test "x$lt_cv_dlopen_self" = xyes; then
                   10977:       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
                   10978:       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
                   10979: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
                   10980: if test "${lt_cv_dlopen_self_static+set}" = set; then
1.25      millert  10981:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.23      millert  10982: else
1.27      millert  10983:          if test "$cross_compiling" = yes; then :
                   10984:   lt_cv_dlopen_self_static=cross
1.25      millert  10985: else
1.27      millert  10986:   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
                   10987:   lt_status=$lt_dlunknown
                   10988:   cat > conftest.$ac_ext <<EOF
1.41    ! millert  10989: #line 10989 "configure"
1.27      millert  10990: #include "confdefs.h"
1.23      millert  10991:
1.27      millert  10992: #if HAVE_DLFCN_H
                   10993: #include <dlfcn.h>
                   10994: #endif
1.23      millert  10995:
1.27      millert  10996: #include <stdio.h>
1.25      millert  10997:
1.27      millert  10998: #ifdef RTLD_GLOBAL
                   10999: #  define LT_DLGLOBAL          RTLD_GLOBAL
                   11000: #else
                   11001: #  ifdef DL_GLOBAL
                   11002: #    define LT_DLGLOBAL                DL_GLOBAL
                   11003: #  else
                   11004: #    define LT_DLGLOBAL                0
                   11005: #  endif
                   11006: #endif
1.25      millert  11007:
1.27      millert  11008: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
                   11009:    find out it does not work in some platform. */
                   11010: #ifndef LT_DLLAZY_OR_NOW
                   11011: #  ifdef RTLD_LAZY
                   11012: #    define LT_DLLAZY_OR_NOW           RTLD_LAZY
                   11013: #  else
                   11014: #    ifdef DL_LAZY
                   11015: #      define LT_DLLAZY_OR_NOW         DL_LAZY
                   11016: #    else
                   11017: #      ifdef RTLD_NOW
                   11018: #        define LT_DLLAZY_OR_NOW       RTLD_NOW
                   11019: #      else
                   11020: #        ifdef DL_NOW
                   11021: #          define LT_DLLAZY_OR_NOW     DL_NOW
                   11022: #        else
                   11023: #          define LT_DLLAZY_OR_NOW     0
                   11024: #        endif
                   11025: #      endif
                   11026: #    endif
                   11027: #  endif
                   11028: #endif
1.25      millert  11029:
1.27      millert  11030: #ifdef __cplusplus
                   11031: extern "C" void exit (int);
                   11032: #endif
1.25      millert  11033:
1.27      millert  11034: void fnord() { int i=42;}
                   11035: int main ()
                   11036: {
                   11037:   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
                   11038:   int status = $lt_dlunknown;
1.25      millert  11039:
1.27      millert  11040:   if (self)
                   11041:     {
                   11042:       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
                   11043:       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
                   11044:       /* dlclose (self); */
                   11045:     }
                   11046:   else
                   11047:     puts (dlerror ());
1.25      millert  11048:
1.27      millert  11049:     exit (status);
                   11050: }
                   11051: EOF
                   11052:   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
                   11053:   (eval $ac_link) 2>&5
                   11054:   ac_status=$?
                   11055:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   11056:   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
                   11057:     (./conftest; exit; ) >&5 2>/dev/null
                   11058:     lt_status=$?
                   11059:     case x$lt_status in
                   11060:       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
                   11061:       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
                   11062:       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
                   11063:     esac
                   11064:   else :
                   11065:     # compilation failed
                   11066:     lt_cv_dlopen_self_static=no
                   11067:   fi
1.23      millert  11068: fi
1.27      millert  11069: rm -fr conftest*
1.23      millert  11070:
                   11071:
1.25      millert  11072: fi
1.27      millert  11073: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
                   11074: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
                   11075:     fi
1.23      millert  11076:
1.27      millert  11077:     CPPFLAGS="$save_CPPFLAGS"
                   11078:     LDFLAGS="$save_LDFLAGS"
                   11079:     LIBS="$save_LIBS"
1.25      millert  11080:     ;;
                   11081:   esac
1.23      millert  11082:
1.27      millert  11083:   case $lt_cv_dlopen_self in
                   11084:   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
                   11085:   *) enable_dlopen_self=unknown ;;
                   11086:   esac
1.23      millert  11087:
1.27      millert  11088:   case $lt_cv_dlopen_self_static in
                   11089:   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
                   11090:   *) enable_dlopen_self_static=unknown ;;
1.23      millert  11091:   esac
1.27      millert  11092: fi
1.23      millert  11093:
                   11094:
1.27      millert  11095: # Report which library types will actually be built
                   11096: { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
                   11097: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
                   11098: { echo "$as_me:$LINENO: result: $can_build_shared" >&5
                   11099: echo "${ECHO_T}$can_build_shared" >&6; }
                   11100:
                   11101: { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
                   11102: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
                   11103: test "$can_build_shared" = "no" && enable_shared=no
1.25      millert  11104:
1.27      millert  11105: # On AIX, shared libraries and static libraries use the same namespace, and
                   11106: # are all built from PIC.
                   11107: case $host_os in
                   11108: aix3*)
                   11109:   test "$enable_shared" = yes && enable_static=no
                   11110:   if test -n "$RANLIB"; then
                   11111:     archive_cmds="$archive_cmds~\$RANLIB \$lib"
                   11112:     postinstall_cmds='$RANLIB $lib'
                   11113:   fi
1.23      millert  11114:   ;;
                   11115:
1.36      millert  11116: aix[4-9]*)
1.27      millert  11117:   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
                   11118:     test "$enable_shared" = yes && enable_static=no
                   11119:   fi
                   11120:     ;;
1.23      millert  11121: esac
1.27      millert  11122: { echo "$as_me:$LINENO: result: $enable_shared" >&5
                   11123: echo "${ECHO_T}$enable_shared" >&6; }
1.23      millert  11124:
1.27      millert  11125: { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
                   11126: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
                   11127: # Make sure either enable_shared or enable_static is yes.
                   11128: test "$enable_shared" = yes || enable_static=yes
                   11129: { echo "$as_me:$LINENO: result: $enable_static" >&5
                   11130: echo "${ECHO_T}$enable_static" >&6; }
                   11131:
                   11132: # The else clause should only fire when bootstrapping the
                   11133: # libtool distribution, otherwise you forgot to ship ltmain.sh
                   11134: # with your package, and you will get complaints that there are
                   11135: # no rules to generate ltmain.sh.
                   11136: if test -f "$ltmain"; then
                   11137:   # See if we are running on zsh, and set the options which allow our commands through
                   11138:   # without removal of \ escapes.
                   11139:   if test -n "${ZSH_VERSION+set}" ; then
                   11140:     setopt NO_GLOB_SUBST
                   11141:   fi
                   11142:   # Now quote all the things that may contain metacharacters while being
                   11143:   # careful not to overquote the AC_SUBSTed values.  We take copies of the
                   11144:   # variables and quote the copies for generation of the libtool script.
                   11145:   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
                   11146:     SED SHELL STRIP \
                   11147:     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
                   11148:     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
                   11149:     deplibs_check_method reload_flag reload_cmds need_locks \
                   11150:     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
                   11151:     lt_cv_sys_global_symbol_to_c_name_address \
                   11152:     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
                   11153:     old_postinstall_cmds old_postuninstall_cmds \
                   11154:     compiler \
                   11155:     CC \
                   11156:     LD \
                   11157:     lt_prog_compiler_wl \
                   11158:     lt_prog_compiler_pic \
                   11159:     lt_prog_compiler_static \
                   11160:     lt_prog_compiler_no_builtin_flag \
                   11161:     export_dynamic_flag_spec \
                   11162:     thread_safe_flag_spec \
                   11163:     whole_archive_flag_spec \
                   11164:     enable_shared_with_static_runtimes \
                   11165:     old_archive_cmds \
                   11166:     old_archive_from_new_cmds \
                   11167:     predep_objects \
                   11168:     postdep_objects \
                   11169:     predeps \
                   11170:     postdeps \
                   11171:     compiler_lib_search_path \
1.36      millert  11172:     compiler_lib_search_dirs \
1.27      millert  11173:     archive_cmds \
                   11174:     archive_expsym_cmds \
                   11175:     postinstall_cmds \
                   11176:     postuninstall_cmds \
                   11177:     old_archive_from_expsyms_cmds \
                   11178:     allow_undefined_flag \
                   11179:     no_undefined_flag \
                   11180:     export_symbols_cmds \
                   11181:     hardcode_libdir_flag_spec \
                   11182:     hardcode_libdir_flag_spec_ld \
                   11183:     hardcode_libdir_separator \
                   11184:     hardcode_automatic \
                   11185:     module_cmds \
                   11186:     module_expsym_cmds \
                   11187:     lt_cv_prog_compiler_c_o \
                   11188:     fix_srcfile_path \
                   11189:     exclude_expsyms \
                   11190:     include_expsyms; do
                   11191:
                   11192:     case $var in
                   11193:     old_archive_cmds | \
                   11194:     old_archive_from_new_cmds | \
                   11195:     archive_cmds | \
                   11196:     archive_expsym_cmds | \
                   11197:     module_cmds | \
                   11198:     module_expsym_cmds | \
                   11199:     old_archive_from_expsyms_cmds | \
                   11200:     export_symbols_cmds | \
                   11201:     extract_expsyms_cmds | reload_cmds | finish_cmds | \
                   11202:     postinstall_cmds | postuninstall_cmds | \
                   11203:     old_postinstall_cmds | old_postuninstall_cmds | \
                   11204:     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
                   11205:       # Double-quote double-evaled strings.
                   11206:       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
                   11207:       ;;
                   11208:     *)
                   11209:       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
                   11210:       ;;
                   11211:     esac
                   11212:   done
1.23      millert  11213:
1.27      millert  11214:   case $lt_echo in
                   11215:   *'\$0 --fallback-echo"')
                   11216:     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
                   11217:     ;;
                   11218:   esac
1.23      millert  11219:
1.27      millert  11220: cfgfile="${ofile}T"
                   11221:   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
                   11222:   $rm -f "$cfgfile"
                   11223:   { echo "$as_me:$LINENO: creating $ofile" >&5
                   11224: echo "$as_me: creating $ofile" >&6;}
1.23      millert  11225:
1.27      millert  11226:   cat <<__EOF__ >> "$cfgfile"
                   11227: #! $SHELL
1.23      millert  11228:
1.27      millert  11229: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
                   11230: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
                   11231: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
                   11232: #
1.36      millert  11233: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
1.27      millert  11234: # Free Software Foundation, Inc.
                   11235: #
                   11236: # This file is part of GNU Libtool:
                   11237: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
                   11238: #
                   11239: # This program is free software; you can redistribute it and/or modify
                   11240: # it under the terms of the GNU General Public License as published by
                   11241: # the Free Software Foundation; either version 2 of the License, or
                   11242: # (at your option) any later version.
                   11243: #
                   11244: # This program is distributed in the hope that it will be useful, but
                   11245: # WITHOUT ANY WARRANTY; without even the implied warranty of
                   11246: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
                   11247: # General Public License for more details.
                   11248: #
                   11249: # You should have received a copy of the GNU General Public License
                   11250: # along with this program; if not, write to the Free Software
                   11251: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
                   11252: #
                   11253: # As a special exception to the GNU General Public License, if you
                   11254: # distribute this file as part of a program that contains a
                   11255: # configuration script generated by Autoconf, you may include it under
                   11256: # the same distribution terms that you use for the rest of that program.
1.23      millert  11257:
1.27      millert  11258: # A sed program that does not truncate output.
                   11259: SED=$lt_SED
1.23      millert  11260:
1.27      millert  11261: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
                   11262: Xsed="$SED -e 1s/^X//"
1.23      millert  11263:
1.27      millert  11264: # The HP-UX ksh and POSIX shell print the target directory to stdout
                   11265: # if CDPATH is set.
                   11266: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.23      millert  11267:
1.27      millert  11268: # The names of the tagged configurations supported by this script.
                   11269: available_tags=
1.23      millert  11270:
1.27      millert  11271: # ### BEGIN LIBTOOL CONFIG
1.23      millert  11272:
1.27      millert  11273: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1.23      millert  11274:
1.27      millert  11275: # Shell to use when invoking shell scripts.
                   11276: SHELL=$lt_SHELL
1.23      millert  11277:
1.27      millert  11278: # Whether or not to build shared libraries.
                   11279: build_libtool_libs=$enable_shared
1.23      millert  11280:
1.27      millert  11281: # Whether or not to build static libraries.
                   11282: build_old_libs=$enable_static
1.23      millert  11283:
1.27      millert  11284: # Whether or not to add -lc for building shared libraries.
                   11285: build_libtool_need_lc=$archive_cmds_need_lc
1.23      millert  11286:
1.27      millert  11287: # Whether or not to disallow shared libs when runtime libs are static
                   11288: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
1.23      millert  11289:
1.27      millert  11290: # Whether or not to optimize for fast installation.
                   11291: fast_install=$enable_fast_install
1.23      millert  11292:
1.27      millert  11293: # The host system.
                   11294: host_alias=$host_alias
                   11295: host=$host
                   11296: host_os=$host_os
1.23      millert  11297:
1.27      millert  11298: # The build system.
                   11299: build_alias=$build_alias
                   11300: build=$build
                   11301: build_os=$build_os
1.23      millert  11302:
1.27      millert  11303: # An echo program that does not interpret backslashes.
                   11304: echo=$lt_echo
1.23      millert  11305:
1.27      millert  11306: # The archiver.
                   11307: AR=$lt_AR
                   11308: AR_FLAGS=$lt_AR_FLAGS
1.23      millert  11309:
1.27      millert  11310: # A C compiler.
                   11311: LTCC=$lt_LTCC
1.23      millert  11312:
1.27      millert  11313: # LTCC compiler flags.
                   11314: LTCFLAGS=$lt_LTCFLAGS
1.23      millert  11315:
1.27      millert  11316: # A language-specific compiler.
                   11317: CC=$lt_compiler
1.23      millert  11318:
1.27      millert  11319: # Is the compiler the GNU C compiler?
                   11320: with_gcc=$GCC
1.23      millert  11321:
1.27      millert  11322: # An ERE matcher.
                   11323: EGREP=$lt_EGREP
1.23      millert  11324:
1.27      millert  11325: # The linker used to build libraries.
                   11326: LD=$lt_LD
1.23      millert  11327:
1.27      millert  11328: # Whether we need hard or soft links.
                   11329: LN_S=$lt_LN_S
1.23      millert  11330:
1.27      millert  11331: # A BSD-compatible nm program.
                   11332: NM=$lt_NM
1.23      millert  11333:
1.27      millert  11334: # A symbol stripping program
                   11335: STRIP=$lt_STRIP
1.23      millert  11336:
1.27      millert  11337: # Used to examine libraries when file_magic_cmd begins "file"
                   11338: MAGIC_CMD=$MAGIC_CMD
1.23      millert  11339:
1.27      millert  11340: # Used on cygwin: DLL creation program.
                   11341: DLLTOOL="$DLLTOOL"
1.23      millert  11342:
1.27      millert  11343: # Used on cygwin: object dumper.
                   11344: OBJDUMP="$OBJDUMP"
1.23      millert  11345:
1.27      millert  11346: # Used on cygwin: assembler.
                   11347: AS="$AS"
1.23      millert  11348:
1.27      millert  11349: # The name of the directory that contains temporary libtool files.
                   11350: objdir=$objdir
1.23      millert  11351:
1.27      millert  11352: # How to create reloadable object files.
                   11353: reload_flag=$lt_reload_flag
                   11354: reload_cmds=$lt_reload_cmds
1.23      millert  11355:
1.27      millert  11356: # How to pass a linker flag through the compiler.
                   11357: wl=$lt_lt_prog_compiler_wl
1.23      millert  11358:
1.27      millert  11359: # Object file suffix (normally "o").
                   11360: objext="$ac_objext"
1.23      millert  11361:
1.27      millert  11362: # Old archive suffix (normally "a").
                   11363: libext="$libext"
1.23      millert  11364:
1.27      millert  11365: # Shared library suffix (normally ".so").
                   11366: shrext_cmds='$shrext_cmds'
1.23      millert  11367:
1.27      millert  11368: # Executable file suffix (normally "").
                   11369: exeext="$exeext"
1.23      millert  11370:
1.27      millert  11371: # Additional compiler flags for building library objects.
                   11372: pic_flag=$lt_lt_prog_compiler_pic
                   11373: pic_mode=$pic_mode
1.23      millert  11374:
1.27      millert  11375: # What is the maximum length of a command?
                   11376: max_cmd_len=$lt_cv_sys_max_cmd_len
1.23      millert  11377:
1.27      millert  11378: # Does compiler simultaneously support -c and -o options?
                   11379: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
1.23      millert  11380:
1.27      millert  11381: # Must we lock files when doing compilation?
                   11382: need_locks=$lt_need_locks
1.23      millert  11383:
1.27      millert  11384: # Do we need the lib prefix for modules?
                   11385: need_lib_prefix=$need_lib_prefix
1.23      millert  11386:
1.27      millert  11387: # Do we need a version for libraries?
                   11388: need_version=$need_version
1.23      millert  11389:
1.27      millert  11390: # Whether dlopen is supported.
                   11391: dlopen_support=$enable_dlopen
1.23      millert  11392:
1.27      millert  11393: # Whether dlopen of programs is supported.
                   11394: dlopen_self=$enable_dlopen_self
1.23      millert  11395:
1.27      millert  11396: # Whether dlopen of statically linked programs is supported.
                   11397: dlopen_self_static=$enable_dlopen_self_static
1.23      millert  11398:
1.27      millert  11399: # Compiler flag to prevent dynamic linking.
                   11400: link_static_flag=$lt_lt_prog_compiler_static
1.23      millert  11401:
1.27      millert  11402: # Compiler flag to turn off builtin functions.
                   11403: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1.23      millert  11404:
1.27      millert  11405: # Compiler flag to allow reflexive dlopens.
                   11406: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
1.23      millert  11407:
1.27      millert  11408: # Compiler flag to generate shared objects directly from archives.
                   11409: whole_archive_flag_spec=$lt_whole_archive_flag_spec
1.23      millert  11410:
1.27      millert  11411: # Compiler flag to generate thread-safe objects.
                   11412: thread_safe_flag_spec=$lt_thread_safe_flag_spec
1.23      millert  11413:
1.27      millert  11414: # Library versioning type.
                   11415: version_type=$version_type
1.23      millert  11416:
1.27      millert  11417: # Format of library name prefix.
                   11418: libname_spec=$lt_libname_spec
1.23      millert  11419:
1.27      millert  11420: # List of archive names.  First name is the real one, the rest are links.
                   11421: # The last name is the one that the linker finds with -lNAME.
                   11422: library_names_spec=$lt_library_names_spec
1.25      millert  11423:
1.27      millert  11424: # The coded name of the library, if different from the real name.
                   11425: soname_spec=$lt_soname_spec
1.25      millert  11426:
1.27      millert  11427: # Commands used to build and install an old-style archive.
                   11428: RANLIB=$lt_RANLIB
                   11429: old_archive_cmds=$lt_old_archive_cmds
                   11430: old_postinstall_cmds=$lt_old_postinstall_cmds
                   11431: old_postuninstall_cmds=$lt_old_postuninstall_cmds
1.25      millert  11432:
1.27      millert  11433: # Create an old-style archive from a shared archive.
                   11434: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
1.25      millert  11435:
1.27      millert  11436: # Create a temporary old-style archive to link instead of a shared archive.
                   11437: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
1.25      millert  11438:
1.27      millert  11439: # Commands used to build and install a shared archive.
                   11440: archive_cmds=$lt_archive_cmds
                   11441: archive_expsym_cmds=$lt_archive_expsym_cmds
                   11442: postinstall_cmds=$lt_postinstall_cmds
                   11443: postuninstall_cmds=$lt_postuninstall_cmds
1.25      millert  11444:
1.27      millert  11445: # Commands used to build a loadable module (assumed same as above if empty)
                   11446: module_cmds=$lt_module_cmds
                   11447: module_expsym_cmds=$lt_module_expsym_cmds
1.25      millert  11448:
1.27      millert  11449: # Commands to strip libraries.
                   11450: old_striplib=$lt_old_striplib
                   11451: striplib=$lt_striplib
1.25      millert  11452:
1.27      millert  11453: # Dependencies to place before the objects being linked to create a
                   11454: # shared library.
                   11455: predep_objects=$lt_predep_objects
                   11456:
                   11457: # Dependencies to place after the objects being linked to create a
                   11458: # shared library.
                   11459: postdep_objects=$lt_postdep_objects
                   11460:
                   11461: # Dependencies to place before the objects being linked to create a
                   11462: # shared library.
                   11463: predeps=$lt_predeps
                   11464:
                   11465: # Dependencies to place after the objects being linked to create a
                   11466: # shared library.
                   11467: postdeps=$lt_postdeps
                   11468:
1.36      millert  11469: # The directories searched by this compiler when creating a shared
                   11470: # library
                   11471: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
                   11472:
1.27      millert  11473: # The library search path used internally by the compiler when linking
                   11474: # a shared library.
                   11475: compiler_lib_search_path=$lt_compiler_lib_search_path
1.25      millert  11476:
1.27      millert  11477: # Method to check whether dependent libraries are shared objects.
                   11478: deplibs_check_method=$lt_deplibs_check_method
1.25      millert  11479:
1.27      millert  11480: # Command to use when deplibs_check_method == file_magic.
                   11481: file_magic_cmd=$lt_file_magic_cmd
1.25      millert  11482:
1.27      millert  11483: # Flag that allows shared libraries with undefined symbols to be built.
                   11484: allow_undefined_flag=$lt_allow_undefined_flag
1.25      millert  11485:
1.27      millert  11486: # Flag that forces no undefined symbols.
                   11487: no_undefined_flag=$lt_no_undefined_flag
1.25      millert  11488:
1.27      millert  11489: # Commands used to finish a libtool library installation in a directory.
                   11490: finish_cmds=$lt_finish_cmds
1.25      millert  11491:
1.27      millert  11492: # Same as above, but a single script fragment to be evaled but not shown.
                   11493: finish_eval=$lt_finish_eval
1.25      millert  11494:
1.27      millert  11495: # Take the output of nm and produce a listing of raw symbols and C names.
                   11496: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1.25      millert  11497:
1.27      millert  11498: # Transform the output of nm in a proper C declaration
                   11499: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1.25      millert  11500:
1.27      millert  11501: # Transform the output of nm in a C name address pair
                   11502: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1.25      millert  11503:
1.27      millert  11504: # This is the shared library runtime path variable.
                   11505: runpath_var=$runpath_var
1.25      millert  11506:
1.27      millert  11507: # This is the shared library path variable.
                   11508: shlibpath_var=$shlibpath_var
1.25      millert  11509:
1.27      millert  11510: # Is shlibpath searched before the hard-coded library search path?
                   11511: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
1.25      millert  11512:
1.27      millert  11513: # How to hardcode a shared library path into an executable.
                   11514: hardcode_action=$hardcode_action
1.25      millert  11515:
1.27      millert  11516: # Whether we should hardcode library paths into libraries.
                   11517: hardcode_into_libs=$hardcode_into_libs
1.25      millert  11518:
1.27      millert  11519: # Flag to hardcode \$libdir into a binary during linking.
                   11520: # This must work even if \$libdir does not exist.
                   11521: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
1.25      millert  11522:
1.27      millert  11523: # If ld is used when linking, flag to hardcode \$libdir into
                   11524: # a binary during linking. This must work even if \$libdir does
                   11525: # not exist.
                   11526: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1.23      millert  11527:
1.27      millert  11528: # Whether we need a single -rpath flag with a separated argument.
                   11529: hardcode_libdir_separator=$lt_hardcode_libdir_separator
1.23      millert  11530:
1.27      millert  11531: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
                   11532: # resulting binary.
                   11533: hardcode_direct=$hardcode_direct
1.25      millert  11534:
1.27      millert  11535: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
                   11536: # resulting binary.
                   11537: hardcode_minus_L=$hardcode_minus_L
1.25      millert  11538:
1.27      millert  11539: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
                   11540: # the resulting binary.
                   11541: hardcode_shlibpath_var=$hardcode_shlibpath_var
1.25      millert  11542:
1.27      millert  11543: # Set to yes if building a shared library automatically hardcodes DIR into the library
                   11544: # and all subsequent libraries and executables linked against it.
                   11545: hardcode_automatic=$hardcode_automatic
1.25      millert  11546:
1.27      millert  11547: # Variables whose values should be saved in libtool wrapper scripts and
                   11548: # restored at relink time.
                   11549: variables_saved_for_relink="$variables_saved_for_relink"
1.25      millert  11550:
1.27      millert  11551: # Whether libtool must link a program against all its dependency libraries.
                   11552: link_all_deplibs=$link_all_deplibs
1.23      millert  11553:
1.27      millert  11554: # Compile-time system search path for libraries
                   11555: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1.23      millert  11556:
1.27      millert  11557: # Run-time system search path for libraries
                   11558: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1.23      millert  11559:
1.27      millert  11560: # Fix the shell variable \$srcfile for the compiler.
                   11561: fix_srcfile_path=$lt_fix_srcfile_path
1.23      millert  11562:
1.27      millert  11563: # Set to yes if exported symbols are required.
                   11564: always_export_symbols=$always_export_symbols
1.23      millert  11565:
1.27      millert  11566: # The commands to list exported symbols.
                   11567: export_symbols_cmds=$lt_export_symbols_cmds
1.23      millert  11568:
1.27      millert  11569: # The commands to extract the exported symbol list from a shared archive.
                   11570: extract_expsyms_cmds=$lt_extract_expsyms_cmds
1.23      millert  11571:
1.27      millert  11572: # Symbols that should not be listed in the preloaded symbols.
                   11573: exclude_expsyms=$lt_exclude_expsyms
1.23      millert  11574:
1.27      millert  11575: # Symbols that must always be exported.
                   11576: include_expsyms=$lt_include_expsyms
1.23      millert  11577:
1.27      millert  11578: # ### END LIBTOOL CONFIG
1.23      millert  11579:
1.27      millert  11580: __EOF__
1.23      millert  11581:
                   11582:
1.27      millert  11583:   case $host_os in
1.25      millert  11584:   aix3*)
1.27      millert  11585:     cat <<\EOF >> "$cfgfile"
1.23      millert  11586:
1.27      millert  11587: # AIX sometimes has problems with the GCC collect2 program.  For some
                   11588: # reason, if we set the COLLECT_NAMES environment variable, the problems
                   11589: # vanish in a puff of smoke.
                   11590: if test "X${COLLECT_NAMES+set}" != Xset; then
                   11591:   COLLECT_NAMES=
                   11592:   export COLLECT_NAMES
                   11593: fi
                   11594: EOF
1.25      millert  11595:     ;;
                   11596:   esac
1.23      millert  11597:
1.27      millert  11598:   # We use sed instead of cat because bash on DJGPP gets confused if
                   11599:   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
                   11600:   # text mode, it properly converts lines to CR/LF.  This bash problem
                   11601:   # is reportedly fixed, but why not run on old versions too?
                   11602:   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
1.23      millert  11603:
1.27      millert  11604:   mv -f "$cfgfile" "$ofile" || \
                   11605:     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
                   11606:   chmod +x "$ofile"
1.23      millert  11607:
1.27      millert  11608: else
                   11609:   # If there is no Makefile yet, we rely on a make rule to execute
                   11610:   # `config.status --recheck' to rerun these tests and create the
                   11611:   # libtool script then.
                   11612:   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
                   11613:   if test -f "$ltmain_in"; then
                   11614:     test -f Makefile && make "$ltmain"
                   11615:   fi
                   11616: fi
1.23      millert  11617:
                   11618:
1.25      millert  11619: ac_ext=c
                   11620: ac_cpp='$CPP $CPPFLAGS'
                   11621: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
                   11622: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
                   11623: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23      millert  11624:
1.25      millert  11625: CC="$lt_save_CC"
1.23      millert  11626:
                   11627:
                   11628:
1.27      millert  11629: # This can be used to rebuild libtool when needed
                   11630: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1.23      millert  11631:
1.27      millert  11632: # Always use our own libtool.
                   11633: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1.23      millert  11634:
1.27      millert  11635: # Prevent multiple expansion
1.23      millert  11636:
                   11637:
                   11638:
                   11639:
                   11640:
                   11641:
                   11642:
                   11643:
                   11644:
                   11645:
1.25      millert  11646: if test "$enable_shared" = "no"; then
                   11647:     with_noexec=no
                   11648: else
1.26      millert  11649:     eval _shrext="$shrext_cmds"
1.25      millert  11650: fi
1.27      millert  11651: { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
                   11652: echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; }
1.23      millert  11653:
1.27      millert  11654: # Check whether --with-noexec was given.
1.25      millert  11655: if test "${with_noexec+set}" = set; then
1.27      millert  11656:   withval=$with_noexec; case $with_noexec in
1.25      millert  11657:     yes)       with_noexec="$libexecdir/sudo_noexec$_shrext"
                   11658:                ;;
                   11659:     no)                ;;
                   11660:     *)         ;;
                   11661: esac
                   11662: else
                   11663:   with_noexec="$libexecdir/sudo_noexec$_shrext"
1.27      millert  11664: fi
                   11665:
                   11666: { echo "$as_me:$LINENO: result: $with_noexec" >&5
                   11667: echo "${ECHO_T}$with_noexec" >&6; }
1.36      millert  11668: NOEXECFILE="sudo_noexec$_shrext"
1.25      millert  11669: NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
1.23      millert  11670:
1.25      millert  11671: if test "$with_devel" = "yes" -a -n "$GCC"; then
                   11672:     CFLAGS="${CFLAGS} -Wall"
                   11673: fi
1.23      millert  11674:
1.25      millert  11675: # Extract the first word of "uname", so it can be a program name with args.
                   11676: set dummy uname; ac_word=$2
1.27      millert  11677: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   11678: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25      millert  11679: if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
                   11680:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11681: else
                   11682:   if test -n "$UNAMEPROG"; then
                   11683:   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
                   11684: else
                   11685: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   11686: for as_dir in $PATH
                   11687: do
                   11688:   IFS=$as_save_IFS
                   11689:   test -z "$as_dir" && as_dir=.
                   11690:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  11691:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25      millert  11692:     ac_cv_prog_UNAMEPROG="uname"
                   11693:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   11694:     break 2
                   11695:   fi
                   11696: done
                   11697: done
1.27      millert  11698: IFS=$as_save_IFS
1.23      millert  11699:
1.25      millert  11700: fi
                   11701: fi
                   11702: UNAMEPROG=$ac_cv_prog_UNAMEPROG
                   11703: if test -n "$UNAMEPROG"; then
1.27      millert  11704:   { echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
                   11705: echo "${ECHO_T}$UNAMEPROG" >&6; }
1.25      millert  11706: else
1.27      millert  11707:   { echo "$as_me:$LINENO: result: no" >&5
                   11708: echo "${ECHO_T}no" >&6; }
1.25      millert  11709: fi
1.23      millert  11710:
1.27      millert  11711:
1.25      millert  11712: # Extract the first word of "tr", so it can be a program name with args.
                   11713: set dummy tr; ac_word=$2
1.27      millert  11714: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   11715: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25      millert  11716: if test "${ac_cv_prog_TRPROG+set}" = set; then
                   11717:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11718: else
                   11719:   if test -n "$TRPROG"; then
                   11720:   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
                   11721: else
                   11722: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   11723: for as_dir in $PATH
                   11724: do
                   11725:   IFS=$as_save_IFS
                   11726:   test -z "$as_dir" && as_dir=.
                   11727:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  11728:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25      millert  11729:     ac_cv_prog_TRPROG="tr"
                   11730:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   11731:     break 2
                   11732:   fi
                   11733: done
                   11734: done
1.27      millert  11735: IFS=$as_save_IFS
1.23      millert  11736:
1.25      millert  11737: fi
                   11738: fi
                   11739: TRPROG=$ac_cv_prog_TRPROG
                   11740: if test -n "$TRPROG"; then
1.27      millert  11741:   { echo "$as_me:$LINENO: result: $TRPROG" >&5
                   11742: echo "${ECHO_T}$TRPROG" >&6; }
1.25      millert  11743: else
1.27      millert  11744:   { echo "$as_me:$LINENO: result: no" >&5
                   11745: echo "${ECHO_T}no" >&6; }
1.25      millert  11746: fi
1.23      millert  11747:
1.27      millert  11748:
1.25      millert  11749: # Extract the first word of "nroff", so it can be a program name with args.
                   11750: set dummy nroff; ac_word=$2
1.27      millert  11751: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   11752: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25      millert  11753: if test "${ac_cv_prog_NROFFPROG+set}" = set; then
                   11754:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11755: else
                   11756:   if test -n "$NROFFPROG"; then
                   11757:   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
                   11758: else
                   11759: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   11760: for as_dir in $PATH
                   11761: do
                   11762:   IFS=$as_save_IFS
                   11763:   test -z "$as_dir" && as_dir=.
                   11764:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  11765:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25      millert  11766:     ac_cv_prog_NROFFPROG="nroff"
                   11767:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   11768:     break 2
                   11769:   fi
                   11770: done
                   11771: done
1.27      millert  11772: IFS=$as_save_IFS
1.23      millert  11773:
1.25      millert  11774: fi
                   11775: fi
                   11776: NROFFPROG=$ac_cv_prog_NROFFPROG
                   11777: if test -n "$NROFFPROG"; then
1.27      millert  11778:   { echo "$as_me:$LINENO: result: $NROFFPROG" >&5
                   11779: echo "${ECHO_T}$NROFFPROG" >&6; }
1.25      millert  11780: else
1.27      millert  11781:   { echo "$as_me:$LINENO: result: no" >&5
                   11782: echo "${ECHO_T}no" >&6; }
1.25      millert  11783: fi
1.23      millert  11784:
1.27      millert  11785:
1.25      millert  11786: if test -z "$NROFFPROG"; then
                   11787:     MANTYPE="cat"
                   11788:     mansrcdir='$(srcdir)'
                   11789: fi
1.23      millert  11790:
1.25      millert  11791: if test -n "$sudo_cv_prev_host"; then
                   11792:     if test "$sudo_cv_prev_host" != "$host"; then
                   11793:        { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
                   11794: echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
                   11795:    { (exit 1); exit 1; }; }
                   11796:     else
1.27      millert  11797:        { echo "$as_me:$LINENO: checking previous host type" >&5
                   11798: echo $ECHO_N "checking previous host type... $ECHO_C" >&6; }
1.25      millert  11799:        if test "${sudo_cv_prev_host+set}" = set; then
                   11800:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11801: else
                   11802:   sudo_cv_prev_host="$host"
                   11803: fi
1.23      millert  11804:
1.27      millert  11805:        { echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
                   11806: echo "${ECHO_T}$sudo_cv_prev_host" >&6; }
1.25      millert  11807:     fi
                   11808: else
                   11809:     # this will produce no output since there is no cached value
                   11810:     if test "${sudo_cv_prev_host+set}" = set; then
                   11811:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11812: else
                   11813:   sudo_cv_prev_host="$host"
                   11814: fi
1.23      millert  11815:
1.25      millert  11816: fi
1.23      millert  11817:
1.25      millert  11818: if test -n "$host_os"; then
                   11819:     OS=`echo $host_os | sed 's/[0-9].*//'`
                   11820:     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
                   11821:     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
                   11822: else
                   11823:     OS="unknown"
                   11824:     OSREV=0
                   11825:     OSMAJOR=0
                   11826: fi
1.23      millert  11827:
1.25      millert  11828: case "$host" in
                   11829:     *-*-sunos4*)
                   11830:                # getcwd(3) opens a pipe to getpwd(1)!?!
                   11831:                BROKEN_GETCWD=1
1.23      millert  11832:
1.25      millert  11833:                # system headers lack prototypes but gcc helps...
                   11834:                if test -n "$GCC"; then
                   11835:                    OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
                   11836:                fi
1.23      millert  11837:
1.25      millert  11838:                shadow_funcs="getpwanam issecure"
                   11839:                ;;
                   11840:     *-*-solaris2*)
                   11841:                # To get the crypt(3) prototype (so we pass -Wall)
                   11842:                OSDEFS="${OSDEFS} -D__EXTENSIONS__"
                   11843:                # AFS support needs -lucb
                   11844:                if test "$with_AFS" = "yes"; then
                   11845:                    AFS_LIBS="-lc -lucb"
                   11846:                fi
                   11847:                : ${mansectsu='1m'}
                   11848:                : ${mansectform='4'}
                   11849:                : ${with_rpath='yes'}
1.27      millert  11850:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  11851:                ;;
                   11852:     *-*-aix*)
                   11853:                # To get all prototypes (so we pass -Wall)
                   11854:                OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
                   11855:                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
                   11856:                if test X"$with_blibpath" != X"no"; then
1.27      millert  11857:                    { echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
                   11858: echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6; }
1.25      millert  11859:                    O_LDFLAGS="$LDFLAGS"
                   11860:                    LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
                   11861:                    cat >conftest.$ac_ext <<_ACEOF
                   11862: /* confdefs.h.  */
                   11863: _ACEOF
                   11864: cat confdefs.h >>conftest.$ac_ext
                   11865: cat >>conftest.$ac_ext <<_ACEOF
                   11866: /* end confdefs.h.  */
1.23      millert  11867:
1.25      millert  11868: int
                   11869: main ()
                   11870: {
1.23      millert  11871:
1.25      millert  11872:   ;
                   11873:   return 0;
                   11874: }
                   11875: _ACEOF
                   11876: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  11877: if { (ac_try="$ac_link"
                   11878: case "(($ac_try" in
                   11879:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   11880:   *) ac_try_echo=$ac_try;;
                   11881: esac
                   11882: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   11883:   (eval "$ac_link") 2>conftest.er1
1.25      millert  11884:   ac_status=$?
                   11885:   grep -v '^ *+' conftest.er1 >conftest.err
                   11886:   rm -f conftest.er1
                   11887:   cat conftest.err >&5
                   11888:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  11889:   (exit $ac_status); } && {
                   11890:         test -z "$ac_c_werror_flag" ||
                   11891:         test ! -s conftest.err
                   11892:        } && test -s conftest$ac_exeext &&
                   11893:        $as_test_x conftest$ac_exeext; then
1.23      millert  11894:
1.25      millert  11895:                        if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
                   11896:                            blibpath="$with_blibpath"
                   11897:                        elif test -n "$GCC"; then
                   11898:                            blibpath="/usr/lib:/lib:/usr/local/lib"
                   11899:                        else
                   11900:                            blibpath="/usr/lib:/lib"
                   11901:                        fi
1.27      millert  11902:                        { echo "$as_me:$LINENO: result: yes" >&5
                   11903: echo "${ECHO_T}yes" >&6; }
1.23      millert  11904:
1.25      millert  11905: else
                   11906:   echo "$as_me: failed program was:" >&5
                   11907: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  11908:
1.27      millert  11909:        { echo "$as_me:$LINENO: result: no" >&5
                   11910: echo "${ECHO_T}no" >&6; }
1.25      millert  11911: fi
1.27      millert  11912:
                   11913: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  11914:       conftest$ac_exeext conftest.$ac_ext
                   11915:                fi
                   11916:                LDFLAGS="$O_LDFLAGS"
1.23      millert  11917:
1.27      millert  11918:                # Use authenticate(3) as the default authentication method
1.25      millert  11919:                if test X"$with_aixauth" = X""; then
1.23      millert  11920:
1.25      millert  11921: for ac_func in authenticate
                   11922: do
                   11923: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  11924: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   11925: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   11926: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  11927:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   11928: else
                   11929:   cat >conftest.$ac_ext <<_ACEOF
                   11930: /* confdefs.h.  */
                   11931: _ACEOF
                   11932: cat confdefs.h >>conftest.$ac_ext
                   11933: cat >>conftest.$ac_ext <<_ACEOF
                   11934: /* end confdefs.h.  */
                   11935: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   11936:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   11937: #define $ac_func innocuous_$ac_func
1.23      millert  11938:
1.25      millert  11939: /* System header to define __stub macros and hopefully few prototypes,
                   11940:     which can conflict with char $ac_func (); below.
                   11941:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   11942:     <limits.h> exists even on freestanding compilers.  */
1.23      millert  11943:
1.25      millert  11944: #ifdef __STDC__
                   11945: # include <limits.h>
                   11946: #else
                   11947: # include <assert.h>
                   11948: #endif
1.23      millert  11949:
1.25      millert  11950: #undef $ac_func
1.23      millert  11951:
1.27      millert  11952: /* Override any GCC internal prototype to avoid an error.
                   11953:    Use char because int might match the return type of a GCC
                   11954:    builtin and then its argument prototype would still apply.  */
1.25      millert  11955: #ifdef __cplusplus
                   11956: extern "C"
                   11957: #endif
                   11958: char $ac_func ();
                   11959: /* The GNU C library defines this for functions which it implements
                   11960:     to always fail with ENOSYS.  Some functions are actually named
                   11961:     something starting with __ and the normal name is an alias.  */
1.27      millert  11962: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  11963: choke me
                   11964: #endif
1.23      millert  11965:
1.25      millert  11966: int
                   11967: main ()
                   11968: {
1.27      millert  11969: return $ac_func ();
1.25      millert  11970:   ;
                   11971:   return 0;
                   11972: }
                   11973: _ACEOF
                   11974: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  11975: if { (ac_try="$ac_link"
                   11976: case "(($ac_try" in
                   11977:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   11978:   *) ac_try_echo=$ac_try;;
                   11979: esac
                   11980: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   11981:   (eval "$ac_link") 2>conftest.er1
1.25      millert  11982:   ac_status=$?
                   11983:   grep -v '^ *+' conftest.er1 >conftest.err
                   11984:   rm -f conftest.er1
                   11985:   cat conftest.err >&5
                   11986:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  11987:   (exit $ac_status); } && {
                   11988:         test -z "$ac_c_werror_flag" ||
                   11989:         test ! -s conftest.err
                   11990:        } && test -s conftest$ac_exeext &&
                   11991:        $as_test_x conftest$ac_exeext; then
1.25      millert  11992:   eval "$as_ac_var=yes"
                   11993: else
                   11994:   echo "$as_me: failed program was:" >&5
                   11995: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  11996:
1.27      millert  11997:        eval "$as_ac_var=no"
1.25      millert  11998: fi
1.27      millert  11999:
                   12000: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  12001:       conftest$ac_exeext conftest.$ac_ext
                   12002: fi
1.27      millert  12003: ac_res=`eval echo '${'$as_ac_var'}'`
                   12004:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   12005: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  12006: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   12007:   cat >>confdefs.h <<_ACEOF
                   12008: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   12009: _ACEOF
1.27      millert  12010:  AUTH_EXCL_DEF="AIX_AUTH"
1.25      millert  12011: fi
                   12012: done
1.23      millert  12013:
1.25      millert  12014:                fi
1.37      millert  12015:
1.39      millert  12016:                # AIX analog of nsswitch.conf, enabled by default
                   12017:
                   12018: # Check whether --with-netsvc was given.
                   12019: if test "${with_netsvc+set}" = set; then
                   12020:   withval=$with_netsvc; case $with_netsvc in
                   12021:                    no)         ;;
                   12022:                    yes)        with_netsvc="/etc/netsvc.conf"
                   12023:                                ;;
                   12024:                    *)          ;;
                   12025:                esac
                   12026: fi
                   12027:
                   12028:                if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
                   12029:                    with_netsvc="/etc/netsvc.conf"
                   12030:                fi
                   12031:
1.37      millert  12032:                # AIX-specific functions
                   12033:
                   12034: for ac_func in getuserattr
                   12035: do
                   12036: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   12037: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   12038: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   12039: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
                   12040:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12041: else
                   12042:   cat >conftest.$ac_ext <<_ACEOF
                   12043: /* confdefs.h.  */
                   12044: _ACEOF
                   12045: cat confdefs.h >>conftest.$ac_ext
                   12046: cat >>conftest.$ac_ext <<_ACEOF
                   12047: /* end confdefs.h.  */
                   12048: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   12049:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   12050: #define $ac_func innocuous_$ac_func
                   12051:
                   12052: /* System header to define __stub macros and hopefully few prototypes,
                   12053:     which can conflict with char $ac_func (); below.
                   12054:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   12055:     <limits.h> exists even on freestanding compilers.  */
                   12056:
                   12057: #ifdef __STDC__
                   12058: # include <limits.h>
                   12059: #else
                   12060: # include <assert.h>
                   12061: #endif
                   12062:
                   12063: #undef $ac_func
                   12064:
                   12065: /* Override any GCC internal prototype to avoid an error.
                   12066:    Use char because int might match the return type of a GCC
                   12067:    builtin and then its argument prototype would still apply.  */
                   12068: #ifdef __cplusplus
                   12069: extern "C"
                   12070: #endif
                   12071: char $ac_func ();
                   12072: /* The GNU C library defines this for functions which it implements
                   12073:     to always fail with ENOSYS.  Some functions are actually named
                   12074:     something starting with __ and the normal name is an alias.  */
                   12075: #if defined __stub_$ac_func || defined __stub___$ac_func
                   12076: choke me
                   12077: #endif
                   12078:
                   12079: int
                   12080: main ()
                   12081: {
                   12082: return $ac_func ();
                   12083:   ;
                   12084:   return 0;
                   12085: }
                   12086: _ACEOF
                   12087: rm -f conftest.$ac_objext conftest$ac_exeext
                   12088: if { (ac_try="$ac_link"
                   12089: case "(($ac_try" in
                   12090:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12091:   *) ac_try_echo=$ac_try;;
                   12092: esac
                   12093: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12094:   (eval "$ac_link") 2>conftest.er1
                   12095:   ac_status=$?
                   12096:   grep -v '^ *+' conftest.er1 >conftest.err
                   12097:   rm -f conftest.er1
                   12098:   cat conftest.err >&5
                   12099:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12100:   (exit $ac_status); } && {
                   12101:         test -z "$ac_c_werror_flag" ||
                   12102:         test ! -s conftest.err
                   12103:        } && test -s conftest$ac_exeext &&
                   12104:        $as_test_x conftest$ac_exeext; then
                   12105:   eval "$as_ac_var=yes"
                   12106: else
                   12107:   echo "$as_me: failed program was:" >&5
                   12108: sed 's/^/| /' conftest.$ac_ext >&5
                   12109:
                   12110:        eval "$as_ac_var=no"
                   12111: fi
                   12112:
                   12113: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   12114:       conftest$ac_exeext conftest.$ac_ext
                   12115: fi
                   12116: ac_res=`eval echo '${'$as_ac_var'}'`
                   12117:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   12118: echo "${ECHO_T}$ac_res" >&6; }
                   12119: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   12120:   cat >>confdefs.h <<_ACEOF
                   12121: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   12122: _ACEOF
                   12123:
                   12124: fi
                   12125: done
                   12126:
                   12127:                SUDO_OBJS="$SUDO_OBJS aix.o"
1.25      millert  12128:                ;;
                   12129:     *-*-hiuxmpp*)
                   12130:                : ${mansectsu='1m'}
                   12131:                : ${mansectform='4'}
                   12132:                ;;
                   12133:     *-*-hpux*)
                   12134:                # AFS support needs -lBSD
                   12135:                if test "$with_AFS" = "yes"; then
                   12136:                    AFS_LIBS="-lc -lBSD"
                   12137:                fi
                   12138:                : ${mansectsu='1m'}
                   12139:                : ${mansectform='4'}
1.23      millert  12140:
1.38      millert  12141:                # HP-UX bundled compiler can't generate shared objects
                   12142:                if test "x$ac_cv_prog_cc_c89" = "xno"; then
                   12143:                    with_noexec=no
                   12144:                fi
1.40      millert  12145:
                   12146:                # Use the +DAportable flag if it is supported
                   12147:                _CFLAGS="$CFLAGS"
                   12148:                CFLAGS="$CFLAGS +DAportable"
                   12149:                { echo "$as_me:$LINENO: checking whether $CC understands +DAportable" >&5
                   12150: echo $ECHO_N "checking whether $CC understands +DAportable... $ECHO_C" >&6; }
                   12151: if test "${sudo_cv_var_daportable+set}" = set; then
                   12152:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12153: else
                   12154:   cat >conftest.$ac_ext <<_ACEOF
                   12155: /* confdefs.h.  */
                   12156: _ACEOF
                   12157: cat confdefs.h >>conftest.$ac_ext
                   12158: cat >>conftest.$ac_ext <<_ACEOF
                   12159: /* end confdefs.h.  */
                   12160:
                   12161: int
                   12162: main ()
                   12163: {
                   12164:
                   12165:   ;
                   12166:   return 0;
                   12167: }
                   12168: _ACEOF
                   12169: rm -f conftest.$ac_objext conftest$ac_exeext
                   12170: if { (ac_try="$ac_link"
                   12171: case "(($ac_try" in
                   12172:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12173:   *) ac_try_echo=$ac_try;;
                   12174: esac
                   12175: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12176:   (eval "$ac_link") 2>conftest.er1
                   12177:   ac_status=$?
                   12178:   grep -v '^ *+' conftest.er1 >conftest.err
                   12179:   rm -f conftest.er1
                   12180:   cat conftest.err >&5
                   12181:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   12182:   (exit $ac_status); } && {
                   12183:         test -z "$ac_c_werror_flag" ||
                   12184:         test ! -s conftest.err
                   12185:        } && test -s conftest$ac_exeext &&
                   12186:        $as_test_x conftest$ac_exeext; then
                   12187:   sudo_cv_var_daportable=yes
                   12188: else
                   12189:   echo "$as_me: failed program was:" >&5
                   12190: sed 's/^/| /' conftest.$ac_ext >&5
                   12191:
                   12192:        sudo_cv_var_daportable=no
                   12193: fi
                   12194:
                   12195: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   12196:       conftest$ac_exeext conftest.$ac_ext
                   12197:
                   12198: fi
                   12199: { echo "$as_me:$LINENO: result: $sudo_cv_var_daportable" >&5
                   12200: echo "${ECHO_T}$sudo_cv_var_daportable" >&6; }
                   12201:                if test X"$sudo_cv_var_daportable" != X"yes"; then
                   12202:                    CFLAGS="$_CFLAGS"
                   12203:                fi
                   12204:
1.25      millert  12205:                case "$host" in
                   12206:                        *-*-hpux1-8.*)
                   12207:                            cat >>confdefs.h <<\_ACEOF
                   12208: #define BROKEN_SYSLOG 1
                   12209: _ACEOF
1.23      millert  12210:
                   12211:
1.25      millert  12212:                            # Not sure if setuid binaries are safe in < 9.x
                   12213:                            if test -n "$GCC"; then
                   12214:                                SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
                   12215:                            else
                   12216:                                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
                   12217:                            fi
                   12218:                        ;;
                   12219:                        *-*-hpux9.*)
                   12220:                            cat >>confdefs.h <<\_ACEOF
                   12221: #define BROKEN_SYSLOG 1
                   12222: _ACEOF
1.23      millert  12223:
                   12224:
1.25      millert  12225:                            shadow_funcs="getspwuid"
1.23      millert  12226:
1.25      millert  12227:                            # DCE support (requires ANSI C compiler)
                   12228:                            if test "$with_DCE" = "yes"; then
                   12229:                                # order of libs in 9.X is important. -lc_r must be last
                   12230:                                SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
                   12231:                                LIBS="${LIBS} -ldce -lM -lc_r"
                   12232:                                CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
                   12233:                            fi
                   12234:                        ;;
                   12235:                        *-*-hpux10.*)
                   12236:                            shadow_funcs="getprpwnam iscomsec"
                   12237:                            shadow_libs="-lsec"
                   12238:                        ;;
                   12239:                        *)
                   12240:                            shadow_funcs="getspnam iscomsec"
                   12241:                            shadow_libs="-lsec"
1.27      millert  12242:                            test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12243:                        ;;
                   12244:                esac
                   12245:                ;;
                   12246:     *-dec-osf*)
                   12247:                # ignore envariables wrt dynamic lib path
                   12248:                SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
1.23      millert  12249:
1.28      millert  12250:                : ${CHECKSIA='true'}
1.27      millert  12251:                { echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
                   12252: echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6; }
                   12253:                # Check whether --enable-sia was given.
1.25      millert  12254: if test "${enable_sia+set}" = set; then
1.27      millert  12255:   enableval=$enable_sia;  case "$enableval" in
                   12256:                    yes)        { echo "$as_me:$LINENO: result: no" >&5
                   12257: echo "${ECHO_T}no" >&6; }
1.28      millert  12258:                                CHECKSIA=true
1.25      millert  12259:                                ;;
1.27      millert  12260:                    no)         { echo "$as_me:$LINENO: result: yes" >&5
                   12261: echo "${ECHO_T}yes" >&6; }
1.25      millert  12262:                                CHECKSIA=false
                   12263:                                ;;
1.27      millert  12264:                    *)          { echo "$as_me:$LINENO: result: no" >&5
                   12265: echo "${ECHO_T}no" >&6; }
1.25      millert  12266:                                { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
                   12267: echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
                   12268:                                ;;
                   12269:                  esac
1.23      millert  12270:
1.25      millert  12271: else
1.27      millert  12272:   { echo "$as_me:$LINENO: result: no" >&5
                   12273: echo "${ECHO_T}no" >&6; }
                   12274: fi
                   12275:
1.23      millert  12276:
1.25      millert  12277:                shadow_funcs="getprpwnam dispcrypt"
                   12278:                # OSF/1 4.x and higher need -ldb too
                   12279:                if test $OSMAJOR -lt 4; then
                   12280:                    shadow_libs="-lsecurity -laud -lm"
                   12281:                else
                   12282:                    shadow_libs="-lsecurity -ldb -laud -lm"
                   12283:                fi
1.23      millert  12284:
1.25      millert  12285:                # use SIA by default, if we have it
1.27      millert  12286:                test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
1.23      millert  12287:
1.27      millert  12288:                #
                   12289:                # Some versions of Digital Unix ship with a broken
                   12290:                # copy of prot.h, which we need for shadow passwords.
                   12291:                # XXX - make should remove this as part of distclean
                   12292:                #
                   12293:                { echo "$as_me:$LINENO: checking for broken prot.h" >&5
                   12294: echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6; }
                   12295:                cat >conftest.$ac_ext <<_ACEOF
1.25      millert  12296: /* confdefs.h.  */
                   12297: _ACEOF
                   12298: cat confdefs.h >>conftest.$ac_ext
                   12299: cat >>conftest.$ac_ext <<_ACEOF
                   12300: /* end confdefs.h.  */
1.23      millert  12301:
1.25      millert  12302: #include <sys/types.h>
                   12303: #include <sys/security.h>
                   12304: #include <prot.h>
1.23      millert  12305:
1.25      millert  12306: int
                   12307: main ()
                   12308: {
                   12309: exit(0);
                   12310:   ;
                   12311:   return 0;
                   12312: }
                   12313: _ACEOF
                   12314: rm -f conftest.$ac_objext
1.27      millert  12315: if { (ac_try="$ac_compile"
                   12316: case "(($ac_try" in
                   12317:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12318:   *) ac_try_echo=$ac_try;;
                   12319: esac
                   12320: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12321:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  12322:   ac_status=$?
                   12323:   grep -v '^ *+' conftest.er1 >conftest.err
                   12324:   rm -f conftest.er1
                   12325:   cat conftest.err >&5
                   12326:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12327:   (exit $ac_status); } && {
                   12328:         test -z "$ac_c_werror_flag" ||
                   12329:         test ! -s conftest.err
                   12330:        } && test -s conftest.$ac_objext; then
                   12331:   { echo "$as_me:$LINENO: result: no" >&5
                   12332: echo "${ECHO_T}no" >&6; }
1.25      millert  12333: else
                   12334:   echo "$as_me: failed program was:" >&5
                   12335: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  12336:
1.27      millert  12337:        { echo "$as_me:$LINENO: result: yes, fixing locally" >&5
                   12338: echo "${ECHO_T}yes, fixing locally" >&6; }
                   12339:                sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
1.23      millert  12340:
1.25      millert  12341: fi
1.27      millert  12342:
                   12343: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  12344:                : ${mansectsu='8'}
                   12345:                : ${mansectform='4'}
                   12346:                ;;
                   12347:     *-*-irix*)
                   12348:                OSDEFS="${OSDEFS} -D_BSD_TYPES"
                   12349:                if test -z "$NROFFPROG"; then
                   12350:                    MAN_POSTINSTALL='   /bin/rm -f $(mandirsu)/sudo.$(mansectsu).z $(mandirsu)/visudo.$(mansectsu).z $(mandirform)/sudoers.$(mansectform).z ; /usr/bin/pack $(mandirsu)/sudo.$(mansectsu) $(mandirsu)/visudo.$(mansectsu) $(mandirform)/sudoers.$(mansectform)'
                   12351:                    if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
                   12352:                        if test -d /usr/share/catman/local; then
                   12353:                            mandir="/usr/share/catman/local"
                   12354:                        else
                   12355:                            mandir="/usr/catman/local"
                   12356:                        fi
                   12357:                    fi
                   12358:                else
                   12359:                    if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
                   12360:                        if test -d "/usr/share/man/local"; then
                   12361:                            mandir="/usr/share/man/local"
                   12362:                        else
                   12363:                            mandir="/usr/man/local"
                   12364:                        fi
                   12365:                    fi
                   12366:                fi
                   12367:                # IRIX <= 4 needs -lsun
                   12368:                if test "$OSMAJOR" -le 4; then
1.27      millert  12369:                    { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
                   12370: echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
1.25      millert  12371: if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
                   12372:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12373: else
                   12374:   ac_check_lib_save_LIBS=$LIBS
                   12375: LIBS="-lsun  $LIBS"
                   12376: cat >conftest.$ac_ext <<_ACEOF
                   12377: /* confdefs.h.  */
                   12378: _ACEOF
                   12379: cat confdefs.h >>conftest.$ac_ext
                   12380: cat >>conftest.$ac_ext <<_ACEOF
                   12381: /* end confdefs.h.  */
1.23      millert  12382:
1.27      millert  12383: /* Override any GCC internal prototype to avoid an error.
                   12384:    Use char because int might match the return type of a GCC
                   12385:    builtin and then its argument prototype would still apply.  */
1.25      millert  12386: #ifdef __cplusplus
                   12387: extern "C"
                   12388: #endif
                   12389: char getpwnam ();
                   12390: int
                   12391: main ()
                   12392: {
1.27      millert  12393: return getpwnam ();
1.25      millert  12394:   ;
                   12395:   return 0;
                   12396: }
                   12397: _ACEOF
                   12398: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  12399: if { (ac_try="$ac_link"
                   12400: case "(($ac_try" in
                   12401:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12402:   *) ac_try_echo=$ac_try;;
                   12403: esac
                   12404: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12405:   (eval "$ac_link") 2>conftest.er1
1.25      millert  12406:   ac_status=$?
                   12407:   grep -v '^ *+' conftest.er1 >conftest.err
                   12408:   rm -f conftest.er1
                   12409:   cat conftest.err >&5
                   12410:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12411:   (exit $ac_status); } && {
                   12412:         test -z "$ac_c_werror_flag" ||
                   12413:         test ! -s conftest.err
                   12414:        } && test -s conftest$ac_exeext &&
                   12415:        $as_test_x conftest$ac_exeext; then
1.25      millert  12416:   ac_cv_lib_sun_getpwnam=yes
                   12417: else
                   12418:   echo "$as_me: failed program was:" >&5
                   12419: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  12420:
1.27      millert  12421:        ac_cv_lib_sun_getpwnam=no
1.25      millert  12422: fi
1.27      millert  12423:
                   12424: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  12425:       conftest$ac_exeext conftest.$ac_ext
                   12426: LIBS=$ac_check_lib_save_LIBS
                   12427: fi
1.27      millert  12428: { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
                   12429: echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
1.25      millert  12430: if test $ac_cv_lib_sun_getpwnam = yes; then
                   12431:   LIBS="${LIBS} -lsun"
                   12432: fi
1.23      millert  12433:
1.25      millert  12434:                fi
                   12435:                : ${mansectsu='1m'}
                   12436:                : ${mansectform='4'}
                   12437:                ;;
1.36      millert  12438:     *-*-linux*|*-*-k*bsd*-gnu)
1.25      millert  12439:                OSDEFS="${OSDEFS} -D_GNU_SOURCE"
                   12440:                # Some Linux versions need to link with -lshadow
                   12441:                shadow_funcs="getspnam"
                   12442:                shadow_libs_optional="-lshadow"
1.27      millert  12443:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12444:                ;;
                   12445:     *-convex-bsd*)
                   12446:                OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
                   12447:                if test -z "$GCC"; then
                   12448:                    CFLAGS="${CFLAGS} -D__STDC__"
                   12449:                fi
1.23      millert  12450:
1.25      millert  12451:                shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
                   12452:                shadow_funcs="getprpwnam"
                   12453:                shadow_libs="-lprot"
                   12454:                ;;
                   12455:     *-*-ultrix*)
                   12456:                OS="ultrix"
                   12457:                shadow_funcs="getauthuid"
                   12458:                shadow_libs="-lauth"
                   12459:                ;;
                   12460:     *-*-riscos*)
                   12461:                LIBS="${LIBS} -lsun -lbsd"
                   12462:                CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
                   12463:                OSDEFS="${OSDEFS} -D_MIPS"
                   12464:                : ${mansectsu='1m'}
                   12465:                : ${mansectform='4'}
                   12466:                ;;
                   12467:     *-*-isc*)
                   12468:                OSDEFS="${OSDEFS} -D_ISC"
                   12469:                LIB_CRYPT=1
                   12470:                SUDO_LIBS="${SUDO_LIBS} -lcrypt"
                   12471:                LIBS="${LIBS} -lcrypt"
1.23      millert  12472:
1.25      millert  12473:                shadow_funcs="getspnam"
                   12474:                shadow_libs="-lsec"
1.23      millert  12475:
1.25      millert  12476:                : ${mansectsu='1m'}
                   12477:                : ${mansectform='4'}
                   12478:                ;;
                   12479:     *-*-sco*|*-sco-*)
                   12480:                shadow_funcs="getprpwnam"
                   12481:                shadow_libs="-lprot -lx"
                   12482:                : ${mansectsu='1m'}
                   12483:                : ${mansectform='4'}
                   12484:                ;;
                   12485:     m88k-motorola-sysv*)
                   12486:                # motorolla's cc (a variant of gcc) does -O but not -O2
                   12487:                CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
                   12488:                : ${mansectsu='1m'}
                   12489:                : ${mansectform='4'}
                   12490:                ;;
                   12491:     *-sequent-sysv*)
                   12492:                shadow_funcs="getspnam"
                   12493:                shadow_libs="-lsec"
                   12494:                : ${mansectsu='1m'}
                   12495:                : ${mansectform='4'}
                   12496:                : ${with_rpath='yes'}
                   12497:                ;;
                   12498:     *-ncr-sysv4*|*-ncr-sysvr4*)
1.27      millert  12499:                { echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
                   12500: echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6; }
1.25      millert  12501: if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
                   12502:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12503: else
                   12504:   ac_check_lib_save_LIBS=$LIBS
                   12505: LIBS="-lc89  $LIBS"
                   12506: cat >conftest.$ac_ext <<_ACEOF
                   12507: /* confdefs.h.  */
                   12508: _ACEOF
                   12509: cat confdefs.h >>conftest.$ac_ext
                   12510: cat >>conftest.$ac_ext <<_ACEOF
                   12511: /* end confdefs.h.  */
1.23      millert  12512:
1.27      millert  12513: /* Override any GCC internal prototype to avoid an error.
                   12514:    Use char because int might match the return type of a GCC
                   12515:    builtin and then its argument prototype would still apply.  */
1.25      millert  12516: #ifdef __cplusplus
                   12517: extern "C"
                   12518: #endif
                   12519: char strcasecmp ();
                   12520: int
                   12521: main ()
                   12522: {
1.27      millert  12523: return strcasecmp ();
1.25      millert  12524:   ;
                   12525:   return 0;
                   12526: }
                   12527: _ACEOF
                   12528: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  12529: if { (ac_try="$ac_link"
                   12530: case "(($ac_try" in
                   12531:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12532:   *) ac_try_echo=$ac_try;;
                   12533: esac
                   12534: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12535:   (eval "$ac_link") 2>conftest.er1
1.25      millert  12536:   ac_status=$?
                   12537:   grep -v '^ *+' conftest.er1 >conftest.err
                   12538:   rm -f conftest.er1
                   12539:   cat conftest.err >&5
                   12540:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12541:   (exit $ac_status); } && {
                   12542:         test -z "$ac_c_werror_flag" ||
                   12543:         test ! -s conftest.err
                   12544:        } && test -s conftest$ac_exeext &&
                   12545:        $as_test_x conftest$ac_exeext; then
1.25      millert  12546:   ac_cv_lib_c89_strcasecmp=yes
                   12547: else
                   12548:   echo "$as_me: failed program was:" >&5
                   12549: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  12550:
1.27      millert  12551:        ac_cv_lib_c89_strcasecmp=no
1.25      millert  12552: fi
1.27      millert  12553:
                   12554: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  12555:       conftest$ac_exeext conftest.$ac_ext
                   12556: LIBS=$ac_check_lib_save_LIBS
                   12557: fi
1.27      millert  12558: { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
                   12559: echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6; }
1.25      millert  12560: if test $ac_cv_lib_c89_strcasecmp = yes; then
                   12561:   cat >>confdefs.h <<\_ACEOF
                   12562: #define HAVE_STRCASECMP 1
                   12563: _ACEOF
                   12564:  LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
                   12565: fi
1.23      millert  12566:
1.25      millert  12567:                : ${mansectsu='1m'}
                   12568:                : ${mansectform='4'}
                   12569:                : ${with_rpath='yes'}
                   12570:                ;;
                   12571:     *-ccur-sysv4*|*-ccur-sysvr4*)
                   12572:                LIBS="${LIBS} -lgen"
                   12573:                SUDO_LIBS="${SUDO_LIBS} -lgen"
                   12574:                : ${mansectsu='1m'}
                   12575:                : ${mansectform='4'}
                   12576:                : ${with_rpath='yes'}
                   12577:                ;;
                   12578:     *-*-bsdi*)
                   12579:                SKIP_SETREUID=yes
                   12580:                # Use shlicc for BSD/OS [23].x unless asked to do otherwise
                   12581:                if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
                   12582:                    case "$OSMAJOR" in
                   12583:                        2|3)    { echo "$as_me:$LINENO: using shlicc as CC" >&5
                   12584: echo "$as_me: using shlicc as CC" >&6;}
                   12585:                                ac_cv_prog_CC=shlicc
                   12586:                                CC="$ac_cv_prog_CC"
                   12587:                                ;;
                   12588:                    esac
                   12589:                fi
                   12590:                # Check for newer BSD auth API (just check for >= 3.0?)
                   12591:                if test -z "$with_bsdauth"; then
1.23      millert  12592:
1.25      millert  12593: for ac_func in auth_challenge
                   12594: do
                   12595: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  12596: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   12597: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   12598: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  12599:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12600: else
                   12601:   cat >conftest.$ac_ext <<_ACEOF
                   12602: /* confdefs.h.  */
                   12603: _ACEOF
                   12604: cat confdefs.h >>conftest.$ac_ext
                   12605: cat >>conftest.$ac_ext <<_ACEOF
                   12606: /* end confdefs.h.  */
                   12607: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   12608:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   12609: #define $ac_func innocuous_$ac_func
1.23      millert  12610:
1.25      millert  12611: /* System header to define __stub macros and hopefully few prototypes,
                   12612:     which can conflict with char $ac_func (); below.
                   12613:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   12614:     <limits.h> exists even on freestanding compilers.  */
1.23      millert  12615:
1.25      millert  12616: #ifdef __STDC__
                   12617: # include <limits.h>
                   12618: #else
                   12619: # include <assert.h>
                   12620: #endif
1.23      millert  12621:
1.25      millert  12622: #undef $ac_func
1.23      millert  12623:
1.27      millert  12624: /* Override any GCC internal prototype to avoid an error.
                   12625:    Use char because int might match the return type of a GCC
                   12626:    builtin and then its argument prototype would still apply.  */
1.25      millert  12627: #ifdef __cplusplus
                   12628: extern "C"
                   12629: #endif
                   12630: char $ac_func ();
                   12631: /* The GNU C library defines this for functions which it implements
                   12632:     to always fail with ENOSYS.  Some functions are actually named
                   12633:     something starting with __ and the normal name is an alias.  */
1.27      millert  12634: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  12635: choke me
                   12636: #endif
1.23      millert  12637:
1.25      millert  12638: int
                   12639: main ()
                   12640: {
1.27      millert  12641: return $ac_func ();
1.25      millert  12642:   ;
                   12643:   return 0;
                   12644: }
                   12645: _ACEOF
                   12646: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  12647: if { (ac_try="$ac_link"
                   12648: case "(($ac_try" in
                   12649:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12650:   *) ac_try_echo=$ac_try;;
                   12651: esac
                   12652: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12653:   (eval "$ac_link") 2>conftest.er1
1.25      millert  12654:   ac_status=$?
                   12655:   grep -v '^ *+' conftest.er1 >conftest.err
                   12656:   rm -f conftest.er1
                   12657:   cat conftest.err >&5
                   12658:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12659:   (exit $ac_status); } && {
                   12660:         test -z "$ac_c_werror_flag" ||
                   12661:         test ! -s conftest.err
                   12662:        } && test -s conftest$ac_exeext &&
                   12663:        $as_test_x conftest$ac_exeext; then
1.25      millert  12664:   eval "$as_ac_var=yes"
                   12665: else
                   12666:   echo "$as_me: failed program was:" >&5
                   12667: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  12668:
1.27      millert  12669:        eval "$as_ac_var=no"
1.25      millert  12670: fi
1.27      millert  12671:
                   12672: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  12673:       conftest$ac_exeext conftest.$ac_ext
                   12674: fi
1.27      millert  12675: ac_res=`eval echo '${'$as_ac_var'}'`
                   12676:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   12677: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  12678: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   12679:   cat >>confdefs.h <<_ACEOF
                   12680: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   12681: _ACEOF
1.27      millert  12682:  AUTH_EXCL_DEF="BSD_AUTH"
1.25      millert  12683: fi
                   12684: done
1.23      millert  12685:
1.25      millert  12686:                fi
                   12687:                ;;
                   12688:     *-*-freebsd*)
                   12689:                # FreeBSD has a real setreuid(2) starting with 2.1 and
                   12690:                # backported to 2.0.5.  We just take 2.1 and above...
                   12691:                case "$OSREV" in
                   12692:                0.*|1.*|2.0*)
                   12693:                    SKIP_SETREUID=yes
                   12694:                    ;;
                   12695:                esac
                   12696:                if test "$with_skey" = "yes"; then
                   12697:                     SUDO_LIBS="${SUDO_LIBS} -lmd"
                   12698:                fi
1.27      millert  12699:                CHECKSHADOW="false"
                   12700:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12701:                : ${with_logincap='maybe'}
                   12702:                ;;
                   12703:     *-*-*openbsd*)
                   12704:                # OpenBSD has a real setreuid(2) starting with 3.3 but
                   12705:                # we will use setreuid(2) instead.
                   12706:                SKIP_SETREUID=yes
1.27      millert  12707:                CHECKSHADOW="false"
1.25      millert  12708:                # OpenBSD >= 3.0 supports BSD auth
                   12709:                if test -z "$with_bsdauth"; then
                   12710:                    case "$OSREV" in
                   12711:                    0-2.*)
                   12712:                        ;;
                   12713:                    *)
1.27      millert  12714:                        AUTH_EXCL_DEF="BSD_AUTH"
1.25      millert  12715:                        ;;
                   12716:                    esac
                   12717:                fi
                   12718:                : ${with_logincap='maybe'}
                   12719:                ;;
                   12720:     *-*-*netbsd*)
                   12721:                # NetBSD has a real setreuid(2) starting with 1.3.2
                   12722:                case "$OSREV" in
                   12723:                0.9*|1.012*|1.3|1.3.1)
                   12724:                    SKIP_SETREUID=yes
                   12725:                    ;;
                   12726:                esac
1.27      millert  12727:                CHECKSHADOW="false"
                   12728:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12729:                : ${with_logincap='maybe'}
                   12730:                ;;
                   12731:     *-*-dragonfly*)
                   12732:                if test "$with_skey" = "yes"; then
                   12733:                     SUDO_LIBS="${SUDO_LIBS} -lmd"
                   12734:                fi
1.27      millert  12735:                CHECKSHADOW="false"
                   12736:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12737:                : ${with_logincap='yes'}
                   12738:                ;;
                   12739:     *-*-*bsd*)
1.27      millert  12740:                CHECKSHADOW="false"
1.25      millert  12741:                ;;
                   12742:     *-*-darwin*)
                   12743:                SKIP_SETREUID=yes
1.27      millert  12744:                CHECKSHADOW="false"
                   12745:                test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25      millert  12746:                : ${with_logincap='yes'}
                   12747:                ;;
                   12748:     *-*-nextstep*)
                   12749:                # lockf() on is broken on the NeXT -- use flock instead
                   12750:                ac_cv_func_lockf=no
                   12751:                ac_cv_func_flock=yes
                   12752:                ;;
                   12753:     *-*-*sysv4*)
                   12754:                : ${mansectsu='1m'}
                   12755:                : ${mansectform='4'}
                   12756:                : ${with_rpath='yes'}
                   12757:                ;;
                   12758:     *-*-sysv*)
                   12759:                : ${mansectsu='1m'}
                   12760:                : ${mansectform='4'}
1.27      millert  12761:                ;;
                   12762:     *-gnu*)
                   12763:                OSDEFS="${OSDEFS} -D_GNU_SOURCE"
                   12764:                ;;
                   12765: esac
                   12766:
                   12767: AUTH_REG=${AUTH_REG# }
                   12768: AUTH_EXCL=${AUTH_EXCL# }
                   12769: if test -n "$AUTH_EXCL"; then
                   12770:     set -- $AUTH_EXCL
                   12771:     if test $# != 1; then
                   12772:        { { echo "$as_me:$LINENO: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&5
                   12773: echo "$as_me: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&2;}
                   12774:    { (exit 1); exit 1; }; }
                   12775:     fi
                   12776:     if test -n "$AUTH_REG"; then
                   12777:        { { echo "$as_me:$LINENO: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&5
                   12778: echo "$as_me: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&2;}
                   12779:    { (exit 1); exit 1; }; }
                   12780:     fi
                   12781: fi
                   12782: if test X"${with_skey}${with_opie}" = X"yesyes"; then
                   12783:     { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
                   12784: echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
                   12785:    { (exit 1); exit 1; }; }
                   12786: fi
1.23      millert  12787:
1.25      millert  12788: : ${mansectsu='8'}
                   12789: : ${mansectform='5'}
1.23      millert  12790:
1.25      millert  12791: if test -n "$with_libpath"; then
                   12792:     for i in ${with_libpath}; do
1.23      millert  12793:
1.25      millert  12794:     if test X"$with_rpath" = X"yes"; then
                   12795:        LDFLAGS="${LDFLAGS} -L$i -R$i"
                   12796:     else
                   12797:        LDFLAGS="${LDFLAGS} -L$i"
                   12798:     fi
                   12799:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   12800:        blibpath_add="${blibpath_add}:$i"
                   12801:     fi
1.23      millert  12802:
1.25      millert  12803:     done
                   12804: fi
                   12805: if test -n "$with_libraries"; then
                   12806:     for i in ${with_libraries}; do
                   12807:        case $i in
                   12808:            -l*)        ;;
                   12809:            *.a)        ;;
                   12810:            *.o)        ;;
                   12811:            *)  i="-l${i}";;
                   12812:        esac
                   12813:        LIBS="${LIBS} ${i}"
                   12814:     done
                   12815: fi
1.23      millert  12816:
1.25      millert  12817: if test $ac_cv_c_compiler_gnu = yes; then
1.27      millert  12818:     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
                   12819: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
1.25      millert  12820: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
                   12821:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12822: else
                   12823:     ac_pattern="Autoconf.*'x'"
                   12824:   cat >conftest.$ac_ext <<_ACEOF
                   12825: /* confdefs.h.  */
                   12826: _ACEOF
                   12827: cat confdefs.h >>conftest.$ac_ext
                   12828: cat >>conftest.$ac_ext <<_ACEOF
                   12829: /* end confdefs.h.  */
                   12830: #include <sgtty.h>
                   12831: Autoconf TIOCGETP
                   12832: _ACEOF
                   12833: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   12834:   $EGREP "$ac_pattern" >/dev/null 2>&1; then
                   12835:   ac_cv_prog_gcc_traditional=yes
                   12836: else
                   12837:   ac_cv_prog_gcc_traditional=no
                   12838: fi
                   12839: rm -f conftest*
1.23      millert  12840:
                   12841:
1.25      millert  12842:   if test $ac_cv_prog_gcc_traditional = no; then
                   12843:     cat >conftest.$ac_ext <<_ACEOF
                   12844: /* confdefs.h.  */
                   12845: _ACEOF
                   12846: cat confdefs.h >>conftest.$ac_ext
                   12847: cat >>conftest.$ac_ext <<_ACEOF
                   12848: /* end confdefs.h.  */
                   12849: #include <termio.h>
                   12850: Autoconf TCGETA
                   12851: _ACEOF
                   12852: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   12853:   $EGREP "$ac_pattern" >/dev/null 2>&1; then
                   12854:   ac_cv_prog_gcc_traditional=yes
                   12855: fi
                   12856: rm -f conftest*
1.23      millert  12857:
1.25      millert  12858:   fi
                   12859: fi
1.27      millert  12860: { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
                   12861: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
1.25      millert  12862:   if test $ac_cv_prog_gcc_traditional = yes; then
                   12863:     CC="$CC -traditional"
                   12864:   fi
                   12865: fi
1.23      millert  12866:
1.27      millert  12867: { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
                   12868: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
1.25      millert  12869: if test "${ac_cv_c_const+set}" = set; then
                   12870:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12871: else
                   12872:   cat >conftest.$ac_ext <<_ACEOF
                   12873: /* confdefs.h.  */
                   12874: _ACEOF
                   12875: cat confdefs.h >>conftest.$ac_ext
                   12876: cat >>conftest.$ac_ext <<_ACEOF
                   12877: /* end confdefs.h.  */
1.23      millert  12878:
1.25      millert  12879: int
                   12880: main ()
                   12881: {
                   12882: /* FIXME: Include the comments suggested by Paul. */
                   12883: #ifndef __cplusplus
                   12884:   /* Ultrix mips cc rejects this.  */
                   12885:   typedef int charset[2];
1.27      millert  12886:   const charset cs;
1.25      millert  12887:   /* SunOS 4.1.1 cc rejects this.  */
1.27      millert  12888:   char const *const *pcpcc;
                   12889:   char **ppc;
1.25      millert  12890:   /* NEC SVR4.0.2 mips cc rejects this.  */
                   12891:   struct point {int x, y;};
                   12892:   static struct point const zero = {0,0};
                   12893:   /* AIX XL C 1.02.0.0 rejects this.
                   12894:      It does not let you subtract one const X* pointer from another in
                   12895:      an arm of an if-expression whose if-part is not a constant
                   12896:      expression */
                   12897:   const char *g = "string";
1.27      millert  12898:   pcpcc = &g + (g ? g-g : 0);
1.25      millert  12899:   /* HPUX 7.0 cc rejects these. */
1.27      millert  12900:   ++pcpcc;
                   12901:   ppc = (char**) pcpcc;
                   12902:   pcpcc = (char const *const *) ppc;
1.25      millert  12903:   { /* SCO 3.2v4 cc rejects this.  */
                   12904:     char *t;
                   12905:     char const *s = 0 ? (char *) 0 : (char const *) 0;
1.23      millert  12906:
1.25      millert  12907:     *t++ = 0;
1.27      millert  12908:     if (s) return 0;
1.25      millert  12909:   }
                   12910:   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   12911:     int x[] = {25, 17};
                   12912:     const int *foo = &x[0];
                   12913:     ++foo;
                   12914:   }
                   12915:   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   12916:     typedef const int *iptr;
                   12917:     iptr p = 0;
                   12918:     ++p;
                   12919:   }
                   12920:   { /* AIX XL C 1.02.0.0 rejects this saying
                   12921:        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   12922:     struct s { int j; const int *ap[3]; };
                   12923:     struct s *b; b->j = 5;
                   12924:   }
                   12925:   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   12926:     const int foo = 10;
1.27      millert  12927:     if (!foo) return 0;
1.25      millert  12928:   }
1.27      millert  12929:   return !cs[0] && !zero.x;
1.25      millert  12930: #endif
1.23      millert  12931:
1.25      millert  12932:   ;
                   12933:   return 0;
                   12934: }
                   12935: _ACEOF
                   12936: rm -f conftest.$ac_objext
1.27      millert  12937: if { (ac_try="$ac_compile"
                   12938: case "(($ac_try" in
                   12939:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   12940:   *) ac_try_echo=$ac_try;;
                   12941: esac
                   12942: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   12943:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  12944:   ac_status=$?
                   12945:   grep -v '^ *+' conftest.er1 >conftest.err
                   12946:   rm -f conftest.er1
                   12947:   cat conftest.err >&5
                   12948:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  12949:   (exit $ac_status); } && {
                   12950:         test -z "$ac_c_werror_flag" ||
                   12951:         test ! -s conftest.err
                   12952:        } && test -s conftest.$ac_objext; then
1.25      millert  12953:   ac_cv_c_const=yes
                   12954: else
                   12955:   echo "$as_me: failed program was:" >&5
                   12956: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  12957:
1.27      millert  12958:        ac_cv_c_const=no
1.25      millert  12959: fi
1.27      millert  12960:
                   12961: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  12962: fi
1.27      millert  12963: { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
                   12964: echo "${ECHO_T}$ac_cv_c_const" >&6; }
1.25      millert  12965: if test $ac_cv_c_const = no; then
1.23      millert  12966:
1.25      millert  12967: cat >>confdefs.h <<\_ACEOF
                   12968: #define const
                   12969: _ACEOF
1.23      millert  12970:
1.25      millert  12971: fi
1.23      millert  12972:
1.27      millert  12973: { echo "$as_me:$LINENO: checking for working volatile" >&5
                   12974: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
1.25      millert  12975: if test "${ac_cv_c_volatile+set}" = set; then
                   12976:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   12977: else
                   12978:   cat >conftest.$ac_ext <<_ACEOF
                   12979: /* confdefs.h.  */
                   12980: _ACEOF
                   12981: cat confdefs.h >>conftest.$ac_ext
                   12982: cat >>conftest.$ac_ext <<_ACEOF
                   12983: /* end confdefs.h.  */
1.23      millert  12984:
1.25      millert  12985: int
                   12986: main ()
                   12987: {
1.23      millert  12988:
1.25      millert  12989: volatile int x;
1.27      millert  12990: int * volatile y = (int *) 0;
                   12991: return !x && !y;
1.25      millert  12992:   ;
                   12993:   return 0;
                   12994: }
                   12995: _ACEOF
                   12996: rm -f conftest.$ac_objext
1.27      millert  12997: if { (ac_try="$ac_compile"
                   12998: case "(($ac_try" in
                   12999:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13000:   *) ac_try_echo=$ac_try;;
                   13001: esac
                   13002: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13003:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  13004:   ac_status=$?
                   13005:   grep -v '^ *+' conftest.er1 >conftest.err
                   13006:   rm -f conftest.er1
                   13007:   cat conftest.err >&5
                   13008:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13009:   (exit $ac_status); } && {
                   13010:         test -z "$ac_c_werror_flag" ||
                   13011:         test ! -s conftest.err
                   13012:        } && test -s conftest.$ac_objext; then
1.25      millert  13013:   ac_cv_c_volatile=yes
                   13014: else
                   13015:   echo "$as_me: failed program was:" >&5
                   13016: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  13017:
1.27      millert  13018:        ac_cv_c_volatile=no
1.25      millert  13019: fi
1.27      millert  13020:
                   13021: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  13022: fi
1.27      millert  13023: { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
                   13024: echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
1.25      millert  13025: if test $ac_cv_c_volatile = no; then
1.23      millert  13026:
1.25      millert  13027: cat >>confdefs.h <<\_ACEOF
                   13028: #define volatile
                   13029: _ACEOF
1.23      millert  13030:
1.25      millert  13031: fi
1.23      millert  13032:
1.25      millert  13033: for ac_prog in 'bison -y' byacc
                   13034: do
                   13035:   # Extract the first word of "$ac_prog", so it can be a program name with args.
                   13036: set dummy $ac_prog; ac_word=$2
1.27      millert  13037: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   13038: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25      millert  13039: if test "${ac_cv_prog_YACC+set}" = set; then
                   13040:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13041: else
                   13042:   if test -n "$YACC"; then
                   13043:   ac_cv_prog_YACC="$YACC" # Let the user override the test.
                   13044: else
                   13045: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   13046: for as_dir in $PATH
                   13047: do
                   13048:   IFS=$as_save_IFS
                   13049:   test -z "$as_dir" && as_dir=.
                   13050:   for ac_exec_ext in '' $ac_executable_extensions; do
1.27      millert  13051:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25      millert  13052:     ac_cv_prog_YACC="$ac_prog"
                   13053:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   13054:     break 2
                   13055:   fi
                   13056: done
                   13057: done
1.27      millert  13058: IFS=$as_save_IFS
1.23      millert  13059:
1.25      millert  13060: fi
                   13061: fi
                   13062: YACC=$ac_cv_prog_YACC
                   13063: if test -n "$YACC"; then
1.27      millert  13064:   { echo "$as_me:$LINENO: result: $YACC" >&5
                   13065: echo "${ECHO_T}$YACC" >&6; }
1.25      millert  13066: else
1.27      millert  13067:   { echo "$as_me:$LINENO: result: no" >&5
                   13068: echo "${ECHO_T}no" >&6; }
1.25      millert  13069: fi
1.23      millert  13070:
1.27      millert  13071:
1.25      millert  13072:   test -n "$YACC" && break
                   13073: done
                   13074: test -n "$YACC" || YACC="yacc"
1.23      millert  13075:
1.40      millert  13076: # Extract the first word of "flex", so it can be a program name with args.
                   13077: set dummy flex; ac_word=$2
                   13078: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   13079: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   13080: if test "${ac_cv_path_FLEX+set}" = set; then
                   13081:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13082: else
                   13083:   case $FLEX in
                   13084:   [\\/]* | ?:[\\/]*)
                   13085:   ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
                   13086:   ;;
                   13087:   *)
                   13088:   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   13089: for as_dir in $PATH
                   13090: do
                   13091:   IFS=$as_save_IFS
                   13092:   test -z "$as_dir" && as_dir=.
                   13093:   for ac_exec_ext in '' $ac_executable_extensions; do
                   13094:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   13095:     ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
                   13096:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   13097:     break 2
                   13098:   fi
                   13099: done
                   13100: done
                   13101: IFS=$as_save_IFS
                   13102:
                   13103:   test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
                   13104:   ;;
                   13105: esac
                   13106: fi
                   13107: FLEX=$ac_cv_path_FLEX
                   13108: if test -n "$FLEX"; then
                   13109:   { echo "$as_me:$LINENO: result: $FLEX" >&5
                   13110: echo "${ECHO_T}$FLEX" >&6; }
                   13111: else
                   13112:   { echo "$as_me:$LINENO: result: no" >&5
                   13113: echo "${ECHO_T}no" >&6; }
                   13114: fi
                   13115:
                   13116:
1.27      millert  13117: { echo "$as_me:$LINENO: checking for mv" >&5
                   13118: echo $ECHO_N "checking for mv... $ECHO_C" >&6; }
1.25      millert  13119: if test -f "/usr/bin/mv"; then
1.27      millert  13120:     { echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
                   13121: echo "${ECHO_T}/usr/bin/mv" >&6; }
1.25      millert  13122:     cat >>confdefs.h <<\EOF
                   13123: #define _PATH_MV "/usr/bin/mv"
                   13124: EOF
1.23      millert  13125:
1.25      millert  13126: elif test -f "/bin/mv"; then
1.27      millert  13127:     { echo "$as_me:$LINENO: result: /bin/mv" >&5
                   13128: echo "${ECHO_T}/bin/mv" >&6; }
1.25      millert  13129:     cat >>confdefs.h <<\EOF
                   13130: #define _PATH_MV "/bin/mv"
                   13131: EOF
1.23      millert  13132:
1.25      millert  13133: elif test -f "/usr/ucb/mv"; then
1.27      millert  13134:     { echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
                   13135: echo "${ECHO_T}/usr/ucb/mv" >&6; }
1.25      millert  13136:     cat >>confdefs.h <<\EOF
                   13137: #define _PATH_MV "/usr/ucb/mv"
                   13138: EOF
1.23      millert  13139:
1.25      millert  13140: elif test -f "/usr/sbin/mv"; then
1.27      millert  13141:     { echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
                   13142: echo "${ECHO_T}/usr/sbin/mv" >&6; }
1.25      millert  13143:     cat >>confdefs.h <<\EOF
                   13144: #define _PATH_MV "/usr/sbin/mv"
                   13145: EOF
1.23      millert  13146:
1.25      millert  13147: else
1.27      millert  13148:     { echo "$as_me:$LINENO: result: not found" >&5
                   13149: echo "${ECHO_T}not found" >&6; }
1.25      millert  13150: fi
1.23      millert  13151:
1.27      millert  13152: { echo "$as_me:$LINENO: checking for bourne shell" >&5
                   13153: echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6; }
1.25      millert  13154: if test -f "/bin/sh"; then
1.27      millert  13155:     { echo "$as_me:$LINENO: result: /bin/sh" >&5
                   13156: echo "${ECHO_T}/bin/sh" >&6; }
1.25      millert  13157:     cat >>confdefs.h <<\EOF
                   13158: #define _PATH_BSHELL "/bin/sh"
                   13159: EOF
1.23      millert  13160:
1.25      millert  13161: elif test -f "/usr/bin/sh"; then
1.27      millert  13162:     { echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
                   13163: echo "${ECHO_T}/usr/bin/sh" >&6; }
1.25      millert  13164:     cat >>confdefs.h <<\EOF
                   13165: #define _PATH_BSHELL "/usr/bin/sh"
                   13166: EOF
1.23      millert  13167:
1.25      millert  13168: elif test -f "/sbin/sh"; then
1.27      millert  13169:     { echo "$as_me:$LINENO: result: /sbin/sh" >&5
                   13170: echo "${ECHO_T}/sbin/sh" >&6; }
1.25      millert  13171:     cat >>confdefs.h <<\EOF
                   13172: #define _PATH_BSHELL "/sbin/sh"
                   13173: EOF
1.23      millert  13174:
1.25      millert  13175: elif test -f "/usr/sbin/sh"; then
1.27      millert  13176:     { echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
                   13177: echo "${ECHO_T}/usr/sbin/sh" >&6; }
1.25      millert  13178:     cat >>confdefs.h <<\EOF
                   13179: #define _PATH_BSHELL "/usr/sbin/sh"
                   13180: EOF
1.23      millert  13181:
1.25      millert  13182: elif test -f "/bin/ksh"; then
1.27      millert  13183:     { echo "$as_me:$LINENO: result: /bin/ksh" >&5
                   13184: echo "${ECHO_T}/bin/ksh" >&6; }
1.25      millert  13185:     cat >>confdefs.h <<\EOF
                   13186: #define _PATH_BSHELL "/bin/ksh"
                   13187: EOF
1.23      millert  13188:
1.25      millert  13189: elif test -f "/usr/bin/ksh"; then
1.27      millert  13190:     { echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
                   13191: echo "${ECHO_T}/usr/bin/ksh" >&6; }
1.25      millert  13192:     cat >>confdefs.h <<\EOF
                   13193: #define _PATH_BSHELL "/usr/bin/ksh"
                   13194: EOF
1.23      millert  13195:
1.25      millert  13196: elif test -f "/bin/bash"; then
1.27      millert  13197:     { echo "$as_me:$LINENO: result: /bin/bash" >&5
                   13198: echo "${ECHO_T}/bin/bash" >&6; }
1.25      millert  13199:     cat >>confdefs.h <<\EOF
                   13200: #define _PATH_BSHELL "/bin/bash"
                   13201: EOF
1.23      millert  13202:
1.25      millert  13203: elif test -f "/usr/bin/bash"; then
1.27      millert  13204:     { echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
                   13205: echo "${ECHO_T}/usr/bin/bash" >&6; }
1.25      millert  13206:     cat >>confdefs.h <<\EOF
                   13207: #define _PATH_BSHELL "/usr/bin/bash"
                   13208: EOF
1.23      millert  13209:
1.25      millert  13210: else
1.27      millert  13211:     { echo "$as_me:$LINENO: result: not found" >&5
                   13212: echo "${ECHO_T}not found" >&6; }
1.25      millert  13213: fi
1.23      millert  13214:
1.25      millert  13215: if test -z "$with_sendmail"; then
1.27      millert  13216:     { echo "$as_me:$LINENO: checking for sendmail" >&5
                   13217: echo $ECHO_N "checking for sendmail... $ECHO_C" >&6; }
1.25      millert  13218: if test -f "/usr/sbin/sendmail"; then
1.27      millert  13219:     { echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
                   13220: echo "${ECHO_T}/usr/sbin/sendmail" >&6; }
1.25      millert  13221:     cat >>confdefs.h <<\EOF
                   13222: #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
                   13223: EOF
1.23      millert  13224:
1.25      millert  13225: elif test -f "/usr/lib/sendmail"; then
1.27      millert  13226:     { echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
                   13227: echo "${ECHO_T}/usr/lib/sendmail" >&6; }
1.25      millert  13228:     cat >>confdefs.h <<\EOF
                   13229: #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
                   13230: EOF
1.23      millert  13231:
1.25      millert  13232: elif test -f "/usr/etc/sendmail"; then
1.27      millert  13233:     { echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
                   13234: echo "${ECHO_T}/usr/etc/sendmail" >&6; }
1.25      millert  13235:     cat >>confdefs.h <<\EOF
                   13236: #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
                   13237: EOF
1.23      millert  13238:
1.25      millert  13239: elif test -f "/usr/ucblib/sendmail"; then
1.27      millert  13240:     { echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
                   13241: echo "${ECHO_T}/usr/ucblib/sendmail" >&6; }
1.25      millert  13242:     cat >>confdefs.h <<\EOF
                   13243: #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
                   13244: EOF
1.23      millert  13245:
1.25      millert  13246: elif test -f "/usr/local/lib/sendmail"; then
1.27      millert  13247:     { echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
                   13248: echo "${ECHO_T}/usr/local/lib/sendmail" >&6; }
1.25      millert  13249:     cat >>confdefs.h <<\EOF
                   13250: #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
                   13251: EOF
1.23      millert  13252:
1.25      millert  13253: elif test -f "/usr/local/bin/sendmail"; then
1.27      millert  13254:     { echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
                   13255: echo "${ECHO_T}/usr/local/bin/sendmail" >&6; }
1.25      millert  13256:     cat >>confdefs.h <<\EOF
                   13257: #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
                   13258: EOF
1.23      millert  13259:
1.25      millert  13260: else
1.27      millert  13261:     { echo "$as_me:$LINENO: result: not found" >&5
                   13262: echo "${ECHO_T}not found" >&6; }
1.25      millert  13263: fi
1.23      millert  13264:
1.25      millert  13265: fi
                   13266: if test -z "$with_editor"; then
1.27      millert  13267:     { echo "$as_me:$LINENO: checking for vi" >&5
                   13268: echo $ECHO_N "checking for vi... $ECHO_C" >&6; }
1.25      millert  13269: if test -f "/usr/bin/vi"; then
1.27      millert  13270:     { echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
                   13271: echo "${ECHO_T}/usr/bin/vi" >&6; }
1.25      millert  13272:     cat >>confdefs.h <<\EOF
                   13273: #define _PATH_VI "/usr/bin/vi"
                   13274: EOF
1.23      millert  13275:
1.25      millert  13276: elif test -f "/usr/ucb/vi"; then
1.27      millert  13277:     { echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
                   13278: echo "${ECHO_T}/usr/ucb/vi" >&6; }
1.25      millert  13279:     cat >>confdefs.h <<\EOF
                   13280: #define _PATH_VI "/usr/ucb/vi"
                   13281: EOF
1.23      millert  13282:
1.25      millert  13283: elif test -f "/usr/bsd/vi"; then
1.27      millert  13284:     { echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
                   13285: echo "${ECHO_T}/usr/bsd/vi" >&6; }
1.25      millert  13286:     cat >>confdefs.h <<\EOF
                   13287: #define _PATH_VI "/usr/bsd/vi"
                   13288: EOF
1.23      millert  13289:
1.25      millert  13290: elif test -f "/bin/vi"; then
1.27      millert  13291:     { echo "$as_me:$LINENO: result: /bin/vi" >&5
                   13292: echo "${ECHO_T}/bin/vi" >&6; }
1.25      millert  13293:     cat >>confdefs.h <<\EOF
                   13294: #define _PATH_VI "/bin/vi"
                   13295: EOF
1.23      millert  13296:
1.25      millert  13297: elif test -f "/usr/local/bin/vi"; then
1.27      millert  13298:     { echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
                   13299: echo "${ECHO_T}/usr/local/bin/vi" >&6; }
1.25      millert  13300:     cat >>confdefs.h <<\EOF
                   13301: #define _PATH_VI "/usr/local/bin/vi"
                   13302: EOF
1.23      millert  13303:
                   13304: else
1.27      millert  13305:     { echo "$as_me:$LINENO: result: not found" >&5
                   13306: echo "${ECHO_T}not found" >&6; }
1.23      millert  13307: fi
                   13308:
1.25      millert  13309: fi
1.27      millert  13310: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
                   13311: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
1.25      millert  13312: if test "${ac_cv_header_stdc+set}" = set; then
                   13313:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13314: else
                   13315:   cat >conftest.$ac_ext <<_ACEOF
                   13316: /* confdefs.h.  */
                   13317: _ACEOF
                   13318: cat confdefs.h >>conftest.$ac_ext
                   13319: cat >>conftest.$ac_ext <<_ACEOF
                   13320: /* end confdefs.h.  */
                   13321: #include <stdlib.h>
                   13322: #include <stdarg.h>
                   13323: #include <string.h>
                   13324: #include <float.h>
1.23      millert  13325:
1.25      millert  13326: int
                   13327: main ()
                   13328: {
1.23      millert  13329:
1.25      millert  13330:   ;
                   13331:   return 0;
                   13332: }
                   13333: _ACEOF
                   13334: rm -f conftest.$ac_objext
1.27      millert  13335: if { (ac_try="$ac_compile"
                   13336: case "(($ac_try" in
                   13337:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13338:   *) ac_try_echo=$ac_try;;
                   13339: esac
                   13340: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13341:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  13342:   ac_status=$?
                   13343:   grep -v '^ *+' conftest.er1 >conftest.err
                   13344:   rm -f conftest.er1
                   13345:   cat conftest.err >&5
                   13346:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13347:   (exit $ac_status); } && {
                   13348:         test -z "$ac_c_werror_flag" ||
                   13349:         test ! -s conftest.err
                   13350:        } && test -s conftest.$ac_objext; then
1.25      millert  13351:   ac_cv_header_stdc=yes
                   13352: else
                   13353:   echo "$as_me: failed program was:" >&5
                   13354: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  13355:
1.27      millert  13356:        ac_cv_header_stdc=no
1.25      millert  13357: fi
1.27      millert  13358:
                   13359: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.23      millert  13360:
1.25      millert  13361: if test $ac_cv_header_stdc = yes; then
                   13362:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   13363:   cat >conftest.$ac_ext <<_ACEOF
                   13364: /* confdefs.h.  */
                   13365: _ACEOF
                   13366: cat confdefs.h >>conftest.$ac_ext
                   13367: cat >>conftest.$ac_ext <<_ACEOF
                   13368: /* end confdefs.h.  */
                   13369: #include <string.h>
1.23      millert  13370:
1.25      millert  13371: _ACEOF
                   13372: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   13373:   $EGREP "memchr" >/dev/null 2>&1; then
                   13374:   :
                   13375: else
                   13376:   ac_cv_header_stdc=no
                   13377: fi
                   13378: rm -f conftest*
1.23      millert  13379:
                   13380: fi
                   13381:
1.25      millert  13382: if test $ac_cv_header_stdc = yes; then
                   13383:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   13384:   cat >conftest.$ac_ext <<_ACEOF
                   13385: /* confdefs.h.  */
                   13386: _ACEOF
                   13387: cat confdefs.h >>conftest.$ac_ext
                   13388: cat >>conftest.$ac_ext <<_ACEOF
                   13389: /* end confdefs.h.  */
                   13390: #include <stdlib.h>
1.23      millert  13391:
1.25      millert  13392: _ACEOF
                   13393: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   13394:   $EGREP "free" >/dev/null 2>&1; then
                   13395:   :
1.23      millert  13396: else
1.25      millert  13397:   ac_cv_header_stdc=no
1.23      millert  13398: fi
1.25      millert  13399: rm -f conftest*
1.23      millert  13400:
                   13401: fi
                   13402:
1.25      millert  13403: if test $ac_cv_header_stdc = yes; then
                   13404:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   13405:   if test "$cross_compiling" = yes; then
                   13406:   :
1.1       millert  13407: else
1.25      millert  13408:   cat >conftest.$ac_ext <<_ACEOF
                   13409: /* confdefs.h.  */
                   13410: _ACEOF
                   13411: cat confdefs.h >>conftest.$ac_ext
                   13412: cat >>conftest.$ac_ext <<_ACEOF
                   13413: /* end confdefs.h.  */
                   13414: #include <ctype.h>
1.27      millert  13415: #include <stdlib.h>
1.25      millert  13416: #if ((' ' & 0x0FF) == 0x020)
                   13417: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   13418: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   13419: #else
                   13420: # define ISLOWER(c) \
                   13421:                   (('a' <= (c) && (c) <= 'i') \
                   13422:                     || ('j' <= (c) && (c) <= 'r') \
                   13423:                     || ('s' <= (c) && (c) <= 'z'))
                   13424: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
                   13425: #endif
                   13426:
                   13427: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   13428: int
                   13429: main ()
                   13430: {
                   13431:   int i;
                   13432:   for (i = 0; i < 256; i++)
                   13433:     if (XOR (islower (i), ISLOWER (i))
                   13434:        || toupper (i) != TOUPPER (i))
1.27      millert  13435:       return 2;
                   13436:   return 0;
1.25      millert  13437: }
                   13438: _ACEOF
                   13439: rm -f conftest$ac_exeext
1.27      millert  13440: if { (ac_try="$ac_link"
                   13441: case "(($ac_try" in
                   13442:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13443:   *) ac_try_echo=$ac_try;;
                   13444: esac
                   13445: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13446:   (eval "$ac_link") 2>&5
1.25      millert  13447:   ac_status=$?
                   13448:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   13449:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.27      millert  13450:   { (case "(($ac_try" in
                   13451:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13452:   *) ac_try_echo=$ac_try;;
                   13453: esac
                   13454: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13455:   (eval "$ac_try") 2>&5
1.25      millert  13456:   ac_status=$?
                   13457:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   13458:   (exit $ac_status); }; }; then
                   13459:   :
1.1       millert  13460: else
1.25      millert  13461:   echo "$as_me: program exited with status $ac_status" >&5
                   13462: echo "$as_me: failed program was:" >&5
                   13463: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  13464:
1.25      millert  13465: ( exit $ac_status )
                   13466: ac_cv_header_stdc=no
                   13467: fi
1.27      millert  13468: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1       millert  13469: fi
1.27      millert  13470:
                   13471:
1.1       millert  13472: fi
                   13473: fi
1.27      millert  13474: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
                   13475: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1.25      millert  13476: if test $ac_cv_header_stdc = yes; then
1.1       millert  13477:
1.25      millert  13478: cat >>confdefs.h <<\_ACEOF
                   13479: #define STDC_HEADERS 1
                   13480: _ACEOF
1.9       millert  13481:
1.1       millert  13482: fi
                   13483:
1.25      millert  13484:
                   13485:
                   13486:
                   13487:
                   13488:
                   13489: ac_header_dirent=no
                   13490: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
                   13491:   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
1.27      millert  13492: { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
                   13493: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
                   13494: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  13495:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13496: else
1.25      millert  13497:   cat >conftest.$ac_ext <<_ACEOF
                   13498: /* confdefs.h.  */
                   13499: _ACEOF
                   13500: cat confdefs.h >>conftest.$ac_ext
                   13501: cat >>conftest.$ac_ext <<_ACEOF
                   13502: /* end confdefs.h.  */
                   13503: #include <sys/types.h>
                   13504: #include <$ac_hdr>
                   13505:
                   13506: int
                   13507: main ()
                   13508: {
                   13509: if ((DIR *) 0)
                   13510: return 0;
                   13511:   ;
                   13512:   return 0;
                   13513: }
                   13514: _ACEOF
                   13515: rm -f conftest.$ac_objext
1.27      millert  13516: if { (ac_try="$ac_compile"
                   13517: case "(($ac_try" in
                   13518:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13519:   *) ac_try_echo=$ac_try;;
                   13520: esac
                   13521: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13522:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  13523:   ac_status=$?
                   13524:   grep -v '^ *+' conftest.er1 >conftest.err
                   13525:   rm -f conftest.er1
                   13526:   cat conftest.err >&5
                   13527:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13528:   (exit $ac_status); } && {
                   13529:         test -z "$ac_c_werror_flag" ||
                   13530:         test ! -s conftest.err
                   13531:        } && test -s conftest.$ac_objext; then
1.25      millert  13532:   eval "$as_ac_Header=yes"
1.1       millert  13533: else
1.25      millert  13534:   echo "$as_me: failed program was:" >&5
                   13535: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  13536:
1.27      millert  13537:        eval "$as_ac_Header=no"
1.1       millert  13538: fi
1.27      millert  13539:
                   13540: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.23      millert  13541: fi
1.27      millert  13542: ac_res=`eval echo '${'$as_ac_Header'}'`
                   13543:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   13544: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  13545: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   13546:   cat >>confdefs.h <<_ACEOF
                   13547: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
                   13548: _ACEOF
1.9       millert  13549:
1.25      millert  13550: ac_header_dirent=$ac_hdr; break
1.9       millert  13551: fi
1.16      millert  13552:
1.25      millert  13553: done
                   13554: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   13555: if test $ac_header_dirent = dirent.h; then
1.27      millert  13556:   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
                   13557: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
1.25      millert  13558: if test "${ac_cv_search_opendir+set}" = set; then
1.9       millert  13559:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13560: else
1.25      millert  13561:   ac_func_search_save_LIBS=$LIBS
                   13562: cat >conftest.$ac_ext <<_ACEOF
                   13563: /* confdefs.h.  */
                   13564: _ACEOF
                   13565: cat confdefs.h >>conftest.$ac_ext
                   13566: cat >>conftest.$ac_ext <<_ACEOF
                   13567: /* end confdefs.h.  */
1.1       millert  13568:
1.27      millert  13569: /* Override any GCC internal prototype to avoid an error.
                   13570:    Use char because int might match the return type of a GCC
                   13571:    builtin and then its argument prototype would still apply.  */
1.25      millert  13572: #ifdef __cplusplus
                   13573: extern "C"
                   13574: #endif
                   13575: char opendir ();
                   13576: int
                   13577: main ()
                   13578: {
1.27      millert  13579: return opendir ();
1.25      millert  13580:   ;
                   13581:   return 0;
                   13582: }
                   13583: _ACEOF
1.27      millert  13584: for ac_lib in '' dir; do
                   13585:   if test -z "$ac_lib"; then
                   13586:     ac_res="none required"
                   13587:   else
                   13588:     ac_res=-l$ac_lib
                   13589:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   13590:   fi
                   13591:   rm -f conftest.$ac_objext conftest$ac_exeext
                   13592: if { (ac_try="$ac_link"
                   13593: case "(($ac_try" in
                   13594:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13595:   *) ac_try_echo=$ac_try;;
                   13596: esac
                   13597: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13598:   (eval "$ac_link") 2>conftest.er1
1.25      millert  13599:   ac_status=$?
                   13600:   grep -v '^ *+' conftest.er1 >conftest.err
                   13601:   rm -f conftest.er1
                   13602:   cat conftest.err >&5
                   13603:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13604:   (exit $ac_status); } && {
                   13605:         test -z "$ac_c_werror_flag" ||
                   13606:         test ! -s conftest.err
                   13607:        } && test -s conftest$ac_exeext &&
                   13608:        $as_test_x conftest$ac_exeext; then
                   13609:   ac_cv_search_opendir=$ac_res
1.1       millert  13610: else
1.25      millert  13611:   echo "$as_me: failed program was:" >&5
                   13612: sed 's/^/| /' conftest.$ac_ext >&5
1.1       millert  13613:
1.27      millert  13614:
1.1       millert  13615: fi
                   13616:
1.27      millert  13617: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   13618:       conftest$ac_exeext
                   13619:   if test "${ac_cv_search_opendir+set}" = set; then
                   13620:   break
                   13621: fi
                   13622: done
                   13623: if test "${ac_cv_search_opendir+set}" = set; then
                   13624:   :
1.1       millert  13625: else
1.27      millert  13626:   ac_cv_search_opendir=no
1.25      millert  13627: fi
1.27      millert  13628: rm conftest.$ac_ext
1.25      millert  13629: LIBS=$ac_func_search_save_LIBS
1.1       millert  13630: fi
1.27      millert  13631: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
                   13632: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
                   13633: ac_res=$ac_cv_search_opendir
                   13634: if test "$ac_res" != no; then
                   13635:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1       millert  13636:
1.25      millert  13637: fi
1.1       millert  13638:
1.25      millert  13639: else
1.27      millert  13640:   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
                   13641: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
1.25      millert  13642: if test "${ac_cv_search_opendir+set}" = set; then
1.9       millert  13643:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13644: else
1.25      millert  13645:   ac_func_search_save_LIBS=$LIBS
                   13646: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13647: /* confdefs.h.  */
                   13648: _ACEOF
                   13649: cat confdefs.h >>conftest.$ac_ext
                   13650: cat >>conftest.$ac_ext <<_ACEOF
                   13651: /* end confdefs.h.  */
1.25      millert  13652:
1.27      millert  13653: /* Override any GCC internal prototype to avoid an error.
                   13654:    Use char because int might match the return type of a GCC
                   13655:    builtin and then its argument prototype would still apply.  */
1.9       millert  13656: #ifdef __cplusplus
                   13657: extern "C"
                   13658: #endif
1.25      millert  13659: char opendir ();
1.16      millert  13660: int
                   13661: main ()
                   13662: {
1.27      millert  13663: return opendir ();
1.9       millert  13664:   ;
                   13665:   return 0;
                   13666: }
                   13667: _ACEOF
1.27      millert  13668: for ac_lib in '' x; do
                   13669:   if test -z "$ac_lib"; then
                   13670:     ac_res="none required"
                   13671:   else
                   13672:     ac_res=-l$ac_lib
                   13673:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   13674:   fi
                   13675:   rm -f conftest.$ac_objext conftest$ac_exeext
                   13676: if { (ac_try="$ac_link"
                   13677: case "(($ac_try" in
                   13678:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13679:   *) ac_try_echo=$ac_try;;
                   13680: esac
                   13681: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13682:   (eval "$ac_link") 2>conftest.er1
1.9       millert  13683:   ac_status=$?
1.25      millert  13684:   grep -v '^ *+' conftest.er1 >conftest.err
                   13685:   rm -f conftest.er1
                   13686:   cat conftest.err >&5
1.16      millert  13687:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13688:   (exit $ac_status); } && {
                   13689:         test -z "$ac_c_werror_flag" ||
                   13690:         test ! -s conftest.err
                   13691:        } && test -s conftest$ac_exeext &&
                   13692:        $as_test_x conftest$ac_exeext; then
                   13693:   ac_cv_search_opendir=$ac_res
1.9       millert  13694: else
                   13695:   echo "$as_me: failed program was:" >&5
1.16      millert  13696: sed 's/^/| /' conftest.$ac_ext >&5
                   13697:
1.27      millert  13698:
1.1       millert  13699: fi
1.17      millert  13700:
1.27      millert  13701: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   13702:       conftest$ac_exeext
                   13703:   if test "${ac_cv_search_opendir+set}" = set; then
                   13704:   break
                   13705: fi
                   13706: done
                   13707: if test "${ac_cv_search_opendir+set}" = set; then
                   13708:   :
1.17      millert  13709: else
1.27      millert  13710:   ac_cv_search_opendir=no
1.25      millert  13711: fi
1.27      millert  13712: rm conftest.$ac_ext
1.25      millert  13713: LIBS=$ac_func_search_save_LIBS
                   13714: fi
1.27      millert  13715: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
                   13716: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
                   13717: ac_res=$ac_cv_search_opendir
                   13718: if test "$ac_res" != no; then
                   13719:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.25      millert  13720:
                   13721: fi
                   13722:
                   13723: fi
                   13724:
1.27      millert  13725: { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
                   13726: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
1.25      millert  13727: if test "${ac_cv_header_time+set}" = set; then
1.9       millert  13728:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  13729: else
1.25      millert  13730:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13731: /* confdefs.h.  */
                   13732: _ACEOF
                   13733: cat confdefs.h >>conftest.$ac_ext
                   13734: cat >>conftest.$ac_ext <<_ACEOF
                   13735: /* end confdefs.h.  */
1.25      millert  13736: #include <sys/types.h>
                   13737: #include <sys/time.h>
                   13738: #include <time.h>
1.9       millert  13739:
                   13740: int
                   13741: main ()
                   13742: {
1.25      millert  13743: if ((struct tm *) 0)
                   13744: return 0;
1.9       millert  13745:   ;
                   13746:   return 0;
                   13747: }
                   13748: _ACEOF
1.25      millert  13749: rm -f conftest.$ac_objext
1.27      millert  13750: if { (ac_try="$ac_compile"
                   13751: case "(($ac_try" in
                   13752:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13753:   *) ac_try_echo=$ac_try;;
                   13754: esac
                   13755: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13756:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  13757:   ac_status=$?
1.25      millert  13758:   grep -v '^ *+' conftest.er1 >conftest.err
                   13759:   rm -f conftest.er1
                   13760:   cat conftest.err >&5
1.16      millert  13761:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13762:   (exit $ac_status); } && {
                   13763:         test -z "$ac_c_werror_flag" ||
                   13764:         test ! -s conftest.err
                   13765:        } && test -s conftest.$ac_objext; then
1.25      millert  13766:   ac_cv_header_time=yes
1.9       millert  13767: else
                   13768:   echo "$as_me: failed program was:" >&5
1.16      millert  13769: sed 's/^/| /' conftest.$ac_ext >&5
                   13770:
1.27      millert  13771:        ac_cv_header_time=no
1.9       millert  13772: fi
1.27      millert  13773:
                   13774: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  13775: fi
1.27      millert  13776: { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
                   13777: echo "${ECHO_T}$ac_cv_header_time" >&6; }
1.25      millert  13778: if test $ac_cv_header_time = yes; then
                   13779:
                   13780: cat >>confdefs.h <<\_ACEOF
                   13781: #define TIME_WITH_SYS_TIME 1
1.16      millert  13782: _ACEOF
1.25      millert  13783:
                   13784: fi
                   13785:
                   13786:
                   13787:
                   13788:
                   13789:
                   13790:
                   13791:
                   13792:
                   13793: for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
                   13794: do
                   13795: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.27      millert  13796: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   13797:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   13798: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   13799: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  13800:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  13801: fi
1.27      millert  13802: ac_res=`eval echo '${'$as_ac_Header'}'`
                   13803:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   13804: echo "${ECHO_T}$ac_res" >&6; }
1.1       millert  13805: else
1.25      millert  13806:   # Is the header compilable?
1.27      millert  13807: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   13808: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.9       millert  13809: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  13810: /* confdefs.h.  */
                   13811: _ACEOF
                   13812: cat confdefs.h >>conftest.$ac_ext
                   13813: cat >>conftest.$ac_ext <<_ACEOF
                   13814: /* end confdefs.h.  */
1.25      millert  13815: $ac_includes_default
                   13816: #include <$ac_header>
1.9       millert  13817: _ACEOF
1.25      millert  13818: rm -f conftest.$ac_objext
1.27      millert  13819: if { (ac_try="$ac_compile"
                   13820: case "(($ac_try" in
                   13821:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13822:   *) ac_try_echo=$ac_try;;
                   13823: esac
                   13824: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13825:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  13826:   ac_status=$?
1.25      millert  13827:   grep -v '^ *+' conftest.er1 >conftest.err
                   13828:   rm -f conftest.er1
                   13829:   cat conftest.err >&5
1.16      millert  13830:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13831:   (exit $ac_status); } && {
                   13832:         test -z "$ac_c_werror_flag" ||
                   13833:         test ! -s conftest.err
                   13834:        } && test -s conftest.$ac_objext; then
1.25      millert  13835:   ac_header_compiler=yes
1.9       millert  13836: else
                   13837:   echo "$as_me: failed program was:" >&5
1.16      millert  13838: sed 's/^/| /' conftest.$ac_ext >&5
                   13839:
1.27      millert  13840:        ac_header_compiler=no
1.9       millert  13841: fi
1.27      millert  13842:
                   13843: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   13844: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   13845: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25      millert  13846:
                   13847: # Is the header present?
1.27      millert  13848: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   13849: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.25      millert  13850: cat >conftest.$ac_ext <<_ACEOF
                   13851: /* confdefs.h.  */
                   13852: _ACEOF
                   13853: cat confdefs.h >>conftest.$ac_ext
                   13854: cat >>conftest.$ac_ext <<_ACEOF
                   13855: /* end confdefs.h.  */
                   13856: #include <$ac_header>
1.16      millert  13857: _ACEOF
1.27      millert  13858: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   13859: case "(($ac_try" in
                   13860:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13861:   *) ac_try_echo=$ac_try;;
                   13862: esac
                   13863: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13864:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.25      millert  13865:   ac_status=$?
                   13866:   grep -v '^ *+' conftest.er1 >conftest.err
                   13867:   rm -f conftest.er1
                   13868:   cat conftest.err >&5
                   13869:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  13870:   (exit $ac_status); } >/dev/null && {
                   13871:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   13872:         test ! -s conftest.err
                   13873:        }; then
1.25      millert  13874:   ac_header_preproc=yes
                   13875: else
                   13876:   echo "$as_me: failed program was:" >&5
                   13877: sed 's/^/| /' conftest.$ac_ext >&5
1.1       millert  13878:
1.25      millert  13879:   ac_header_preproc=no
1.1       millert  13880: fi
1.27      millert  13881:
1.25      millert  13882: rm -f conftest.err conftest.$ac_ext
1.27      millert  13883: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   13884: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1       millert  13885:
1.25      millert  13886: # So?  What about this header?
                   13887: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   13888:   yes:no: )
                   13889:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   13890: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   13891:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   13892: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   13893:     ac_header_preproc=yes
                   13894:     ;;
                   13895:   no:yes:* )
                   13896:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   13897: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   13898:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   13899: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   13900:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   13901: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   13902:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   13903: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   13904:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   13905: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   13906:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   13907: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.40      millert  13908:     ( cat <<\_ASBOX
                   13909: ## --------------------------------------- ##
                   13910: ## Report this to http://www.sudo.ws/bugs/ ##
                   13911: ## --------------------------------------- ##
                   13912: _ASBOX
                   13913:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.25      millert  13914:     ;;
                   13915: esac
1.27      millert  13916: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   13917: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   13918: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  13919:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13920: else
                   13921:   eval "$as_ac_Header=\$ac_header_preproc"
                   13922: fi
1.27      millert  13923: ac_res=`eval echo '${'$as_ac_Header'}'`
                   13924:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   13925: echo "${ECHO_T}$ac_res" >&6; }
1.23      millert  13926:
1.25      millert  13927: fi
                   13928: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   13929:   cat >>confdefs.h <<_ACEOF
                   13930: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.23      millert  13931: _ACEOF
                   13932:
1.25      millert  13933: fi
1.23      millert  13934:
1.25      millert  13935: done
1.23      millert  13936:
1.37      millert  13937: if test "$OS" != "ultrix"; then
                   13938:     { echo "$as_me:$LINENO: checking POSIX termios" >&5
                   13939: echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
                   13940: if test "${ac_cv_sys_posix_termios+set}" = set; then
                   13941:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   13942: else
                   13943:   cat >conftest.$ac_ext <<_ACEOF
                   13944: /* confdefs.h.  */
                   13945: _ACEOF
                   13946: cat confdefs.h >>conftest.$ac_ext
                   13947: cat >>conftest.$ac_ext <<_ACEOF
                   13948: /* end confdefs.h.  */
                   13949: #include <sys/types.h>
                   13950: #include <unistd.h>
                   13951: #include <termios.h>
                   13952:
                   13953: int
                   13954: main ()
                   13955: {
                   13956: /* SunOS 4.0.3 has termios.h but not the library calls.  */
                   13957:    tcgetattr(0, 0);
                   13958:   ;
                   13959:   return 0;
                   13960: }
                   13961: _ACEOF
                   13962: rm -f conftest.$ac_objext conftest$ac_exeext
                   13963: if { (ac_try="$ac_link"
                   13964: case "(($ac_try" in
                   13965:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   13966:   *) ac_try_echo=$ac_try;;
                   13967: esac
                   13968: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   13969:   (eval "$ac_link") 2>conftest.er1
                   13970:   ac_status=$?
                   13971:   grep -v '^ *+' conftest.er1 >conftest.err
                   13972:   rm -f conftest.er1
                   13973:   cat conftest.err >&5
                   13974:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   13975:   (exit $ac_status); } && {
                   13976:         test -z "$ac_c_werror_flag" ||
                   13977:         test ! -s conftest.err
                   13978:        } && test -s conftest$ac_exeext &&
                   13979:        $as_test_x conftest$ac_exeext; then
                   13980:   ac_cv_sys_posix_termios=yes
                   13981: else
                   13982:   echo "$as_me: failed program was:" >&5
                   13983: sed 's/^/| /' conftest.$ac_ext >&5
                   13984:
                   13985:        ac_cv_sys_posix_termios=no
                   13986: fi
                   13987:
                   13988: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   13989:       conftest$ac_exeext conftest.$ac_ext
                   13990: fi
                   13991: { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
                   13992: echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
                   13993:
                   13994:     if test "$ac_cv_sys_posix_termios" = "yes"; then
                   13995:        cat >>confdefs.h <<\_ACEOF
                   13996: #define HAVE_TERMIOS_H 1
                   13997: _ACEOF
                   13998:
                   13999:     else
1.23      millert  14000:
1.37      millert  14001: for ac_header in termio.h
1.23      millert  14002: do
1.25      millert  14003: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.27      millert  14004: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   14005:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   14006: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   14007: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  14008:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  14009: fi
1.27      millert  14010: ac_res=`eval echo '${'$as_ac_Header'}'`
                   14011:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   14012: echo "${ECHO_T}$ac_res" >&6; }
1.23      millert  14013: else
1.25      millert  14014:   # Is the header compilable?
1.27      millert  14015: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   14016: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.25      millert  14017: cat >conftest.$ac_ext <<_ACEOF
1.23      millert  14018: /* confdefs.h.  */
                   14019: _ACEOF
                   14020: cat confdefs.h >>conftest.$ac_ext
                   14021: cat >>conftest.$ac_ext <<_ACEOF
                   14022: /* end confdefs.h.  */
1.25      millert  14023: $ac_includes_default
                   14024: #include <$ac_header>
1.23      millert  14025: _ACEOF
1.25      millert  14026: rm -f conftest.$ac_objext
1.27      millert  14027: if { (ac_try="$ac_compile"
                   14028: case "(($ac_try" in
                   14029:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14030:   *) ac_try_echo=$ac_try;;
                   14031: esac
                   14032: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14033:   (eval "$ac_compile") 2>conftest.er1
1.23      millert  14034:   ac_status=$?
1.25      millert  14035:   grep -v '^ *+' conftest.er1 >conftest.err
                   14036:   rm -f conftest.er1
                   14037:   cat conftest.err >&5
1.23      millert  14038:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14039:   (exit $ac_status); } && {
                   14040:         test -z "$ac_c_werror_flag" ||
                   14041:         test ! -s conftest.err
                   14042:        } && test -s conftest.$ac_objext; then
1.25      millert  14043:   ac_header_compiler=yes
1.23      millert  14044: else
                   14045:   echo "$as_me: failed program was:" >&5
                   14046: sed 's/^/| /' conftest.$ac_ext >&5
                   14047:
1.27      millert  14048:        ac_header_compiler=no
1.23      millert  14049: fi
1.27      millert  14050:
                   14051: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14052: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   14053: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.23      millert  14054:
1.25      millert  14055: # Is the header present?
1.27      millert  14056: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   14057: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.9       millert  14058: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14059: /* confdefs.h.  */
                   14060: _ACEOF
                   14061: cat confdefs.h >>conftest.$ac_ext
                   14062: cat >>conftest.$ac_ext <<_ACEOF
                   14063: /* end confdefs.h.  */
1.25      millert  14064: #include <$ac_header>
1.9       millert  14065: _ACEOF
1.27      millert  14066: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   14067: case "(($ac_try" in
                   14068:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14069:   *) ac_try_echo=$ac_try;;
                   14070: esac
                   14071: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14072:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  14073:   ac_status=$?
1.25      millert  14074:   grep -v '^ *+' conftest.er1 >conftest.err
                   14075:   rm -f conftest.er1
                   14076:   cat conftest.err >&5
1.16      millert  14077:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14078:   (exit $ac_status); } >/dev/null && {
                   14079:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   14080:         test ! -s conftest.err
                   14081:        }; then
1.25      millert  14082:   ac_header_preproc=yes
1.9       millert  14083: else
                   14084:   echo "$as_me: failed program was:" >&5
1.16      millert  14085: sed 's/^/| /' conftest.$ac_ext >&5
                   14086:
1.25      millert  14087:   ac_header_preproc=no
                   14088: fi
1.27      millert  14089:
1.25      millert  14090: rm -f conftest.err conftest.$ac_ext
1.27      millert  14091: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   14092: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25      millert  14093:
                   14094: # So?  What about this header?
                   14095: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   14096:   yes:no: )
                   14097:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   14098: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   14099:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   14100: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   14101:     ac_header_preproc=yes
                   14102:     ;;
                   14103:   no:yes:* )
                   14104:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   14105: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   14106:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   14107: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   14108:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   14109: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   14110:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   14111: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   14112:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   14113: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   14114:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   14115: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.40      millert  14116:     ( cat <<\_ASBOX
                   14117: ## --------------------------------------- ##
                   14118: ## Report this to http://www.sudo.ws/bugs/ ##
                   14119: ## --------------------------------------- ##
                   14120: _ASBOX
                   14121:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.25      millert  14122:     ;;
                   14123: esac
1.27      millert  14124: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   14125: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   14126: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  14127:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14128: else
                   14129:   eval "$as_ac_Header=\$ac_header_preproc"
                   14130: fi
1.27      millert  14131: ac_res=`eval echo '${'$as_ac_Header'}'`
                   14132:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   14133: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  14134:
1.9       millert  14135: fi
1.25      millert  14136: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   14137:   cat >>confdefs.h <<_ACEOF
                   14138: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   14139: _ACEOF
                   14140:
1.9       millert  14141: fi
1.25      millert  14142:
                   14143: done
                   14144:
1.37      millert  14145:     fi
                   14146: fi
                   14147: if test ${with_logincap-'no'} != "no"; then
                   14148:
                   14149: for ac_header in login_cap.h
                   14150: do
                   14151: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   14152: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   14153:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   14154: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   14155: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  14156:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.37      millert  14157: fi
                   14158: ac_res=`eval echo '${'$as_ac_Header'}'`
                   14159:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   14160: echo "${ECHO_T}$ac_res" >&6; }
1.1       millert  14161: else
1.37      millert  14162:   # Is the header compilable?
                   14163: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   14164: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
                   14165: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14166: /* confdefs.h.  */
                   14167: _ACEOF
                   14168: cat confdefs.h >>conftest.$ac_ext
                   14169: cat >>conftest.$ac_ext <<_ACEOF
                   14170: /* end confdefs.h.  */
1.37      millert  14171: $ac_includes_default
                   14172: #include <$ac_header>
1.9       millert  14173: _ACEOF
1.37      millert  14174: rm -f conftest.$ac_objext
1.27      millert  14175: if { (ac_try="$ac_compile"
                   14176: case "(($ac_try" in
                   14177:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14178:   *) ac_try_echo=$ac_try;;
                   14179: esac
                   14180: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14181:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  14182:   ac_status=$?
                   14183:   grep -v '^ *+' conftest.er1 >conftest.err
                   14184:   rm -f conftest.er1
                   14185:   cat conftest.err >&5
                   14186:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14187:   (exit $ac_status); } && {
                   14188:         test -z "$ac_c_werror_flag" ||
                   14189:         test ! -s conftest.err
                   14190:        } && test -s conftest.$ac_objext; then
1.25      millert  14191:   ac_header_compiler=yes
1.9       millert  14192: else
                   14193:   echo "$as_me: failed program was:" >&5
1.16      millert  14194: sed 's/^/| /' conftest.$ac_ext >&5
                   14195:
1.27      millert  14196:        ac_header_compiler=no
1.9       millert  14197: fi
1.27      millert  14198:
                   14199: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14200: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   14201: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.9       millert  14202:
1.25      millert  14203: # Is the header present?
1.27      millert  14204: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   14205: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.9       millert  14206: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14207: /* confdefs.h.  */
                   14208: _ACEOF
                   14209: cat confdefs.h >>conftest.$ac_ext
                   14210: cat >>conftest.$ac_ext <<_ACEOF
                   14211: /* end confdefs.h.  */
1.25      millert  14212: #include <$ac_header>
1.9       millert  14213: _ACEOF
1.27      millert  14214: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   14215: case "(($ac_try" in
                   14216:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14217:   *) ac_try_echo=$ac_try;;
                   14218: esac
                   14219: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14220:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  14221:   ac_status=$?
1.25      millert  14222:   grep -v '^ *+' conftest.er1 >conftest.err
                   14223:   rm -f conftest.er1
                   14224:   cat conftest.err >&5
1.16      millert  14225:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14226:   (exit $ac_status); } >/dev/null && {
                   14227:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   14228:         test ! -s conftest.err
                   14229:        }; then
1.25      millert  14230:   ac_header_preproc=yes
1.9       millert  14231: else
                   14232:   echo "$as_me: failed program was:" >&5
1.16      millert  14233: sed 's/^/| /' conftest.$ac_ext >&5
                   14234:
1.25      millert  14235:   ac_header_preproc=no
1.9       millert  14236: fi
1.27      millert  14237:
1.25      millert  14238: rm -f conftest.err conftest.$ac_ext
1.27      millert  14239: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   14240: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25      millert  14241:
                   14242: # So?  What about this header?
                   14243: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   14244:   yes:no: )
                   14245:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   14246: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   14247:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   14248: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   14249:     ac_header_preproc=yes
                   14250:     ;;
                   14251:   no:yes:* )
                   14252:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   14253: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   14254:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   14255: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   14256:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   14257: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   14258:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   14259: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   14260:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   14261: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   14262:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   14263: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.40      millert  14264:     ( cat <<\_ASBOX
                   14265: ## --------------------------------------- ##
                   14266: ## Report this to http://www.sudo.ws/bugs/ ##
                   14267: ## --------------------------------------- ##
                   14268: _ASBOX
                   14269:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.25      millert  14270:     ;;
                   14271: esac
1.27      millert  14272: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   14273: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   14274: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  14275:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14276: else
                   14277:   eval "$as_ac_Header=\$ac_header_preproc"
1.9       millert  14278: fi
1.27      millert  14279: ac_res=`eval echo '${'$as_ac_Header'}'`
                   14280:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   14281: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  14282:
1.1       millert  14283: fi
1.25      millert  14284: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   14285:   cat >>confdefs.h <<_ACEOF
                   14286: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   14287: _ACEOF
1.37      millert  14288:  LOGINCAP_USAGE='[-c class|-] '; LCMAN=""
1.31      millert  14289:        case "$OS" in
                   14290:            freebsd|netbsd)     SUDO_LIBS="${SUDO_LIBS} -lutil"
                   14291:            ;;
                   14292:        esac
                   14293:
1.25      millert  14294: fi
1.1       millert  14295:
1.25      millert  14296: done
1.1       millert  14297:
1.25      millert  14298: fi
                   14299: if test ${with_project-'no'} != "no"; then
                   14300:     if test "${ac_cv_header_project_h+set}" = set; then
1.27      millert  14301:   { echo "$as_me:$LINENO: checking for project.h" >&5
                   14302: echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
1.25      millert  14303: if test "${ac_cv_header_project_h+set}" = set; then
1.9       millert  14304:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  14305: fi
1.27      millert  14306: { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
                   14307: echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
1.1       millert  14308: else
1.25      millert  14309:   # Is the header compilable?
1.27      millert  14310: { echo "$as_me:$LINENO: checking project.h usability" >&5
                   14311: echo $ECHO_N "checking project.h usability... $ECHO_C" >&6; }
1.25      millert  14312: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14313: /* confdefs.h.  */
                   14314: _ACEOF
                   14315: cat confdefs.h >>conftest.$ac_ext
                   14316: cat >>conftest.$ac_ext <<_ACEOF
                   14317: /* end confdefs.h.  */
1.25      millert  14318: $ac_includes_default
                   14319: #include <project.h>
1.9       millert  14320: _ACEOF
1.25      millert  14321: rm -f conftest.$ac_objext
1.27      millert  14322: if { (ac_try="$ac_compile"
                   14323: case "(($ac_try" in
                   14324:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14325:   *) ac_try_echo=$ac_try;;
                   14326: esac
                   14327: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14328:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  14329:   ac_status=$?
1.25      millert  14330:   grep -v '^ *+' conftest.er1 >conftest.err
                   14331:   rm -f conftest.er1
                   14332:   cat conftest.err >&5
1.16      millert  14333:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14334:   (exit $ac_status); } && {
                   14335:         test -z "$ac_c_werror_flag" ||
                   14336:         test ! -s conftest.err
                   14337:        } && test -s conftest.$ac_objext; then
1.25      millert  14338:   ac_header_compiler=yes
1.9       millert  14339: else
                   14340:   echo "$as_me: failed program was:" >&5
1.16      millert  14341: sed 's/^/| /' conftest.$ac_ext >&5
                   14342:
1.27      millert  14343:        ac_header_compiler=no
1.9       millert  14344: fi
1.27      millert  14345:
                   14346: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14347: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   14348: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1       millert  14349:
1.25      millert  14350: # Is the header present?
1.27      millert  14351: { echo "$as_me:$LINENO: checking project.h presence" >&5
                   14352: echo $ECHO_N "checking project.h presence... $ECHO_C" >&6; }
1.25      millert  14353: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14354: /* confdefs.h.  */
                   14355: _ACEOF
                   14356: cat confdefs.h >>conftest.$ac_ext
                   14357: cat >>conftest.$ac_ext <<_ACEOF
                   14358: /* end confdefs.h.  */
1.25      millert  14359: #include <project.h>
1.9       millert  14360: _ACEOF
1.27      millert  14361: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   14362: case "(($ac_try" in
                   14363:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14364:   *) ac_try_echo=$ac_try;;
                   14365: esac
                   14366: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14367:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  14368:   ac_status=$?
1.25      millert  14369:   grep -v '^ *+' conftest.er1 >conftest.err
                   14370:   rm -f conftest.er1
                   14371:   cat conftest.err >&5
1.16      millert  14372:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14373:   (exit $ac_status); } >/dev/null && {
                   14374:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   14375:         test ! -s conftest.err
                   14376:        }; then
1.25      millert  14377:   ac_header_preproc=yes
1.9       millert  14378: else
                   14379:   echo "$as_me: failed program was:" >&5
1.16      millert  14380: sed 's/^/| /' conftest.$ac_ext >&5
                   14381:
1.25      millert  14382:   ac_header_preproc=no
                   14383: fi
1.27      millert  14384:
1.25      millert  14385: rm -f conftest.err conftest.$ac_ext
1.27      millert  14386: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   14387: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25      millert  14388:
                   14389: # So?  What about this header?
                   14390: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   14391:   yes:no: )
                   14392:     { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
                   14393: echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   14394:     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
                   14395: echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
                   14396:     ac_header_preproc=yes
                   14397:     ;;
                   14398:   no:yes:* )
                   14399:     { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
                   14400: echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
                   14401:     { echo "$as_me:$LINENO: WARNING: project.h:     check for missing prerequisite headers?" >&5
                   14402: echo "$as_me: WARNING: project.h:     check for missing prerequisite headers?" >&2;}
                   14403:     { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
                   14404: echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
                   14405:     { echo "$as_me:$LINENO: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&5
                   14406: echo "$as_me: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&2;}
                   14407:     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
                   14408: echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
                   14409:     { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
                   14410: echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
1.40      millert  14411:     ( cat <<\_ASBOX
                   14412: ## --------------------------------------- ##
                   14413: ## Report this to http://www.sudo.ws/bugs/ ##
                   14414: ## --------------------------------------- ##
                   14415: _ASBOX
                   14416:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.25      millert  14417:     ;;
                   14418: esac
1.27      millert  14419: { echo "$as_me:$LINENO: checking for project.h" >&5
                   14420: echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
1.25      millert  14421: if test "${ac_cv_header_project_h+set}" = set; then
                   14422:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14423: else
                   14424:   ac_cv_header_project_h=$ac_header_preproc
1.9       millert  14425: fi
1.27      millert  14426: { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
                   14427: echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
1.25      millert  14428:
1.9       millert  14429: fi
1.25      millert  14430: if test $ac_cv_header_project_h = yes; then
                   14431:   cat >>confdefs.h <<\_ACEOF
                   14432: #define HAVE_PROJECT_H 1
1.16      millert  14433: _ACEOF
1.1       millert  14434:
1.25      millert  14435:        SUDO_LIBS="${SUDO_LIBS} -lproject"
1.1       millert  14436: else
1.25      millert  14437:   -
1.1       millert  14438: fi
                   14439:
1.25      millert  14440:
                   14441: fi
1.27      millert  14442: { echo "$as_me:$LINENO: checking for mode_t" >&5
                   14443: echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
1.25      millert  14444: if test "${ac_cv_type_mode_t+set}" = set; then
1.9       millert  14445:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14446: else
1.25      millert  14447:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14448: /* confdefs.h.  */
                   14449: _ACEOF
                   14450: cat confdefs.h >>conftest.$ac_ext
                   14451: cat >>conftest.$ac_ext <<_ACEOF
                   14452: /* end confdefs.h.  */
1.25      millert  14453: $ac_includes_default
1.27      millert  14454: typedef mode_t ac__type_new_;
1.9       millert  14455: int
                   14456: main ()
                   14457: {
1.27      millert  14458: if ((ac__type_new_ *) 0)
1.25      millert  14459:   return 0;
1.27      millert  14460: if (sizeof (ac__type_new_))
1.25      millert  14461:   return 0;
1.9       millert  14462:   ;
                   14463:   return 0;
                   14464: }
                   14465: _ACEOF
1.25      millert  14466: rm -f conftest.$ac_objext
1.27      millert  14467: if { (ac_try="$ac_compile"
                   14468: case "(($ac_try" in
                   14469:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14470:   *) ac_try_echo=$ac_try;;
                   14471: esac
                   14472: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14473:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  14474:   ac_status=$?
1.25      millert  14475:   grep -v '^ *+' conftest.er1 >conftest.err
                   14476:   rm -f conftest.er1
                   14477:   cat conftest.err >&5
1.16      millert  14478:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14479:   (exit $ac_status); } && {
                   14480:         test -z "$ac_c_werror_flag" ||
                   14481:         test ! -s conftest.err
                   14482:        } && test -s conftest.$ac_objext; then
1.25      millert  14483:   ac_cv_type_mode_t=yes
1.9       millert  14484: else
                   14485:   echo "$as_me: failed program was:" >&5
1.16      millert  14486: sed 's/^/| /' conftest.$ac_ext >&5
                   14487:
1.27      millert  14488:        ac_cv_type_mode_t=no
1.9       millert  14489: fi
1.27      millert  14490:
                   14491: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  14492: fi
1.27      millert  14493: { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
                   14494: echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
1.25      millert  14495: if test $ac_cv_type_mode_t = yes; then
                   14496:   :
1.1       millert  14497: else
1.25      millert  14498:
                   14499: cat >>confdefs.h <<_ACEOF
                   14500: #define mode_t int
                   14501: _ACEOF
                   14502:
1.1       millert  14503: fi
                   14504:
1.27      millert  14505: { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
                   14506: echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
1.25      millert  14507: if test "${ac_cv_type_uid_t+set}" = set; then
1.9       millert  14508:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14509: else
1.9       millert  14510:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14511: /* confdefs.h.  */
                   14512: _ACEOF
                   14513: cat confdefs.h >>conftest.$ac_ext
                   14514: cat >>conftest.$ac_ext <<_ACEOF
                   14515: /* end confdefs.h.  */
1.25      millert  14516: #include <sys/types.h>
1.1       millert  14517:
1.9       millert  14518: _ACEOF
1.25      millert  14519: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   14520:   $EGREP "uid_t" >/dev/null 2>&1; then
                   14521:   ac_cv_type_uid_t=yes
1.9       millert  14522: else
1.25      millert  14523:   ac_cv_type_uid_t=no
                   14524: fi
                   14525: rm -f conftest*
1.16      millert  14526:
1.9       millert  14527: fi
1.27      millert  14528: { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
                   14529: echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
1.25      millert  14530: if test $ac_cv_type_uid_t = no; then
                   14531:
                   14532: cat >>confdefs.h <<\_ACEOF
                   14533: #define uid_t int
                   14534: _ACEOF
                   14535:
                   14536:
                   14537: cat >>confdefs.h <<\_ACEOF
                   14538: #define gid_t int
1.16      millert  14539: _ACEOF
1.1       millert  14540:
                   14541: fi
                   14542:
1.37      millert  14543: { echo "$as_me:$LINENO: checking for __signed char" >&5
                   14544: echo $ECHO_N "checking for __signed char... $ECHO_C" >&6; }
                   14545: if test "${ac_cv_type___signed_char+set}" = set; then
1.25      millert  14546:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14547: else
                   14548:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14549: /* confdefs.h.  */
                   14550: _ACEOF
                   14551: cat confdefs.h >>conftest.$ac_ext
                   14552: cat >>conftest.$ac_ext <<_ACEOF
                   14553: /* end confdefs.h.  */
1.37      millert  14554: $ac_includes_default
                   14555: typedef __signed char ac__type_new_;
1.9       millert  14556: int
                   14557: main ()
                   14558: {
1.27      millert  14559: if ((ac__type_new_ *) 0)
1.25      millert  14560:   return 0;
1.27      millert  14561: if (sizeof (ac__type_new_))
1.25      millert  14562:   return 0;
1.9       millert  14563:   ;
                   14564:   return 0;
                   14565: }
                   14566: _ACEOF
                   14567: rm -f conftest.$ac_objext
1.27      millert  14568: if { (ac_try="$ac_compile"
                   14569: case "(($ac_try" in
                   14570:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14571:   *) ac_try_echo=$ac_try;;
                   14572: esac
                   14573: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14574:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  14575:   ac_status=$?
1.25      millert  14576:   grep -v '^ *+' conftest.er1 >conftest.err
                   14577:   rm -f conftest.er1
                   14578:   cat conftest.err >&5
1.16      millert  14579:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14580:   (exit $ac_status); } && {
                   14581:         test -z "$ac_c_werror_flag" ||
                   14582:         test ! -s conftest.err
                   14583:        } && test -s conftest.$ac_objext; then
1.37      millert  14584:   ac_cv_type___signed_char=yes
1.9       millert  14585: else
                   14586:   echo "$as_me: failed program was:" >&5
1.16      millert  14587: sed 's/^/| /' conftest.$ac_ext >&5
                   14588:
1.37      millert  14589:        ac_cv_type___signed_char=no
1.25      millert  14590: fi
1.27      millert  14591:
                   14592: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  14593: fi
1.37      millert  14594: { echo "$as_me:$LINENO: result: $ac_cv_type___signed_char" >&5
                   14595: echo "${ECHO_T}$ac_cv_type___signed_char" >&6; }
                   14596: if test $ac_cv_type___signed_char = yes; then
                   14597:   :
1.25      millert  14598: else
1.37      millert  14599:   { echo "$as_me:$LINENO: checking for signed char" >&5
                   14600: echo $ECHO_N "checking for signed char... $ECHO_C" >&6; }
                   14601: if test "${ac_cv_type_signed_char+set}" = set; then
1.9       millert  14602:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14603: else
1.25      millert  14604:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14605: /* confdefs.h.  */
                   14606: _ACEOF
                   14607: cat confdefs.h >>conftest.$ac_ext
                   14608: cat >>conftest.$ac_ext <<_ACEOF
                   14609: /* end confdefs.h.  */
1.37      millert  14610: $ac_includes_default
                   14611: typedef signed char ac__type_new_;
1.9       millert  14612: int
1.25      millert  14613: main ()
                   14614: {
1.27      millert  14615: if ((ac__type_new_ *) 0)
1.25      millert  14616:   return 0;
1.27      millert  14617: if (sizeof (ac__type_new_))
1.25      millert  14618:   return 0;
1.9       millert  14619:   ;
                   14620:   return 0;
                   14621: }
                   14622: _ACEOF
1.25      millert  14623: rm -f conftest.$ac_objext
1.27      millert  14624: if { (ac_try="$ac_compile"
                   14625: case "(($ac_try" in
                   14626:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14627:   *) ac_try_echo=$ac_try;;
                   14628: esac
                   14629: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14630:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  14631:   ac_status=$?
1.25      millert  14632:   grep -v '^ *+' conftest.er1 >conftest.err
                   14633:   rm -f conftest.er1
                   14634:   cat conftest.err >&5
1.16      millert  14635:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14636:   (exit $ac_status); } && {
                   14637:         test -z "$ac_c_werror_flag" ||
                   14638:         test ! -s conftest.err
                   14639:        } && test -s conftest.$ac_objext; then
1.37      millert  14640:   ac_cv_type_signed_char=yes
1.9       millert  14641: else
                   14642:   echo "$as_me: failed program was:" >&5
1.16      millert  14643: sed 's/^/| /' conftest.$ac_ext >&5
                   14644:
1.37      millert  14645:        ac_cv_type_signed_char=no
1.9       millert  14646: fi
1.27      millert  14647:
                   14648: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  14649: fi
1.37      millert  14650: { echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
                   14651: echo "${ECHO_T}$ac_cv_type_signed_char" >&6; }
                   14652: if test $ac_cv_type_signed_char = yes; then
                   14653:   cat >>confdefs.h <<\_ACEOF
                   14654: #define __signed signed
                   14655: _ACEOF
1.25      millert  14656:
1.37      millert  14657: else
                   14658:   cat >>confdefs.h <<\_ACEOF
                   14659: #define __signed
1.25      millert  14660: _ACEOF
                   14661:
1.37      millert  14662: fi
                   14663:
                   14664: fi
                   14665:
                   14666: { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
                   14667: echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
                   14668: if test "${ac_cv_type_sig_atomic_t+set}" = set; then
                   14669:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14670: else
                   14671:   cat >conftest.$ac_ext <<_ACEOF
                   14672: /* confdefs.h.  */
                   14673: _ACEOF
                   14674: cat confdefs.h >>conftest.$ac_ext
                   14675: cat >>conftest.$ac_ext <<_ACEOF
                   14676: /* end confdefs.h.  */
                   14677: #include <sys/types.h>
                   14678: #include <signal.h>
                   14679:
                   14680: typedef sig_atomic_t ac__type_new_;
                   14681: int
                   14682: main ()
                   14683: {
                   14684: if ((ac__type_new_ *) 0)
                   14685:   return 0;
                   14686: if (sizeof (ac__type_new_))
                   14687:   return 0;
                   14688:   ;
                   14689:   return 0;
                   14690: }
                   14691: _ACEOF
                   14692: rm -f conftest.$ac_objext
                   14693: if { (ac_try="$ac_compile"
                   14694: case "(($ac_try" in
                   14695:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14696:   *) ac_try_echo=$ac_try;;
                   14697: esac
                   14698: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14699:   (eval "$ac_compile") 2>conftest.er1
                   14700:   ac_status=$?
                   14701:   grep -v '^ *+' conftest.er1 >conftest.err
                   14702:   rm -f conftest.er1
                   14703:   cat conftest.err >&5
                   14704:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14705:   (exit $ac_status); } && {
                   14706:         test -z "$ac_c_werror_flag" ||
                   14707:         test ! -s conftest.err
                   14708:        } && test -s conftest.$ac_objext; then
                   14709:   ac_cv_type_sig_atomic_t=yes
                   14710: else
                   14711:   echo "$as_me: failed program was:" >&5
                   14712: sed 's/^/| /' conftest.$ac_ext >&5
                   14713:
                   14714:        ac_cv_type_sig_atomic_t=no
                   14715: fi
                   14716:
                   14717: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14718: fi
                   14719: { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
                   14720: echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
                   14721: if test $ac_cv_type_sig_atomic_t = yes; then
                   14722:   :
                   14723: else
                   14724:   cat >>confdefs.h <<\_ACEOF
                   14725: #define sig_atomic_t int
                   14726: _ACEOF
                   14727:
                   14728: fi
                   14729:
                   14730: { echo "$as_me:$LINENO: checking for sigaction_t" >&5
                   14731: echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6; }
                   14732: if test "${ac_cv_type_sigaction_t+set}" = set; then
                   14733:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14734: else
                   14735:   cat >conftest.$ac_ext <<_ACEOF
                   14736: /* confdefs.h.  */
                   14737: _ACEOF
                   14738: cat confdefs.h >>conftest.$ac_ext
                   14739: cat >>conftest.$ac_ext <<_ACEOF
                   14740: /* end confdefs.h.  */
                   14741: #include <sys/types.h>
                   14742: #include <signal.h>
                   14743:
                   14744: typedef sigaction_t ac__type_new_;
                   14745: int
                   14746: main ()
                   14747: {
                   14748: if ((ac__type_new_ *) 0)
                   14749:   return 0;
                   14750: if (sizeof (ac__type_new_))
                   14751:   return 0;
                   14752:   ;
                   14753:   return 0;
                   14754: }
                   14755: _ACEOF
                   14756: rm -f conftest.$ac_objext
                   14757: if { (ac_try="$ac_compile"
                   14758: case "(($ac_try" in
                   14759:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14760:   *) ac_try_echo=$ac_try;;
                   14761: esac
                   14762: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14763:   (eval "$ac_compile") 2>conftest.er1
                   14764:   ac_status=$?
                   14765:   grep -v '^ *+' conftest.er1 >conftest.err
                   14766:   rm -f conftest.er1
                   14767:   cat conftest.err >&5
                   14768:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14769:   (exit $ac_status); } && {
                   14770:         test -z "$ac_c_werror_flag" ||
                   14771:         test ! -s conftest.err
                   14772:        } && test -s conftest.$ac_objext; then
                   14773:   ac_cv_type_sigaction_t=yes
                   14774: else
                   14775:   echo "$as_me: failed program was:" >&5
                   14776: sed 's/^/| /' conftest.$ac_ext >&5
                   14777:
                   14778:        ac_cv_type_sigaction_t=no
                   14779: fi
                   14780:
                   14781: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14782: fi
                   14783: { echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
                   14784: echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6; }
                   14785: if test $ac_cv_type_sigaction_t = yes; then
                   14786:
                   14787: cat >>confdefs.h <<_ACEOF
                   14788: #define HAVE_SIGACTION_T 1
                   14789: _ACEOF
                   14790:
                   14791: cat >>confdefs.h <<\_ACEOF
                   14792: #define HAVE_SIGACTION_T 1
                   14793: _ACEOF
1.25      millert  14794:
1.1       millert  14795: fi
                   14796:
1.27      millert  14797: { echo "$as_me:$LINENO: checking for struct timespec" >&5
                   14798: echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
1.25      millert  14799: if test "${ac_cv_type_struct_timespec+set}" = set; then
1.9       millert  14800:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14801: else
1.9       millert  14802:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14803: /* confdefs.h.  */
                   14804: _ACEOF
                   14805: cat confdefs.h >>conftest.$ac_ext
                   14806: cat >>conftest.$ac_ext <<_ACEOF
                   14807: /* end confdefs.h.  */
1.25      millert  14808: #include <sys/types.h>
                   14809: #if TIME_WITH_SYS_TIME
                   14810: # include <sys/time.h>
1.1       millert  14811: #endif
1.31      millert  14812: #include <time.h>
1.1       millert  14813:
1.27      millert  14814: typedef struct timespec ac__type_new_;
1.16      millert  14815: int
                   14816: main ()
                   14817: {
1.27      millert  14818: if ((ac__type_new_ *) 0)
1.25      millert  14819:   return 0;
1.27      millert  14820: if (sizeof (ac__type_new_))
1.25      millert  14821:   return 0;
1.9       millert  14822:   ;
                   14823:   return 0;
                   14824: }
                   14825: _ACEOF
1.25      millert  14826: rm -f conftest.$ac_objext
1.27      millert  14827: if { (ac_try="$ac_compile"
                   14828: case "(($ac_try" in
                   14829:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14830:   *) ac_try_echo=$ac_try;;
                   14831: esac
                   14832: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14833:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  14834:   ac_status=$?
1.25      millert  14835:   grep -v '^ *+' conftest.er1 >conftest.err
                   14836:   rm -f conftest.er1
                   14837:   cat conftest.err >&5
1.16      millert  14838:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  14839:   (exit $ac_status); } && {
                   14840:         test -z "$ac_c_werror_flag" ||
                   14841:         test ! -s conftest.err
                   14842:        } && test -s conftest.$ac_objext; then
1.25      millert  14843:   ac_cv_type_struct_timespec=yes
1.9       millert  14844: else
                   14845:   echo "$as_me: failed program was:" >&5
1.16      millert  14846: sed 's/^/| /' conftest.$ac_ext >&5
                   14847:
1.27      millert  14848:        ac_cv_type_struct_timespec=no
1.9       millert  14849: fi
1.27      millert  14850:
                   14851: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  14852: fi
1.27      millert  14853: { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
                   14854: echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
1.25      millert  14855: if test $ac_cv_type_struct_timespec = yes; then
                   14856:   cat >>confdefs.h <<\_ACEOF
                   14857: #define HAVE_TIMESPEC 1
1.16      millert  14858: _ACEOF
1.1       millert  14859:
1.25      millert  14860: fi
                   14861:
1.31      millert  14862: { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
                   14863: echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
                   14864: if test "${ac_cv_type_struct_in6_addr+set}" = set; then
                   14865:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14866: else
                   14867:   cat >conftest.$ac_ext <<_ACEOF
                   14868: /* confdefs.h.  */
                   14869: _ACEOF
                   14870: cat confdefs.h >>conftest.$ac_ext
                   14871: cat >>conftest.$ac_ext <<_ACEOF
                   14872: /* end confdefs.h.  */
                   14873: #include <sys/types.h>
                   14874: #include <netinet/in.h>
                   14875:
                   14876: typedef struct in6_addr ac__type_new_;
                   14877: int
                   14878: main ()
                   14879: {
                   14880: if ((ac__type_new_ *) 0)
                   14881:   return 0;
                   14882: if (sizeof (ac__type_new_))
                   14883:   return 0;
                   14884:   ;
                   14885:   return 0;
                   14886: }
                   14887: _ACEOF
                   14888: rm -f conftest.$ac_objext
                   14889: if { (ac_try="$ac_compile"
                   14890: case "(($ac_try" in
                   14891:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   14892:   *) ac_try_echo=$ac_try;;
                   14893: esac
                   14894: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   14895:   (eval "$ac_compile") 2>conftest.er1
                   14896:   ac_status=$?
                   14897:   grep -v '^ *+' conftest.er1 >conftest.err
                   14898:   rm -f conftest.er1
                   14899:   cat conftest.err >&5
                   14900:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   14901:   (exit $ac_status); } && {
                   14902:         test -z "$ac_c_werror_flag" ||
                   14903:         test ! -s conftest.err
                   14904:        } && test -s conftest.$ac_objext; then
                   14905:   ac_cv_type_struct_in6_addr=yes
                   14906: else
                   14907:   echo "$as_me: failed program was:" >&5
                   14908: sed 's/^/| /' conftest.$ac_ext >&5
                   14909:
                   14910:        ac_cv_type_struct_in6_addr=no
                   14911: fi
                   14912:
                   14913: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   14914: fi
                   14915: { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
                   14916: echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
                   14917: if test $ac_cv_type_struct_in6_addr = yes; then
                   14918:
                   14919: cat >>confdefs.h <<_ACEOF
                   14920: #define HAVE_STRUCT_IN6_ADDR 1
                   14921: _ACEOF
                   14922:
                   14923: cat >>confdefs.h <<\_ACEOF
                   14924: #define HAVE_IN6_ADDR 1
                   14925: _ACEOF
                   14926:
                   14927: fi
                   14928:
1.27      millert  14929: { echo "$as_me:$LINENO: checking for size_t" >&5
                   14930: echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
1.25      millert  14931: if test "${sudo_cv_type_size_t+set}" = set; then
                   14932:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   14933: else
                   14934:   cat >conftest.$ac_ext <<_ACEOF
                   14935: /* confdefs.h.  */
                   14936: _ACEOF
                   14937: cat confdefs.h >>conftest.$ac_ext
                   14938: cat >>conftest.$ac_ext <<_ACEOF
                   14939: /* end confdefs.h.  */
                   14940: #include <sys/types.h>
                   14941: #include <stdio.h>
                   14942: #if STDC_HEADERS
                   14943: #include <stdlib.h>
                   14944: #endif
                   14945: #if HAVE_UNISTD_H
                   14946: #include <unistd.h>
                   14947: #endif
                   14948: _ACEOF
                   14949: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   14950:   $EGREP "size_t" >/dev/null 2>&1; then
                   14951:   sudo_cv_type_size_t=yes
1.1       millert  14952: else
1.25      millert  14953:   sudo_cv_type_size_t=no
                   14954: fi
                   14955: rm -f conftest*
                   14956:
                   14957: fi
1.27      millert  14958: { echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
                   14959: echo "${ECHO_T}$sudo_cv_type_size_t" >&6; }
1.25      millert  14960: if test $sudo_cv_type_size_t = no; then
                   14961:
                   14962: cat >>confdefs.h <<\_ACEOF
                   14963: #define size_t int
                   14964: _ACEOF
                   14965:
                   14966: fi
                   14967:
1.27      millert  14968: { echo "$as_me:$LINENO: checking for ssize_t" >&5
                   14969: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
1.25      millert  14970: if test "${sudo_cv_type_ssize_t+set}" = set; then
1.9       millert  14971:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  14972: else
1.25      millert  14973:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  14974: /* confdefs.h.  */
                   14975: _ACEOF
                   14976: cat confdefs.h >>conftest.$ac_ext
                   14977: cat >>conftest.$ac_ext <<_ACEOF
                   14978: /* end confdefs.h.  */
1.25      millert  14979: #include <sys/types.h>
                   14980: #include <stdio.h>
                   14981: #if STDC_HEADERS
                   14982: #include <stdlib.h>
                   14983: #endif
                   14984: #if HAVE_UNISTD_H
                   14985: #include <unistd.h>
1.9       millert  14986: #endif
                   14987: _ACEOF
1.25      millert  14988: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   14989:   $EGREP "ssize_t" >/dev/null 2>&1; then
                   14990:   sudo_cv_type_ssize_t=yes
1.9       millert  14991: else
1.25      millert  14992:   sudo_cv_type_ssize_t=no
                   14993: fi
                   14994: rm -f conftest*
1.16      millert  14995:
1.9       millert  14996: fi
1.27      millert  14997: { echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
                   14998: echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6; }
1.25      millert  14999: if test $sudo_cv_type_ssize_t = no; then
                   15000:
                   15001: cat >>confdefs.h <<\_ACEOF
                   15002: #define ssize_t int
                   15003: _ACEOF
                   15004:
1.9       millert  15005: fi
1.25      millert  15006:
1.27      millert  15007: { echo "$as_me:$LINENO: checking for dev_t" >&5
                   15008: echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
1.25      millert  15009: if test "${sudo_cv_type_dev_t+set}" = set; then
                   15010:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15011: else
                   15012:   cat >conftest.$ac_ext <<_ACEOF
                   15013: /* confdefs.h.  */
                   15014: _ACEOF
                   15015: cat confdefs.h >>conftest.$ac_ext
                   15016: cat >>conftest.$ac_ext <<_ACEOF
                   15017: /* end confdefs.h.  */
                   15018: #include <sys/types.h>
                   15019: #include <stdio.h>
                   15020: #if STDC_HEADERS
                   15021: #include <stdlib.h>
                   15022: #endif
                   15023: #if HAVE_UNISTD_H
                   15024: #include <unistd.h>
                   15025: #endif
1.16      millert  15026: _ACEOF
1.25      millert  15027: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   15028:   $EGREP "dev_t" >/dev/null 2>&1; then
                   15029:   sudo_cv_type_dev_t=yes
                   15030: else
                   15031:   sudo_cv_type_dev_t=no
1.1       millert  15032: fi
1.25      millert  15033: rm -f conftest*
1.1       millert  15034:
                   15035: fi
1.27      millert  15036: { echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
                   15037: echo "${ECHO_T}$sudo_cv_type_dev_t" >&6; }
1.25      millert  15038: if test $sudo_cv_type_dev_t = no; then
1.1       millert  15039:
1.25      millert  15040: cat >>confdefs.h <<\_ACEOF
                   15041: #define dev_t int
                   15042: _ACEOF
1.1       millert  15043:
1.25      millert  15044: fi
1.1       millert  15045:
1.27      millert  15046: { echo "$as_me:$LINENO: checking for ino_t" >&5
                   15047: echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
                   15048: if test "${sudo_cv_type_ino_t+set}" = set; then
1.9       millert  15049:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15050: else
1.25      millert  15051:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15052: /* confdefs.h.  */
                   15053: _ACEOF
                   15054: cat confdefs.h >>conftest.$ac_ext
                   15055: cat >>conftest.$ac_ext <<_ACEOF
                   15056: /* end confdefs.h.  */
1.25      millert  15057: #include <sys/types.h>
1.27      millert  15058: #include <stdio.h>
                   15059: #if STDC_HEADERS
                   15060: #include <stdlib.h>
                   15061: #endif
                   15062: #if HAVE_UNISTD_H
                   15063: #include <unistd.h>
                   15064: #endif
1.9       millert  15065: _ACEOF
1.27      millert  15066: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   15067:   $EGREP "ino_t" >/dev/null 2>&1; then
                   15068:   sudo_cv_type_ino_t=yes
1.9       millert  15069: else
1.27      millert  15070:   sudo_cv_type_ino_t=no
                   15071: fi
                   15072: rm -f conftest*
1.16      millert  15073:
1.25      millert  15074: fi
1.27      millert  15075: { echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
                   15076: echo "${ECHO_T}$sudo_cv_type_ino_t" >&6; }
                   15077: if test $sudo_cv_type_ino_t = no; then
1.25      millert  15078:
                   15079: cat >>confdefs.h <<\_ACEOF
1.27      millert  15080: #define ino_t unsigned int
1.16      millert  15081: _ACEOF
1.25      millert  15082:
1.1       millert  15083: fi
                   15084:
1.6       millert  15085:
1.27      millert  15086: { echo "$as_me:$LINENO: checking max length of uid_t" >&5
                   15087: echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6; }
                   15088: if test "${sudo_cv_uid_t_len+set}" = set; then
1.9       millert  15089:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15090: else
1.27      millert  15091:   rm -f conftestdata
                   15092: if test "$cross_compiling" = yes; then
                   15093:   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
                   15094: See \`config.log' for more details." >&5
                   15095: echo "$as_me: error: cannot run test program while cross compiling
                   15096: See \`config.log' for more details." >&2;}
                   15097:    { (exit 1); exit 1; }; }
                   15098: else
1.9       millert  15099:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15100: /* confdefs.h.  */
                   15101: _ACEOF
                   15102: cat confdefs.h >>conftest.$ac_ext
                   15103: cat >>conftest.$ac_ext <<_ACEOF
                   15104: /* end confdefs.h.  */
1.27      millert  15105: #include <stdio.h>
                   15106: #include <pwd.h>
                   15107: #include <limits.h>
                   15108: #include <sys/types.h>
                   15109: #include <sys/param.h>
                   15110: main() {
                   15111:   FILE *f;
                   15112:   char b[1024];
                   15113:   uid_t u = (uid_t) -1;
1.25      millert  15114:
1.27      millert  15115:   if ((f = fopen("conftestdata", "w")) == NULL)
                   15116:     exit(1);
1.25      millert  15117:
1.27      millert  15118:   (void) sprintf(b, "%lu", (unsigned long) u);
                   15119:   (void) fprintf(f, "%d\n", strlen(b));
                   15120:   (void) fclose(f);
                   15121:   exit(0);
1.9       millert  15122: }
                   15123: _ACEOF
1.27      millert  15124: rm -f conftest$ac_exeext
                   15125: if { (ac_try="$ac_link"
                   15126: case "(($ac_try" in
                   15127:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15128:   *) ac_try_echo=$ac_try;;
                   15129: esac
                   15130: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15131:   (eval "$ac_link") 2>&5
1.9       millert  15132:   ac_status=$?
1.16      millert  15133:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15134:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   15135:   { (case "(($ac_try" in
                   15136:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15137:   *) ac_try_echo=$ac_try;;
                   15138: esac
                   15139: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15140:   (eval "$ac_try") 2>&5
1.9       millert  15141:   ac_status=$?
1.16      millert  15142:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  15143:   (exit $ac_status); }; }; then
1.27      millert  15144:   sudo_cv_uid_t_len=`cat conftestdata`
1.9       millert  15145: else
1.27      millert  15146:   echo "$as_me: program exited with status $ac_status" >&5
                   15147: echo "$as_me: failed program was:" >&5
1.16      millert  15148: sed 's/^/| /' conftest.$ac_ext >&5
                   15149:
1.27      millert  15150: ( exit $ac_status )
                   15151: sudo_cv_uid_t_len=10
1.9       millert  15152: fi
1.27      millert  15153: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9       millert  15154: fi
1.27      millert  15155:
                   15156:
1.25      millert  15157:
                   15158: fi
                   15159:
1.27      millert  15160: rm -f conftestdata
                   15161: { echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
                   15162: echo "${ECHO_T}$sudo_cv_uid_t_len" >&6; }
                   15163:
                   15164: cat >>confdefs.h <<_ACEOF
                   15165: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
                   15166: _ACEOF
                   15167:
1.25      millert  15168:
1.27      millert  15169: { echo "$as_me:$LINENO: checking for long long" >&5
                   15170: echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
                   15171: if test "${ac_cv_type_long_long+set}" = set; then
1.9       millert  15172:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15173: else
1.25      millert  15174:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15175: /* confdefs.h.  */
                   15176: _ACEOF
                   15177: cat confdefs.h >>conftest.$ac_ext
                   15178: cat >>conftest.$ac_ext <<_ACEOF
                   15179: /* end confdefs.h.  */
1.27      millert  15180: $ac_includes_default
                   15181: typedef long long ac__type_new_;
1.9       millert  15182: int
                   15183: main ()
                   15184: {
1.27      millert  15185: if ((ac__type_new_ *) 0)
                   15186:   return 0;
                   15187: if (sizeof (ac__type_new_))
                   15188:   return 0;
1.9       millert  15189:   ;
                   15190:   return 0;
                   15191: }
                   15192: _ACEOF
1.27      millert  15193: rm -f conftest.$ac_objext
                   15194: if { (ac_try="$ac_compile"
                   15195: case "(($ac_try" in
                   15196:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15197:   *) ac_try_echo=$ac_try;;
                   15198: esac
                   15199: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15200:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  15201:   ac_status=$?
1.25      millert  15202:   grep -v '^ *+' conftest.er1 >conftest.err
                   15203:   rm -f conftest.er1
                   15204:   cat conftest.err >&5
1.16      millert  15205:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15206:   (exit $ac_status); } && {
                   15207:         test -z "$ac_c_werror_flag" ||
                   15208:         test ! -s conftest.err
                   15209:        } && test -s conftest.$ac_objext; then
                   15210:   ac_cv_type_long_long=yes
1.9       millert  15211: else
                   15212:   echo "$as_me: failed program was:" >&5
1.16      millert  15213: sed 's/^/| /' conftest.$ac_ext >&5
                   15214:
1.27      millert  15215:        ac_cv_type_long_long=no
1.9       millert  15216: fi
1.27      millert  15217:
                   15218: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  15219: fi
1.27      millert  15220: { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
                   15221: echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
                   15222: if test $ac_cv_type_long_long = yes; then
                   15223:
                   15224: cat >>confdefs.h <<_ACEOF
                   15225: #define HAVE_LONG_LONG 1
1.16      millert  15226: _ACEOF
1.9       millert  15227:
1.1       millert  15228:
1.27      millert  15229: cat >>confdefs.h <<\_ACEOF
                   15230: #define HAVE_LONG_LONG 1
                   15231: _ACEOF
                   15232:
                   15233: { echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
                   15234: echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6; }
                   15235: if test "${sudo_cv_type_long_is_quad+set}" = set; then
1.9       millert  15236:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15237: else
1.27      millert  15238:   if test "$cross_compiling" = yes; then
                   15239:   sudo_cv_type_long_is_quad=no
                   15240: else
1.9       millert  15241:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15242: /* confdefs.h.  */
                   15243: _ACEOF
                   15244: cat confdefs.h >>conftest.$ac_ext
                   15245: cat >>conftest.$ac_ext <<_ACEOF
                   15246: /* end confdefs.h.  */
1.25      millert  15247:
1.27      millert  15248: main() {
                   15249: if (sizeof(long long) == sizeof(long)) exit(0);
                   15250: else exit(1);
1.9       millert  15251: }
                   15252: _ACEOF
1.27      millert  15253: rm -f conftest$ac_exeext
                   15254: if { (ac_try="$ac_link"
                   15255: case "(($ac_try" in
                   15256:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15257:   *) ac_try_echo=$ac_try;;
                   15258: esac
                   15259: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15260:   (eval "$ac_link") 2>&5
1.9       millert  15261:   ac_status=$?
1.16      millert  15262:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15263:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   15264:   { (case "(($ac_try" in
                   15265:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15266:   *) ac_try_echo=$ac_try;;
                   15267: esac
                   15268: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15269:   (eval "$ac_try") 2>&5
1.9       millert  15270:   ac_status=$?
1.16      millert  15271:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  15272:   (exit $ac_status); }; }; then
1.27      millert  15273:   sudo_cv_type_long_is_quad=yes
1.9       millert  15274: else
1.27      millert  15275:   echo "$as_me: program exited with status $ac_status" >&5
                   15276: echo "$as_me: failed program was:" >&5
1.16      millert  15277: sed 's/^/| /' conftest.$ac_ext >&5
                   15278:
1.27      millert  15279: ( exit $ac_status )
                   15280: sudo_cv_type_long_is_quad=no
                   15281: fi
                   15282: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9       millert  15283: fi
1.27      millert  15284:
                   15285:
                   15286: rm -f core core.* *.core
1.9       millert  15287: fi
1.27      millert  15288: { echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
                   15289: echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6; }
                   15290: if test $sudo_cv_type_long_is_quad = yes; then
                   15291:
                   15292: cat >>confdefs.h <<\_ACEOF
                   15293: #define LONG_IS_QUAD 1
1.16      millert  15294: _ACEOF
1.27      millert  15295:
1.25      millert  15296: fi
                   15297:
                   15298: fi
                   15299:
1.27      millert  15300: { echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
                   15301: echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6; }
                   15302: if test "${sudo_cv_sock_sa_len+set}" = set; then
1.9       millert  15303:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15304: else
1.27      millert  15305:   if test "$cross_compiling" = yes; then
                   15306:   sudo_cv_sock_sa_len=no
                   15307: else
1.25      millert  15308:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15309: /* confdefs.h.  */
                   15310: _ACEOF
                   15311: cat confdefs.h >>conftest.$ac_ext
                   15312: cat >>conftest.$ac_ext <<_ACEOF
                   15313: /* end confdefs.h.  */
1.27      millert  15314: #include <sys/types.h>
                   15315: #include <sys/socket.h>
                   15316: main() {
                   15317: struct sockaddr s;
                   15318: s.sa_len = 0;
                   15319: exit(0);
1.9       millert  15320: }
                   15321: _ACEOF
1.27      millert  15322: rm -f conftest$ac_exeext
                   15323: if { (ac_try="$ac_link"
                   15324: case "(($ac_try" in
                   15325:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15326:   *) ac_try_echo=$ac_try;;
                   15327: esac
                   15328: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15329:   (eval "$ac_link") 2>&5
1.9       millert  15330:   ac_status=$?
1.16      millert  15331:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15332:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   15333:   { (case "(($ac_try" in
                   15334:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15335:   *) ac_try_echo=$ac_try;;
                   15336: esac
                   15337: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15338:   (eval "$ac_try") 2>&5
1.9       millert  15339:   ac_status=$?
1.16      millert  15340:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9       millert  15341:   (exit $ac_status); }; }; then
1.27      millert  15342:   sudo_cv_sock_sa_len=yes
1.9       millert  15343: else
1.27      millert  15344:   echo "$as_me: program exited with status $ac_status" >&5
                   15345: echo "$as_me: failed program was:" >&5
1.16      millert  15346: sed 's/^/| /' conftest.$ac_ext >&5
                   15347:
1.27      millert  15348: ( exit $ac_status )
                   15349: sudo_cv_sock_sa_len=no
1.9       millert  15350: fi
1.27      millert  15351: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9       millert  15352: fi
1.1       millert  15353:
1.27      millert  15354:
                   15355: rm -f core core.* *.core
1.1       millert  15356: fi
1.27      millert  15357: { echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
                   15358: echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6; }
                   15359: if test $sudo_cv_sock_sa_len = yes; then
                   15360:
                   15361: cat >>confdefs.h <<\_ACEOF
                   15362: #define HAVE_SA_LEN 1
                   15363: _ACEOF
1.1       millert  15364:
                   15365: fi
                   15366:
1.27      millert  15367: case "$DEFS" in
                   15368:     *"RETSIGTYPE"*)    ;;
                   15369:     *)                 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
                   15370: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
                   15371: if test "${ac_cv_type_signal+set}" = set; then
1.9       millert  15372:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15373: else
1.9       millert  15374:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  15375: /* confdefs.h.  */
                   15376: _ACEOF
                   15377: cat confdefs.h >>conftest.$ac_ext
                   15378: cat >>conftest.$ac_ext <<_ACEOF
                   15379: /* end confdefs.h.  */
1.27      millert  15380: #include <sys/types.h>
                   15381: #include <signal.h>
1.9       millert  15382:
                   15383: int
                   15384: main ()
                   15385: {
1.27      millert  15386: return *(signal (0, 0)) (0) == 1;
1.9       millert  15387:   ;
                   15388:   return 0;
1.1       millert  15389: }
1.9       millert  15390: _ACEOF
1.27      millert  15391: rm -f conftest.$ac_objext
                   15392: if { (ac_try="$ac_compile"
                   15393: case "(($ac_try" in
                   15394:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15395:   *) ac_try_echo=$ac_try;;
                   15396: esac
                   15397: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15398:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  15399:   ac_status=$?
1.25      millert  15400:   grep -v '^ *+' conftest.er1 >conftest.err
                   15401:   rm -f conftest.er1
                   15402:   cat conftest.err >&5
1.16      millert  15403:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15404:   (exit $ac_status); } && {
                   15405:         test -z "$ac_c_werror_flag" ||
                   15406:         test ! -s conftest.err
                   15407:        } && test -s conftest.$ac_objext; then
                   15408:   ac_cv_type_signal=int
1.1       millert  15409: else
1.9       millert  15410:   echo "$as_me: failed program was:" >&5
1.16      millert  15411: sed 's/^/| /' conftest.$ac_ext >&5
                   15412:
1.27      millert  15413:        ac_cv_type_signal=void
1.9       millert  15414: fi
1.27      millert  15415:
                   15416: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       millert  15417: fi
1.27      millert  15418: { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
                   15419: echo "${ECHO_T}$ac_cv_type_signal" >&6; }
                   15420:
                   15421: cat >>confdefs.h <<_ACEOF
                   15422: #define RETSIGTYPE $ac_cv_type_signal
1.25      millert  15423: _ACEOF
                   15424:
1.27      millert  15425: ;;
                   15426: esac
1.32      millert  15427: { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
                   15428: echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
                   15429: if test "${ac_cv_type_getgroups+set}" = set; then
                   15430:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15431: else
                   15432:   if test "$cross_compiling" = yes; then
                   15433:   ac_cv_type_getgroups=cross
                   15434: else
                   15435:   cat >conftest.$ac_ext <<_ACEOF
                   15436: /* confdefs.h.  */
                   15437: _ACEOF
                   15438: cat confdefs.h >>conftest.$ac_ext
                   15439: cat >>conftest.$ac_ext <<_ACEOF
                   15440: /* end confdefs.h.  */
                   15441: /* Thanks to Mike Rendell for this test.  */
                   15442: $ac_includes_default
                   15443: #define NGID 256
                   15444: #undef MAX
                   15445: #define MAX(x, y) ((x) > (y) ? (x) : (y))
                   15446:
                   15447: int
                   15448: main ()
                   15449: {
                   15450:   gid_t gidset[NGID];
                   15451:   int i, n;
                   15452:   union { gid_t gval; long int lval; }  val;
                   15453:
                   15454:   val.lval = -1;
                   15455:   for (i = 0; i < NGID; i++)
                   15456:     gidset[i] = val.gval;
                   15457:   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
                   15458:                 gidset);
                   15459:   /* Exit non-zero if getgroups seems to require an array of ints.  This
                   15460:      happens when gid_t is short int but getgroups modifies an array
                   15461:      of ints.  */
                   15462:   return n > 0 && gidset[n] != val.gval;
                   15463: }
                   15464: _ACEOF
                   15465: rm -f conftest$ac_exeext
                   15466: if { (ac_try="$ac_link"
                   15467: case "(($ac_try" in
                   15468:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15469:   *) ac_try_echo=$ac_try;;
                   15470: esac
                   15471: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15472:   (eval "$ac_link") 2>&5
                   15473:   ac_status=$?
                   15474:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15475:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   15476:   { (case "(($ac_try" in
                   15477:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15478:   *) ac_try_echo=$ac_try;;
                   15479: esac
                   15480: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15481:   (eval "$ac_try") 2>&5
                   15482:   ac_status=$?
                   15483:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15484:   (exit $ac_status); }; }; then
                   15485:   ac_cv_type_getgroups=gid_t
                   15486: else
                   15487:   echo "$as_me: program exited with status $ac_status" >&5
                   15488: echo "$as_me: failed program was:" >&5
                   15489: sed 's/^/| /' conftest.$ac_ext >&5
                   15490:
                   15491: ( exit $ac_status )
                   15492: ac_cv_type_getgroups=int
                   15493: fi
                   15494: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
                   15495: fi
                   15496:
                   15497:
                   15498: if test $ac_cv_type_getgroups = cross; then
                   15499:         cat >conftest.$ac_ext <<_ACEOF
                   15500: /* confdefs.h.  */
                   15501: _ACEOF
                   15502: cat confdefs.h >>conftest.$ac_ext
                   15503: cat >>conftest.$ac_ext <<_ACEOF
                   15504: /* end confdefs.h.  */
                   15505: #include <unistd.h>
                   15506:
                   15507: _ACEOF
                   15508: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   15509:   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
                   15510:   ac_cv_type_getgroups=gid_t
                   15511: else
                   15512:   ac_cv_type_getgroups=int
                   15513: fi
                   15514: rm -f conftest*
                   15515:
                   15516: fi
                   15517: fi
                   15518: { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
                   15519: echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
                   15520:
                   15521: cat >>confdefs.h <<_ACEOF
                   15522: #define GETGROUPS_T $ac_cv_type_getgroups
                   15523: _ACEOF
                   15524:
                   15525:
                   15526: { echo "$as_me:$LINENO: checking for size_t" >&5
                   15527: echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
                   15528: if test "${ac_cv_type_size_t+set}" = set; then
                   15529:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15530: else
                   15531:   cat >conftest.$ac_ext <<_ACEOF
                   15532: /* confdefs.h.  */
                   15533: _ACEOF
                   15534: cat confdefs.h >>conftest.$ac_ext
                   15535: cat >>conftest.$ac_ext <<_ACEOF
                   15536: /* end confdefs.h.  */
                   15537: $ac_includes_default
                   15538: typedef size_t ac__type_new_;
                   15539: int
                   15540: main ()
                   15541: {
                   15542: if ((ac__type_new_ *) 0)
                   15543:   return 0;
                   15544: if (sizeof (ac__type_new_))
                   15545:   return 0;
                   15546:   ;
                   15547:   return 0;
                   15548: }
                   15549: _ACEOF
                   15550: rm -f conftest.$ac_objext
                   15551: if { (ac_try="$ac_compile"
                   15552: case "(($ac_try" in
                   15553:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15554:   *) ac_try_echo=$ac_try;;
                   15555: esac
                   15556: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15557:   (eval "$ac_compile") 2>conftest.er1
                   15558:   ac_status=$?
                   15559:   grep -v '^ *+' conftest.er1 >conftest.err
                   15560:   rm -f conftest.er1
                   15561:   cat conftest.err >&5
                   15562:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15563:   (exit $ac_status); } && {
                   15564:         test -z "$ac_c_werror_flag" ||
                   15565:         test ! -s conftest.err
                   15566:        } && test -s conftest.$ac_objext; then
                   15567:   ac_cv_type_size_t=yes
                   15568: else
                   15569:   echo "$as_me: failed program was:" >&5
                   15570: sed 's/^/| /' conftest.$ac_ext >&5
                   15571:
                   15572:        ac_cv_type_size_t=no
                   15573: fi
                   15574:
                   15575: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   15576: fi
                   15577: { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
                   15578: echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
                   15579: if test $ac_cv_type_size_t = yes; then
                   15580:   :
                   15581: else
                   15582:
                   15583: cat >>confdefs.h <<_ACEOF
                   15584: #define size_t unsigned int
                   15585: _ACEOF
                   15586:
                   15587: fi
                   15588:
                   15589: { echo "$as_me:$LINENO: checking for getgroups" >&5
                   15590: echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
                   15591: if test "${ac_cv_func_getgroups+set}" = set; then
                   15592:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15593: else
                   15594:   cat >conftest.$ac_ext <<_ACEOF
                   15595: /* confdefs.h.  */
                   15596: _ACEOF
                   15597: cat confdefs.h >>conftest.$ac_ext
                   15598: cat >>conftest.$ac_ext <<_ACEOF
                   15599: /* end confdefs.h.  */
                   15600: /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
                   15601:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15602: #define getgroups innocuous_getgroups
                   15603:
                   15604: /* System header to define __stub macros and hopefully few prototypes,
                   15605:     which can conflict with char getgroups (); below.
                   15606:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15607:     <limits.h> exists even on freestanding compilers.  */
                   15608:
                   15609: #ifdef __STDC__
                   15610: # include <limits.h>
                   15611: #else
                   15612: # include <assert.h>
                   15613: #endif
                   15614:
                   15615: #undef getgroups
                   15616:
                   15617: /* Override any GCC internal prototype to avoid an error.
                   15618:    Use char because int might match the return type of a GCC
                   15619:    builtin and then its argument prototype would still apply.  */
                   15620: #ifdef __cplusplus
                   15621: extern "C"
                   15622: #endif
                   15623: char getgroups ();
                   15624: /* The GNU C library defines this for functions which it implements
                   15625:     to always fail with ENOSYS.  Some functions are actually named
                   15626:     something starting with __ and the normal name is an alias.  */
                   15627: #if defined __stub_getgroups || defined __stub___getgroups
                   15628: choke me
                   15629: #endif
                   15630:
                   15631: int
                   15632: main ()
                   15633: {
                   15634: return getgroups ();
                   15635:   ;
                   15636:   return 0;
                   15637: }
                   15638: _ACEOF
                   15639: rm -f conftest.$ac_objext conftest$ac_exeext
                   15640: if { (ac_try="$ac_link"
                   15641: case "(($ac_try" in
                   15642:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15643:   *) ac_try_echo=$ac_try;;
                   15644: esac
                   15645: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15646:   (eval "$ac_link") 2>conftest.er1
                   15647:   ac_status=$?
                   15648:   grep -v '^ *+' conftest.er1 >conftest.err
                   15649:   rm -f conftest.er1
                   15650:   cat conftest.err >&5
                   15651:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15652:   (exit $ac_status); } && {
                   15653:         test -z "$ac_c_werror_flag" ||
                   15654:         test ! -s conftest.err
                   15655:        } && test -s conftest$ac_exeext &&
                   15656:        $as_test_x conftest$ac_exeext; then
                   15657:   ac_cv_func_getgroups=yes
                   15658: else
                   15659:   echo "$as_me: failed program was:" >&5
                   15660: sed 's/^/| /' conftest.$ac_ext >&5
                   15661:
                   15662:        ac_cv_func_getgroups=no
                   15663: fi
                   15664:
                   15665: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   15666:       conftest$ac_exeext conftest.$ac_ext
                   15667: fi
                   15668: { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
                   15669: echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
                   15670:
                   15671:
                   15672: # If we don't yet have getgroups, see if it's in -lbsd.
                   15673: # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
                   15674: ac_save_LIBS=$LIBS
                   15675: if test $ac_cv_func_getgroups = no; then
                   15676:   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
                   15677: echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
                   15678: if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
                   15679:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15680: else
                   15681:   ac_check_lib_save_LIBS=$LIBS
                   15682: LIBS="-lbsd  $LIBS"
                   15683: cat >conftest.$ac_ext <<_ACEOF
                   15684: /* confdefs.h.  */
                   15685: _ACEOF
                   15686: cat confdefs.h >>conftest.$ac_ext
                   15687: cat >>conftest.$ac_ext <<_ACEOF
                   15688: /* end confdefs.h.  */
                   15689:
                   15690: /* Override any GCC internal prototype to avoid an error.
                   15691:    Use char because int might match the return type of a GCC
                   15692:    builtin and then its argument prototype would still apply.  */
                   15693: #ifdef __cplusplus
                   15694: extern "C"
                   15695: #endif
                   15696: char getgroups ();
                   15697: int
                   15698: main ()
                   15699: {
                   15700: return getgroups ();
                   15701:   ;
                   15702:   return 0;
                   15703: }
                   15704: _ACEOF
                   15705: rm -f conftest.$ac_objext conftest$ac_exeext
                   15706: if { (ac_try="$ac_link"
                   15707: case "(($ac_try" in
                   15708:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15709:   *) ac_try_echo=$ac_try;;
                   15710: esac
                   15711: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15712:   (eval "$ac_link") 2>conftest.er1
                   15713:   ac_status=$?
                   15714:   grep -v '^ *+' conftest.er1 >conftest.err
                   15715:   rm -f conftest.er1
                   15716:   cat conftest.err >&5
                   15717:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15718:   (exit $ac_status); } && {
                   15719:         test -z "$ac_c_werror_flag" ||
                   15720:         test ! -s conftest.err
                   15721:        } && test -s conftest$ac_exeext &&
                   15722:        $as_test_x conftest$ac_exeext; then
                   15723:   ac_cv_lib_bsd_getgroups=yes
                   15724: else
                   15725:   echo "$as_me: failed program was:" >&5
                   15726: sed 's/^/| /' conftest.$ac_ext >&5
                   15727:
                   15728:        ac_cv_lib_bsd_getgroups=no
                   15729: fi
                   15730:
                   15731: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   15732:       conftest$ac_exeext conftest.$ac_ext
                   15733: LIBS=$ac_check_lib_save_LIBS
                   15734: fi
                   15735: { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
                   15736: echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
                   15737: if test $ac_cv_lib_bsd_getgroups = yes; then
                   15738:   GETGROUPS_LIB=-lbsd
                   15739: fi
                   15740:
                   15741: fi
                   15742:
                   15743: # Run the program to test the functionality of the system-supplied
                   15744: # getgroups function only if there is such a function.
                   15745: if test $ac_cv_func_getgroups = yes; then
                   15746:   { echo "$as_me:$LINENO: checking for working getgroups" >&5
                   15747: echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
                   15748: if test "${ac_cv_func_getgroups_works+set}" = set; then
                   15749:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15750: else
                   15751:   if test "$cross_compiling" = yes; then
                   15752:   ac_cv_func_getgroups_works=no
                   15753: else
                   15754:   cat >conftest.$ac_ext <<_ACEOF
                   15755: /* confdefs.h.  */
                   15756: _ACEOF
                   15757: cat confdefs.h >>conftest.$ac_ext
                   15758: cat >>conftest.$ac_ext <<_ACEOF
                   15759: /* end confdefs.h.  */
                   15760: $ac_includes_default
                   15761: int
                   15762: main ()
                   15763: {
                   15764: /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
                   15765:        return getgroups (0, 0) == -1;
                   15766:   ;
                   15767:   return 0;
                   15768: }
                   15769: _ACEOF
                   15770: rm -f conftest$ac_exeext
                   15771: if { (ac_try="$ac_link"
                   15772: case "(($ac_try" in
                   15773:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15774:   *) ac_try_echo=$ac_try;;
                   15775: esac
                   15776: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15777:   (eval "$ac_link") 2>&5
                   15778:   ac_status=$?
                   15779:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15780:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   15781:   { (case "(($ac_try" in
                   15782:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15783:   *) ac_try_echo=$ac_try;;
                   15784: esac
                   15785: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15786:   (eval "$ac_try") 2>&5
                   15787:   ac_status=$?
                   15788:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   15789:   (exit $ac_status); }; }; then
                   15790:   ac_cv_func_getgroups_works=yes
                   15791: else
                   15792:   echo "$as_me: program exited with status $ac_status" >&5
                   15793: echo "$as_me: failed program was:" >&5
                   15794: sed 's/^/| /' conftest.$ac_ext >&5
                   15795:
                   15796: ( exit $ac_status )
                   15797: ac_cv_func_getgroups_works=no
                   15798: fi
                   15799: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
                   15800: fi
                   15801:
                   15802:
                   15803:
                   15804: fi
                   15805: { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
                   15806: echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
                   15807:   if test $ac_cv_func_getgroups_works = yes; then
                   15808:
                   15809: cat >>confdefs.h <<\_ACEOF
                   15810: #define HAVE_GETGROUPS 1
                   15811: _ACEOF
                   15812:
                   15813:   fi
                   15814: fi
                   15815: LIBS=$ac_save_LIBS
                   15816:
1.27      millert  15817:
                   15818:
                   15819:
                   15820:
                   15821:
                   15822:
                   15823:
                   15824:
                   15825:
                   15826:
                   15827:
                   15828:
                   15829:
                   15830:
                   15831:
1.36      millert  15832:
1.39      millert  15833:
1.27      millert  15834: for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
                   15835:               strftime setrlimit initgroups getgroups fstat gettimeofday \
1.39      millert  15836:               setlocale getaddrinfo setsid setenv
1.25      millert  15837: do
                   15838: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  15839: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15840: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   15841: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  15842:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   15843: else
                   15844:   cat >conftest.$ac_ext <<_ACEOF
                   15845: /* confdefs.h.  */
                   15846: _ACEOF
                   15847: cat confdefs.h >>conftest.$ac_ext
                   15848: cat >>conftest.$ac_ext <<_ACEOF
                   15849: /* end confdefs.h.  */
                   15850: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15851:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15852: #define $ac_func innocuous_$ac_func
                   15853:
                   15854: /* System header to define __stub macros and hopefully few prototypes,
                   15855:     which can conflict with char $ac_func (); below.
                   15856:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15857:     <limits.h> exists even on freestanding compilers.  */
                   15858:
                   15859: #ifdef __STDC__
                   15860: # include <limits.h>
                   15861: #else
                   15862: # include <assert.h>
                   15863: #endif
                   15864:
                   15865: #undef $ac_func
                   15866:
1.27      millert  15867: /* Override any GCC internal prototype to avoid an error.
                   15868:    Use char because int might match the return type of a GCC
                   15869:    builtin and then its argument prototype would still apply.  */
1.25      millert  15870: #ifdef __cplusplus
                   15871: extern "C"
                   15872: #endif
                   15873: char $ac_func ();
                   15874: /* The GNU C library defines this for functions which it implements
                   15875:     to always fail with ENOSYS.  Some functions are actually named
                   15876:     something starting with __ and the normal name is an alias.  */
1.27      millert  15877: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  15878: choke me
                   15879: #endif
1.9       millert  15880:
                   15881: int
                   15882: main ()
                   15883: {
1.27      millert  15884: return $ac_func ();
1.9       millert  15885:   ;
                   15886:   return 0;
                   15887: }
                   15888: _ACEOF
1.25      millert  15889: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  15890: if { (ac_try="$ac_link"
                   15891: case "(($ac_try" in
                   15892:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15893:   *) ac_try_echo=$ac_try;;
                   15894: esac
                   15895: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15896:   (eval "$ac_link") 2>conftest.er1
1.9       millert  15897:   ac_status=$?
1.25      millert  15898:   grep -v '^ *+' conftest.er1 >conftest.err
                   15899:   rm -f conftest.er1
                   15900:   cat conftest.err >&5
1.16      millert  15901:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15902:   (exit $ac_status); } && {
                   15903:         test -z "$ac_c_werror_flag" ||
                   15904:         test ! -s conftest.err
                   15905:        } && test -s conftest$ac_exeext &&
                   15906:        $as_test_x conftest$ac_exeext; then
1.25      millert  15907:   eval "$as_ac_var=yes"
1.9       millert  15908: else
                   15909:   echo "$as_me: failed program was:" >&5
1.16      millert  15910: sed 's/^/| /' conftest.$ac_ext >&5
                   15911:
1.27      millert  15912:        eval "$as_ac_var=no"
1.9       millert  15913: fi
1.27      millert  15914:
                   15915: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  15916:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  15917: fi
1.27      millert  15918: ac_res=`eval echo '${'$as_ac_var'}'`
                   15919:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   15920: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  15921: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   15922:   cat >>confdefs.h <<_ACEOF
                   15923: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16      millert  15924: _ACEOF
1.1       millert  15925:
                   15926: fi
1.9       millert  15927: done
                   15928:
1.1       millert  15929:
1.39      millert  15930: for ac_func in unsetenv
1.25      millert  15931: do
                   15932: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  15933: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   15934: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   15935: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  15936:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  15937: else
1.25      millert  15938:   cat >conftest.$ac_ext <<_ACEOF
                   15939: /* confdefs.h.  */
                   15940: _ACEOF
                   15941: cat confdefs.h >>conftest.$ac_ext
                   15942: cat >>conftest.$ac_ext <<_ACEOF
                   15943: /* end confdefs.h.  */
                   15944: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   15945:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   15946: #define $ac_func innocuous_$ac_func
1.9       millert  15947:
1.25      millert  15948: /* System header to define __stub macros and hopefully few prototypes,
                   15949:     which can conflict with char $ac_func (); below.
                   15950:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   15951:     <limits.h> exists even on freestanding compilers.  */
1.9       millert  15952:
1.25      millert  15953: #ifdef __STDC__
                   15954: # include <limits.h>
                   15955: #else
                   15956: # include <assert.h>
                   15957: #endif
1.9       millert  15958:
1.25      millert  15959: #undef $ac_func
1.9       millert  15960:
1.27      millert  15961: /* Override any GCC internal prototype to avoid an error.
                   15962:    Use char because int might match the return type of a GCC
                   15963:    builtin and then its argument prototype would still apply.  */
1.25      millert  15964: #ifdef __cplusplus
                   15965: extern "C"
                   15966: #endif
                   15967: char $ac_func ();
                   15968: /* The GNU C library defines this for functions which it implements
                   15969:     to always fail with ENOSYS.  Some functions are actually named
                   15970:     something starting with __ and the normal name is an alias.  */
1.27      millert  15971: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  15972: choke me
                   15973: #endif
1.9       millert  15974:
1.25      millert  15975: int
                   15976: main ()
                   15977: {
1.27      millert  15978: return $ac_func ();
1.25      millert  15979:   ;
                   15980:   return 0;
                   15981: }
                   15982: _ACEOF
                   15983: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  15984: if { (ac_try="$ac_link"
                   15985: case "(($ac_try" in
                   15986:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   15987:   *) ac_try_echo=$ac_try;;
                   15988: esac
                   15989: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   15990:   (eval "$ac_link") 2>conftest.er1
1.25      millert  15991:   ac_status=$?
                   15992:   grep -v '^ *+' conftest.er1 >conftest.err
                   15993:   rm -f conftest.er1
                   15994:   cat conftest.err >&5
                   15995:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  15996:   (exit $ac_status); } && {
                   15997:         test -z "$ac_c_werror_flag" ||
                   15998:         test ! -s conftest.err
                   15999:        } && test -s conftest$ac_exeext &&
                   16000:        $as_test_x conftest$ac_exeext; then
1.25      millert  16001:   eval "$as_ac_var=yes"
                   16002: else
                   16003:   echo "$as_me: failed program was:" >&5
                   16004: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  16005:
1.27      millert  16006:        eval "$as_ac_var=no"
1.1       millert  16007: fi
1.27      millert  16008:
                   16009: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16010:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  16011: fi
1.27      millert  16012: ac_res=`eval echo '${'$as_ac_var'}'`
                   16013:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16014: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16015: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16016:   cat >>confdefs.h <<_ACEOF
                   16017: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16018: _ACEOF
1.39      millert  16019:  { echo "$as_me:$LINENO: checking whether unsetenv returns void" >&5
                   16020: echo $ECHO_N "checking whether unsetenv returns void... $ECHO_C" >&6; }
                   16021: if test "${sudo_cv_func_unsetenv_void+set}" = set; then
                   16022:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16023: else
                   16024:   if test "$cross_compiling" = yes; then
                   16025:   sudo_cv_func_unsetenv_void=yes
                   16026: else
                   16027:   cat >conftest.$ac_ext <<_ACEOF
                   16028: /* confdefs.h.  */
                   16029: _ACEOF
                   16030: cat confdefs.h >>conftest.$ac_ext
                   16031: cat >>conftest.$ac_ext <<_ACEOF
                   16032: /* end confdefs.h.  */
                   16033: $ac_includes_default
                   16034:         int unsetenv();
                   16035:
                   16036: int
                   16037: main ()
                   16038: {
                   16039:
                   16040:         return unsetenv("FOO") != 0;
                   16041:
                   16042:   ;
                   16043:   return 0;
                   16044: }
                   16045:
                   16046: _ACEOF
                   16047: rm -f conftest$ac_exeext
                   16048: if { (ac_try="$ac_link"
                   16049: case "(($ac_try" in
                   16050:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16051:   *) ac_try_echo=$ac_try;;
                   16052: esac
                   16053: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16054:   (eval "$ac_link") 2>&5
                   16055:   ac_status=$?
                   16056:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16057:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   16058:   { (case "(($ac_try" in
                   16059:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16060:   *) ac_try_echo=$ac_try;;
                   16061: esac
                   16062: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16063:   (eval "$ac_try") 2>&5
                   16064:   ac_status=$?
                   16065:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16066:   (exit $ac_status); }; }; then
                   16067:   sudo_cv_func_unsetenv_void=no
                   16068: else
                   16069:   echo "$as_me: program exited with status $ac_status" >&5
                   16070: echo "$as_me: failed program was:" >&5
                   16071: sed 's/^/| /' conftest.$ac_ext >&5
                   16072:
                   16073: ( exit $ac_status )
                   16074: sudo_cv_func_unsetenv_void=yes
                   16075: fi
                   16076: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
                   16077: fi
                   16078:
                   16079:
                   16080: fi
                   16081: { echo "$as_me:$LINENO: result: $sudo_cv_func_unsetenv_void" >&5
                   16082: echo "${ECHO_T}$sudo_cv_func_unsetenv_void" >&6; }
                   16083:     if test $sudo_cv_func_unsetenv_void = yes; then
                   16084:
                   16085: cat >>confdefs.h <<\_ACEOF
                   16086: #define UNSETENV_VOID 1
                   16087: _ACEOF
                   16088:
                   16089:     fi
                   16090:
1.25      millert  16091: fi
                   16092: done
1.23      millert  16093:
1.39      millert  16094: { echo "$as_me:$LINENO: checking whether putenv has a const argument" >&5
                   16095: echo $ECHO_N "checking whether putenv has a const argument... $ECHO_C" >&6; }
                   16096: if test "${sudo_cv_func_putenv_const+set}" = set; then
                   16097:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16098: else
                   16099:   cat >conftest.$ac_ext <<_ACEOF
                   16100: /* confdefs.h.  */
                   16101: _ACEOF
                   16102: cat confdefs.h >>conftest.$ac_ext
                   16103: cat >>conftest.$ac_ext <<_ACEOF
                   16104: /* end confdefs.h.  */
                   16105: $ac_includes_default
                   16106: int putenv(const char *string) {return 0;}
                   16107: int
                   16108: main ()
                   16109: {
                   16110:
                   16111:   ;
                   16112:   return 0;
                   16113: }
                   16114: _ACEOF
                   16115: rm -f conftest.$ac_objext
                   16116: if { (ac_try="$ac_compile"
                   16117: case "(($ac_try" in
                   16118:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16119:   *) ac_try_echo=$ac_try;;
                   16120: esac
                   16121: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16122:   (eval "$ac_compile") 2>conftest.er1
                   16123:   ac_status=$?
                   16124:   grep -v '^ *+' conftest.er1 >conftest.err
                   16125:   rm -f conftest.er1
                   16126:   cat conftest.err >&5
                   16127:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16128:   (exit $ac_status); } && {
                   16129:         test -z "$ac_c_werror_flag" ||
                   16130:         test ! -s conftest.err
                   16131:        } && test -s conftest.$ac_objext; then
                   16132:   sudo_cv_func_putenv_const=yes
                   16133: else
                   16134:   echo "$as_me: failed program was:" >&5
                   16135: sed 's/^/| /' conftest.$ac_ext >&5
                   16136:
                   16137:        sudo_cv_func_putenv_const=no
                   16138: fi
                   16139:
                   16140: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   16141:
1.23      millert  16142: fi
1.39      millert  16143: { echo "$as_me:$LINENO: result: $sudo_cv_func_putenv_const" >&5
                   16144: echo "${ECHO_T}$sudo_cv_func_putenv_const" >&6; }
                   16145:   if test $sudo_cv_func_putenv_const = yes; then
                   16146:
                   16147: cat >>confdefs.h <<\_ACEOF
                   16148: #define PUTENV_CONST 1
                   16149: _ACEOF
                   16150:
                   16151:   fi
                   16152:
                   16153: if test -z "$SKIP_SETRESUID"; then
1.23      millert  16154:
1.39      millert  16155: for ac_func in setresuid
1.25      millert  16156: do
                   16157: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16158: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16159: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16160: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  16161:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16162: else
                   16163:   cat >conftest.$ac_ext <<_ACEOF
                   16164: /* confdefs.h.  */
                   16165: _ACEOF
                   16166: cat confdefs.h >>conftest.$ac_ext
                   16167: cat >>conftest.$ac_ext <<_ACEOF
                   16168: /* end confdefs.h.  */
1.25      millert  16169: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16170:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16171: #define $ac_func innocuous_$ac_func
                   16172:
                   16173: /* System header to define __stub macros and hopefully few prototypes,
                   16174:     which can conflict with char $ac_func (); below.
                   16175:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16176:     <limits.h> exists even on freestanding compilers.  */
                   16177:
                   16178: #ifdef __STDC__
                   16179: # include <limits.h>
                   16180: #else
                   16181: # include <assert.h>
                   16182: #endif
                   16183:
                   16184: #undef $ac_func
                   16185:
1.27      millert  16186: /* Override any GCC internal prototype to avoid an error.
                   16187:    Use char because int might match the return type of a GCC
                   16188:    builtin and then its argument prototype would still apply.  */
1.25      millert  16189: #ifdef __cplusplus
                   16190: extern "C"
                   16191: #endif
                   16192: char $ac_func ();
                   16193: /* The GNU C library defines this for functions which it implements
                   16194:     to always fail with ENOSYS.  Some functions are actually named
                   16195:     something starting with __ and the normal name is an alias.  */
1.27      millert  16196: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16197: choke me
                   16198: #endif
1.23      millert  16199:
                   16200: int
                   16201: main ()
                   16202: {
1.27      millert  16203: return $ac_func ();
1.23      millert  16204:   ;
                   16205:   return 0;
                   16206: }
                   16207: _ACEOF
1.25      millert  16208: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16209: if { (ac_try="$ac_link"
                   16210: case "(($ac_try" in
                   16211:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16212:   *) ac_try_echo=$ac_try;;
                   16213: esac
                   16214: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16215:   (eval "$ac_link") 2>conftest.er1
1.23      millert  16216:   ac_status=$?
1.25      millert  16217:   grep -v '^ *+' conftest.er1 >conftest.err
                   16218:   rm -f conftest.er1
                   16219:   cat conftest.err >&5
1.23      millert  16220:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16221:   (exit $ac_status); } && {
                   16222:         test -z "$ac_c_werror_flag" ||
                   16223:         test ! -s conftest.err
                   16224:        } && test -s conftest$ac_exeext &&
                   16225:        $as_test_x conftest$ac_exeext; then
1.25      millert  16226:   eval "$as_ac_var=yes"
1.23      millert  16227: else
                   16228:   echo "$as_me: failed program was:" >&5
                   16229: sed 's/^/| /' conftest.$ac_ext >&5
                   16230:
1.27      millert  16231:        eval "$as_ac_var=no"
1.25      millert  16232: fi
1.27      millert  16233:
                   16234: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16235:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  16236: fi
1.27      millert  16237: ac_res=`eval echo '${'$as_ac_var'}'`
                   16238:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16239: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16240: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16241:   cat >>confdefs.h <<_ACEOF
                   16242: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16243: _ACEOF
1.39      millert  16244:  SKIP_SETREUID=yes
1.23      millert  16245: fi
1.27      millert  16246: done
1.23      millert  16247:
                   16248: fi
1.39      millert  16249: if test -z "$SKIP_SETREUID"; then
1.25      millert  16250:
1.39      millert  16251: for ac_func in setreuid
1.25      millert  16252: do
                   16253: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16254: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16255: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16256: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  16257:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16258: else
1.23      millert  16259:   cat >conftest.$ac_ext <<_ACEOF
                   16260: /* confdefs.h.  */
                   16261: _ACEOF
                   16262: cat confdefs.h >>conftest.$ac_ext
                   16263: cat >>conftest.$ac_ext <<_ACEOF
                   16264: /* end confdefs.h.  */
1.25      millert  16265: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16266:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16267: #define $ac_func innocuous_$ac_func
                   16268:
                   16269: /* System header to define __stub macros and hopefully few prototypes,
                   16270:     which can conflict with char $ac_func (); below.
                   16271:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16272:     <limits.h> exists even on freestanding compilers.  */
                   16273:
                   16274: #ifdef __STDC__
                   16275: # include <limits.h>
                   16276: #else
                   16277: # include <assert.h>
                   16278: #endif
                   16279:
                   16280: #undef $ac_func
1.23      millert  16281:
1.27      millert  16282: /* Override any GCC internal prototype to avoid an error.
                   16283:    Use char because int might match the return type of a GCC
                   16284:    builtin and then its argument prototype would still apply.  */
1.25      millert  16285: #ifdef __cplusplus
                   16286: extern "C"
                   16287: #endif
                   16288: char $ac_func ();
                   16289: /* The GNU C library defines this for functions which it implements
                   16290:     to always fail with ENOSYS.  Some functions are actually named
                   16291:     something starting with __ and the normal name is an alias.  */
1.27      millert  16292: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16293: choke me
1.23      millert  16294: #endif
                   16295:
                   16296: int
                   16297: main ()
                   16298: {
1.27      millert  16299: return $ac_func ();
1.25      millert  16300:   ;
                   16301:   return 0;
1.23      millert  16302: }
                   16303: _ACEOF
1.25      millert  16304: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16305: if { (ac_try="$ac_link"
                   16306: case "(($ac_try" in
                   16307:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16308:   *) ac_try_echo=$ac_try;;
                   16309: esac
                   16310: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16311:   (eval "$ac_link") 2>conftest.er1
1.25      millert  16312:   ac_status=$?
                   16313:   grep -v '^ *+' conftest.er1 >conftest.err
                   16314:   rm -f conftest.er1
                   16315:   cat conftest.err >&5
                   16316:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16317:   (exit $ac_status); } && {
                   16318:         test -z "$ac_c_werror_flag" ||
                   16319:         test ! -s conftest.err
                   16320:        } && test -s conftest$ac_exeext &&
                   16321:        $as_test_x conftest$ac_exeext; then
1.25      millert  16322:   eval "$as_ac_var=yes"
1.23      millert  16323: else
1.25      millert  16324:   echo "$as_me: failed program was:" >&5
1.23      millert  16325: sed 's/^/| /' conftest.$ac_ext >&5
                   16326:
1.27      millert  16327:        eval "$as_ac_var=no"
1.23      millert  16328: fi
1.27      millert  16329:
                   16330: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16331:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  16332: fi
1.27      millert  16333: ac_res=`eval echo '${'$as_ac_var'}'`
                   16334:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16335: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16336: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16337:   cat >>confdefs.h <<_ACEOF
                   16338: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  16339: _ACEOF
1.39      millert  16340:  SKIP_SETEUID=yes
1.23      millert  16341: fi
1.25      millert  16342: done
1.23      millert  16343:
1.27      millert  16344: fi
1.39      millert  16345: if test -z "$SKIP_SETEUID"; then
1.23      millert  16346:
1.39      millert  16347: for ac_func in seteuid
1.25      millert  16348: do
                   16349: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16350: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16351: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16352: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  16353:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16354: else
                   16355:   cat >conftest.$ac_ext <<_ACEOF
                   16356: /* confdefs.h.  */
                   16357: _ACEOF
                   16358: cat confdefs.h >>conftest.$ac_ext
                   16359: cat >>conftest.$ac_ext <<_ACEOF
                   16360: /* end confdefs.h.  */
1.25      millert  16361: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16362:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16363: #define $ac_func innocuous_$ac_func
                   16364:
                   16365: /* System header to define __stub macros and hopefully few prototypes,
                   16366:     which can conflict with char $ac_func (); below.
                   16367:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16368:     <limits.h> exists even on freestanding compilers.  */
                   16369:
                   16370: #ifdef __STDC__
                   16371: # include <limits.h>
                   16372: #else
                   16373: # include <assert.h>
                   16374: #endif
                   16375:
                   16376: #undef $ac_func
                   16377:
1.27      millert  16378: /* Override any GCC internal prototype to avoid an error.
                   16379:    Use char because int might match the return type of a GCC
                   16380:    builtin and then its argument prototype would still apply.  */
1.25      millert  16381: #ifdef __cplusplus
                   16382: extern "C"
                   16383: #endif
                   16384: char $ac_func ();
                   16385: /* The GNU C library defines this for functions which it implements
                   16386:     to always fail with ENOSYS.  Some functions are actually named
                   16387:     something starting with __ and the normal name is an alias.  */
1.27      millert  16388: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16389: choke me
                   16390: #endif
1.23      millert  16391:
                   16392: int
                   16393: main ()
                   16394: {
1.27      millert  16395: return $ac_func ();
1.23      millert  16396:   ;
                   16397:   return 0;
                   16398: }
                   16399: _ACEOF
1.25      millert  16400: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16401: if { (ac_try="$ac_link"
                   16402: case "(($ac_try" in
                   16403:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16404:   *) ac_try_echo=$ac_try;;
                   16405: esac
                   16406: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16407:   (eval "$ac_link") 2>conftest.er1
1.23      millert  16408:   ac_status=$?
1.25      millert  16409:   grep -v '^ *+' conftest.er1 >conftest.err
                   16410:   rm -f conftest.er1
                   16411:   cat conftest.err >&5
1.23      millert  16412:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16413:   (exit $ac_status); } && {
                   16414:         test -z "$ac_c_werror_flag" ||
                   16415:         test ! -s conftest.err
                   16416:        } && test -s conftest$ac_exeext &&
                   16417:        $as_test_x conftest$ac_exeext; then
1.25      millert  16418:   eval "$as_ac_var=yes"
1.23      millert  16419: else
                   16420:   echo "$as_me: failed program was:" >&5
                   16421: sed 's/^/| /' conftest.$ac_ext >&5
1.1       millert  16422:
1.27      millert  16423:        eval "$as_ac_var=no"
1.23      millert  16424: fi
1.27      millert  16425:
                   16426: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16427:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  16428: fi
1.27      millert  16429: ac_res=`eval echo '${'$as_ac_var'}'`
                   16430:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16431: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16432: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.23      millert  16433:   cat >>confdefs.h <<_ACEOF
1.25      millert  16434: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  16435: _ACEOF
1.25      millert  16436:
1.39      millert  16437: fi
                   16438: done
                   16439:
                   16440: fi
                   16441: if test X"$with_interfaces" != X"no"; then
                   16442:
                   16443: for ac_func in getifaddrs
1.25      millert  16444: do
                   16445: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16446: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16447: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16448: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  16449:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  16450: else
1.25      millert  16451:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16452: /* confdefs.h.  */
                   16453: _ACEOF
                   16454: cat confdefs.h >>conftest.$ac_ext
                   16455: cat >>conftest.$ac_ext <<_ACEOF
                   16456: /* end confdefs.h.  */
1.25      millert  16457: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16458:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16459: #define $ac_func innocuous_$ac_func
                   16460:
                   16461: /* System header to define __stub macros and hopefully few prototypes,
                   16462:     which can conflict with char $ac_func (); below.
                   16463:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16464:     <limits.h> exists even on freestanding compilers.  */
                   16465:
                   16466: #ifdef __STDC__
                   16467: # include <limits.h>
                   16468: #else
                   16469: # include <assert.h>
                   16470: #endif
                   16471:
                   16472: #undef $ac_func
1.9       millert  16473:
1.27      millert  16474: /* Override any GCC internal prototype to avoid an error.
                   16475:    Use char because int might match the return type of a GCC
                   16476:    builtin and then its argument prototype would still apply.  */
1.23      millert  16477: #ifdef __cplusplus
                   16478: extern "C"
                   16479: #endif
1.25      millert  16480: char $ac_func ();
                   16481: /* The GNU C library defines this for functions which it implements
                   16482:     to always fail with ENOSYS.  Some functions are actually named
                   16483:     something starting with __ and the normal name is an alias.  */
1.27      millert  16484: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16485: choke me
                   16486: #endif
                   16487:
1.16      millert  16488: int
                   16489: main ()
                   16490: {
1.27      millert  16491: return $ac_func ();
1.16      millert  16492:   ;
                   16493:   return 0;
                   16494: }
1.9       millert  16495: _ACEOF
1.23      millert  16496: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16497: if { (ac_try="$ac_link"
                   16498: case "(($ac_try" in
                   16499:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16500:   *) ac_try_echo=$ac_try;;
                   16501: esac
                   16502: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16503:   (eval "$ac_link") 2>conftest.er1
1.16      millert  16504:   ac_status=$?
1.25      millert  16505:   grep -v '^ *+' conftest.er1 >conftest.err
                   16506:   rm -f conftest.er1
                   16507:   cat conftest.err >&5
1.16      millert  16508:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16509:   (exit $ac_status); } && {
                   16510:         test -z "$ac_c_werror_flag" ||
                   16511:         test ! -s conftest.err
                   16512:        } && test -s conftest$ac_exeext &&
                   16513:        $as_test_x conftest$ac_exeext; then
1.25      millert  16514:   eval "$as_ac_var=yes"
1.1       millert  16515: else
1.9       millert  16516:   echo "$as_me: failed program was:" >&5
1.16      millert  16517: sed 's/^/| /' conftest.$ac_ext >&5
                   16518:
1.27      millert  16519:        eval "$as_ac_var=no"
1.25      millert  16520: fi
1.27      millert  16521:
                   16522: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16523:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  16524: fi
1.27      millert  16525: ac_res=`eval echo '${'$as_ac_var'}'`
                   16526:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16527: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16528: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16529:   cat >>confdefs.h <<_ACEOF
                   16530: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16531: _ACEOF
                   16532:
1.39      millert  16533: for ac_func in freeifaddrs
1.25      millert  16534: do
                   16535: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16536: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16537: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16538: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  16539:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16540: else
                   16541:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16542: /* confdefs.h.  */
                   16543: _ACEOF
                   16544: cat confdefs.h >>conftest.$ac_ext
                   16545: cat >>conftest.$ac_ext <<_ACEOF
                   16546: /* end confdefs.h.  */
1.25      millert  16547: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16548:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16549: #define $ac_func innocuous_$ac_func
                   16550:
                   16551: /* System header to define __stub macros and hopefully few prototypes,
                   16552:     which can conflict with char $ac_func (); below.
                   16553:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16554:     <limits.h> exists even on freestanding compilers.  */
                   16555:
                   16556: #ifdef __STDC__
                   16557: # include <limits.h>
                   16558: #else
                   16559: # include <assert.h>
                   16560: #endif
                   16561:
                   16562: #undef $ac_func
1.9       millert  16563:
1.27      millert  16564: /* Override any GCC internal prototype to avoid an error.
                   16565:    Use char because int might match the return type of a GCC
                   16566:    builtin and then its argument prototype would still apply.  */
1.23      millert  16567: #ifdef __cplusplus
                   16568: extern "C"
                   16569: #endif
1.25      millert  16570: char $ac_func ();
                   16571: /* The GNU C library defines this for functions which it implements
                   16572:     to always fail with ENOSYS.  Some functions are actually named
                   16573:     something starting with __ and the normal name is an alias.  */
1.27      millert  16574: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16575: choke me
                   16576: #endif
                   16577:
1.23      millert  16578: int
                   16579: main ()
                   16580: {
1.27      millert  16581: return $ac_func ();
1.23      millert  16582:   ;
                   16583:   return 0;
                   16584: }
1.9       millert  16585: _ACEOF
1.23      millert  16586: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16587: if { (ac_try="$ac_link"
                   16588: case "(($ac_try" in
                   16589:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16590:   *) ac_try_echo=$ac_try;;
                   16591: esac
                   16592: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16593:   (eval "$ac_link") 2>conftest.er1
1.23      millert  16594:   ac_status=$?
1.25      millert  16595:   grep -v '^ *+' conftest.er1 >conftest.err
                   16596:   rm -f conftest.er1
                   16597:   cat conftest.err >&5
1.23      millert  16598:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16599:   (exit $ac_status); } && {
                   16600:         test -z "$ac_c_werror_flag" ||
                   16601:         test ! -s conftest.err
                   16602:        } && test -s conftest$ac_exeext &&
                   16603:        $as_test_x conftest$ac_exeext; then
1.25      millert  16604:   eval "$as_ac_var=yes"
1.1       millert  16605: else
1.23      millert  16606:   echo "$as_me: failed program was:" >&5
                   16607: sed 's/^/| /' conftest.$ac_ext >&5
                   16608:
1.27      millert  16609:        eval "$as_ac_var=no"
1.25      millert  16610: fi
1.27      millert  16611:
                   16612: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16613:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  16614: fi
1.27      millert  16615: ac_res=`eval echo '${'$as_ac_var'}'`
                   16616:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16617: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16618: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16619:   cat >>confdefs.h <<_ACEOF
                   16620: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16621: _ACEOF
                   16622:
1.39      millert  16623: fi
                   16624: done
1.27      millert  16625:
1.23      millert  16626: fi
1.25      millert  16627: done
1.27      millert  16628:
1.1       millert  16629: fi
1.39      millert  16630: if test -z "$BROKEN_GETCWD"; then
1.1       millert  16631:
1.39      millert  16632: for ac_func in getcwd
1.25      millert  16633: do
                   16634: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16635: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16636: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16637: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  16638:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16639: else
1.25      millert  16640:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16641: /* confdefs.h.  */
                   16642: _ACEOF
                   16643: cat confdefs.h >>conftest.$ac_ext
                   16644: cat >>conftest.$ac_ext <<_ACEOF
                   16645: /* end confdefs.h.  */
1.25      millert  16646: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16647:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16648: #define $ac_func innocuous_$ac_func
                   16649:
                   16650: /* System header to define __stub macros and hopefully few prototypes,
                   16651:     which can conflict with char $ac_func (); below.
                   16652:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16653:     <limits.h> exists even on freestanding compilers.  */
                   16654:
                   16655: #ifdef __STDC__
                   16656: # include <limits.h>
                   16657: #else
                   16658: # include <assert.h>
                   16659: #endif
                   16660:
                   16661: #undef $ac_func
1.9       millert  16662:
1.27      millert  16663: /* Override any GCC internal prototype to avoid an error.
                   16664:    Use char because int might match the return type of a GCC
                   16665:    builtin and then its argument prototype would still apply.  */
1.23      millert  16666: #ifdef __cplusplus
                   16667: extern "C"
                   16668: #endif
1.25      millert  16669: char $ac_func ();
                   16670: /* The GNU C library defines this for functions which it implements
                   16671:     to always fail with ENOSYS.  Some functions are actually named
                   16672:     something starting with __ and the normal name is an alias.  */
1.27      millert  16673: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16674: choke me
                   16675: #endif
                   16676:
1.23      millert  16677: int
                   16678: main ()
                   16679: {
1.27      millert  16680: return $ac_func ();
1.23      millert  16681:   ;
                   16682:   return 0;
                   16683: }
1.9       millert  16684: _ACEOF
1.23      millert  16685: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16686: if { (ac_try="$ac_link"
                   16687: case "(($ac_try" in
                   16688:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16689:   *) ac_try_echo=$ac_try;;
                   16690: esac
                   16691: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16692:   (eval "$ac_link") 2>conftest.er1
1.23      millert  16693:   ac_status=$?
1.25      millert  16694:   grep -v '^ *+' conftest.er1 >conftest.err
                   16695:   rm -f conftest.er1
                   16696:   cat conftest.err >&5
1.23      millert  16697:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16698:   (exit $ac_status); } && {
                   16699:         test -z "$ac_c_werror_flag" ||
                   16700:         test ! -s conftest.err
                   16701:        } && test -s conftest$ac_exeext &&
                   16702:        $as_test_x conftest$ac_exeext; then
1.25      millert  16703:   eval "$as_ac_var=yes"
1.1       millert  16704: else
1.23      millert  16705:   echo "$as_me: failed program was:" >&5
                   16706: sed 's/^/| /' conftest.$ac_ext >&5
1.1       millert  16707:
1.27      millert  16708:        eval "$as_ac_var=no"
1.25      millert  16709: fi
1.27      millert  16710:
                   16711: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16712:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  16713: fi
1.27      millert  16714: ac_res=`eval echo '${'$as_ac_var'}'`
                   16715:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16716: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16717: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16718:   cat >>confdefs.h <<_ACEOF
                   16719: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16720: _ACEOF
1.39      millert  16721:
                   16722: else
                   16723:   case " $LIBOBJS " in
                   16724:   *" $ac_func.$ac_objext "* ) ;;
                   16725:   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
                   16726:  ;;
                   16727: esac
                   16728:
                   16729: fi
                   16730: done
                   16731:
                   16732:
                   16733: fi
                   16734:
                   16735: for ac_func in glob
                   16736: do
                   16737: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   16738: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16739: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16740: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
                   16741:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16742: else
                   16743:   cat >conftest.$ac_ext <<_ACEOF
                   16744: /* confdefs.h.  */
                   16745: _ACEOF
                   16746: cat confdefs.h >>conftest.$ac_ext
                   16747: cat >>conftest.$ac_ext <<_ACEOF
                   16748: /* end confdefs.h.  */
                   16749: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16750:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16751: #define $ac_func innocuous_$ac_func
                   16752:
                   16753: /* System header to define __stub macros and hopefully few prototypes,
                   16754:     which can conflict with char $ac_func (); below.
                   16755:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16756:     <limits.h> exists even on freestanding compilers.  */
                   16757:
                   16758: #ifdef __STDC__
                   16759: # include <limits.h>
                   16760: #else
                   16761: # include <assert.h>
                   16762: #endif
                   16763:
                   16764: #undef $ac_func
                   16765:
                   16766: /* Override any GCC internal prototype to avoid an error.
                   16767:    Use char because int might match the return type of a GCC
                   16768:    builtin and then its argument prototype would still apply.  */
                   16769: #ifdef __cplusplus
                   16770: extern "C"
                   16771: #endif
                   16772: char $ac_func ();
                   16773: /* The GNU C library defines this for functions which it implements
                   16774:     to always fail with ENOSYS.  Some functions are actually named
                   16775:     something starting with __ and the normal name is an alias.  */
                   16776: #if defined __stub_$ac_func || defined __stub___$ac_func
                   16777: choke me
                   16778: #endif
                   16779:
                   16780: int
                   16781: main ()
                   16782: {
                   16783: return $ac_func ();
                   16784:   ;
                   16785:   return 0;
                   16786: }
                   16787: _ACEOF
                   16788: rm -f conftest.$ac_objext conftest$ac_exeext
                   16789: if { (ac_try="$ac_link"
                   16790: case "(($ac_try" in
                   16791:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16792:   *) ac_try_echo=$ac_try;;
                   16793: esac
                   16794: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16795:   (eval "$ac_link") 2>conftest.er1
                   16796:   ac_status=$?
                   16797:   grep -v '^ *+' conftest.er1 >conftest.err
                   16798:   rm -f conftest.er1
                   16799:   cat conftest.err >&5
                   16800:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   16801:   (exit $ac_status); } && {
                   16802:         test -z "$ac_c_werror_flag" ||
                   16803:         test ! -s conftest.err
                   16804:        } && test -s conftest$ac_exeext &&
                   16805:        $as_test_x conftest$ac_exeext; then
                   16806:   eval "$as_ac_var=yes"
                   16807: else
                   16808:   echo "$as_me: failed program was:" >&5
                   16809: sed 's/^/| /' conftest.$ac_ext >&5
                   16810:
                   16811:        eval "$as_ac_var=no"
                   16812: fi
                   16813:
                   16814: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   16815:       conftest$ac_exeext conftest.$ac_ext
                   16816: fi
                   16817: ac_res=`eval echo '${'$as_ac_var'}'`
                   16818:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16819: echo "${ECHO_T}$ac_res" >&6; }
                   16820: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16821:   cat >>confdefs.h <<_ACEOF
                   16822: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16823: _ACEOF
                   16824:  { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
                   16825: echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
                   16826: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16827: /* confdefs.h.  */
                   16828: _ACEOF
                   16829: cat confdefs.h >>conftest.$ac_ext
                   16830: cat >>conftest.$ac_ext <<_ACEOF
                   16831: /* end confdefs.h.  */
1.27      millert  16832: #include <glob.h>
1.9       millert  16833: int
                   16834: main ()
                   16835: {
1.27      millert  16836: int i = GLOB_BRACE | GLOB_TILDE; (void)i;
1.23      millert  16837:   ;
                   16838:   return 0;
1.9       millert  16839: }
                   16840: _ACEOF
1.27      millert  16841: rm -f conftest.$ac_objext
                   16842: if { (ac_try="$ac_compile"
                   16843: case "(($ac_try" in
                   16844:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16845:   *) ac_try_echo=$ac_try;;
                   16846: esac
                   16847: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16848:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  16849:   ac_status=$?
1.25      millert  16850:   grep -v '^ *+' conftest.er1 >conftest.err
                   16851:   rm -f conftest.er1
                   16852:   cat conftest.err >&5
1.16      millert  16853:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16854:   (exit $ac_status); } && {
                   16855:         test -z "$ac_c_werror_flag" ||
                   16856:         test ! -s conftest.err
                   16857:        } && test -s conftest.$ac_objext; then
                   16858:   cat >>confdefs.h <<\_ACEOF
                   16859: #define HAVE_EXTENDED_GLOB 1
                   16860: _ACEOF
1.16      millert  16861:
1.27      millert  16862:     { echo "$as_me:$LINENO: result: yes" >&5
                   16863: echo "${ECHO_T}yes" >&6; }
1.23      millert  16864: else
                   16865:   echo "$as_me: failed program was:" >&5
                   16866: sed 's/^/| /' conftest.$ac_ext >&5
                   16867:
1.27      millert  16868:        case " $LIBOBJS " in
                   16869:   *" glob.$ac_objext "* ) ;;
                   16870:   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
                   16871:  ;;
1.25      millert  16872: esac
                   16873:
1.27      millert  16874:     { echo "$as_me:$LINENO: result: no" >&5
                   16875: echo "${ECHO_T}no" >&6; }
1.25      millert  16876: fi
                   16877:
1.27      millert  16878: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  16879: else
1.27      millert  16880:   case " $LIBOBJS " in
                   16881:   *" glob.$ac_objext "* ) ;;
                   16882:   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
                   16883:  ;;
1.23      millert  16884: esac
                   16885:
                   16886: fi
1.27      millert  16887: done
1.9       millert  16888:
1.23      millert  16889:
                   16890:
1.27      millert  16891: for ac_func in lockf flock
1.25      millert  16892: do
                   16893: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16894: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16895: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16896: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  16897:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  16898: else
1.25      millert  16899:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16900: /* confdefs.h.  */
                   16901: _ACEOF
                   16902: cat confdefs.h >>conftest.$ac_ext
                   16903: cat >>conftest.$ac_ext <<_ACEOF
                   16904: /* end confdefs.h.  */
1.25      millert  16905: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   16906:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   16907: #define $ac_func innocuous_$ac_func
                   16908:
                   16909: /* System header to define __stub macros and hopefully few prototypes,
                   16910:     which can conflict with char $ac_func (); below.
                   16911:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   16912:     <limits.h> exists even on freestanding compilers.  */
                   16913:
                   16914: #ifdef __STDC__
                   16915: # include <limits.h>
                   16916: #else
                   16917: # include <assert.h>
                   16918: #endif
                   16919:
                   16920: #undef $ac_func
                   16921:
1.27      millert  16922: /* Override any GCC internal prototype to avoid an error.
                   16923:    Use char because int might match the return type of a GCC
                   16924:    builtin and then its argument prototype would still apply.  */
1.25      millert  16925: #ifdef __cplusplus
                   16926: extern "C"
                   16927: #endif
                   16928: char $ac_func ();
                   16929: /* The GNU C library defines this for functions which it implements
                   16930:     to always fail with ENOSYS.  Some functions are actually named
                   16931:     something starting with __ and the normal name is an alias.  */
1.27      millert  16932: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  16933: choke me
                   16934: #endif
                   16935:
                   16936: int
                   16937: main ()
                   16938: {
1.27      millert  16939: return $ac_func ();
1.25      millert  16940:   ;
                   16941:   return 0;
                   16942: }
1.16      millert  16943: _ACEOF
1.25      millert  16944: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  16945: if { (ac_try="$ac_link"
                   16946: case "(($ac_try" in
                   16947:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   16948:   *) ac_try_echo=$ac_try;;
                   16949: esac
                   16950: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   16951:   (eval "$ac_link") 2>conftest.er1
1.16      millert  16952:   ac_status=$?
1.25      millert  16953:   grep -v '^ *+' conftest.er1 >conftest.err
                   16954:   rm -f conftest.er1
                   16955:   cat conftest.err >&5
1.16      millert  16956:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  16957:   (exit $ac_status); } && {
                   16958:         test -z "$ac_c_werror_flag" ||
                   16959:         test ! -s conftest.err
                   16960:        } && test -s conftest$ac_exeext &&
                   16961:        $as_test_x conftest$ac_exeext; then
1.25      millert  16962:   eval "$as_ac_var=yes"
1.16      millert  16963: else
                   16964:   echo "$as_me: failed program was:" >&5
                   16965: sed 's/^/| /' conftest.$ac_ext >&5
                   16966:
1.27      millert  16967:        eval "$as_ac_var=no"
1.25      millert  16968: fi
1.27      millert  16969:
                   16970: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  16971:       conftest$ac_exeext conftest.$ac_ext
1.16      millert  16972: fi
1.27      millert  16973: ac_res=`eval echo '${'$as_ac_var'}'`
                   16974:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   16975: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  16976: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   16977:   cat >>confdefs.h <<_ACEOF
                   16978: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   16979: _ACEOF
1.27      millert  16980:  break
                   16981: fi
                   16982: done
                   16983:
1.25      millert  16984:
1.23      millert  16985:
1.27      millert  16986: for ac_func in waitpid wait3
1.25      millert  16987: do
                   16988: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  16989: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   16990: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   16991: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  16992:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   16993: else
                   16994:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  16995: /* confdefs.h.  */
                   16996: _ACEOF
                   16997: cat confdefs.h >>conftest.$ac_ext
                   16998: cat >>conftest.$ac_ext <<_ACEOF
                   16999: /* end confdefs.h.  */
1.25      millert  17000: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17001:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17002: #define $ac_func innocuous_$ac_func
                   17003:
                   17004: /* System header to define __stub macros and hopefully few prototypes,
                   17005:     which can conflict with char $ac_func (); below.
                   17006:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17007:     <limits.h> exists even on freestanding compilers.  */
                   17008:
                   17009: #ifdef __STDC__
                   17010: # include <limits.h>
                   17011: #else
                   17012: # include <assert.h>
                   17013: #endif
                   17014:
                   17015: #undef $ac_func
                   17016:
1.27      millert  17017: /* Override any GCC internal prototype to avoid an error.
                   17018:    Use char because int might match the return type of a GCC
                   17019:    builtin and then its argument prototype would still apply.  */
1.25      millert  17020: #ifdef __cplusplus
                   17021: extern "C"
                   17022: #endif
                   17023: char $ac_func ();
                   17024: /* The GNU C library defines this for functions which it implements
                   17025:     to always fail with ENOSYS.  Some functions are actually named
                   17026:     something starting with __ and the normal name is an alias.  */
1.27      millert  17027: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  17028: choke me
                   17029: #endif
                   17030:
                   17031: int
                   17032: main ()
                   17033: {
1.27      millert  17034: return $ac_func ();
1.25      millert  17035:   ;
                   17036:   return 0;
                   17037: }
1.9       millert  17038: _ACEOF
1.25      millert  17039: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17040: if { (ac_try="$ac_link"
                   17041: case "(($ac_try" in
                   17042:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17043:   *) ac_try_echo=$ac_try;;
                   17044: esac
                   17045: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17046:   (eval "$ac_link") 2>conftest.er1
1.9       millert  17047:   ac_status=$?
1.23      millert  17048:   grep -v '^ *+' conftest.er1 >conftest.err
                   17049:   rm -f conftest.er1
                   17050:   cat conftest.err >&5
1.16      millert  17051:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17052:   (exit $ac_status); } && {
                   17053:         test -z "$ac_c_werror_flag" ||
                   17054:         test ! -s conftest.err
                   17055:        } && test -s conftest$ac_exeext &&
                   17056:        $as_test_x conftest$ac_exeext; then
1.25      millert  17057:   eval "$as_ac_var=yes"
1.23      millert  17058: else
                   17059:   echo "$as_me: failed program was:" >&5
                   17060: sed 's/^/| /' conftest.$ac_ext >&5
                   17061:
1.27      millert  17062:        eval "$as_ac_var=no"
1.23      millert  17063: fi
1.27      millert  17064:
                   17065: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17066:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  17067: fi
1.27      millert  17068: ac_res=`eval echo '${'$as_ac_var'}'`
                   17069:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17070: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  17071: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.23      millert  17072:   cat >>confdefs.h <<_ACEOF
1.25      millert  17073: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  17074: _ACEOF
1.25      millert  17075:  break
                   17076: fi
                   17077: done
1.23      millert  17078:
1.16      millert  17079:
1.27      millert  17080:
                   17081: for ac_func in innetgr _innetgr
1.25      millert  17082: do
                   17083: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  17084: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17085: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17086: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  17087:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  17088: else
1.23      millert  17089:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17090: /* confdefs.h.  */
                   17091: _ACEOF
                   17092: cat confdefs.h >>conftest.$ac_ext
                   17093: cat >>conftest.$ac_ext <<_ACEOF
                   17094: /* end confdefs.h.  */
1.25      millert  17095: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17096:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17097: #define $ac_func innocuous_$ac_func
                   17098:
                   17099: /* System header to define __stub macros and hopefully few prototypes,
                   17100:     which can conflict with char $ac_func (); below.
                   17101:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17102:     <limits.h> exists even on freestanding compilers.  */
                   17103:
                   17104: #ifdef __STDC__
                   17105: # include <limits.h>
                   17106: #else
                   17107: # include <assert.h>
                   17108: #endif
                   17109:
                   17110: #undef $ac_func
                   17111:
1.27      millert  17112: /* Override any GCC internal prototype to avoid an error.
                   17113:    Use char because int might match the return type of a GCC
                   17114:    builtin and then its argument prototype would still apply.  */
1.25      millert  17115: #ifdef __cplusplus
                   17116: extern "C"
                   17117: #endif
                   17118: char $ac_func ();
                   17119: /* The GNU C library defines this for functions which it implements
                   17120:     to always fail with ENOSYS.  Some functions are actually named
                   17121:     something starting with __ and the normal name is an alias.  */
1.27      millert  17122: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  17123: choke me
                   17124: #endif
1.16      millert  17125:
                   17126: int
                   17127: main ()
                   17128: {
1.27      millert  17129: return $ac_func ();
1.16      millert  17130:   ;
                   17131:   return 0;
                   17132: }
                   17133: _ACEOF
                   17134: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17135: if { (ac_try="$ac_link"
                   17136: case "(($ac_try" in
                   17137:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17138:   *) ac_try_echo=$ac_try;;
                   17139: esac
                   17140: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17141:   (eval "$ac_link") 2>conftest.er1
1.16      millert  17142:   ac_status=$?
1.25      millert  17143:   grep -v '^ *+' conftest.er1 >conftest.err
                   17144:   rm -f conftest.er1
                   17145:   cat conftest.err >&5
1.16      millert  17146:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17147:   (exit $ac_status); } && {
                   17148:         test -z "$ac_c_werror_flag" ||
                   17149:         test ! -s conftest.err
                   17150:        } && test -s conftest$ac_exeext &&
                   17151:        $as_test_x conftest$ac_exeext; then
1.25      millert  17152:   eval "$as_ac_var=yes"
1.16      millert  17153: else
                   17154:   echo "$as_me: failed program was:" >&5
                   17155: sed 's/^/| /' conftest.$ac_ext >&5
                   17156:
1.27      millert  17157:        eval "$as_ac_var=no"
1.16      millert  17158: fi
1.27      millert  17159:
                   17160: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17161:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  17162: fi
1.27      millert  17163: ac_res=`eval echo '${'$as_ac_var'}'`
                   17164:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17165: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  17166: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17167:   cat >>confdefs.h <<_ACEOF
                   17168: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17169: _ACEOF
1.9       millert  17170:
1.27      millert  17171: for ac_func in getdomainname
                   17172: do
                   17173: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   17174: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17175: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17176: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.16      millert  17177:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17178: else
1.25      millert  17179:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17180: /* confdefs.h.  */
                   17181: _ACEOF
                   17182: cat confdefs.h >>conftest.$ac_ext
                   17183: cat >>conftest.$ac_ext <<_ACEOF
                   17184: /* end confdefs.h.  */
1.27      millert  17185: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17186:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17187: #define $ac_func innocuous_$ac_func
1.16      millert  17188:
1.27      millert  17189: /* System header to define __stub macros and hopefully few prototypes,
                   17190:     which can conflict with char $ac_func (); below.
                   17191:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17192:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  17193:
1.27      millert  17194: #ifdef __STDC__
                   17195: # include <limits.h>
                   17196: #else
                   17197: # include <assert.h>
                   17198: #endif
1.25      millert  17199:
1.27      millert  17200: #undef $ac_func
1.25      millert  17201:
1.27      millert  17202: /* Override any GCC internal prototype to avoid an error.
                   17203:    Use char because int might match the return type of a GCC
                   17204:    builtin and then its argument prototype would still apply.  */
                   17205: #ifdef __cplusplus
                   17206: extern "C"
                   17207: #endif
                   17208: char $ac_func ();
                   17209: /* The GNU C library defines this for functions which it implements
                   17210:     to always fail with ENOSYS.  Some functions are actually named
                   17211:     something starting with __ and the normal name is an alias.  */
                   17212: #if defined __stub_$ac_func || defined __stub___$ac_func
                   17213: choke me
                   17214: #endif
1.23      millert  17215:
1.25      millert  17216: int
                   17217: main ()
                   17218: {
1.27      millert  17219: return $ac_func ();
1.25      millert  17220:   ;
                   17221:   return 0;
                   17222: }
1.23      millert  17223: _ACEOF
1.25      millert  17224: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17225: if { (ac_try="$ac_link"
                   17226: case "(($ac_try" in
                   17227:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17228:   *) ac_try_echo=$ac_try;;
                   17229: esac
                   17230: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17231:   (eval "$ac_link") 2>conftest.er1
1.23      millert  17232:   ac_status=$?
                   17233:   grep -v '^ *+' conftest.er1 >conftest.err
                   17234:   rm -f conftest.er1
                   17235:   cat conftest.err >&5
                   17236:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17237:   (exit $ac_status); } && {
                   17238:         test -z "$ac_c_werror_flag" ||
                   17239:         test ! -s conftest.err
                   17240:        } && test -s conftest$ac_exeext &&
                   17241:        $as_test_x conftest$ac_exeext; then
                   17242:   eval "$as_ac_var=yes"
1.23      millert  17243: else
                   17244:   echo "$as_me: failed program was:" >&5
                   17245: sed 's/^/| /' conftest.$ac_ext >&5
                   17246:
1.27      millert  17247:        eval "$as_ac_var=no"
1.25      millert  17248: fi
1.27      millert  17249:
                   17250: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17251:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  17252: fi
1.27      millert  17253: ac_res=`eval echo '${'$as_ac_var'}'`
                   17254:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17255: echo "${ECHO_T}$ac_res" >&6; }
                   17256: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17257:   cat >>confdefs.h <<_ACEOF
                   17258: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16      millert  17259: _ACEOF
1.1       millert  17260:
1.27      millert  17261: fi
                   17262: done
                   17263:  break
                   17264: fi
                   17265: done
1.25      millert  17266:
                   17267:
1.37      millert  17268: for ac_func in utimes
1.1       millert  17269: do
1.25      millert  17270: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  17271: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17272: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17273: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  17274:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.16      millert  17275: else
1.25      millert  17276:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17277: /* confdefs.h.  */
                   17278: _ACEOF
                   17279: cat confdefs.h >>conftest.$ac_ext
                   17280: cat >>conftest.$ac_ext <<_ACEOF
                   17281: /* end confdefs.h.  */
1.25      millert  17282: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17283:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17284: #define $ac_func innocuous_$ac_func
                   17285:
                   17286: /* System header to define __stub macros and hopefully few prototypes,
                   17287:     which can conflict with char $ac_func (); below.
                   17288:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17289:     <limits.h> exists even on freestanding compilers.  */
                   17290:
                   17291: #ifdef __STDC__
                   17292: # include <limits.h>
                   17293: #else
                   17294: # include <assert.h>
                   17295: #endif
                   17296:
                   17297: #undef $ac_func
                   17298:
1.27      millert  17299: /* Override any GCC internal prototype to avoid an error.
                   17300:    Use char because int might match the return type of a GCC
                   17301:    builtin and then its argument prototype would still apply.  */
1.25      millert  17302: #ifdef __cplusplus
                   17303: extern "C"
                   17304: #endif
                   17305: char $ac_func ();
                   17306: /* The GNU C library defines this for functions which it implements
                   17307:     to always fail with ENOSYS.  Some functions are actually named
                   17308:     something starting with __ and the normal name is an alias.  */
1.27      millert  17309: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  17310: choke me
                   17311: #endif
                   17312:
                   17313: int
                   17314: main ()
                   17315: {
1.27      millert  17316: return $ac_func ();
1.25      millert  17317:   ;
                   17318:   return 0;
                   17319: }
1.16      millert  17320: _ACEOF
1.25      millert  17321: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17322: if { (ac_try="$ac_link"
                   17323: case "(($ac_try" in
                   17324:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17325:   *) ac_try_echo=$ac_try;;
                   17326: esac
                   17327: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17328:   (eval "$ac_link") 2>conftest.er1
1.16      millert  17329:   ac_status=$?
1.25      millert  17330:   grep -v '^ *+' conftest.er1 >conftest.err
                   17331:   rm -f conftest.er1
                   17332:   cat conftest.err >&5
1.16      millert  17333:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17334:   (exit $ac_status); } && {
                   17335:         test -z "$ac_c_werror_flag" ||
                   17336:         test ! -s conftest.err
                   17337:        } && test -s conftest$ac_exeext &&
                   17338:        $as_test_x conftest$ac_exeext; then
1.25      millert  17339:   eval "$as_ac_var=yes"
1.9       millert  17340: else
1.16      millert  17341:   echo "$as_me: failed program was:" >&5
                   17342: sed 's/^/| /' conftest.$ac_ext >&5
                   17343:
1.27      millert  17344:        eval "$as_ac_var=no"
1.25      millert  17345: fi
1.27      millert  17346:
                   17347: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17348:       conftest$ac_exeext conftest.$ac_ext
                   17349: fi
1.27      millert  17350: ac_res=`eval echo '${'$as_ac_var'}'`
                   17351:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17352: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  17353: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17354:   cat >>confdefs.h <<_ACEOF
                   17355: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17356: _ACEOF
                   17357:
1.37      millert  17358:
                   17359: for ac_func in futimes futimesat
                   17360: do
                   17361: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   17362: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17363: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17364: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  17365:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17366: else
1.37      millert  17367:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17368: /* confdefs.h.  */
                   17369: _ACEOF
                   17370: cat confdefs.h >>conftest.$ac_ext
                   17371: cat >>conftest.$ac_ext <<_ACEOF
                   17372: /* end confdefs.h.  */
1.37      millert  17373: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17374:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17375: #define $ac_func innocuous_$ac_func
                   17376:
                   17377: /* System header to define __stub macros and hopefully few prototypes,
                   17378:     which can conflict with char $ac_func (); below.
                   17379:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17380:     <limits.h> exists even on freestanding compilers.  */
                   17381:
                   17382: #ifdef __STDC__
                   17383: # include <limits.h>
                   17384: #else
                   17385: # include <assert.h>
                   17386: #endif
                   17387:
                   17388: #undef $ac_func
1.25      millert  17389:
1.27      millert  17390: /* Override any GCC internal prototype to avoid an error.
                   17391:    Use char because int might match the return type of a GCC
                   17392:    builtin and then its argument prototype would still apply.  */
1.25      millert  17393: #ifdef __cplusplus
                   17394: extern "C"
                   17395: #endif
1.37      millert  17396: char $ac_func ();
                   17397: /* The GNU C library defines this for functions which it implements
                   17398:     to always fail with ENOSYS.  Some functions are actually named
                   17399:     something starting with __ and the normal name is an alias.  */
                   17400: #if defined __stub_$ac_func || defined __stub___$ac_func
                   17401: choke me
                   17402: #endif
                   17403:
1.25      millert  17404: int
                   17405: main ()
                   17406: {
1.37      millert  17407: return $ac_func ();
1.25      millert  17408:   ;
                   17409:   return 0;
                   17410: }
1.9       millert  17411: _ACEOF
1.25      millert  17412: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17413: if { (ac_try="$ac_link"
                   17414: case "(($ac_try" in
                   17415:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17416:   *) ac_try_echo=$ac_try;;
                   17417: esac
                   17418: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17419:   (eval "$ac_link") 2>conftest.er1
1.9       millert  17420:   ac_status=$?
1.16      millert  17421:   grep -v '^ *+' conftest.er1 >conftest.err
1.9       millert  17422:   rm -f conftest.er1
                   17423:   cat conftest.err >&5
1.16      millert  17424:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17425:   (exit $ac_status); } && {
                   17426:         test -z "$ac_c_werror_flag" ||
                   17427:         test ! -s conftest.err
                   17428:        } && test -s conftest$ac_exeext &&
                   17429:        $as_test_x conftest$ac_exeext; then
1.37      millert  17430:   eval "$as_ac_var=yes"
1.1       millert  17431: else
1.9       millert  17432:   echo "$as_me: failed program was:" >&5
1.16      millert  17433: sed 's/^/| /' conftest.$ac_ext >&5
                   17434:
1.37      millert  17435:        eval "$as_ac_var=no"
1.1       millert  17436: fi
1.27      millert  17437:
                   17438: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17439:       conftest$ac_exeext conftest.$ac_ext
1.16      millert  17440: fi
1.37      millert  17441: ac_res=`eval echo '${'$as_ac_var'}'`
                   17442:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17443: echo "${ECHO_T}$ac_res" >&6; }
                   17444: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17445:   cat >>confdefs.h <<_ACEOF
                   17446: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17447: _ACEOF
                   17448:  break
                   17449: fi
                   17450: done
                   17451:
                   17452: else
                   17453:
                   17454: for ac_func in futime
                   17455: do
                   17456: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   17457: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17458: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17459: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.18      millert  17460:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17461: else
1.25      millert  17462:   cat >conftest.$ac_ext <<_ACEOF
1.18      millert  17463: /* confdefs.h.  */
                   17464: _ACEOF
                   17465: cat confdefs.h >>conftest.$ac_ext
                   17466: cat >>conftest.$ac_ext <<_ACEOF
                   17467: /* end confdefs.h.  */
1.37      millert  17468: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17469:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17470: #define $ac_func innocuous_$ac_func
                   17471:
                   17472: /* System header to define __stub macros and hopefully few prototypes,
                   17473:     which can conflict with char $ac_func (); below.
                   17474:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17475:     <limits.h> exists even on freestanding compilers.  */
                   17476:
                   17477: #ifdef __STDC__
                   17478: # include <limits.h>
                   17479: #else
                   17480: # include <assert.h>
                   17481: #endif
                   17482:
                   17483: #undef $ac_func
                   17484:
                   17485: /* Override any GCC internal prototype to avoid an error.
                   17486:    Use char because int might match the return type of a GCC
                   17487:    builtin and then its argument prototype would still apply.  */
                   17488: #ifdef __cplusplus
                   17489: extern "C"
                   17490: #endif
                   17491: char $ac_func ();
                   17492: /* The GNU C library defines this for functions which it implements
                   17493:     to always fail with ENOSYS.  Some functions are actually named
                   17494:     something starting with __ and the normal name is an alias.  */
                   17495: #if defined __stub_$ac_func || defined __stub___$ac_func
                   17496: choke me
                   17497: #endif
                   17498:
                   17499: int
                   17500: main ()
                   17501: {
                   17502: return $ac_func ();
                   17503:   ;
                   17504:   return 0;
                   17505: }
1.18      millert  17506: _ACEOF
1.37      millert  17507: rm -f conftest.$ac_objext conftest$ac_exeext
                   17508: if { (ac_try="$ac_link"
1.27      millert  17509: case "(($ac_try" in
                   17510:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17511:   *) ac_try_echo=$ac_try;;
                   17512: esac
                   17513: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  17514:   (eval "$ac_link") 2>conftest.er1
1.18      millert  17515:   ac_status=$?
1.25      millert  17516:   grep -v '^ *+' conftest.er1 >conftest.err
                   17517:   rm -f conftest.er1
                   17518:   cat conftest.err >&5
1.18      millert  17519:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37      millert  17520:   (exit $ac_status); } && {
                   17521:         test -z "$ac_c_werror_flag" ||
1.27      millert  17522:         test ! -s conftest.err
1.37      millert  17523:        } && test -s conftest$ac_exeext &&
                   17524:        $as_test_x conftest$ac_exeext; then
                   17525:   eval "$as_ac_var=yes"
1.23      millert  17526: else
1.25      millert  17527:   echo "$as_me: failed program was:" >&5
                   17528: sed 's/^/| /' conftest.$ac_ext >&5
                   17529:
1.37      millert  17530:        eval "$as_ac_var=no"
1.23      millert  17531: fi
1.27      millert  17532:
1.37      millert  17533: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   17534:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  17535: fi
1.37      millert  17536: ac_res=`eval echo '${'$as_ac_var'}'`
                   17537:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17538: echo "${ECHO_T}$ac_res" >&6; }
                   17539: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17540:   cat >>confdefs.h <<_ACEOF
                   17541: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  17542: _ACEOF
1.37      millert  17543:
                   17544: fi
                   17545: done
                   17546:  case " $LIBOBJS " in
                   17547:   *" utimes.$ac_objext "* ) ;;
                   17548:   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
                   17549:  ;;
                   17550: esac
                   17551:
                   17552: fi
                   17553: done
                   17554:
                   17555: { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
                   17556: echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
                   17557: if test "${sudo_cv_func_fnmatch+set}" = set; then
                   17558:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17559: else
                   17560:   rm -f conftestdata; > conftestdata
                   17561: if test "$cross_compiling" = yes; then
                   17562:   sudo_cv_func_fnmatch=no
1.27      millert  17563: else
1.37      millert  17564:   cat >conftest.$ac_ext <<_ACEOF
                   17565: /* confdefs.h.  */
                   17566: _ACEOF
                   17567: cat confdefs.h >>conftest.$ac_ext
                   17568: cat >>conftest.$ac_ext <<_ACEOF
                   17569: /* end confdefs.h.  */
                   17570: #include <fnmatch.h>
                   17571: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
                   17572: _ACEOF
                   17573: rm -f conftest$ac_exeext
                   17574: if { (ac_try="$ac_link"
                   17575: case "(($ac_try" in
                   17576:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17577:   *) ac_try_echo=$ac_try;;
                   17578: esac
                   17579: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17580:   (eval "$ac_link") 2>&5
                   17581:   ac_status=$?
                   17582:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17583:   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
                   17584:   { (case "(($ac_try" in
                   17585:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17586:   *) ac_try_echo=$ac_try;;
1.27      millert  17587: esac
1.37      millert  17588: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17589:   (eval "$ac_try") 2>&5
                   17590:   ac_status=$?
                   17591:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   17592:   (exit $ac_status); }; }; then
                   17593:   sudo_cv_func_fnmatch=yes
                   17594: else
                   17595:   echo "$as_me: program exited with status $ac_status" >&5
                   17596: echo "$as_me: failed program was:" >&5
                   17597: sed 's/^/| /' conftest.$ac_ext >&5
                   17598:
                   17599: ( exit $ac_status )
                   17600: sudo_cv_func_fnmatch=no
                   17601: fi
                   17602: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
                   17603: fi
                   17604:
1.25      millert  17605:
1.37      millert  17606: rm -f core core.* *.core
1.23      millert  17607: fi
                   17608:
1.37      millert  17609: { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
                   17610: echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
                   17611: if test $sudo_cv_func_fnmatch = yes; then
                   17612:   cat >>confdefs.h <<\_ACEOF
                   17613: #define HAVE_FNMATCH 1
                   17614: _ACEOF
1.23      millert  17615:
1.27      millert  17616: else
                   17617:   case " $LIBOBJS " in
1.37      millert  17618:   *" fnmatch.$ac_objext "* ) ;;
                   17619:   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
1.27      millert  17620:  ;;
                   17621: esac
                   17622:
                   17623: fi
                   17624:
1.37      millert  17625: { echo "$as_me:$LINENO: checking for isblank" >&5
                   17626: echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
                   17627: if test "${sudo_cv_func_isblank+set}" = set; then
1.23      millert  17628:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17629: else
                   17630:   cat >conftest.$ac_ext <<_ACEOF
                   17631: /* confdefs.h.  */
                   17632: _ACEOF
                   17633: cat confdefs.h >>conftest.$ac_ext
                   17634: cat >>conftest.$ac_ext <<_ACEOF
                   17635: /* end confdefs.h.  */
1.37      millert  17636: #include <ctype.h>
1.23      millert  17637: int
                   17638: main ()
                   17639: {
1.37      millert  17640: return (isblank('a'));
1.23      millert  17641:   ;
                   17642:   return 0;
                   17643: }
                   17644: _ACEOF
1.25      millert  17645: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17646: if { (ac_try="$ac_link"
                   17647: case "(($ac_try" in
                   17648:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17649:   *) ac_try_echo=$ac_try;;
                   17650: esac
                   17651: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17652:   (eval "$ac_link") 2>conftest.er1
1.23      millert  17653:   ac_status=$?
1.25      millert  17654:   grep -v '^ *+' conftest.er1 >conftest.err
                   17655:   rm -f conftest.er1
                   17656:   cat conftest.err >&5
1.23      millert  17657:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17658:   (exit $ac_status); } && {
                   17659:         test -z "$ac_c_werror_flag" ||
                   17660:         test ! -s conftest.err
                   17661:        } && test -s conftest$ac_exeext &&
                   17662:        $as_test_x conftest$ac_exeext; then
1.37      millert  17663:   sudo_cv_func_isblank=yes
1.23      millert  17664: else
                   17665:   echo "$as_me: failed program was:" >&5
                   17666: sed 's/^/| /' conftest.$ac_ext >&5
                   17667:
1.37      millert  17668:        sudo_cv_func_isblank=no
1.23      millert  17669: fi
1.27      millert  17670:
                   17671: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17672:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  17673: fi
1.37      millert  17674: { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
                   17675: echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
                   17676:
                   17677:   if test "$sudo_cv_func_isblank" = "yes"; then
                   17678:
                   17679: cat >>confdefs.h <<\_ACEOF
                   17680: #define HAVE_ISBLANK 1
1.25      millert  17681: _ACEOF
                   17682:
1.37      millert  17683:   else
                   17684:     case " $LIBOBJS " in
                   17685:   *" isblank.$ac_objext "* ) ;;
                   17686:   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
                   17687:  ;;
                   17688: esac
                   17689:
                   17690:   fi
                   17691:
                   17692:
                   17693:
1.23      millert  17694:
1.37      millert  17695:
                   17696:
                   17697:
                   17698: for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
1.25      millert  17699: do
                   17700: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  17701: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17702: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17703: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.18      millert  17704:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17705: else
1.23      millert  17706:   cat >conftest.$ac_ext <<_ACEOF
                   17707: /* confdefs.h.  */
                   17708: _ACEOF
                   17709: cat confdefs.h >>conftest.$ac_ext
                   17710: cat >>conftest.$ac_ext <<_ACEOF
                   17711: /* end confdefs.h.  */
1.25      millert  17712: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17713:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17714: #define $ac_func innocuous_$ac_func
                   17715:
                   17716: /* System header to define __stub macros and hopefully few prototypes,
                   17717:     which can conflict with char $ac_func (); below.
                   17718:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17719:     <limits.h> exists even on freestanding compilers.  */
                   17720:
                   17721: #ifdef __STDC__
                   17722: # include <limits.h>
                   17723: #else
                   17724: # include <assert.h>
                   17725: #endif
                   17726:
                   17727: #undef $ac_func
                   17728:
1.27      millert  17729: /* Override any GCC internal prototype to avoid an error.
                   17730:    Use char because int might match the return type of a GCC
                   17731:    builtin and then its argument prototype would still apply.  */
1.25      millert  17732: #ifdef __cplusplus
                   17733: extern "C"
                   17734: #endif
                   17735: char $ac_func ();
                   17736: /* The GNU C library defines this for functions which it implements
                   17737:     to always fail with ENOSYS.  Some functions are actually named
                   17738:     something starting with __ and the normal name is an alias.  */
1.27      millert  17739: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  17740: choke me
                   17741: #endif
1.23      millert  17742:
1.25      millert  17743: int
                   17744: main ()
                   17745: {
1.27      millert  17746: return $ac_func ();
1.25      millert  17747:   ;
                   17748:   return 0;
                   17749: }
1.23      millert  17750: _ACEOF
1.25      millert  17751: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  17752: if { (ac_try="$ac_link"
                   17753: case "(($ac_try" in
                   17754:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17755:   *) ac_try_echo=$ac_try;;
                   17756: esac
                   17757: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17758:   (eval "$ac_link") 2>conftest.er1
1.25      millert  17759:   ac_status=$?
                   17760:   grep -v '^ *+' conftest.er1 >conftest.err
                   17761:   rm -f conftest.er1
                   17762:   cat conftest.err >&5
                   17763:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17764:   (exit $ac_status); } && {
                   17765:         test -z "$ac_c_werror_flag" ||
                   17766:         test ! -s conftest.err
                   17767:        } && test -s conftest$ac_exeext &&
                   17768:        $as_test_x conftest$ac_exeext; then
1.25      millert  17769:   eval "$as_ac_var=yes"
1.23      millert  17770: else
1.25      millert  17771:   echo "$as_me: failed program was:" >&5
                   17772: sed 's/^/| /' conftest.$ac_ext >&5
                   17773:
1.27      millert  17774:        eval "$as_ac_var=no"
1.25      millert  17775: fi
1.27      millert  17776:
                   17777: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  17778:       conftest$ac_exeext conftest.$ac_ext
                   17779: fi
1.27      millert  17780: ac_res=`eval echo '${'$as_ac_var'}'`
                   17781:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17782: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  17783: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17784:   cat >>confdefs.h <<_ACEOF
                   17785: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   17786: _ACEOF
1.37      millert  17787:
                   17788: else
                   17789:   case " $LIBOBJS " in
                   17790:   *" $ac_func.$ac_objext "* ) ;;
                   17791:   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
                   17792:  ;;
                   17793: esac
                   17794:
1.23      millert  17795: fi
1.25      millert  17796: done
                   17797:
1.23      millert  17798:
1.37      millert  17799:
                   17800: for ac_func in closefrom
1.25      millert  17801: do
                   17802: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  17803: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17804: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17805: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23      millert  17806:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17807: else
                   17808:   cat >conftest.$ac_ext <<_ACEOF
                   17809: /* confdefs.h.  */
1.18      millert  17810: _ACEOF
1.23      millert  17811: cat confdefs.h >>conftest.$ac_ext
                   17812: cat >>conftest.$ac_ext <<_ACEOF
                   17813: /* end confdefs.h.  */
1.25      millert  17814: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   17815:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   17816: #define $ac_func innocuous_$ac_func
                   17817:
                   17818: /* System header to define __stub macros and hopefully few prototypes,
                   17819:     which can conflict with char $ac_func (); below.
                   17820:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17821:     <limits.h> exists even on freestanding compilers.  */
                   17822:
                   17823: #ifdef __STDC__
                   17824: # include <limits.h>
                   17825: #else
                   17826: # include <assert.h>
                   17827: #endif
                   17828:
                   17829: #undef $ac_func
                   17830:
1.27      millert  17831: /* Override any GCC internal prototype to avoid an error.
                   17832:    Use char because int might match the return type of a GCC
                   17833:    builtin and then its argument prototype would still apply.  */
1.25      millert  17834: #ifdef __cplusplus
                   17835: extern "C"
                   17836: #endif
                   17837: char $ac_func ();
                   17838: /* The GNU C library defines this for functions which it implements
                   17839:     to always fail with ENOSYS.  Some functions are actually named
                   17840:     something starting with __ and the normal name is an alias.  */
1.27      millert  17841: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  17842: choke me
                   17843: #endif
1.18      millert  17844:
1.23      millert  17845: int
                   17846: main ()
                   17847: {
1.27      millert  17848: return $ac_func ();
1.25      millert  17849:   ;
                   17850:   return 0;
                   17851: }
1.9       millert  17852: _ACEOF
1.27      millert  17853: rm -f conftest.$ac_objext conftest$ac_exeext
                   17854: if { (ac_try="$ac_link"
                   17855: case "(($ac_try" in
                   17856:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17857:   *) ac_try_echo=$ac_try;;
                   17858: esac
                   17859: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   17860:   (eval "$ac_link") 2>conftest.er1
1.25      millert  17861:   ac_status=$?
                   17862:   grep -v '^ *+' conftest.er1 >conftest.err
                   17863:   rm -f conftest.er1
                   17864:   cat conftest.err >&5
                   17865:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  17866:   (exit $ac_status); } && {
                   17867:         test -z "$ac_c_werror_flag" ||
                   17868:         test ! -s conftest.err
                   17869:        } && test -s conftest$ac_exeext &&
                   17870:        $as_test_x conftest$ac_exeext; then
                   17871:   eval "$as_ac_var=yes"
1.1       millert  17872: else
1.25      millert  17873:   echo "$as_me: failed program was:" >&5
                   17874: sed 's/^/| /' conftest.$ac_ext >&5
                   17875:
1.27      millert  17876:        eval "$as_ac_var=no"
1.23      millert  17877: fi
1.27      millert  17878:
                   17879: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   17880:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  17881: fi
1.27      millert  17882: ac_res=`eval echo '${'$as_ac_var'}'`
                   17883:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   17884: echo "${ECHO_T}$ac_res" >&6; }
                   17885: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   17886:   cat >>confdefs.h <<_ACEOF
                   17887: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23      millert  17888: _ACEOF
1.16      millert  17889:
1.37      millert  17890: else
                   17891:   case " $LIBOBJS " in
                   17892:   *" closefrom.$ac_objext "* ) ;;
                   17893:   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
1.27      millert  17894:  ;;
                   17895: esac
1.9       millert  17896:
1.37      millert  17897:     { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
                   17898: echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
                   17899: if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
1.27      millert  17900:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   17901: else
                   17902:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17903: /* confdefs.h.  */
                   17904: _ACEOF
                   17905: cat confdefs.h >>conftest.$ac_ext
                   17906: cat >>conftest.$ac_ext <<_ACEOF
                   17907: /* end confdefs.h.  */
1.37      millert  17908:  #include <limits.h>
                   17909:          #include <fcntl.h>
                   17910:
                   17911: int
                   17912: main ()
                   17913: {
                   17914: #ifndef F_CLOSEM
                   17915:   (void) F_CLOSEM;
                   17916: #endif
                   17917:
                   17918:   ;
                   17919:   return 0;
                   17920: }
1.16      millert  17921: _ACEOF
1.37      millert  17922: rm -f conftest.$ac_objext
                   17923: if { (ac_try="$ac_compile"
1.27      millert  17924: case "(($ac_try" in
                   17925:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   17926:   *) ac_try_echo=$ac_try;;
                   17927: esac
                   17928: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  17929:   (eval "$ac_compile") 2>conftest.er1
1.25      millert  17930:   ac_status=$?
1.37      millert  17931:   grep -v '^ *+' conftest.er1 >conftest.err
                   17932:   rm -f conftest.er1
                   17933:   cat conftest.err >&5
1.25      millert  17934:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37      millert  17935:   (exit $ac_status); } && {
                   17936:         test -z "$ac_c_werror_flag" ||
                   17937:         test ! -s conftest.err
                   17938:        } && test -s conftest.$ac_objext; then
                   17939:   ac_cv_have_decl_F_CLOSEM=yes
1.1       millert  17940: else
1.37      millert  17941:   echo "$as_me: failed program was:" >&5
1.16      millert  17942: sed 's/^/| /' conftest.$ac_ext >&5
                   17943:
1.37      millert  17944:        ac_cv_have_decl_F_CLOSEM=no
1.27      millert  17945: fi
                   17946:
1.37      millert  17947: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  17948: fi
1.37      millert  17949: { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
                   17950: echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
                   17951: if test $ac_cv_have_decl_F_CLOSEM = yes; then
1.25      millert  17952:   cat >>confdefs.h <<\_ACEOF
1.37      millert  17953: #define HAVE_FCNTL_CLOSEM 1
1.25      millert  17954: _ACEOF
                   17955:
1.27      millert  17956: fi
1.16      millert  17957:
1.27      millert  17958:
1.25      millert  17959: fi
1.37      millert  17960: done
1.27      millert  17961:
                   17962:
1.37      millert  17963: for ac_func in mkstemp
1.27      millert  17964: do
                   17965: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   17966: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   17967: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   17968: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25      millert  17969:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.7       millert  17970: else
1.9       millert  17971:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  17972: /* confdefs.h.  */
                   17973: _ACEOF
                   17974: cat confdefs.h >>conftest.$ac_ext
                   17975: cat >>conftest.$ac_ext <<_ACEOF
1.25      millert  17976: /* end confdefs.h.  */
1.27      millert  17977: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
1.25      millert  17978:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1.27      millert  17979: #define $ac_func innocuous_$ac_func
1.25      millert  17980:
                   17981: /* System header to define __stub macros and hopefully few prototypes,
1.27      millert  17982:     which can conflict with char $ac_func (); below.
1.25      millert  17983:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   17984:     <limits.h> exists even on freestanding compilers.  */
                   17985:
                   17986: #ifdef __STDC__
                   17987: # include <limits.h>
                   17988: #else
                   17989: # include <assert.h>
                   17990: #endif
                   17991:
1.27      millert  17992: #undef $ac_func
1.25      millert  17993:
1.27      millert  17994: /* Override any GCC internal prototype to avoid an error.
                   17995:    Use char because int might match the return type of a GCC
                   17996:    builtin and then its argument prototype would still apply.  */
1.25      millert  17997: #ifdef __cplusplus
                   17998: extern "C"
                   17999: #endif
1.27      millert  18000: char $ac_func ();
1.25      millert  18001: /* The GNU C library defines this for functions which it implements
                   18002:     to always fail with ENOSYS.  Some functions are actually named
                   18003:     something starting with __ and the normal name is an alias.  */
1.27      millert  18004: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  18005: choke me
                   18006: #endif
                   18007:
                   18008: int
                   18009: main ()
                   18010: {
1.27      millert  18011: return $ac_func ();
1.25      millert  18012:   ;
                   18013:   return 0;
                   18014: }
                   18015: _ACEOF
                   18016: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18017: if { (ac_try="$ac_link"
                   18018: case "(($ac_try" in
                   18019:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18020:   *) ac_try_echo=$ac_try;;
                   18021: esac
                   18022: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18023:   (eval "$ac_link") 2>conftest.er1
1.25      millert  18024:   ac_status=$?
                   18025:   grep -v '^ *+' conftest.er1 >conftest.err
                   18026:   rm -f conftest.er1
                   18027:   cat conftest.err >&5
                   18028:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18029:   (exit $ac_status); } && {
                   18030:         test -z "$ac_c_werror_flag" ||
                   18031:         test ! -s conftest.err
                   18032:        } && test -s conftest$ac_exeext &&
                   18033:        $as_test_x conftest$ac_exeext; then
                   18034:   eval "$as_ac_var=yes"
1.23      millert  18035: else
1.25      millert  18036:   echo "$as_me: failed program was:" >&5
1.23      millert  18037: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  18038:
1.27      millert  18039:        eval "$as_ac_var=no"
1.23      millert  18040: fi
1.27      millert  18041:
                   18042: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18043:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  18044: fi
1.27      millert  18045: ac_res=`eval echo '${'$as_ac_var'}'`
                   18046:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   18047: echo "${ECHO_T}$ac_res" >&6; }
                   18048: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   18049:   cat >>confdefs.h <<_ACEOF
                   18050: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18051: _ACEOF
                   18052:
1.23      millert  18053: else
1.37      millert  18054:   SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
1.27      millert  18055:
                   18056:
1.37      millert  18057: for ac_func in random lrand48
1.27      millert  18058: do
                   18059: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   18060: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   18061: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   18062: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  18063:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18064: else
1.27      millert  18065:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18066: /* confdefs.h.  */
                   18067: _ACEOF
                   18068: cat confdefs.h >>conftest.$ac_ext
                   18069: cat >>conftest.$ac_ext <<_ACEOF
                   18070: /* end confdefs.h.  */
1.27      millert  18071: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   18072:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   18073: #define $ac_func innocuous_$ac_func
                   18074:
                   18075: /* System header to define __stub macros and hopefully few prototypes,
                   18076:     which can conflict with char $ac_func (); below.
                   18077:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   18078:     <limits.h> exists even on freestanding compilers.  */
                   18079:
                   18080: #ifdef __STDC__
                   18081: # include <limits.h>
                   18082: #else
                   18083: # include <assert.h>
                   18084: #endif
1.25      millert  18085:
1.27      millert  18086: #undef $ac_func
                   18087:
                   18088: /* Override any GCC internal prototype to avoid an error.
                   18089:    Use char because int might match the return type of a GCC
                   18090:    builtin and then its argument prototype would still apply.  */
1.25      millert  18091: #ifdef __cplusplus
                   18092: extern "C"
                   18093: #endif
1.27      millert  18094: char $ac_func ();
                   18095: /* The GNU C library defines this for functions which it implements
                   18096:     to always fail with ENOSYS.  Some functions are actually named
                   18097:     something starting with __ and the normal name is an alias.  */
                   18098: #if defined __stub_$ac_func || defined __stub___$ac_func
                   18099: choke me
                   18100: #endif
                   18101:
1.25      millert  18102: int
                   18103: main ()
                   18104: {
1.27      millert  18105: return $ac_func ();
1.25      millert  18106:   ;
                   18107:   return 0;
1.9       millert  18108: }
                   18109: _ACEOF
1.25      millert  18110: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18111: if { (ac_try="$ac_link"
                   18112: case "(($ac_try" in
                   18113:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18114:   *) ac_try_echo=$ac_try;;
                   18115: esac
                   18116: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18117:   (eval "$ac_link") 2>conftest.er1
1.25      millert  18118:   ac_status=$?
                   18119:   grep -v '^ *+' conftest.er1 >conftest.err
                   18120:   rm -f conftest.er1
                   18121:   cat conftest.err >&5
                   18122:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18123:   (exit $ac_status); } && {
                   18124:         test -z "$ac_c_werror_flag" ||
                   18125:         test ! -s conftest.err
                   18126:        } && test -s conftest$ac_exeext &&
                   18127:        $as_test_x conftest$ac_exeext; then
                   18128:   eval "$as_ac_var=yes"
1.7       millert  18129: else
1.25      millert  18130:   echo "$as_me: failed program was:" >&5
1.16      millert  18131: sed 's/^/| /' conftest.$ac_ext >&5
                   18132:
1.27      millert  18133:        eval "$as_ac_var=no"
1.23      millert  18134: fi
1.27      millert  18135:
                   18136: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18137:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  18138: fi
                   18139: ac_res=`eval echo '${'$as_ac_var'}'`
                   18140:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   18141: echo "${ECHO_T}$ac_res" >&6; }
                   18142: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   18143:   cat >>confdefs.h <<_ACEOF
                   18144: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18145: _ACEOF
1.37      millert  18146:  break
                   18147: fi
                   18148: done
1.27      millert  18149:
                   18150:
                   18151: fi
1.37      millert  18152: done
1.27      millert  18153:
                   18154:
                   18155:
                   18156:
                   18157:
1.37      millert  18158: for ac_func in snprintf vsnprintf asprintf vasprintf
1.27      millert  18159: do
                   18160: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   18161: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   18162: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   18163: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  18164:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18165: else
1.27      millert  18166:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18167: /* confdefs.h.  */
                   18168: _ACEOF
                   18169: cat confdefs.h >>conftest.$ac_ext
                   18170: cat >>conftest.$ac_ext <<_ACEOF
                   18171: /* end confdefs.h.  */
1.27      millert  18172: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   18173:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   18174: #define $ac_func innocuous_$ac_func
1.25      millert  18175:
1.27      millert  18176: /* System header to define __stub macros and hopefully few prototypes,
                   18177:     which can conflict with char $ac_func (); below.
                   18178:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   18179:     <limits.h> exists even on freestanding compilers.  */
                   18180:
                   18181: #ifdef __STDC__
                   18182: # include <limits.h>
                   18183: #else
                   18184: # include <assert.h>
                   18185: #endif
                   18186:
                   18187: #undef $ac_func
                   18188:
                   18189: /* Override any GCC internal prototype to avoid an error.
                   18190:    Use char because int might match the return type of a GCC
                   18191:    builtin and then its argument prototype would still apply.  */
1.23      millert  18192: #ifdef __cplusplus
                   18193: extern "C"
                   18194: #endif
1.27      millert  18195: char $ac_func ();
                   18196: /* The GNU C library defines this for functions which it implements
                   18197:     to always fail with ENOSYS.  Some functions are actually named
                   18198:     something starting with __ and the normal name is an alias.  */
                   18199: #if defined __stub_$ac_func || defined __stub___$ac_func
                   18200: choke me
                   18201: #endif
                   18202:
1.23      millert  18203: int
                   18204: main ()
                   18205: {
1.27      millert  18206: return $ac_func ();
1.23      millert  18207:   ;
                   18208:   return 0;
                   18209: }
1.9       millert  18210: _ACEOF
1.23      millert  18211: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18212: if { (ac_try="$ac_link"
                   18213: case "(($ac_try" in
                   18214:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18215:   *) ac_try_echo=$ac_try;;
                   18216: esac
                   18217: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18218:   (eval "$ac_link") 2>conftest.er1
1.23      millert  18219:   ac_status=$?
1.25      millert  18220:   grep -v '^ *+' conftest.er1 >conftest.err
                   18221:   rm -f conftest.er1
                   18222:   cat conftest.err >&5
1.23      millert  18223:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18224:   (exit $ac_status); } && {
                   18225:         test -z "$ac_c_werror_flag" ||
                   18226:         test ! -s conftest.err
                   18227:        } && test -s conftest$ac_exeext &&
                   18228:        $as_test_x conftest$ac_exeext; then
                   18229:   eval "$as_ac_var=yes"
1.1       millert  18230: else
1.23      millert  18231:   echo "$as_me: failed program was:" >&5
                   18232: sed 's/^/| /' conftest.$ac_ext >&5
                   18233:
1.27      millert  18234:        eval "$as_ac_var=no"
1.25      millert  18235: fi
1.27      millert  18236:
                   18237: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18238:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  18239: fi
1.27      millert  18240: ac_res=`eval echo '${'$as_ac_var'}'`
                   18241:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   18242: echo "${ECHO_T}$ac_res" >&6; }
                   18243: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   18244:   cat >>confdefs.h <<_ACEOF
                   18245: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   18246: _ACEOF
1.25      millert  18247:
1.27      millert  18248: else
1.37      millert  18249:   NEED_SNPRINTF=1
                   18250: fi
                   18251: done
1.1       millert  18252:
1.37      millert  18253: if test X"$ac_cv_type_struct_timespec" != X"no"; then
                   18254:     { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
                   18255: echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
                   18256: if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
1.9       millert  18257:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18258: else
1.9       millert  18259:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18260: /* confdefs.h.  */
                   18261: _ACEOF
                   18262: cat confdefs.h >>conftest.$ac_ext
                   18263: cat >>conftest.$ac_ext <<_ACEOF
                   18264: /* end confdefs.h.  */
1.37      millert  18265: $ac_includes_default
1.9       millert  18266: int
                   18267: main ()
                   18268: {
1.37      millert  18269: static struct stat ac_aggr;
                   18270: if (ac_aggr.st_mtim)
                   18271: return 0;
1.9       millert  18272:   ;
                   18273:   return 0;
                   18274: }
                   18275: _ACEOF
1.37      millert  18276: rm -f conftest.$ac_objext
                   18277: if { (ac_try="$ac_compile"
1.27      millert  18278: case "(($ac_try" in
                   18279:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18280:   *) ac_try_echo=$ac_try;;
                   18281: esac
                   18282: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  18283:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  18284:   ac_status=$?
1.25      millert  18285:   grep -v '^ *+' conftest.er1 >conftest.err
                   18286:   rm -f conftest.er1
                   18287:   cat conftest.err >&5
1.16      millert  18288:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18289:   (exit $ac_status); } && {
                   18290:         test -z "$ac_c_werror_flag" ||
                   18291:         test ! -s conftest.err
1.37      millert  18292:        } && test -s conftest.$ac_objext; then
                   18293:   ac_cv_member_struct_stat_st_mtim=yes
1.23      millert  18294: else
                   18295:   echo "$as_me: failed program was:" >&5
                   18296: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  18297:
1.37      millert  18298:        cat >conftest.$ac_ext <<_ACEOF
                   18299: /* confdefs.h.  */
                   18300: _ACEOF
                   18301: cat confdefs.h >>conftest.$ac_ext
                   18302: cat >>conftest.$ac_ext <<_ACEOF
                   18303: /* end confdefs.h.  */
1.27      millert  18304: $ac_includes_default
1.23      millert  18305: int
                   18306: main ()
                   18307: {
1.27      millert  18308: static struct stat ac_aggr;
                   18309: if (sizeof ac_aggr.st_mtim)
                   18310: return 0;
1.23      millert  18311:   ;
                   18312:   return 0;
                   18313: }
1.9       millert  18314: _ACEOF
1.27      millert  18315: rm -f conftest.$ac_objext
                   18316: if { (ac_try="$ac_compile"
                   18317: case "(($ac_try" in
                   18318:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18319:   *) ac_try_echo=$ac_try;;
                   18320: esac
                   18321: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18322:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  18323:   ac_status=$?
1.25      millert  18324:   grep -v '^ *+' conftest.er1 >conftest.err
                   18325:   rm -f conftest.er1
                   18326:   cat conftest.err >&5
1.16      millert  18327:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18328:   (exit $ac_status); } && {
                   18329:         test -z "$ac_c_werror_flag" ||
                   18330:         test ! -s conftest.err
                   18331:        } && test -s conftest.$ac_objext; then
                   18332:   ac_cv_member_struct_stat_st_mtim=yes
1.1       millert  18333: else
1.23      millert  18334:   echo "$as_me: failed program was:" >&5
1.16      millert  18335: sed 's/^/| /' conftest.$ac_ext >&5
                   18336:
1.27      millert  18337:        ac_cv_member_struct_stat_st_mtim=no
1.25      millert  18338: fi
                   18339:
1.27      millert  18340: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  18341: fi
                   18342:
1.27      millert  18343: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9       millert  18344: fi
1.27      millert  18345: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
                   18346: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
                   18347: if test $ac_cv_member_struct_stat_st_mtim = yes; then
                   18348:   cat >>confdefs.h <<\_ACEOF
                   18349: #define HAVE_ST_MTIM 1
                   18350: _ACEOF
1.25      millert  18351:
1.34      millert  18352:        { echo "$as_me:$LINENO: checking for struct stat.st_mtim.st__tim" >&5
                   18353: echo $ECHO_N "checking for struct stat.st_mtim.st__tim... $ECHO_C" >&6; }
                   18354: if test "${ac_cv_member_struct_stat_st_mtim_st__tim+set}" = set; then
                   18355:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18356: else
                   18357:   cat >conftest.$ac_ext <<_ACEOF
                   18358: /* confdefs.h.  */
                   18359: _ACEOF
                   18360: cat confdefs.h >>conftest.$ac_ext
                   18361: cat >>conftest.$ac_ext <<_ACEOF
                   18362: /* end confdefs.h.  */
                   18363: $ac_includes_default
                   18364: int
                   18365: main ()
                   18366: {
                   18367: static struct stat ac_aggr;
                   18368: if (ac_aggr.st_mtim.st__tim)
                   18369: return 0;
                   18370:   ;
                   18371:   return 0;
                   18372: }
                   18373: _ACEOF
                   18374: rm -f conftest.$ac_objext
                   18375: if { (ac_try="$ac_compile"
                   18376: case "(($ac_try" in
                   18377:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18378:   *) ac_try_echo=$ac_try;;
                   18379: esac
                   18380: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18381:   (eval "$ac_compile") 2>conftest.er1
                   18382:   ac_status=$?
                   18383:   grep -v '^ *+' conftest.er1 >conftest.err
                   18384:   rm -f conftest.er1
                   18385:   cat conftest.err >&5
                   18386:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   18387:   (exit $ac_status); } && {
                   18388:         test -z "$ac_c_werror_flag" ||
                   18389:         test ! -s conftest.err
                   18390:        } && test -s conftest.$ac_objext; then
                   18391:   ac_cv_member_struct_stat_st_mtim_st__tim=yes
                   18392: else
                   18393:   echo "$as_me: failed program was:" >&5
                   18394: sed 's/^/| /' conftest.$ac_ext >&5
                   18395:
                   18396:        cat >conftest.$ac_ext <<_ACEOF
                   18397: /* confdefs.h.  */
                   18398: _ACEOF
                   18399: cat confdefs.h >>conftest.$ac_ext
                   18400: cat >>conftest.$ac_ext <<_ACEOF
                   18401: /* end confdefs.h.  */
                   18402: $ac_includes_default
                   18403: int
                   18404: main ()
                   18405: {
                   18406: static struct stat ac_aggr;
                   18407: if (sizeof ac_aggr.st_mtim.st__tim)
                   18408: return 0;
                   18409:   ;
                   18410:   return 0;
                   18411: }
                   18412: _ACEOF
                   18413: rm -f conftest.$ac_objext
                   18414: if { (ac_try="$ac_compile"
                   18415: case "(($ac_try" in
                   18416:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18417:   *) ac_try_echo=$ac_try;;
                   18418: esac
                   18419: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18420:   (eval "$ac_compile") 2>conftest.er1
                   18421:   ac_status=$?
                   18422:   grep -v '^ *+' conftest.er1 >conftest.err
                   18423:   rm -f conftest.er1
                   18424:   cat conftest.err >&5
                   18425:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   18426:   (exit $ac_status); } && {
                   18427:         test -z "$ac_c_werror_flag" ||
                   18428:         test ! -s conftest.err
                   18429:        } && test -s conftest.$ac_objext; then
                   18430:   ac_cv_member_struct_stat_st_mtim_st__tim=yes
                   18431: else
                   18432:   echo "$as_me: failed program was:" >&5
                   18433: sed 's/^/| /' conftest.$ac_ext >&5
                   18434:
                   18435:        ac_cv_member_struct_stat_st_mtim_st__tim=no
                   18436: fi
                   18437:
                   18438: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   18439: fi
                   18440:
                   18441: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   18442: fi
                   18443: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_st__tim" >&5
                   18444: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim_st__tim" >&6; }
                   18445: if test $ac_cv_member_struct_stat_st_mtim_st__tim = yes; then
                   18446:   cat >>confdefs.h <<\_ACEOF
                   18447: #define HAVE_ST__TIM 1
                   18448: _ACEOF
                   18449:
                   18450: fi
                   18451:
1.27      millert  18452: else
                   18453:   { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
                   18454: echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
                   18455: if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
1.9       millert  18456:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18457: else
1.9       millert  18458:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18459: /* confdefs.h.  */
                   18460: _ACEOF
                   18461: cat confdefs.h >>conftest.$ac_ext
                   18462: cat >>conftest.$ac_ext <<_ACEOF
                   18463: /* end confdefs.h.  */
1.27      millert  18464: $ac_includes_default
1.23      millert  18465: int
                   18466: main ()
                   18467: {
1.27      millert  18468: static struct stat ac_aggr;
                   18469: if (ac_aggr.st_mtimespec)
                   18470: return 0;
1.23      millert  18471:   ;
                   18472:   return 0;
1.1       millert  18473: }
1.9       millert  18474: _ACEOF
1.27      millert  18475: rm -f conftest.$ac_objext
                   18476: if { (ac_try="$ac_compile"
                   18477: case "(($ac_try" in
                   18478:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18479:   *) ac_try_echo=$ac_try;;
                   18480: esac
                   18481: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18482:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  18483:   ac_status=$?
1.25      millert  18484:   grep -v '^ *+' conftest.er1 >conftest.err
                   18485:   rm -f conftest.er1
                   18486:   cat conftest.err >&5
1.16      millert  18487:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18488:   (exit $ac_status); } && {
                   18489:         test -z "$ac_c_werror_flag" ||
                   18490:         test ! -s conftest.err
                   18491:        } && test -s conftest.$ac_objext; then
                   18492:   ac_cv_member_struct_stat_st_mtimespec=yes
1.1       millert  18493: else
1.23      millert  18494:   echo "$as_me: failed program was:" >&5
1.16      millert  18495: sed 's/^/| /' conftest.$ac_ext >&5
                   18496:
1.27      millert  18497:        cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18498: /* confdefs.h.  */
                   18499: _ACEOF
                   18500: cat confdefs.h >>conftest.$ac_ext
                   18501: cat >>conftest.$ac_ext <<_ACEOF
                   18502: /* end confdefs.h.  */
1.27      millert  18503: $ac_includes_default
1.9       millert  18504: int
                   18505: main ()
                   18506: {
1.27      millert  18507: static struct stat ac_aggr;
                   18508: if (sizeof ac_aggr.st_mtimespec)
                   18509: return 0;
1.9       millert  18510:   ;
                   18511:   return 0;
                   18512: }
                   18513: _ACEOF
1.27      millert  18514: rm -f conftest.$ac_objext
                   18515: if { (ac_try="$ac_compile"
                   18516: case "(($ac_try" in
                   18517:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18518:   *) ac_try_echo=$ac_try;;
                   18519: esac
                   18520: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18521:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  18522:   ac_status=$?
1.25      millert  18523:   grep -v '^ *+' conftest.er1 >conftest.err
                   18524:   rm -f conftest.er1
                   18525:   cat conftest.err >&5
1.16      millert  18526:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18527:   (exit $ac_status); } && {
                   18528:         test -z "$ac_c_werror_flag" ||
                   18529:         test ! -s conftest.err
                   18530:        } && test -s conftest.$ac_objext; then
                   18531:   ac_cv_member_struct_stat_st_mtimespec=yes
1.16      millert  18532: else
                   18533:   echo "$as_me: failed program was:" >&5
                   18534: sed 's/^/| /' conftest.$ac_ext >&5
                   18535:
1.27      millert  18536:        ac_cv_member_struct_stat_st_mtimespec=no
                   18537: fi
                   18538:
                   18539: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   18540: fi
                   18541:
                   18542: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   18543: fi
                   18544: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
                   18545: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
                   18546: if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
                   18547:   cat >>confdefs.h <<\_ACEOF
                   18548: #define HAVE_ST_MTIMESPEC 1
                   18549: _ACEOF
                   18550:
1.16      millert  18551: fi
1.27      millert  18552:
1.16      millert  18553: fi
1.27      millert  18554:
                   18555:     { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
                   18556: echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
                   18557:     cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18558: /* confdefs.h.  */
                   18559: _ACEOF
                   18560: cat confdefs.h >>conftest.$ac_ext
                   18561: cat >>conftest.$ac_ext <<_ACEOF
                   18562: /* end confdefs.h.  */
1.27      millert  18563: #include <sys/types.h>
                   18564: #include <sys/time.h>
1.16      millert  18565: int
                   18566: main ()
                   18567: {
1.27      millert  18568: struct timespec ts1, ts2;
                   18569: ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
                   18570: #ifndef timespecsub
                   18571: #error missing timespecsub
                   18572: #endif
                   18573: timespecsub(&ts1, &ts2);
1.16      millert  18574:   ;
                   18575:   return 0;
                   18576: }
                   18577: _ACEOF
1.27      millert  18578: rm -f conftest.$ac_objext
                   18579: if { (ac_try="$ac_compile"
                   18580: case "(($ac_try" in
                   18581:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18582:   *) ac_try_echo=$ac_try;;
                   18583: esac
                   18584: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18585:   (eval "$ac_compile") 2>conftest.er1
1.16      millert  18586:   ac_status=$?
1.25      millert  18587:   grep -v '^ *+' conftest.er1 >conftest.err
                   18588:   rm -f conftest.er1
                   18589:   cat conftest.err >&5
1.16      millert  18590:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18591:   (exit $ac_status); } && {
                   18592:         test -z "$ac_c_werror_flag" ||
                   18593:         test ! -s conftest.err
                   18594:        } && test -s conftest.$ac_objext; then
                   18595:   cat >>confdefs.h <<\_ACEOF
                   18596: #define HAVE_TIMESPECSUB2 1
                   18597: _ACEOF
                   18598:
                   18599:     { echo "$as_me:$LINENO: result: yes" >&5
                   18600: echo "${ECHO_T}yes" >&6; }
1.1       millert  18601: else
1.9       millert  18602:   echo "$as_me: failed program was:" >&5
1.16      millert  18603: sed 's/^/| /' conftest.$ac_ext >&5
                   18604:
1.27      millert  18605:        { echo "$as_me:$LINENO: result: no" >&5
                   18606: echo "${ECHO_T}no" >&6; }
1.1       millert  18607: fi
1.27      millert  18608:
                   18609: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1       millert  18610: fi
1.25      millert  18611: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18612: /* confdefs.h.  */
                   18613: _ACEOF
                   18614: cat confdefs.h >>conftest.$ac_ext
                   18615: cat >>conftest.$ac_ext <<_ACEOF
                   18616: /* end confdefs.h.  */
1.27      millert  18617: #include <sys/types.h>
                   18618: #include <$ac_header_dirent>
1.16      millert  18619: int
                   18620: main ()
                   18621: {
1.36      millert  18622: DIR *d; (void)dirfd(d);
1.9       millert  18623:   ;
                   18624:   return 0;
                   18625: }
                   18626: _ACEOF
                   18627: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18628: if { (ac_try="$ac_link"
                   18629: case "(($ac_try" in
                   18630:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18631:   *) ac_try_echo=$ac_try;;
                   18632: esac
                   18633: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18634:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18635:   ac_status=$?
1.25      millert  18636:   grep -v '^ *+' conftest.er1 >conftest.err
                   18637:   rm -f conftest.er1
                   18638:   cat conftest.err >&5
1.16      millert  18639:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18640:   (exit $ac_status); } && {
                   18641:         test -z "$ac_c_werror_flag" ||
                   18642:         test ! -s conftest.err
                   18643:        } && test -s conftest$ac_exeext &&
                   18644:        $as_test_x conftest$ac_exeext; then
                   18645:   cat >>confdefs.h <<\_ACEOF
                   18646: #define HAVE_DIRFD 1
                   18647: _ACEOF
                   18648:
1.9       millert  18649: else
                   18650:   echo "$as_me: failed program was:" >&5
1.16      millert  18651: sed 's/^/| /' conftest.$ac_ext >&5
                   18652:
1.27      millert  18653:        cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18654: /* confdefs.h.  */
                   18655: _ACEOF
                   18656: cat confdefs.h >>conftest.$ac_ext
                   18657: cat >>conftest.$ac_ext <<_ACEOF
                   18658: /* end confdefs.h.  */
1.27      millert  18659: #include <sys/types.h>
                   18660: #include <$ac_header_dirent>
1.16      millert  18661: int
                   18662: main ()
                   18663: {
1.27      millert  18664: DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
1.9       millert  18665:   ;
                   18666:   return 0;
                   18667: }
                   18668: _ACEOF
                   18669: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18670: if { (ac_try="$ac_link"
                   18671: case "(($ac_try" in
                   18672:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18673:   *) ac_try_echo=$ac_try;;
                   18674: esac
                   18675: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18676:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18677:   ac_status=$?
1.25      millert  18678:   grep -v '^ *+' conftest.er1 >conftest.err
                   18679:   rm -f conftest.er1
                   18680:   cat conftest.err >&5
1.16      millert  18681:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18682:   (exit $ac_status); } && {
                   18683:         test -z "$ac_c_werror_flag" ||
                   18684:         test ! -s conftest.err
                   18685:        } && test -s conftest$ac_exeext &&
                   18686:        $as_test_x conftest$ac_exeext; then
                   18687:   cat >>confdefs.h <<\_ACEOF
                   18688: #define HAVE_DD_FD 1
                   18689: _ACEOF
                   18690:
1.9       millert  18691: else
                   18692:   echo "$as_me: failed program was:" >&5
1.16      millert  18693: sed 's/^/| /' conftest.$ac_ext >&5
                   18694:
1.25      millert  18695:
1.9       millert  18696: fi
1.25      millert  18697:
1.27      millert  18698: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   18699:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  18700: fi
                   18701:
1.27      millert  18702: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   18703:       conftest$ac_exeext conftest.$ac_ext
                   18704: if test -n "$NEED_SNPRINTF"; then
                   18705:     case " $LIBOBJS " in
                   18706:   *" snprintf.$ac_objext "* ) ;;
                   18707:   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
                   18708:  ;;
                   18709: esac
1.1       millert  18710:
1.25      millert  18711: fi
1.27      millert  18712: { echo "$as_me:$LINENO: checking for socket" >&5
                   18713: echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
                   18714: if test "${ac_cv_func_socket+set}" = set; then
1.9       millert  18715:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18716: else
1.9       millert  18717:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18718: /* confdefs.h.  */
                   18719: _ACEOF
                   18720: cat confdefs.h >>conftest.$ac_ext
                   18721: cat >>conftest.$ac_ext <<_ACEOF
                   18722: /* end confdefs.h.  */
1.27      millert  18723: /* Define socket to an innocuous variant, in case <limits.h> declares socket.
1.25      millert  18724:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1.27      millert  18725: #define socket innocuous_socket
1.25      millert  18726:
1.1       millert  18727: /* System header to define __stub macros and hopefully few prototypes,
1.27      millert  18728:     which can conflict with char socket (); below.
1.16      millert  18729:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   18730:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  18731:
1.16      millert  18732: #ifdef __STDC__
                   18733: # include <limits.h>
                   18734: #else
                   18735: # include <assert.h>
                   18736: #endif
1.25      millert  18737:
1.27      millert  18738: #undef socket
1.25      millert  18739:
1.27      millert  18740: /* Override any GCC internal prototype to avoid an error.
                   18741:    Use char because int might match the return type of a GCC
                   18742:    builtin and then its argument prototype would still apply.  */
1.9       millert  18743: #ifdef __cplusplus
                   18744: extern "C"
                   18745: #endif
1.27      millert  18746: char socket ();
1.1       millert  18747: /* The GNU C library defines this for functions which it implements
                   18748:     to always fail with ENOSYS.  Some functions are actually named
                   18749:     something starting with __ and the normal name is an alias.  */
1.27      millert  18750: #if defined __stub_socket || defined __stub___socket
1.1       millert  18751: choke me
                   18752: #endif
                   18753:
1.16      millert  18754: int
                   18755: main ()
                   18756: {
1.27      millert  18757: return socket ();
1.9       millert  18758:   ;
                   18759:   return 0;
                   18760: }
                   18761: _ACEOF
                   18762: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18763: if { (ac_try="$ac_link"
                   18764: case "(($ac_try" in
                   18765:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18766:   *) ac_try_echo=$ac_try;;
                   18767: esac
                   18768: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18769:   (eval "$ac_link") 2>conftest.er1
1.13      millert  18770:   ac_status=$?
1.25      millert  18771:   grep -v '^ *+' conftest.er1 >conftest.err
                   18772:   rm -f conftest.er1
                   18773:   cat conftest.err >&5
1.16      millert  18774:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18775:   (exit $ac_status); } && {
                   18776:         test -z "$ac_c_werror_flag" ||
                   18777:         test ! -s conftest.err
                   18778:        } && test -s conftest$ac_exeext &&
                   18779:        $as_test_x conftest$ac_exeext; then
                   18780:   ac_cv_func_socket=yes
1.13      millert  18781: else
                   18782:   echo "$as_me: failed program was:" >&5
1.16      millert  18783: sed 's/^/| /' conftest.$ac_ext >&5
                   18784:
1.27      millert  18785:        ac_cv_func_socket=no
1.13      millert  18786: fi
1.27      millert  18787:
                   18788: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18789:       conftest$ac_exeext conftest.$ac_ext
1.13      millert  18790: fi
1.27      millert  18791: { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
                   18792: echo "${ECHO_T}$ac_cv_func_socket" >&6; }
                   18793: if test $ac_cv_func_socket = yes; then
1.25      millert  18794:   :
                   18795: else
1.27      millert  18796:   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
                   18797: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
                   18798: if test "${ac_cv_lib_socket_socket+set}" = set; then
1.13      millert  18799:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18800: else
1.25      millert  18801:   ac_check_lib_save_LIBS=$LIBS
                   18802: LIBS="-lsocket  $LIBS"
                   18803: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18804: /* confdefs.h.  */
                   18805: _ACEOF
                   18806: cat confdefs.h >>conftest.$ac_ext
                   18807: cat >>conftest.$ac_ext <<_ACEOF
                   18808: /* end confdefs.h.  */
1.25      millert  18809:
1.27      millert  18810: /* Override any GCC internal prototype to avoid an error.
                   18811:    Use char because int might match the return type of a GCC
                   18812:    builtin and then its argument prototype would still apply.  */
1.13      millert  18813: #ifdef __cplusplus
                   18814: extern "C"
                   18815: #endif
1.27      millert  18816: char socket ();
1.16      millert  18817: int
                   18818: main ()
                   18819: {
1.27      millert  18820: return socket ();
1.13      millert  18821:   ;
                   18822:   return 0;
                   18823: }
                   18824: _ACEOF
                   18825: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18826: if { (ac_try="$ac_link"
                   18827: case "(($ac_try" in
                   18828:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18829:   *) ac_try_echo=$ac_try;;
                   18830: esac
                   18831: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18832:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18833:   ac_status=$?
1.25      millert  18834:   grep -v '^ *+' conftest.er1 >conftest.err
                   18835:   rm -f conftest.er1
                   18836:   cat conftest.err >&5
1.16      millert  18837:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18838:   (exit $ac_status); } && {
                   18839:         test -z "$ac_c_werror_flag" ||
                   18840:         test ! -s conftest.err
                   18841:        } && test -s conftest$ac_exeext &&
                   18842:        $as_test_x conftest$ac_exeext; then
                   18843:   ac_cv_lib_socket_socket=yes
1.9       millert  18844: else
                   18845:   echo "$as_me: failed program was:" >&5
1.16      millert  18846: sed 's/^/| /' conftest.$ac_ext >&5
                   18847:
1.27      millert  18848:        ac_cv_lib_socket_socket=no
1.9       millert  18849: fi
1.27      millert  18850:
                   18851: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18852:       conftest$ac_exeext conftest.$ac_ext
                   18853: LIBS=$ac_check_lib_save_LIBS
1.9       millert  18854: fi
1.27      millert  18855: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
                   18856: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
                   18857: if test $ac_cv_lib_socket_socket = yes; then
1.25      millert  18858:   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
                   18859: else
1.27      millert  18860:   { echo "$as_me:$LINENO: checking for socket in -linet" >&5
                   18861: echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
                   18862: if test "${ac_cv_lib_inet_socket+set}" = set; then
1.9       millert  18863:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  18864: else
1.25      millert  18865:   ac_check_lib_save_LIBS=$LIBS
1.27      millert  18866: LIBS="-linet  $LIBS"
1.25      millert  18867: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  18868: /* confdefs.h.  */
                   18869: _ACEOF
                   18870: cat confdefs.h >>conftest.$ac_ext
                   18871: cat >>conftest.$ac_ext <<_ACEOF
                   18872: /* end confdefs.h.  */
1.25      millert  18873:
1.27      millert  18874: /* Override any GCC internal prototype to avoid an error.
                   18875:    Use char because int might match the return type of a GCC
                   18876:    builtin and then its argument prototype would still apply.  */
1.9       millert  18877: #ifdef __cplusplus
                   18878: extern "C"
1.1       millert  18879: #endif
1.27      millert  18880: char socket ();
1.16      millert  18881: int
                   18882: main ()
                   18883: {
1.27      millert  18884: return socket ();
1.9       millert  18885:   ;
                   18886:   return 0;
                   18887: }
                   18888: _ACEOF
                   18889: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18890: if { (ac_try="$ac_link"
                   18891: case "(($ac_try" in
                   18892:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18893:   *) ac_try_echo=$ac_try;;
                   18894: esac
                   18895: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18896:   (eval "$ac_link") 2>conftest.er1
1.9       millert  18897:   ac_status=$?
1.25      millert  18898:   grep -v '^ *+' conftest.er1 >conftest.err
                   18899:   rm -f conftest.er1
                   18900:   cat conftest.err >&5
1.16      millert  18901:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18902:   (exit $ac_status); } && {
                   18903:         test -z "$ac_c_werror_flag" ||
                   18904:         test ! -s conftest.err
                   18905:        } && test -s conftest$ac_exeext &&
                   18906:        $as_test_x conftest$ac_exeext; then
                   18907:   ac_cv_lib_inet_socket=yes
1.23      millert  18908: else
                   18909:   echo "$as_me: failed program was:" >&5
                   18910: sed 's/^/| /' conftest.$ac_ext >&5
                   18911:
1.27      millert  18912:        ac_cv_lib_inet_socket=no
1.23      millert  18913: fi
1.27      millert  18914:
                   18915: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18916:       conftest$ac_exeext conftest.$ac_ext
                   18917: LIBS=$ac_check_lib_save_LIBS
1.23      millert  18918: fi
1.27      millert  18919: { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
                   18920: echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
                   18921: if test $ac_cv_lib_inet_socket = yes; then
                   18922:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
1.23      millert  18923: else
1.27      millert  18924:   { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
                   18925: echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
                   18926: { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
                   18927: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
                   18928: if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
1.23      millert  18929:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   18930: else
                   18931:   ac_check_lib_save_LIBS=$LIBS
1.27      millert  18932: LIBS="-lsocket -lnsl $LIBS"
1.23      millert  18933: cat >conftest.$ac_ext <<_ACEOF
                   18934: /* confdefs.h.  */
                   18935: _ACEOF
                   18936: cat confdefs.h >>conftest.$ac_ext
                   18937: cat >>conftest.$ac_ext <<_ACEOF
                   18938: /* end confdefs.h.  */
                   18939:
1.27      millert  18940: /* Override any GCC internal prototype to avoid an error.
                   18941:    Use char because int might match the return type of a GCC
                   18942:    builtin and then its argument prototype would still apply.  */
1.23      millert  18943: #ifdef __cplusplus
                   18944: extern "C"
                   18945: #endif
1.27      millert  18946: char socket ();
1.23      millert  18947: int
                   18948: main ()
                   18949: {
1.27      millert  18950: return socket ();
1.23      millert  18951:   ;
                   18952:   return 0;
                   18953: }
                   18954: _ACEOF
                   18955: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  18956: if { (ac_try="$ac_link"
                   18957: case "(($ac_try" in
                   18958:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   18959:   *) ac_try_echo=$ac_try;;
                   18960: esac
                   18961: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   18962:   (eval "$ac_link") 2>conftest.er1
1.23      millert  18963:   ac_status=$?
1.25      millert  18964:   grep -v '^ *+' conftest.er1 >conftest.err
                   18965:   rm -f conftest.er1
                   18966:   cat conftest.err >&5
1.23      millert  18967:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  18968:   (exit $ac_status); } && {
                   18969:         test -z "$ac_c_werror_flag" ||
                   18970:         test ! -s conftest.err
                   18971:        } && test -s conftest$ac_exeext &&
                   18972:        $as_test_x conftest$ac_exeext; then
                   18973:   ac_cv_lib_socket_socket_lnsl=yes
1.23      millert  18974: else
                   18975:   echo "$as_me: failed program was:" >&5
                   18976: sed 's/^/| /' conftest.$ac_ext >&5
                   18977:
1.27      millert  18978:        ac_cv_lib_socket_socket_lnsl=no
1.23      millert  18979: fi
1.27      millert  18980:
                   18981: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  18982:       conftest$ac_exeext conftest.$ac_ext
1.23      millert  18983: LIBS=$ac_check_lib_save_LIBS
                   18984: fi
1.27      millert  18985: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
                   18986: echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6; }
                   18987: if test $ac_cv_lib_socket_socket_lnsl = yes; then
                   18988:   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
1.23      millert  18989: fi
1.16      millert  18990:
1.23      millert  18991: fi
                   18992:
                   18993: fi
1.1       millert  18994:
                   18995: fi
                   18996:
1.27      millert  18997: { echo "$as_me:$LINENO: checking for inet_addr" >&5
                   18998: echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
                   18999: if test "${ac_cv_func_inet_addr+set}" = set; then
1.9       millert  19000:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19001: else
1.9       millert  19002:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19003: /* confdefs.h.  */
                   19004: _ACEOF
                   19005: cat confdefs.h >>conftest.$ac_ext
                   19006: cat >>conftest.$ac_ext <<_ACEOF
                   19007: /* end confdefs.h.  */
1.27      millert  19008: /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
                   19009:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   19010: #define inet_addr innocuous_inet_addr
                   19011:
                   19012: /* System header to define __stub macros and hopefully few prototypes,
                   19013:     which can conflict with char inet_addr (); below.
                   19014:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   19015:     <limits.h> exists even on freestanding compilers.  */
                   19016:
                   19017: #ifdef __STDC__
                   19018: # include <limits.h>
                   19019: #else
                   19020: # include <assert.h>
                   19021: #endif
                   19022:
                   19023: #undef inet_addr
                   19024:
                   19025: /* Override any GCC internal prototype to avoid an error.
                   19026:    Use char because int might match the return type of a GCC
                   19027:    builtin and then its argument prototype would still apply.  */
                   19028: #ifdef __cplusplus
                   19029: extern "C"
                   19030: #endif
                   19031: char inet_addr ();
                   19032: /* The GNU C library defines this for functions which it implements
                   19033:     to always fail with ENOSYS.  Some functions are actually named
                   19034:     something starting with __ and the normal name is an alias.  */
                   19035: #if defined __stub_inet_addr || defined __stub___inet_addr
                   19036: choke me
                   19037: #endif
                   19038:
1.16      millert  19039: int
                   19040: main ()
                   19041: {
1.27      millert  19042: return inet_addr ();
1.9       millert  19043:   ;
                   19044:   return 0;
                   19045: }
                   19046: _ACEOF
                   19047: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19048: if { (ac_try="$ac_link"
                   19049: case "(($ac_try" in
                   19050:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19051:   *) ac_try_echo=$ac_try;;
                   19052: esac
                   19053: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19054:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19055:   ac_status=$?
1.25      millert  19056:   grep -v '^ *+' conftest.er1 >conftest.err
                   19057:   rm -f conftest.er1
                   19058:   cat conftest.err >&5
1.16      millert  19059:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19060:   (exit $ac_status); } && {
                   19061:         test -z "$ac_c_werror_flag" ||
                   19062:         test ! -s conftest.err
                   19063:        } && test -s conftest$ac_exeext &&
                   19064:        $as_test_x conftest$ac_exeext; then
                   19065:   ac_cv_func_inet_addr=yes
1.9       millert  19066: else
                   19067:   echo "$as_me: failed program was:" >&5
1.16      millert  19068: sed 's/^/| /' conftest.$ac_ext >&5
                   19069:
1.27      millert  19070:        ac_cv_func_inet_addr=no
1.9       millert  19071: fi
1.27      millert  19072:
                   19073: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19074:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  19075: fi
1.27      millert  19076: { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
                   19077: echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
                   19078: if test $ac_cv_func_inet_addr = yes; then
                   19079:   :
                   19080: else
                   19081:   { echo "$as_me:$LINENO: checking for __inet_addr" >&5
                   19082: echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
                   19083: if test "${ac_cv_func___inet_addr+set}" = set; then
1.9       millert  19084:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19085: else
1.9       millert  19086:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19087: /* confdefs.h.  */
                   19088: _ACEOF
                   19089: cat confdefs.h >>conftest.$ac_ext
                   19090: cat >>conftest.$ac_ext <<_ACEOF
                   19091: /* end confdefs.h.  */
1.27      millert  19092: /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
                   19093:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   19094: #define __inet_addr innocuous___inet_addr
                   19095:
                   19096: /* System header to define __stub macros and hopefully few prototypes,
                   19097:     which can conflict with char __inet_addr (); below.
                   19098:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   19099:     <limits.h> exists even on freestanding compilers.  */
                   19100:
                   19101: #ifdef __STDC__
                   19102: # include <limits.h>
1.16      millert  19103: #else
1.27      millert  19104: # include <assert.h>
                   19105: #endif
                   19106:
                   19107: #undef __inet_addr
                   19108:
                   19109: /* Override any GCC internal prototype to avoid an error.
                   19110:    Use char because int might match the return type of a GCC
                   19111:    builtin and then its argument prototype would still apply.  */
                   19112: #ifdef __cplusplus
                   19113: extern "C"
                   19114: #endif
                   19115: char __inet_addr ();
                   19116: /* The GNU C library defines this for functions which it implements
                   19117:     to always fail with ENOSYS.  Some functions are actually named
                   19118:     something starting with __ and the normal name is an alias.  */
                   19119: #if defined __stub___inet_addr || defined __stub_____inet_addr
                   19120: choke me
1.1       millert  19121: #endif
                   19122:
1.16      millert  19123: int
                   19124: main ()
                   19125: {
1.27      millert  19126: return __inet_addr ();
1.9       millert  19127:   ;
                   19128:   return 0;
                   19129: }
                   19130: _ACEOF
                   19131: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19132: if { (ac_try="$ac_link"
                   19133: case "(($ac_try" in
                   19134:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19135:   *) ac_try_echo=$ac_try;;
                   19136: esac
                   19137: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19138:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19139:   ac_status=$?
1.25      millert  19140:   grep -v '^ *+' conftest.er1 >conftest.err
                   19141:   rm -f conftest.er1
                   19142:   cat conftest.err >&5
1.16      millert  19143:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19144:   (exit $ac_status); } && {
                   19145:         test -z "$ac_c_werror_flag" ||
                   19146:         test ! -s conftest.err
                   19147:        } && test -s conftest$ac_exeext &&
                   19148:        $as_test_x conftest$ac_exeext; then
                   19149:   ac_cv_func___inet_addr=yes
1.9       millert  19150: else
                   19151:   echo "$as_me: failed program was:" >&5
1.16      millert  19152: sed 's/^/| /' conftest.$ac_ext >&5
                   19153:
1.27      millert  19154:        ac_cv_func___inet_addr=no
1.9       millert  19155: fi
1.27      millert  19156:
                   19157: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19158:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  19159: fi
1.27      millert  19160: { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
                   19161: echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
                   19162: if test $ac_cv_func___inet_addr = yes; then
                   19163:   :
1.25      millert  19164: else
1.27      millert  19165:   { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
                   19166: echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
                   19167: if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
1.25      millert  19168:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19169: else
1.27      millert  19170:   ac_check_lib_save_LIBS=$LIBS
                   19171: LIBS="-lnsl  $LIBS"
                   19172: cat >conftest.$ac_ext <<_ACEOF
1.25      millert  19173: /* confdefs.h.  */
                   19174: _ACEOF
                   19175: cat confdefs.h >>conftest.$ac_ext
                   19176: cat >>conftest.$ac_ext <<_ACEOF
                   19177: /* end confdefs.h.  */
1.27      millert  19178:
                   19179: /* Override any GCC internal prototype to avoid an error.
                   19180:    Use char because int might match the return type of a GCC
                   19181:    builtin and then its argument prototype would still apply.  */
                   19182: #ifdef __cplusplus
                   19183: extern "C"
1.25      millert  19184: #endif
1.27      millert  19185: char inet_addr ();
                   19186: int
                   19187: main ()
                   19188: {
                   19189: return inet_addr ();
                   19190:   ;
                   19191:   return 0;
                   19192: }
1.16      millert  19193: _ACEOF
1.27      millert  19194: rm -f conftest.$ac_objext conftest$ac_exeext
                   19195: if { (ac_try="$ac_link"
                   19196: case "(($ac_try" in
                   19197:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19198:   *) ac_try_echo=$ac_try;;
                   19199: esac
                   19200: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19201:   (eval "$ac_link") 2>conftest.er1
                   19202:   ac_status=$?
                   19203:   grep -v '^ *+' conftest.er1 >conftest.err
                   19204:   rm -f conftest.er1
                   19205:   cat conftest.err >&5
                   19206:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   19207:   (exit $ac_status); } && {
                   19208:         test -z "$ac_c_werror_flag" ||
                   19209:         test ! -s conftest.err
                   19210:        } && test -s conftest$ac_exeext &&
                   19211:        $as_test_x conftest$ac_exeext; then
                   19212:   ac_cv_lib_nsl_inet_addr=yes
1.25      millert  19213: else
1.27      millert  19214:   echo "$as_me: failed program was:" >&5
                   19215: sed 's/^/| /' conftest.$ac_ext >&5
                   19216:
                   19217:        ac_cv_lib_nsl_inet_addr=no
1.1       millert  19218: fi
                   19219:
1.27      millert  19220: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   19221:       conftest$ac_exeext conftest.$ac_ext
                   19222: LIBS=$ac_check_lib_save_LIBS
1.25      millert  19223: fi
1.27      millert  19224: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
                   19225: echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
                   19226: if test $ac_cv_lib_nsl_inet_addr = yes; then
                   19227:   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
                   19228: else
                   19229:   { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
                   19230: echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
                   19231: if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
1.9       millert  19232:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19233: else
1.27      millert  19234:   ac_check_lib_save_LIBS=$LIBS
                   19235: LIBS="-linet  $LIBS"
                   19236: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19237: /* confdefs.h.  */
                   19238: _ACEOF
                   19239: cat confdefs.h >>conftest.$ac_ext
                   19240: cat >>conftest.$ac_ext <<_ACEOF
                   19241: /* end confdefs.h.  */
1.25      millert  19242:
1.27      millert  19243: /* Override any GCC internal prototype to avoid an error.
                   19244:    Use char because int might match the return type of a GCC
                   19245:    builtin and then its argument prototype would still apply.  */
1.9       millert  19246: #ifdef __cplusplus
                   19247: extern "C"
                   19248: #endif
1.27      millert  19249: char inet_addr ();
1.16      millert  19250: int
                   19251: main ()
                   19252: {
1.27      millert  19253: return inet_addr ();
1.9       millert  19254:   ;
                   19255:   return 0;
                   19256: }
                   19257: _ACEOF
                   19258: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19259: if { (ac_try="$ac_link"
                   19260: case "(($ac_try" in
                   19261:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19262:   *) ac_try_echo=$ac_try;;
                   19263: esac
                   19264: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19265:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19266:   ac_status=$?
1.25      millert  19267:   grep -v '^ *+' conftest.er1 >conftest.err
                   19268:   rm -f conftest.er1
                   19269:   cat conftest.err >&5
1.16      millert  19270:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19271:   (exit $ac_status); } && {
                   19272:         test -z "$ac_c_werror_flag" ||
                   19273:         test ! -s conftest.err
                   19274:        } && test -s conftest$ac_exeext &&
                   19275:        $as_test_x conftest$ac_exeext; then
                   19276:   ac_cv_lib_inet_inet_addr=yes
1.9       millert  19277: else
                   19278:   echo "$as_me: failed program was:" >&5
1.16      millert  19279: sed 's/^/| /' conftest.$ac_ext >&5
                   19280:
1.27      millert  19281:        ac_cv_lib_inet_inet_addr=no
1.9       millert  19282: fi
1.27      millert  19283:
                   19284: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19285:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  19286: LIBS=$ac_check_lib_save_LIBS
1.9       millert  19287: fi
1.27      millert  19288: { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
                   19289: echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
                   19290: if test $ac_cv_lib_inet_inet_addr = yes; then
                   19291:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   19292: else
                   19293:   { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
                   19294: echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
                   19295: { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
                   19296: echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
                   19297: if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
1.23      millert  19298:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19299: else
1.27      millert  19300:   ac_check_lib_save_LIBS=$LIBS
                   19301: LIBS="-lsocket -lnsl $LIBS"
                   19302: cat >conftest.$ac_ext <<_ACEOF
1.23      millert  19303: /* confdefs.h.  */
                   19304: _ACEOF
                   19305: cat confdefs.h >>conftest.$ac_ext
                   19306: cat >>conftest.$ac_ext <<_ACEOF
                   19307: /* end confdefs.h.  */
                   19308:
1.27      millert  19309: /* Override any GCC internal prototype to avoid an error.
                   19310:    Use char because int might match the return type of a GCC
                   19311:    builtin and then its argument prototype would still apply.  */
                   19312: #ifdef __cplusplus
                   19313: extern "C"
                   19314: #endif
                   19315: char inet_addr ();
1.25      millert  19316: int
                   19317: main ()
                   19318: {
1.27      millert  19319: return inet_addr ();
                   19320:   ;
                   19321:   return 0;
1.25      millert  19322: }
1.23      millert  19323: _ACEOF
1.27      millert  19324: rm -f conftest.$ac_objext conftest$ac_exeext
                   19325: if { (ac_try="$ac_link"
                   19326: case "(($ac_try" in
                   19327:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19328:   *) ac_try_echo=$ac_try;;
                   19329: esac
                   19330: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19331:   (eval "$ac_link") 2>conftest.er1
1.23      millert  19332:   ac_status=$?
1.27      millert  19333:   grep -v '^ *+' conftest.er1 >conftest.err
                   19334:   rm -f conftest.er1
                   19335:   cat conftest.err >&5
1.23      millert  19336:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19337:   (exit $ac_status); } && {
                   19338:         test -z "$ac_c_werror_flag" ||
                   19339:         test ! -s conftest.err
                   19340:        } && test -s conftest$ac_exeext &&
                   19341:        $as_test_x conftest$ac_exeext; then
                   19342:   ac_cv_lib_socket_inet_addr_lnsl=yes
1.23      millert  19343: else
1.27      millert  19344:   echo "$as_me: failed program was:" >&5
1.23      millert  19345: sed 's/^/| /' conftest.$ac_ext >&5
                   19346:
1.27      millert  19347:        ac_cv_lib_socket_inet_addr_lnsl=no
1.23      millert  19348: fi
1.27      millert  19349:
                   19350: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   19351:       conftest$ac_exeext conftest.$ac_ext
                   19352: LIBS=$ac_check_lib_save_LIBS
1.23      millert  19353: fi
1.27      millert  19354: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
                   19355: echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
                   19356: if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
                   19357:   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
1.23      millert  19358: fi
1.25      millert  19359:
1.27      millert  19360: fi
1.16      millert  19361:
1.27      millert  19362: fi
1.25      millert  19363:
1.23      millert  19364: fi
1.16      millert  19365:
1.9       millert  19366: fi
1.23      millert  19367:
1.27      millert  19368: { echo "$as_me:$LINENO: checking for syslog" >&5
                   19369: echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
                   19370: if test "${ac_cv_func_syslog+set}" = set; then
1.9       millert  19371:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19372: else
1.9       millert  19373:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19374: /* confdefs.h.  */
                   19375: _ACEOF
                   19376: cat confdefs.h >>conftest.$ac_ext
                   19377: cat >>conftest.$ac_ext <<_ACEOF
                   19378: /* end confdefs.h.  */
1.27      millert  19379: /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
1.25      millert  19380:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1.27      millert  19381: #define syslog innocuous_syslog
1.25      millert  19382:
1.16      millert  19383: /* System header to define __stub macros and hopefully few prototypes,
1.27      millert  19384:     which can conflict with char syslog (); below.
1.16      millert  19385:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   19386:     <limits.h> exists even on freestanding compilers.  */
1.25      millert  19387:
1.16      millert  19388: #ifdef __STDC__
                   19389: # include <limits.h>
                   19390: #else
                   19391: # include <assert.h>
                   19392: #endif
1.25      millert  19393:
1.27      millert  19394: #undef syslog
1.25      millert  19395:
1.27      millert  19396: /* Override any GCC internal prototype to avoid an error.
                   19397:    Use char because int might match the return type of a GCC
                   19398:    builtin and then its argument prototype would still apply.  */
1.9       millert  19399: #ifdef __cplusplus
                   19400: extern "C"
                   19401: #endif
1.27      millert  19402: char syslog ();
1.1       millert  19403: /* The GNU C library defines this for functions which it implements
                   19404:     to always fail with ENOSYS.  Some functions are actually named
                   19405:     something starting with __ and the normal name is an alias.  */
1.27      millert  19406: #if defined __stub_syslog || defined __stub___syslog
1.1       millert  19407: choke me
                   19408: #endif
                   19409:
1.16      millert  19410: int
                   19411: main ()
                   19412: {
1.27      millert  19413: return syslog ();
1.9       millert  19414:   ;
                   19415:   return 0;
                   19416: }
                   19417: _ACEOF
                   19418: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19419: if { (ac_try="$ac_link"
                   19420: case "(($ac_try" in
                   19421:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19422:   *) ac_try_echo=$ac_try;;
                   19423: esac
                   19424: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19425:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19426:   ac_status=$?
1.25      millert  19427:   grep -v '^ *+' conftest.er1 >conftest.err
                   19428:   rm -f conftest.er1
                   19429:   cat conftest.err >&5
1.16      millert  19430:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19431:   (exit $ac_status); } && {
                   19432:         test -z "$ac_c_werror_flag" ||
                   19433:         test ! -s conftest.err
                   19434:        } && test -s conftest$ac_exeext &&
                   19435:        $as_test_x conftest$ac_exeext; then
                   19436:   ac_cv_func_syslog=yes
1.9       millert  19437: else
                   19438:   echo "$as_me: failed program was:" >&5
1.16      millert  19439: sed 's/^/| /' conftest.$ac_ext >&5
                   19440:
1.27      millert  19441:        ac_cv_func_syslog=no
1.9       millert  19442: fi
1.27      millert  19443:
                   19444: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19445:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  19446: fi
1.27      millert  19447: { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
                   19448: echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
                   19449: if test $ac_cv_func_syslog = yes; then
                   19450:   :
1.23      millert  19451: else
1.27      millert  19452:   { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
                   19453: echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
                   19454: if test "${ac_cv_lib_socket_syslog+set}" = set; then
1.9       millert  19455:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19456: else
1.27      millert  19457:   ac_check_lib_save_LIBS=$LIBS
                   19458: LIBS="-lsocket  $LIBS"
                   19459: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19460: /* confdefs.h.  */
                   19461: _ACEOF
                   19462: cat confdefs.h >>conftest.$ac_ext
                   19463: cat >>conftest.$ac_ext <<_ACEOF
                   19464: /* end confdefs.h.  */
1.25      millert  19465:
1.27      millert  19466: /* Override any GCC internal prototype to avoid an error.
                   19467:    Use char because int might match the return type of a GCC
                   19468:    builtin and then its argument prototype would still apply.  */
                   19469: #ifdef __cplusplus
                   19470: extern "C"
                   19471: #endif
                   19472: char syslog ();
1.25      millert  19473: int
                   19474: main ()
1.16      millert  19475: {
1.27      millert  19476: return syslog ();
1.25      millert  19477:   ;
                   19478:   return 0;
1.9       millert  19479: }
                   19480: _ACEOF
1.25      millert  19481: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19482: if { (ac_try="$ac_link"
                   19483: case "(($ac_try" in
                   19484:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19485:   *) ac_try_echo=$ac_try;;
                   19486: esac
                   19487: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19488:   (eval "$ac_link") 2>conftest.er1
1.25      millert  19489:   ac_status=$?
                   19490:   grep -v '^ *+' conftest.er1 >conftest.err
                   19491:   rm -f conftest.er1
                   19492:   cat conftest.err >&5
                   19493:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19494:   (exit $ac_status); } && {
                   19495:         test -z "$ac_c_werror_flag" ||
                   19496:         test ! -s conftest.err
                   19497:        } && test -s conftest$ac_exeext &&
                   19498:        $as_test_x conftest$ac_exeext; then
                   19499:   ac_cv_lib_socket_syslog=yes
1.25      millert  19500: else
                   19501:   echo "$as_me: failed program was:" >&5
                   19502: sed 's/^/| /' conftest.$ac_ext >&5
                   19503:
1.27      millert  19504:        ac_cv_lib_socket_syslog=no
1.25      millert  19505: fi
1.27      millert  19506:
                   19507: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19508:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  19509: LIBS=$ac_check_lib_save_LIBS
1.25      millert  19510: fi
1.27      millert  19511: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
                   19512: echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
                   19513: if test $ac_cv_lib_socket_syslog = yes; then
                   19514:   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
                   19515: else
                   19516:   { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
                   19517: echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
                   19518: if test "${ac_cv_lib_nsl_syslog+set}" = set; then
                   19519:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19520: else
                   19521:   ac_check_lib_save_LIBS=$LIBS
                   19522: LIBS="-lnsl  $LIBS"
                   19523: cat >conftest.$ac_ext <<_ACEOF
                   19524: /* confdefs.h.  */
                   19525: _ACEOF
                   19526: cat confdefs.h >>conftest.$ac_ext
                   19527: cat >>conftest.$ac_ext <<_ACEOF
                   19528: /* end confdefs.h.  */
1.25      millert  19529:
1.27      millert  19530: /* Override any GCC internal prototype to avoid an error.
                   19531:    Use char because int might match the return type of a GCC
                   19532:    builtin and then its argument prototype would still apply.  */
                   19533: #ifdef __cplusplus
                   19534: extern "C"
                   19535: #endif
                   19536: char syslog ();
                   19537: int
                   19538: main ()
                   19539: {
                   19540: return syslog ();
                   19541:   ;
                   19542:   return 0;
                   19543: }
1.25      millert  19544: _ACEOF
1.27      millert  19545: rm -f conftest.$ac_objext conftest$ac_exeext
                   19546: if { (ac_try="$ac_link"
                   19547: case "(($ac_try" in
                   19548:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19549:   *) ac_try_echo=$ac_try;;
1.25      millert  19550: esac
1.27      millert  19551: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19552:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19553:   ac_status=$?
1.25      millert  19554:   grep -v '^ *+' conftest.er1 >conftest.err
                   19555:   rm -f conftest.er1
                   19556:   cat conftest.err >&5
1.16      millert  19557:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19558:   (exit $ac_status); } && {
                   19559:         test -z "$ac_c_werror_flag" ||
                   19560:         test ! -s conftest.err
                   19561:        } && test -s conftest$ac_exeext &&
                   19562:        $as_test_x conftest$ac_exeext; then
                   19563:   ac_cv_lib_nsl_syslog=yes
1.9       millert  19564: else
                   19565:   echo "$as_me: failed program was:" >&5
1.16      millert  19566: sed 's/^/| /' conftest.$ac_ext >&5
                   19567:
1.27      millert  19568:        ac_cv_lib_nsl_syslog=no
                   19569: fi
1.25      millert  19570:
1.27      millert  19571: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   19572:       conftest$ac_exeext conftest.$ac_ext
                   19573: LIBS=$ac_check_lib_save_LIBS
                   19574: fi
                   19575: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
                   19576: echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
                   19577: if test $ac_cv_lib_nsl_syslog = yes; then
                   19578:   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
                   19579: else
                   19580:   { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
                   19581: echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
                   19582: if test "${ac_cv_lib_inet_syslog+set}" = set; then
1.9       millert  19583:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19584: else
1.27      millert  19585:   ac_check_lib_save_LIBS=$LIBS
                   19586: LIBS="-linet  $LIBS"
1.25      millert  19587: cat >conftest.$ac_ext <<_ACEOF
1.23      millert  19588: /* confdefs.h.  */
                   19589: _ACEOF
                   19590: cat confdefs.h >>conftest.$ac_ext
                   19591: cat >>conftest.$ac_ext <<_ACEOF
                   19592: /* end confdefs.h.  */
1.27      millert  19593:
                   19594: /* Override any GCC internal prototype to avoid an error.
                   19595:    Use char because int might match the return type of a GCC
                   19596:    builtin and then its argument prototype would still apply.  */
                   19597: #ifdef __cplusplus
                   19598: extern "C"
                   19599: #endif
                   19600: char syslog ();
                   19601: int
                   19602: main ()
                   19603: {
                   19604: return syslog ();
                   19605:   ;
                   19606:   return 0;
                   19607: }
1.23      millert  19608: _ACEOF
1.27      millert  19609: rm -f conftest.$ac_objext conftest$ac_exeext
                   19610: if { (ac_try="$ac_link"
                   19611: case "(($ac_try" in
                   19612:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19613:   *) ac_try_echo=$ac_try;;
                   19614: esac
                   19615: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19616:   (eval "$ac_link") 2>conftest.er1
1.23      millert  19617:   ac_status=$?
1.25      millert  19618:   grep -v '^ *+' conftest.er1 >conftest.err
                   19619:   rm -f conftest.er1
                   19620:   cat conftest.err >&5
1.23      millert  19621:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19622:   (exit $ac_status); } && {
                   19623:         test -z "$ac_c_werror_flag" ||
                   19624:         test ! -s conftest.err
                   19625:        } && test -s conftest$ac_exeext &&
                   19626:        $as_test_x conftest$ac_exeext; then
                   19627:   ac_cv_lib_inet_syslog=yes
1.1       millert  19628: else
1.23      millert  19629:   echo "$as_me: failed program was:" >&5
                   19630: sed 's/^/| /' conftest.$ac_ext >&5
                   19631:
1.27      millert  19632:        ac_cv_lib_inet_syslog=no
                   19633: fi
                   19634:
                   19635: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   19636:       conftest$ac_exeext conftest.$ac_ext
                   19637: LIBS=$ac_check_lib_save_LIBS
                   19638: fi
                   19639: { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
                   19640: echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
                   19641: if test $ac_cv_lib_inet_syslog = yes; then
                   19642:   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
                   19643: fi
                   19644:
                   19645: fi
                   19646:
                   19647: fi
                   19648:
1.25      millert  19649: fi
                   19650:
1.37      millert  19651:
                   19652: for ac_func in getprogname
                   19653: do
                   19654: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   19655: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   19656: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   19657: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.27      millert  19658:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19659: else
                   19660:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19661: /* confdefs.h.  */
                   19662: _ACEOF
                   19663: cat confdefs.h >>conftest.$ac_ext
                   19664: cat >>conftest.$ac_ext <<_ACEOF
                   19665: /* end confdefs.h.  */
1.37      millert  19666: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   19667:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   19668: #define $ac_func innocuous_$ac_func
                   19669:
                   19670: /* System header to define __stub macros and hopefully few prototypes,
                   19671:     which can conflict with char $ac_func (); below.
                   19672:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   19673:     <limits.h> exists even on freestanding compilers.  */
                   19674:
                   19675: #ifdef __STDC__
                   19676: # include <limits.h>
                   19677: #else
                   19678: # include <assert.h>
                   19679: #endif
                   19680:
                   19681: #undef $ac_func
                   19682:
                   19683: /* Override any GCC internal prototype to avoid an error.
                   19684:    Use char because int might match the return type of a GCC
                   19685:    builtin and then its argument prototype would still apply.  */
                   19686: #ifdef __cplusplus
                   19687: extern "C"
                   19688: #endif
                   19689: char $ac_func ();
                   19690: /* The GNU C library defines this for functions which it implements
                   19691:     to always fail with ENOSYS.  Some functions are actually named
                   19692:     something starting with __ and the normal name is an alias.  */
                   19693: #if defined __stub_$ac_func || defined __stub___$ac_func
                   19694: choke me
                   19695: #endif
                   19696:
1.27      millert  19697: int
                   19698: main ()
                   19699: {
1.37      millert  19700: return $ac_func ();
1.27      millert  19701:   ;
                   19702:   return 0;
                   19703: }
1.9       millert  19704: _ACEOF
1.27      millert  19705: rm -f conftest.$ac_objext conftest$ac_exeext
                   19706: if { (ac_try="$ac_link"
                   19707: case "(($ac_try" in
                   19708:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19709:   *) ac_try_echo=$ac_try;;
                   19710: esac
                   19711: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19712:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19713:   ac_status=$?
1.25      millert  19714:   grep -v '^ *+' conftest.er1 >conftest.err
                   19715:   rm -f conftest.er1
                   19716:   cat conftest.err >&5
1.16      millert  19717:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19718:   (exit $ac_status); } && {
                   19719:         test -z "$ac_c_werror_flag" ||
                   19720:         test ! -s conftest.err
                   19721:        } && test -s conftest$ac_exeext &&
                   19722:        $as_test_x conftest$ac_exeext; then
1.37      millert  19723:   eval "$as_ac_var=yes"
1.1       millert  19724: else
1.23      millert  19725:   echo "$as_me: failed program was:" >&5
1.16      millert  19726: sed 's/^/| /' conftest.$ac_ext >&5
                   19727:
1.37      millert  19728:        eval "$as_ac_var=no"
1.25      millert  19729: fi
                   19730:
1.27      millert  19731: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   19732:       conftest$ac_exeext conftest.$ac_ext
1.1       millert  19733: fi
1.37      millert  19734: ac_res=`eval echo '${'$as_ac_var'}'`
                   19735:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   19736: echo "${ECHO_T}$ac_res" >&6; }
                   19737: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   19738:   cat >>confdefs.h <<_ACEOF
                   19739: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.27      millert  19740: _ACEOF
1.25      millert  19741:
1.37      millert  19742: else
1.1       millert  19743:
1.37      millert  19744:     { echo "$as_me:$LINENO: checking for __progname" >&5
                   19745: echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
                   19746:     if test "${sudo_cv___progname+set}" = set; then
1.9       millert  19747:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  19748: else
1.37      millert  19749:
                   19750:     cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19751: /* confdefs.h.  */
                   19752: _ACEOF
                   19753: cat confdefs.h >>conftest.$ac_ext
                   19754: cat >>conftest.$ac_ext <<_ACEOF
                   19755: /* end confdefs.h.  */
1.25      millert  19756:
1.23      millert  19757: int
                   19758: main ()
                   19759: {
1.37      millert  19760: extern char *__progname; (void)puts(__progname);
1.23      millert  19761:   ;
                   19762:   return 0;
                   19763: }
1.9       millert  19764: _ACEOF
1.25      millert  19765: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19766: if { (ac_try="$ac_link"
                   19767: case "(($ac_try" in
                   19768:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19769:   *) ac_try_echo=$ac_try;;
                   19770: esac
                   19771: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19772:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19773:   ac_status=$?
1.25      millert  19774:   grep -v '^ *+' conftest.er1 >conftest.err
                   19775:   rm -f conftest.er1
                   19776:   cat conftest.err >&5
1.16      millert  19777:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19778:   (exit $ac_status); } && {
                   19779:         test -z "$ac_c_werror_flag" ||
                   19780:         test ! -s conftest.err
                   19781:        } && test -s conftest$ac_exeext &&
                   19782:        $as_test_x conftest$ac_exeext; then
1.37      millert  19783:   sudo_cv___progname=yes
1.1       millert  19784: else
1.23      millert  19785:   echo "$as_me: failed program was:" >&5
1.16      millert  19786: sed 's/^/| /' conftest.$ac_ext >&5
1.25      millert  19787:
1.37      millert  19788:        sudo_cv___progname=no
1.25      millert  19789: fi
1.27      millert  19790:
                   19791: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19792:       conftest$ac_exeext conftest.$ac_ext
                   19793: fi
1.27      millert  19794:
1.37      millert  19795:     if test "$sudo_cv___progname" = "yes"; then
                   19796:        cat >>confdefs.h <<\_ACEOF
                   19797: #define HAVE___PROGNAME 1
1.27      millert  19798: _ACEOF
                   19799:
1.37      millert  19800:     else
                   19801:        case " $LIBOBJS " in
                   19802:   *" getprogname.$ac_objext "* ) ;;
                   19803:   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
                   19804:  ;;
                   19805: esac
1.27      millert  19806:
1.37      millert  19807:     fi
                   19808:     { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
                   19809: echo "${ECHO_T}$sudo_cv___progname" >&6; }
1.27      millert  19810:
1.37      millert  19811: fi
                   19812: done
1.27      millert  19813:
                   19814:
1.39      millert  19815: netsvc_conf='/etc/netsvc.conf'
                   19816: nsswitch_conf='/etc/nsswitch.conf'
                   19817: if test ${with_netsvc-"no"} != "no"; then
                   19818:     cat >>confdefs.h <<EOF
                   19819: #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
                   19820: EOF
                   19821:
                   19822:     netsvc_conf=${with_netsvc-/etc/netsvc.conf}
                   19823: elif test ${with_nsswitch-"yes"} != "no"; then
                   19824:     cat >>confdefs.h <<EOF
                   19825: #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
                   19826: EOF
                   19827:
                   19828:     nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
                   19829: fi
                   19830:
1.27      millert  19831:
1.37      millert  19832: if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
                   19833:     for auth in $AUTH_EXCL_DEF; do
                   19834:        case $auth in
                   19835:            AIX_AUTH)   with_aixauth=maybe;;
                   19836:            BSD_AUTH)   with_bsdauth=maybe;;
                   19837:            PAM)        with_pam=maybe;;
                   19838:            SIA)        CHECKSIA=true;;
                   19839:        esac
                   19840:     done
1.27      millert  19841: fi
1.25      millert  19842:
1.37      millert  19843: if test ${with_pam-"no"} != "no"; then
                   19844:                 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
                   19845: echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
                   19846: if test "${ac_cv_lib_dl_main+set}" = set; then
1.25      millert  19847:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   19848: else
1.37      millert  19849:   ac_check_lib_save_LIBS=$LIBS
                   19850: LIBS="-ldl  $LIBS"
                   19851: cat >conftest.$ac_ext <<_ACEOF
1.27      millert  19852: /* confdefs.h.  */
                   19853: _ACEOF
                   19854: cat confdefs.h >>conftest.$ac_ext
                   19855: cat >>conftest.$ac_ext <<_ACEOF
                   19856: /* end confdefs.h.  */
1.25      millert  19857:
1.27      millert  19858:
1.9       millert  19859: int
                   19860: main ()
                   19861: {
1.37      millert  19862: return main ();
1.9       millert  19863:   ;
                   19864:   return 0;
                   19865: }
                   19866: _ACEOF
1.25      millert  19867: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  19868: if { (ac_try="$ac_link"
                   19869: case "(($ac_try" in
                   19870:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19871:   *) ac_try_echo=$ac_try;;
                   19872: esac
                   19873: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   19874:   (eval "$ac_link") 2>conftest.er1
1.9       millert  19875:   ac_status=$?
1.25      millert  19876:   grep -v '^ *+' conftest.er1 >conftest.err
                   19877:   rm -f conftest.er1
                   19878:   cat conftest.err >&5
1.16      millert  19879:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  19880:   (exit $ac_status); } && {
                   19881:         test -z "$ac_c_werror_flag" ||
                   19882:         test ! -s conftest.err
                   19883:        } && test -s conftest$ac_exeext &&
                   19884:        $as_test_x conftest$ac_exeext; then
1.37      millert  19885:   ac_cv_lib_dl_main=yes
1.9       millert  19886: else
                   19887:   echo "$as_me: failed program was:" >&5
1.16      millert  19888: sed 's/^/| /' conftest.$ac_ext >&5
                   19889:
1.37      millert  19890:        ac_cv_lib_dl_main=no
1.23      millert  19891: fi
1.27      millert  19892:
                   19893: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  19894:       conftest$ac_exeext conftest.$ac_ext
1.37      millert  19895: LIBS=$ac_check_lib_save_LIBS
                   19896: fi
                   19897: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
                   19898: echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
                   19899: if test $ac_cv_lib_dl_main = yes; then
                   19900:   SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
                   19901: else
                   19902:   SUDO_LIBS="${SUDO_LIBS} -lpam"
1.9       millert  19903: fi
1.27      millert  19904:
1.37      millert  19905:     ac_cv_lib_dl=ac_cv_lib_dl_main
1.27      millert  19906:
1.1       millert  19907:
1.16      millert  19908:
1.37      millert  19909: for ac_header in security/pam_appl.h pam/pam_appl.h
                   19910: do
                   19911: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   19912: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   19913:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   19914: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   19915: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.27      millert  19916:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.37      millert  19917: fi
                   19918: ac_res=`eval echo '${'$as_ac_Header'}'`
                   19919:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   19920: echo "${ECHO_T}$ac_res" >&6; }
1.27      millert  19921: else
1.37      millert  19922:   # Is the header compilable?
                   19923: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   19924: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
                   19925: cat >conftest.$ac_ext <<_ACEOF
1.24      millert  19926: /* confdefs.h.  */
                   19927: _ACEOF
                   19928: cat confdefs.h >>conftest.$ac_ext
                   19929: cat >>conftest.$ac_ext <<_ACEOF
                   19930: /* end confdefs.h.  */
1.27      millert  19931: $ac_includes_default
1.37      millert  19932: #include <$ac_header>
1.24      millert  19933: _ACEOF
1.37      millert  19934: rm -f conftest.$ac_objext
                   19935: if { (ac_try="$ac_compile"
1.27      millert  19936: case "(($ac_try" in
                   19937:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19938:   *) ac_try_echo=$ac_try;;
                   19939: esac
                   19940: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  19941:   (eval "$ac_compile") 2>conftest.er1
1.24      millert  19942:   ac_status=$?
1.37      millert  19943:   grep -v '^ *+' conftest.er1 >conftest.err
                   19944:   rm -f conftest.er1
                   19945:   cat conftest.err >&5
1.24      millert  19946:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37      millert  19947:   (exit $ac_status); } && {
                   19948:         test -z "$ac_c_werror_flag" ||
                   19949:         test ! -s conftest.err
                   19950:        } && test -s conftest.$ac_objext; then
                   19951:   ac_header_compiler=yes
1.27      millert  19952: else
1.37      millert  19953:   echo "$as_me: failed program was:" >&5
1.27      millert  19954: sed 's/^/| /' conftest.$ac_ext >&5
                   19955:
1.37      millert  19956:        ac_header_compiler=no
1.27      millert  19957: fi
                   19958:
1.37      millert  19959: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   19960: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   19961: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.27      millert  19962:
1.37      millert  19963: # Is the header present?
                   19964: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   19965: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
                   19966: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  19967: /* confdefs.h.  */
                   19968: _ACEOF
                   19969: cat confdefs.h >>conftest.$ac_ext
                   19970: cat >>conftest.$ac_ext <<_ACEOF
                   19971: /* end confdefs.h.  */
1.37      millert  19972: #include <$ac_header>
1.9       millert  19973: _ACEOF
1.37      millert  19974: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.27      millert  19975: case "(($ac_try" in
                   19976:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   19977:   *) ac_try_echo=$ac_try;;
                   19978: esac
                   19979: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  19980:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  19981:   ac_status=$?
1.25      millert  19982:   grep -v '^ *+' conftest.er1 >conftest.err
                   19983:   rm -f conftest.er1
                   19984:   cat conftest.err >&5
1.16      millert  19985:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37      millert  19986:   (exit $ac_status); } >/dev/null && {
                   19987:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.27      millert  19988:         test ! -s conftest.err
1.37      millert  19989:        }; then
                   19990:   ac_header_preproc=yes
1.25      millert  19991: else
                   19992:   echo "$as_me: failed program was:" >&5
                   19993: sed 's/^/| /' conftest.$ac_ext >&5
                   19994:
1.37      millert  19995:   ac_header_preproc=no
1.25      millert  19996: fi
1.27      millert  19997:
1.37      millert  19998: rm -f conftest.err conftest.$ac_ext
                   19999: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   20000: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.23      millert  20001:
1.37      millert  20002: # So?  What about this header?
                   20003: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   20004:   yes:no: )
                   20005:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   20006: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   20007:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   20008: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   20009:     ac_header_preproc=yes
                   20010:     ;;
                   20011:   no:yes:* )
                   20012:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   20013: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   20014:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   20015: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   20016:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   20017: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   20018:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   20019: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   20020:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   20021: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   20022:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   20023: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.40      millert  20024:     ( cat <<\_ASBOX
                   20025: ## --------------------------------------- ##
                   20026: ## Report this to http://www.sudo.ws/bugs/ ##
                   20027: ## --------------------------------------- ##
                   20028: _ASBOX
                   20029:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.37      millert  20030:     ;;
                   20031: esac
                   20032: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   20033: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   20034: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   20035:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.9       millert  20036: else
1.37      millert  20037:   eval "$as_ac_Header=\$ac_header_preproc"
                   20038: fi
                   20039: ac_res=`eval echo '${'$as_ac_Header'}'`
                   20040:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   20041: echo "${ECHO_T}$ac_res" >&6; }
                   20042:
                   20043: fi
                   20044: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   20045:   cat >>confdefs.h <<_ACEOF
                   20046: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   20047: _ACEOF
                   20048:  with_pam=yes; break
                   20049: fi
                   20050:
                   20051: done
1.16      millert  20052:
1.37      millert  20053:     if test "$with_pam" = "yes"; then
                   20054:        cat >>confdefs.h <<\_ACEOF
                   20055: #define HAVE_PAM 1
                   20056: _ACEOF
                   20057:
                   20058:        AUTH_OBJS="$AUTH_OBJS pam.o";
                   20059:        AUTH_EXCL=PAM
                   20060:        { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
                   20061: echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
                   20062:        # Check whether --enable-pam_session was given.
                   20063: if test "${enable_pam_session+set}" = set; then
                   20064:   enableval=$enable_pam_session;  case "$enableval" in
                   20065:                yes)    { echo "$as_me:$LINENO: result: yes" >&5
                   20066: echo "${ECHO_T}yes" >&6; }
                   20067:                        ;;
                   20068:                no)             { echo "$as_me:$LINENO: result: no" >&5
                   20069: echo "${ECHO_T}no" >&6; }
                   20070:
                   20071: cat >>confdefs.h <<\_ACEOF
                   20072: #define NO_PAM_SESSION
                   20073: _ACEOF
                   20074:
                   20075:                            ;;
                   20076:                *)              { echo "$as_me:$LINENO: result: no" >&5
                   20077: echo "${ECHO_T}no" >&6; }
                   20078:                            { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
                   20079: echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
                   20080:                            ;;
                   20081:            esac
1.25      millert  20082: else
1.37      millert  20083:   { echo "$as_me:$LINENO: result: yes" >&5
                   20084: echo "${ECHO_T}yes" >&6; }
                   20085: fi
1.27      millert  20086:
1.37      millert  20087:        case $host in
                   20088:            *-*-linux*|*-*-solaris*)
                   20089:                    # dgettext() may be defined to dgettext_libintl in the
                   20090:                    # header file, so first check that it links w/ additional
                   20091:                    # libs, then try with -lintl
                   20092:                    cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20093: /* confdefs.h.  */
                   20094: _ACEOF
                   20095: cat confdefs.h >>conftest.$ac_ext
                   20096: cat >>conftest.$ac_ext <<_ACEOF
                   20097: /* end confdefs.h.  */
1.37      millert  20098: #include <libintl.h>
1.16      millert  20099: int
                   20100: main ()
                   20101: {
1.37      millert  20102: (void)dgettext((char *)0, (char *)0);
1.9       millert  20103:   ;
                   20104:   return 0;
                   20105: }
                   20106: _ACEOF
                   20107: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  20108: if { (ac_try="$ac_link"
                   20109: case "(($ac_try" in
                   20110:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20111:   *) ac_try_echo=$ac_try;;
                   20112: esac
                   20113: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20114:   (eval "$ac_link") 2>conftest.er1
1.9       millert  20115:   ac_status=$?
1.25      millert  20116:   grep -v '^ *+' conftest.er1 >conftest.err
                   20117:   rm -f conftest.er1
                   20118:   cat conftest.err >&5
1.16      millert  20119:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20120:   (exit $ac_status); } && {
                   20121:         test -z "$ac_c_werror_flag" ||
                   20122:         test ! -s conftest.err
                   20123:        } && test -s conftest$ac_exeext &&
                   20124:        $as_test_x conftest$ac_exeext; then
1.37      millert  20125:   cat >>confdefs.h <<\_ACEOF
                   20126: #define HAVE_DGETTEXT 1
                   20127: _ACEOF
                   20128:
1.9       millert  20129: else
                   20130:   echo "$as_me: failed program was:" >&5
1.16      millert  20131: sed 's/^/| /' conftest.$ac_ext >&5
                   20132:
1.37      millert  20133:        { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
                   20134: echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
                   20135: if test "${ac_cv_lib_intl_dgettext+set}" = set; then
1.9       millert  20136:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20137: else
1.25      millert  20138:   ac_check_lib_save_LIBS=$LIBS
1.37      millert  20139: LIBS="-lintl  $LIBS"
1.25      millert  20140: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20141: /* confdefs.h.  */
                   20142: _ACEOF
                   20143: cat confdefs.h >>conftest.$ac_ext
                   20144: cat >>conftest.$ac_ext <<_ACEOF
                   20145: /* end confdefs.h.  */
1.25      millert  20146:
1.37      millert  20147: /* Override any GCC internal prototype to avoid an error.
                   20148:    Use char because int might match the return type of a GCC
                   20149:    builtin and then its argument prototype would still apply.  */
                   20150: #ifdef __cplusplus
                   20151: extern "C"
                   20152: #endif
                   20153: char dgettext ();
1.16      millert  20154: int
                   20155: main ()
                   20156: {
1.37      millert  20157: return dgettext ();
1.9       millert  20158:   ;
                   20159:   return 0;
                   20160: }
                   20161: _ACEOF
                   20162: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  20163: if { (ac_try="$ac_link"
                   20164: case "(($ac_try" in
                   20165:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20166:   *) ac_try_echo=$ac_try;;
                   20167: esac
                   20168: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20169:   (eval "$ac_link") 2>conftest.er1
1.9       millert  20170:   ac_status=$?
1.25      millert  20171:   grep -v '^ *+' conftest.er1 >conftest.err
                   20172:   rm -f conftest.er1
                   20173:   cat conftest.err >&5
1.16      millert  20174:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20175:   (exit $ac_status); } && {
                   20176:         test -z "$ac_c_werror_flag" ||
                   20177:         test ! -s conftest.err
                   20178:        } && test -s conftest$ac_exeext &&
                   20179:        $as_test_x conftest$ac_exeext; then
1.37      millert  20180:   ac_cv_lib_intl_dgettext=yes
1.25      millert  20181: else
                   20182:   echo "$as_me: failed program was:" >&5
                   20183: sed 's/^/| /' conftest.$ac_ext >&5
                   20184:
1.37      millert  20185:        ac_cv_lib_intl_dgettext=no
1.9       millert  20186: fi
1.27      millert  20187:
                   20188: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   20189:       conftest$ac_exeext conftest.$ac_ext
                   20190: LIBS=$ac_check_lib_save_LIBS
1.9       millert  20191: fi
1.37      millert  20192: { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
                   20193: echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
                   20194: if test $ac_cv_lib_intl_dgettext = yes; then
                   20195:   LIBS="${LIBS} -lintl"
                   20196:                        cat >>confdefs.h <<\_ACEOF
                   20197: #define HAVE_DGETTEXT 1
                   20198: _ACEOF
                   20199:
                   20200: fi
                   20201:
1.25      millert  20202: fi
                   20203:
1.37      millert  20204: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   20205:       conftest$ac_exeext conftest.$ac_ext
                   20206:                    ;;
                   20207:        esac
                   20208:     fi
                   20209: fi
1.27      millert  20210:
1.37      millert  20211: if test ${with_aixauth-'no'} != "no"; then
                   20212:     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
                   20213:        { echo "$as_me:$LINENO: using AIX general authentication" >&5
                   20214: echo "$as_me: using AIX general authentication" >&6;}
                   20215:        cat >>confdefs.h <<\_ACEOF
                   20216: #define HAVE_AIXAUTH 1
                   20217: _ACEOF
1.25      millert  20218:
1.37      millert  20219:        AUTH_OBJS="$AUTH_OBJS aix_auth.o";
                   20220:        SUDO_LIBS="${SUDO_LIBS} -ls"
                   20221:        AUTH_EXCL=AIX_AUTH
                   20222:     fi
                   20223: fi
1.25      millert  20224:
1.37      millert  20225: if test ${with_bsdauth-'no'} != "no"; then
                   20226:     if test "${ac_cv_header_bsd_auth_h+set}" = set; then
                   20227:   { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
                   20228: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
                   20229: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
1.27      millert  20230:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  20231: fi
1.37      millert  20232: { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
                   20233: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
1.1       millert  20234: else
1.27      millert  20235:   # Is the header compilable?
1.37      millert  20236: { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
                   20237: echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
1.27      millert  20238: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20239: /* confdefs.h.  */
                   20240: _ACEOF
                   20241: cat confdefs.h >>conftest.$ac_ext
                   20242: cat >>conftest.$ac_ext <<_ACEOF
                   20243: /* end confdefs.h.  */
1.27      millert  20244: $ac_includes_default
1.37      millert  20245: #include <bsd_auth.h>
1.9       millert  20246: _ACEOF
1.25      millert  20247: rm -f conftest.$ac_objext
1.27      millert  20248: if { (ac_try="$ac_compile"
                   20249: case "(($ac_try" in
                   20250:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20251:   *) ac_try_echo=$ac_try;;
                   20252: esac
                   20253: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20254:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  20255:   ac_status=$?
1.25      millert  20256:   grep -v '^ *+' conftest.er1 >conftest.err
                   20257:   rm -f conftest.er1
                   20258:   cat conftest.err >&5
1.16      millert  20259:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20260:   (exit $ac_status); } && {
                   20261:         test -z "$ac_c_werror_flag" ||
                   20262:         test ! -s conftest.err
                   20263:        } && test -s conftest.$ac_objext; then
                   20264:   ac_header_compiler=yes
1.9       millert  20265: else
                   20266:   echo "$as_me: failed program was:" >&5
1.16      millert  20267: sed 's/^/| /' conftest.$ac_ext >&5
                   20268:
1.27      millert  20269:        ac_header_compiler=no
                   20270: fi
1.25      millert  20271:
1.27      millert  20272: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   20273: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   20274: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25      millert  20275:
1.27      millert  20276: # Is the header present?
1.37      millert  20277: { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
                   20278: echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
1.27      millert  20279: cat >conftest.$ac_ext <<_ACEOF
                   20280: /* confdefs.h.  */
1.25      millert  20281: _ACEOF
1.27      millert  20282: cat confdefs.h >>conftest.$ac_ext
                   20283: cat >>conftest.$ac_ext <<_ACEOF
                   20284: /* end confdefs.h.  */
1.37      millert  20285: #include <bsd_auth.h>
1.25      millert  20286: _ACEOF
1.27      millert  20287: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   20288: case "(($ac_try" in
                   20289:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20290:   *) ac_try_echo=$ac_try;;
                   20291: esac
                   20292: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20293:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.25      millert  20294:   ac_status=$?
                   20295:   grep -v '^ *+' conftest.er1 >conftest.err
                   20296:   rm -f conftest.er1
                   20297:   cat conftest.err >&5
                   20298:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20299:   (exit $ac_status); } >/dev/null && {
                   20300:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   20301:         test ! -s conftest.err
                   20302:        }; then
                   20303:   ac_header_preproc=yes
1.1       millert  20304: else
1.25      millert  20305:   echo "$as_me: failed program was:" >&5
                   20306: sed 's/^/| /' conftest.$ac_ext >&5
                   20307:
1.27      millert  20308:   ac_header_preproc=no
                   20309: fi
                   20310:
                   20311: rm -f conftest.err conftest.$ac_ext
                   20312: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   20313: echo "${ECHO_T}$ac_header_preproc" >&6; }
                   20314:
                   20315: # So?  What about this header?
                   20316: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   20317:   yes:no: )
1.37      millert  20318:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
                   20319: echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   20320:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
                   20321: echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
1.27      millert  20322:     ac_header_preproc=yes
                   20323:     ;;
                   20324:   no:yes:* )
1.37      millert  20325:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
                   20326: echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
                   20327:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&5
                   20328: echo "$as_me: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&2;}
                   20329:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
                   20330: echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
                   20331:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&5
                   20332: echo "$as_me: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
                   20333:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
                   20334: echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
                   20335:     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
                   20336: echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
1.40      millert  20337:     ( cat <<\_ASBOX
                   20338: ## --------------------------------------- ##
                   20339: ## Report this to http://www.sudo.ws/bugs/ ##
                   20340: ## --------------------------------------- ##
                   20341: _ASBOX
                   20342:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.27      millert  20343:     ;;
                   20344: esac
1.37      millert  20345: { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
                   20346: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
                   20347: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
1.27      millert  20348:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   20349: else
1.37      millert  20350:   ac_cv_header_bsd_auth_h=$ac_header_preproc
1.27      millert  20351: fi
1.37      millert  20352: { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
                   20353: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
1.25      millert  20354:
                   20355: fi
1.37      millert  20356: if test $ac_cv_header_bsd_auth_h = yes; then
                   20357:   cat >>confdefs.h <<\_ACEOF
                   20358: #define HAVE_BSD_AUTH_H 1
1.27      millert  20359: _ACEOF
1.37      millert  20360:
                   20361:        AUTH_OBJS="$AUTH_OBJS bsdauth.o"
                   20362:        BSDAUTH_USAGE='[-a auth_type] '
                   20363:        AUTH_EXCL=BSD_AUTH; BAMAN=""
                   20364: else
                   20365:   { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
                   20366: echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
                   20367:    { (exit 1); exit 1; }; }
1.27      millert  20368: fi
                   20369:
                   20370:
1.37      millert  20371: fi
1.25      millert  20372:
1.37      millert  20373: if test ${CHECKSIA-'false'} = "true"; then
1.30      millert  20374:
1.37      millert  20375: for ac_func in sia_ses_init
                   20376: do
                   20377: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   20378: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   20379: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   20380: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
                   20381:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.30      millert  20382: else
1.37      millert  20383:   cat >conftest.$ac_ext <<_ACEOF
1.32      millert  20384: /* confdefs.h.  */
                   20385: _ACEOF
                   20386: cat confdefs.h >>conftest.$ac_ext
                   20387: cat >>conftest.$ac_ext <<_ACEOF
                   20388: /* end confdefs.h.  */
1.37      millert  20389: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   20390:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   20391: #define $ac_func innocuous_$ac_func
                   20392:
                   20393: /* System header to define __stub macros and hopefully few prototypes,
                   20394:     which can conflict with char $ac_func (); below.
                   20395:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   20396:     <limits.h> exists even on freestanding compilers.  */
                   20397:
                   20398: #ifdef __STDC__
                   20399: # include <limits.h>
                   20400: #else
                   20401: # include <assert.h>
                   20402: #endif
                   20403:
                   20404: #undef $ac_func
                   20405:
                   20406: /* Override any GCC internal prototype to avoid an error.
                   20407:    Use char because int might match the return type of a GCC
                   20408:    builtin and then its argument prototype would still apply.  */
                   20409: #ifdef __cplusplus
                   20410: extern "C"
                   20411: #endif
                   20412: char $ac_func ();
                   20413: /* The GNU C library defines this for functions which it implements
                   20414:     to always fail with ENOSYS.  Some functions are actually named
                   20415:     something starting with __ and the normal name is an alias.  */
                   20416: #if defined __stub_$ac_func || defined __stub___$ac_func
                   20417: choke me
                   20418: #endif
                   20419:
1.32      millert  20420: int
                   20421: main ()
                   20422: {
1.37      millert  20423: return $ac_func ();
1.32      millert  20424:   ;
                   20425:   return 0;
                   20426: }
                   20427: _ACEOF
                   20428: rm -f conftest.$ac_objext conftest$ac_exeext
                   20429: if { (ac_try="$ac_link"
                   20430: case "(($ac_try" in
                   20431:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20432:   *) ac_try_echo=$ac_try;;
                   20433: esac
                   20434: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20435:   (eval "$ac_link") 2>conftest.er1
                   20436:   ac_status=$?
                   20437:   grep -v '^ *+' conftest.er1 >conftest.err
                   20438:   rm -f conftest.er1
                   20439:   cat conftest.err >&5
                   20440:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   20441:   (exit $ac_status); } && {
                   20442:         test -z "$ac_c_werror_flag" ||
                   20443:         test ! -s conftest.err
                   20444:        } && test -s conftest$ac_exeext &&
                   20445:        $as_test_x conftest$ac_exeext; then
1.37      millert  20446:   eval "$as_ac_var=yes"
1.32      millert  20447: else
                   20448:   echo "$as_me: failed program was:" >&5
                   20449: sed 's/^/| /' conftest.$ac_ext >&5
                   20450:
1.37      millert  20451:        eval "$as_ac_var=no"
                   20452: fi
                   20453:
                   20454: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   20455:       conftest$ac_exeext conftest.$ac_ext
                   20456: fi
                   20457: ac_res=`eval echo '${'$as_ac_var'}'`
                   20458:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   20459: echo "${ECHO_T}$ac_res" >&6; }
                   20460: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   20461:   cat >>confdefs.h <<_ACEOF
                   20462: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   20463: _ACEOF
                   20464:  found=true
                   20465: else
                   20466:   found=false
                   20467: fi
                   20468: done
                   20469:
                   20470:     if test "$found" = "true"; then
                   20471:        AUTH_EXCL=SIA
                   20472:        AUTH_OBJS="$AUTH_OBJS sia.o"
                   20473:     fi
                   20474: fi
                   20475:
                   20476: if test ${with_fwtk-'no'} != "no"; then
                   20477:     if test "$with_fwtk" != "yes"; then
                   20478:
                   20479:     if test X"$with_rpath" = X"yes"; then
                   20480:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
                   20481:     else
                   20482:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
                   20483:     fi
                   20484:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   20485:        blibpath_add="${blibpath_add}:${with_fwtk}"
                   20486:     fi
                   20487:
                   20488:        CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
                   20489:        with_fwtk=yes
                   20490:     fi
                   20491:     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
                   20492:     AUTH_OBJS="$AUTH_OBJS fwtk.o"
                   20493: fi
                   20494:
                   20495: if test ${with_SecurID-'no'} != "no"; then
                   20496:     if test "$with_SecurID" != "yes"; then
                   20497:        :
                   20498:     elif test -d /usr/ace/examples; then
                   20499:        with_SecurID=/usr/ace/examples
                   20500:     else
                   20501:        with_SecurID=/usr/ace
                   20502:     fi
                   20503:     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
                   20504:     _LDFLAGS="${LDFLAGS}"
                   20505:
                   20506:     if test X"$with_rpath" = X"yes"; then
                   20507:        LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
                   20508:     else
                   20509:        LDFLAGS="${LDFLAGS} -L${with_SecurID}"
                   20510:     fi
                   20511:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   20512:        blibpath_add="${blibpath_add}:${with_SecurID}"
                   20513:     fi
                   20514:
                   20515:     #
                   20516:     # Determine whether to use the new or old SecurID API
                   20517:     #
                   20518:     { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
                   20519: echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
                   20520: if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
1.32      millert  20521:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   20522: else
                   20523:   ac_check_lib_save_LIBS=$LIBS
1.37      millert  20524: LIBS="-laceclnt
                   20525:            -lpthread
                   20526:
                   20527:      $LIBS"
1.32      millert  20528: cat >conftest.$ac_ext <<_ACEOF
                   20529: /* confdefs.h.  */
                   20530: _ACEOF
                   20531: cat confdefs.h >>conftest.$ac_ext
                   20532: cat >>conftest.$ac_ext <<_ACEOF
                   20533: /* end confdefs.h.  */
                   20534:
                   20535: /* Override any GCC internal prototype to avoid an error.
                   20536:    Use char because int might match the return type of a GCC
                   20537:    builtin and then its argument prototype would still apply.  */
                   20538: #ifdef __cplusplus
                   20539: extern "C"
                   20540: #endif
1.37      millert  20541: char SD_Init ();
1.32      millert  20542: int
                   20543: main ()
                   20544: {
1.37      millert  20545: return SD_Init ();
1.32      millert  20546:   ;
                   20547:   return 0;
                   20548: }
                   20549: _ACEOF
                   20550: rm -f conftest.$ac_objext conftest$ac_exeext
                   20551: if { (ac_try="$ac_link"
                   20552: case "(($ac_try" in
                   20553:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20554:   *) ac_try_echo=$ac_try;;
                   20555: esac
                   20556: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20557:   (eval "$ac_link") 2>conftest.er1
                   20558:   ac_status=$?
                   20559:   grep -v '^ *+' conftest.er1 >conftest.err
                   20560:   rm -f conftest.er1
                   20561:   cat conftest.err >&5
                   20562:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   20563:   (exit $ac_status); } && {
                   20564:         test -z "$ac_c_werror_flag" ||
                   20565:         test ! -s conftest.err
                   20566:        } && test -s conftest$ac_exeext &&
                   20567:        $as_test_x conftest$ac_exeext; then
1.37      millert  20568:   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
1.32      millert  20569: else
                   20570:   echo "$as_me: failed program was:" >&5
                   20571: sed 's/^/| /' conftest.$ac_ext >&5
                   20572:
1.37      millert  20573:        ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
1.32      millert  20574: fi
                   20575:
                   20576: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   20577:       conftest$ac_exeext conftest.$ac_ext
                   20578: LIBS=$ac_check_lib_save_LIBS
                   20579: fi
1.37      millert  20580: { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
                   20581: echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
                   20582: if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
                   20583:
                   20584:            AUTH_OBJS="$AUTH_OBJS securid5.o";
                   20585:            SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
                   20586:
                   20587:
                   20588:
                   20589:     if test X"$with_rpath" = X"yes"; then
                   20590:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
                   20591:     else
                   20592:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
                   20593:     fi
                   20594:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   20595:        blibpath_add="${blibpath_add}:${with_SecurID}"
                   20596:     fi
                   20597:
                   20598:
                   20599: else
                   20600:
                   20601:            AUTH_OBJS="$AUTH_OBJS securid.o";
                   20602:            SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
1.32      millert  20603:
                   20604: fi
                   20605:
1.37      millert  20606:     LDFLAGS="${_LDFLAGS}"
1.32      millert  20607: fi
                   20608:
1.37      millert  20609:
                   20610: if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
                   20611:     for auth in $AUTH_DEF; do
                   20612:        case $auth in
                   20613:            passwd)     : ${with_passwd='maybe'};;
1.32      millert  20614:        esac
1.37      millert  20615:     done
1.27      millert  20616: fi
                   20617:
1.37      millert  20618: if test ${with_kerb4-'no'} != "no"; then
                   20619:     cat >>confdefs.h <<\_ACEOF
                   20620: #define HAVE_KERB4 1
1.27      millert  20621: _ACEOF
1.25      millert  20622:
1.37      millert  20623:                 O_LDFLAGS="$LDFLAGS"
                   20624:     if test "$with_kerb4" = "yes"; then
                   20625:        found=no
                   20626:        O_CPPFLAGS="$CPPFLAGS"
                   20627:        for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
                   20628:            CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
                   20629:            cat >conftest.$ac_ext <<_ACEOF
                   20630: #include <krb.h>
                   20631: _ACEOF
                   20632: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   20633: case "(($ac_try" in
                   20634:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20635:   *) ac_try_echo=$ac_try;;
                   20636: esac
                   20637: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20638:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
                   20639:   ac_status=$?
                   20640:   grep -v '^ *+' conftest.er1 >conftest.err
                   20641:   rm -f conftest.er1
                   20642:   cat conftest.err >&5
                   20643:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   20644:   (exit $ac_status); } >/dev/null && {
                   20645:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   20646:         test ! -s conftest.err
                   20647:        }; then
                   20648:   found=yes; break
                   20649: else
                   20650:   echo "$as_me: failed program was:" >&5
                   20651: sed 's/^/| /' conftest.$ac_ext >&5
                   20652:
                   20653:
                   20654: fi
                   20655:
                   20656: rm -f conftest.err conftest.$ac_ext
                   20657:        done
                   20658:        test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
                   20659:     else
                   20660:
                   20661:     if test X"$with_rpath" = X"yes"; then
                   20662:        LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
                   20663:     else
                   20664:        LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
                   20665:     fi
                   20666:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   20667:        blibpath_add="${blibpath_add}:${with_kerb4}/lib"
                   20668:     fi
                   20669:
                   20670:
                   20671:     if test X"$with_rpath" = X"yes"; then
                   20672:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
                   20673:     else
                   20674:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
                   20675:     fi
                   20676:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   20677:        blibpath_add="${blibpath_add}:${with_kerb4}/lib"
1.25      millert  20678:     fi
                   20679:
1.37      millert  20680:        CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
                   20681:        if test "${ac_cv_header_krb_h+set}" = set; then
                   20682:   { echo "$as_me:$LINENO: checking for krb.h" >&5
                   20683: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
                   20684: if test "${ac_cv_header_krb_h+set}" = set; then
1.27      millert  20685:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   20686: fi
1.37      millert  20687: { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
                   20688: echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
1.27      millert  20689: else
                   20690:   # Is the header compilable?
1.37      millert  20691: { echo "$as_me:$LINENO: checking krb.h usability" >&5
                   20692: echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
1.27      millert  20693: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20694: /* confdefs.h.  */
                   20695: _ACEOF
                   20696: cat confdefs.h >>conftest.$ac_ext
                   20697: cat >>conftest.$ac_ext <<_ACEOF
                   20698: /* end confdefs.h.  */
1.27      millert  20699: $ac_includes_default
1.37      millert  20700: #include <krb.h>
1.9       millert  20701: _ACEOF
1.25      millert  20702: rm -f conftest.$ac_objext
1.27      millert  20703: if { (ac_try="$ac_compile"
                   20704: case "(($ac_try" in
                   20705:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20706:   *) ac_try_echo=$ac_try;;
                   20707: esac
                   20708: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20709:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  20710:   ac_status=$?
1.25      millert  20711:   grep -v '^ *+' conftest.er1 >conftest.err
                   20712:   rm -f conftest.er1
                   20713:   cat conftest.err >&5
1.16      millert  20714:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20715:   (exit $ac_status); } && {
                   20716:         test -z "$ac_c_werror_flag" ||
                   20717:         test ! -s conftest.err
                   20718:        } && test -s conftest.$ac_objext; then
                   20719:   ac_header_compiler=yes
                   20720: else
                   20721:   echo "$as_me: failed program was:" >&5
                   20722: sed 's/^/| /' conftest.$ac_ext >&5
                   20723:
                   20724:        ac_header_compiler=no
                   20725: fi
1.16      millert  20726:
1.27      millert  20727: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   20728: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   20729: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25      millert  20730:
1.27      millert  20731: # Is the header present?
1.37      millert  20732: { echo "$as_me:$LINENO: checking krb.h presence" >&5
                   20733: echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
1.9       millert  20734: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20735: /* confdefs.h.  */
                   20736: _ACEOF
                   20737: cat confdefs.h >>conftest.$ac_ext
                   20738: cat >>conftest.$ac_ext <<_ACEOF
                   20739: /* end confdefs.h.  */
1.37      millert  20740: #include <krb.h>
1.9       millert  20741: _ACEOF
1.27      millert  20742: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   20743: case "(($ac_try" in
                   20744:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20745:   *) ac_try_echo=$ac_try;;
                   20746: esac
                   20747: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20748:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  20749:   ac_status=$?
1.25      millert  20750:   grep -v '^ *+' conftest.er1 >conftest.err
                   20751:   rm -f conftest.er1
                   20752:   cat conftest.err >&5
1.16      millert  20753:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20754:   (exit $ac_status); } >/dev/null && {
                   20755:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   20756:         test ! -s conftest.err
                   20757:        }; then
                   20758:   ac_header_preproc=yes
1.9       millert  20759: else
                   20760:   echo "$as_me: failed program was:" >&5
1.16      millert  20761: sed 's/^/| /' conftest.$ac_ext >&5
                   20762:
1.27      millert  20763:   ac_header_preproc=no
1.25      millert  20764: fi
                   20765:
1.27      millert  20766: rm -f conftest.err conftest.$ac_ext
                   20767: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   20768: echo "${ECHO_T}$ac_header_preproc" >&6; }
                   20769:
                   20770: # So?  What about this header?
                   20771: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   20772:   yes:no: )
1.37      millert  20773:     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
                   20774: echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   20775:     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
                   20776: echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
1.27      millert  20777:     ac_header_preproc=yes
                   20778:     ;;
                   20779:   no:yes:* )
1.37      millert  20780:     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
                   20781: echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
                   20782:     { echo "$as_me:$LINENO: WARNING: krb.h:     check for missing prerequisite headers?" >&5
                   20783: echo "$as_me: WARNING: krb.h:     check for missing prerequisite headers?" >&2;}
                   20784:     { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
                   20785: echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
                   20786:     { echo "$as_me:$LINENO: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&5
                   20787: echo "$as_me: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
                   20788:     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
                   20789: echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
                   20790:     { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
                   20791: echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
1.40      millert  20792:     ( cat <<\_ASBOX
                   20793: ## --------------------------------------- ##
                   20794: ## Report this to http://www.sudo.ws/bugs/ ##
                   20795: ## --------------------------------------- ##
                   20796: _ASBOX
                   20797:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.27      millert  20798:     ;;
                   20799: esac
1.37      millert  20800: { echo "$as_me:$LINENO: checking for krb.h" >&5
                   20801: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
                   20802: if test "${ac_cv_header_krb_h+set}" = set; then
1.27      millert  20803:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  20804: else
1.37      millert  20805:   ac_cv_header_krb_h=$ac_header_preproc
1.27      millert  20806: fi
1.37      millert  20807: { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
                   20808: echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
1.25      millert  20809:
1.1       millert  20810: fi
1.37      millert  20811: if test $ac_cv_header_krb_h = yes; then
                   20812:   found=yes
1.25      millert  20813: else
1.37      millert  20814:   found=no
1.1       millert  20815: fi
                   20816:
                   20817:
1.37      millert  20818:     fi
                   20819:     if test X"$found" = X"no"; then
                   20820:        { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
                   20821: echo "$as_me: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
                   20822:     fi
1.27      millert  20823:
1.37      millert  20824:                 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
                   20825: echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
                   20826: if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
1.9       millert  20827:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20828: else
1.37      millert  20829:   ac_check_lib_save_LIBS=$LIBS
                   20830: LIBS="-ldes  $LIBS"
                   20831: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20832: /* confdefs.h.  */
                   20833: _ACEOF
                   20834: cat confdefs.h >>conftest.$ac_ext
                   20835: cat >>conftest.$ac_ext <<_ACEOF
                   20836: /* end confdefs.h.  */
1.25      millert  20837:
1.27      millert  20838: /* Override any GCC internal prototype to avoid an error.
                   20839:    Use char because int might match the return type of a GCC
                   20840:    builtin and then its argument prototype would still apply.  */
1.9       millert  20841: #ifdef __cplusplus
                   20842: extern "C"
                   20843: #endif
1.37      millert  20844: char des_cbc_encrypt ();
1.16      millert  20845: int
                   20846: main ()
                   20847: {
1.37      millert  20848: return des_cbc_encrypt ();
1.9       millert  20849:   ;
                   20850:   return 0;
                   20851: }
                   20852: _ACEOF
                   20853: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  20854: if { (ac_try="$ac_link"
                   20855: case "(($ac_try" in
                   20856:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20857:   *) ac_try_echo=$ac_try;;
                   20858: esac
                   20859: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20860:   (eval "$ac_link") 2>conftest.er1
1.9       millert  20861:   ac_status=$?
1.25      millert  20862:   grep -v '^ *+' conftest.er1 >conftest.err
                   20863:   rm -f conftest.er1
                   20864:   cat conftest.err >&5
1.16      millert  20865:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20866:   (exit $ac_status); } && {
                   20867:         test -z "$ac_c_werror_flag" ||
                   20868:         test ! -s conftest.err
                   20869:        } && test -s conftest$ac_exeext &&
                   20870:        $as_test_x conftest$ac_exeext; then
1.37      millert  20871:   ac_cv_lib_des_des_cbc_encrypt=yes
1.9       millert  20872: else
                   20873:   echo "$as_me: failed program was:" >&5
1.16      millert  20874: sed 's/^/| /' conftest.$ac_ext >&5
                   20875:
1.37      millert  20876:        ac_cv_lib_des_des_cbc_encrypt=no
1.25      millert  20877: fi
1.27      millert  20878:
                   20879: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  20880:       conftest$ac_exeext conftest.$ac_ext
1.37      millert  20881: LIBS=$ac_check_lib_save_LIBS
1.25      millert  20882: fi
1.37      millert  20883: { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
                   20884: echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
                   20885: if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
                   20886:   K4LIBS="-ldes"
1.27      millert  20887: else
1.25      millert  20888:
1.37      millert  20889:        { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
                   20890: echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
                   20891: if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
1.9       millert  20892:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  20893: else
1.9       millert  20894:   ac_check_lib_save_LIBS=$LIBS
1.37      millert  20895: LIBS="-ldes425  $LIBS"
1.9       millert  20896: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  20897: /* confdefs.h.  */
                   20898: _ACEOF
                   20899: cat confdefs.h >>conftest.$ac_ext
                   20900: cat >>conftest.$ac_ext <<_ACEOF
                   20901: /* end confdefs.h.  */
1.9       millert  20902:
1.27      millert  20903: /* Override any GCC internal prototype to avoid an error.
                   20904:    Use char because int might match the return type of a GCC
                   20905:    builtin and then its argument prototype would still apply.  */
                   20906: #ifdef __cplusplus
                   20907: extern "C"
                   20908: #endif
1.37      millert  20909: char des_cbc_encrypt ();
1.9       millert  20910: int
                   20911: main ()
                   20912: {
1.37      millert  20913: return des_cbc_encrypt ();
1.9       millert  20914:   ;
                   20915:   return 0;
                   20916: }
                   20917: _ACEOF
                   20918: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  20919: if { (ac_try="$ac_link"
                   20920: case "(($ac_try" in
                   20921:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20922:   *) ac_try_echo=$ac_try;;
                   20923: esac
                   20924: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   20925:   (eval "$ac_link") 2>conftest.er1
1.9       millert  20926:   ac_status=$?
1.25      millert  20927:   grep -v '^ *+' conftest.er1 >conftest.err
                   20928:   rm -f conftest.er1
                   20929:   cat conftest.err >&5
1.16      millert  20930:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  20931:   (exit $ac_status); } && {
                   20932:         test -z "$ac_c_werror_flag" ||
                   20933:         test ! -s conftest.err
                   20934:        } && test -s conftest$ac_exeext &&
                   20935:        $as_test_x conftest$ac_exeext; then
1.37      millert  20936:   ac_cv_lib_des425_des_cbc_encrypt=yes
1.9       millert  20937: else
                   20938:   echo "$as_me: failed program was:" >&5
1.16      millert  20939: sed 's/^/| /' conftest.$ac_ext >&5
                   20940:
1.37      millert  20941:        ac_cv_lib_des425_des_cbc_encrypt=no
1.9       millert  20942: fi
1.27      millert  20943:
                   20944: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  20945:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  20946: LIBS=$ac_check_lib_save_LIBS
                   20947: fi
1.37      millert  20948: { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
                   20949: echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
                   20950: if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
                   20951:   K4LIBS="-ldes425"
1.27      millert  20952: else
1.37      millert  20953:   K4LIBS=""
1.27      millert  20954: fi
                   20955:
                   20956:
                   20957: fi
                   20958:
1.37      millert  20959:                 { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
                   20960: echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
                   20961:     cat >conftest.$ac_ext <<_ACEOF
                   20962: /* confdefs.h.  */
1.27      millert  20963: _ACEOF
1.37      millert  20964: cat confdefs.h >>conftest.$ac_ext
                   20965: cat >>conftest.$ac_ext <<_ACEOF
                   20966: /* end confdefs.h.  */
1.27      millert  20967: #include <krb.h>
1.37      millert  20968: int
                   20969: main ()
                   20970: {
                   20971: const char *tmp = krb4_version;
                   20972:   ;
                   20973:   return 0;
                   20974: }
1.27      millert  20975: _ACEOF
1.37      millert  20976: rm -f conftest.$ac_objext
                   20977: if { (ac_try="$ac_compile"
1.27      millert  20978: case "(($ac_try" in
                   20979:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   20980:   *) ac_try_echo=$ac_try;;
                   20981: esac
                   20982: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  20983:   (eval "$ac_compile") 2>conftest.er1
1.27      millert  20984:   ac_status=$?
                   20985:   grep -v '^ *+' conftest.er1 >conftest.err
                   20986:   rm -f conftest.er1
                   20987:   cat conftest.err >&5
                   20988:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37      millert  20989:   (exit $ac_status); } && {
                   20990:         test -z "$ac_c_werror_flag" ||
1.27      millert  20991:         test ! -s conftest.err
1.37      millert  20992:        } && test -s conftest.$ac_objext; then
1.27      millert  20993:
1.37      millert  20994:            { echo "$as_me:$LINENO: result: yes" >&5
                   20995: echo "${ECHO_T}yes" >&6; }
                   20996:            K4LIBS="${K4LIBS} -lcom_err"
                   20997:            { echo "$as_me:$LINENO: checking for main in -lroken" >&5
                   20998: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
                   20999: if test "${ac_cv_lib_roken_main+set}" = set; then
1.9       millert  21000:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  21001: else
1.37      millert  21002:   ac_check_lib_save_LIBS=$LIBS
                   21003: LIBS="-lroken  $LIBS"
1.9       millert  21004: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21005: /* confdefs.h.  */
                   21006: _ACEOF
                   21007: cat confdefs.h >>conftest.$ac_ext
                   21008: cat >>conftest.$ac_ext <<_ACEOF
                   21009: /* end confdefs.h.  */
1.37      millert  21010:
                   21011:
                   21012: int
                   21013: main ()
                   21014: {
                   21015: return main ();
                   21016:   ;
                   21017:   return 0;
                   21018: }
1.9       millert  21019: _ACEOF
1.37      millert  21020: rm -f conftest.$ac_objext conftest$ac_exeext
                   21021: if { (ac_try="$ac_link"
1.27      millert  21022: case "(($ac_try" in
                   21023:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21024:   *) ac_try_echo=$ac_try;;
                   21025: esac
                   21026: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  21027:   (eval "$ac_link") 2>conftest.er1
1.9       millert  21028:   ac_status=$?
1.25      millert  21029:   grep -v '^ *+' conftest.er1 >conftest.err
                   21030:   rm -f conftest.er1
                   21031:   cat conftest.err >&5
1.16      millert  21032:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21033:   (exit $ac_status); } && {
                   21034:         test -z "$ac_c_werror_flag" ||
                   21035:         test ! -s conftest.err
1.37      millert  21036:        } && test -s conftest$ac_exeext &&
                   21037:        $as_test_x conftest$ac_exeext; then
                   21038:   ac_cv_lib_roken_main=yes
                   21039: else
                   21040:   echo "$as_me: failed program was:" >&5
                   21041: sed 's/^/| /' conftest.$ac_ext >&5
                   21042:
                   21043:        ac_cv_lib_roken_main=no
                   21044: fi
                   21045:
                   21046: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   21047:       conftest$ac_exeext conftest.$ac_ext
                   21048: LIBS=$ac_check_lib_save_LIBS
                   21049: fi
                   21050: { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
                   21051: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
                   21052: if test $ac_cv_lib_roken_main = yes; then
                   21053:   K4LIBS="${K4LIBS} -lroken"
                   21054: fi
                   21055:
                   21056:
1.9       millert  21057: else
                   21058:   echo "$as_me: failed program was:" >&5
1.16      millert  21059: sed 's/^/| /' conftest.$ac_ext >&5
                   21060:
1.37      millert  21061:
                   21062:            { echo "$as_me:$LINENO: result: no" >&5
                   21063: echo "${ECHO_T}no" >&6; }
                   21064:
                   21065:
1.9       millert  21066: fi
1.27      millert  21067:
                   21068: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.37      millert  21069:                 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
                   21070: { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
                   21071: echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
                   21072: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
                   21073:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   21074: else
                   21075:   ac_check_lib_save_LIBS=$LIBS
                   21076: LIBS="-lkrb $K4LIBS $LIBS"
1.9       millert  21077: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21078: /* confdefs.h.  */
                   21079: _ACEOF
                   21080: cat confdefs.h >>conftest.$ac_ext
                   21081: cat >>conftest.$ac_ext <<_ACEOF
                   21082: /* end confdefs.h.  */
1.37      millert  21083:
                   21084:
                   21085: int
                   21086: main ()
                   21087: {
                   21088: return main ();
                   21089:   ;
                   21090:   return 0;
                   21091: }
1.9       millert  21092: _ACEOF
1.37      millert  21093: rm -f conftest.$ac_objext conftest$ac_exeext
                   21094: if { (ac_try="$ac_link"
1.27      millert  21095: case "(($ac_try" in
                   21096:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21097:   *) ac_try_echo=$ac_try;;
                   21098: esac
                   21099: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  21100:   (eval "$ac_link") 2>conftest.er1
1.9       millert  21101:   ac_status=$?
1.25      millert  21102:   grep -v '^ *+' conftest.er1 >conftest.err
                   21103:   rm -f conftest.er1
                   21104:   cat conftest.err >&5
1.16      millert  21105:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37      millert  21106:   (exit $ac_status); } && {
                   21107:         test -z "$ac_c_werror_flag" ||
1.27      millert  21108:         test ! -s conftest.err
1.37      millert  21109:        } && test -s conftest$ac_exeext &&
                   21110:        $as_test_x conftest$ac_exeext; then
                   21111:   eval "$as_ac_Lib=yes"
1.9       millert  21112: else
                   21113:   echo "$as_me: failed program was:" >&5
1.25      millert  21114: sed 's/^/| /' conftest.$ac_ext >&5
                   21115:
1.37      millert  21116:        eval "$as_ac_Lib=no"
1.25      millert  21117: fi
1.27      millert  21118:
1.37      millert  21119: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   21120:       conftest$ac_exeext conftest.$ac_ext
                   21121: LIBS=$ac_check_lib_save_LIBS
1.27      millert  21122: fi
1.37      millert  21123: ac_res=`eval echo '${'$as_ac_Lib'}'`
                   21124:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   21125: echo "${ECHO_T}$ac_res" >&6; }
                   21126: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
                   21127:   K4LIBS="-lkrb $K4LIBS"
1.25      millert  21128: else
1.1       millert  21129:
1.37      millert  21130:        as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
                   21131: { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
                   21132: echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
                   21133: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  21134:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  21135: else
1.27      millert  21136:   ac_check_lib_save_LIBS=$LIBS
1.37      millert  21137: LIBS="-lkrb4 $K4LIBS $LIBS"
1.27      millert  21138: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21139: /* confdefs.h.  */
                   21140: _ACEOF
                   21141: cat confdefs.h >>conftest.$ac_ext
                   21142: cat >>conftest.$ac_ext <<_ACEOF
                   21143: /* end confdefs.h.  */
1.25      millert  21144:
1.37      millert  21145:
1.16      millert  21146: int
                   21147: main ()
                   21148: {
1.37      millert  21149: return main ();
1.9       millert  21150:   ;
                   21151:   return 0;
                   21152: }
                   21153: _ACEOF
                   21154: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  21155: if { (ac_try="$ac_link"
                   21156: case "(($ac_try" in
                   21157:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21158:   *) ac_try_echo=$ac_try;;
                   21159: esac
                   21160: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21161:   (eval "$ac_link") 2>conftest.er1
1.9       millert  21162:   ac_status=$?
1.25      millert  21163:   grep -v '^ *+' conftest.er1 >conftest.err
                   21164:   rm -f conftest.er1
                   21165:   cat conftest.err >&5
1.16      millert  21166:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21167:   (exit $ac_status); } && {
                   21168:         test -z "$ac_c_werror_flag" ||
                   21169:         test ! -s conftest.err
                   21170:        } && test -s conftest$ac_exeext &&
                   21171:        $as_test_x conftest$ac_exeext; then
1.37      millert  21172:   eval "$as_ac_Lib=yes"
1.9       millert  21173: else
                   21174:   echo "$as_me: failed program was:" >&5
1.16      millert  21175: sed 's/^/| /' conftest.$ac_ext >&5
                   21176:
1.37      millert  21177:        eval "$as_ac_Lib=no"
1.25      millert  21178: fi
1.27      millert  21179:
                   21180: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  21181:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  21182: LIBS=$ac_check_lib_save_LIBS
1.9       millert  21183: fi
1.37      millert  21184: ac_res=`eval echo '${'$as_ac_Lib'}'`
                   21185:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   21186: echo "${ECHO_T}$ac_res" >&6; }
                   21187: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
                   21188:   K4LIBS="-lkrb4 $K4LIBS"
1.27      millert  21189: else
1.37      millert  21190:   K4LIBS="-lkrb $K4LIBS"
                   21191:            { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&5
                   21192: echo "$as_me: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&2;}
1.25      millert  21193:
1.37      millert  21194: fi
                   21195:
                   21196:
                   21197: fi
                   21198:
                   21199:     LDFLAGS="$O_LDFLAGS"
                   21200:     SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
                   21201:     AUTH_OBJS="$AUTH_OBJS kerb4.o"
                   21202: fi
                   21203:
                   21204: if test ${with_kerb5-'no'} != "no"; then
                   21205:     # Extract the first word of "krb5-config", so it can be a program name with args.
                   21206: set dummy krb5-config; ac_word=$2
                   21207: { echo "$as_me:$LINENO: checking for $ac_word" >&5
                   21208: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
                   21209: if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
1.9       millert  21210:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.6       millert  21211: else
1.37      millert  21212:   if test -n "$KRB5CONFIG"; then
                   21213:   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
                   21214: else
                   21215: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   21216: for as_dir in $PATH
                   21217: do
                   21218:   IFS=$as_save_IFS
                   21219:   test -z "$as_dir" && as_dir=.
                   21220:   for ac_exec_ext in '' $ac_executable_extensions; do
                   21221:   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
                   21222:     ac_cv_prog_KRB5CONFIG="yes"
                   21223:     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
                   21224:     break 2
                   21225:   fi
                   21226: done
                   21227: done
                   21228: IFS=$as_save_IFS
                   21229:
                   21230:   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
                   21231: fi
                   21232: fi
                   21233: KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
                   21234: if test -n "$KRB5CONFIG"; then
                   21235:   { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
                   21236: echo "${ECHO_T}$KRB5CONFIG" >&6; }
                   21237: else
                   21238:   { echo "$as_me:$LINENO: result: no" >&5
                   21239: echo "${ECHO_T}no" >&6; }
                   21240: fi
                   21241:
                   21242:
                   21243:     if test -n "$KRB5CONFIG"; then
                   21244:        cat >>confdefs.h <<\_ACEOF
                   21245: #define HAVE_KERB5 1
                   21246: _ACEOF
                   21247:
                   21248:        AUTH_OBJS="$AUTH_OBJS kerb5.o"
                   21249:        CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
                   21250:        SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
                   21251:                                { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
                   21252: echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
                   21253:        cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21254: /* confdefs.h.  */
                   21255: _ACEOF
                   21256: cat confdefs.h >>conftest.$ac_ext
                   21257: cat >>conftest.$ac_ext <<_ACEOF
                   21258: /* end confdefs.h.  */
1.37      millert  21259: #include <krb5.h>
1.16      millert  21260: int
                   21261: main ()
                   21262: {
1.37      millert  21263: const char *tmp = heimdal_version;
1.9       millert  21264:   ;
                   21265:   return 0;
                   21266: }
                   21267: _ACEOF
1.37      millert  21268: rm -f conftest.$ac_objext
                   21269: if { (ac_try="$ac_compile"
1.27      millert  21270: case "(($ac_try" in
                   21271:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21272:   *) ac_try_echo=$ac_try;;
                   21273: esac
                   21274: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  21275:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  21276:   ac_status=$?
1.25      millert  21277:   grep -v '^ *+' conftest.er1 >conftest.err
                   21278:   rm -f conftest.er1
                   21279:   cat conftest.err >&5
1.16      millert  21280:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21281:   (exit $ac_status); } && {
                   21282:         test -z "$ac_c_werror_flag" ||
                   21283:         test ! -s conftest.err
1.37      millert  21284:        } && test -s conftest.$ac_objext; then
                   21285:
                   21286:                { echo "$as_me:$LINENO: result: yes" >&5
                   21287: echo "${ECHO_T}yes" >&6; }
                   21288:                cat >>confdefs.h <<\_ACEOF
                   21289: #define HAVE_HEIMDAL 1
                   21290: _ACEOF
                   21291:
                   21292:
1.9       millert  21293: else
                   21294:   echo "$as_me: failed program was:" >&5
1.16      millert  21295: sed 's/^/| /' conftest.$ac_ext >&5
                   21296:
1.37      millert  21297:
                   21298:                { echo "$as_me:$LINENO: result: no" >&5
                   21299: echo "${ECHO_T}no" >&6; }
                   21300:
                   21301:
1.25      millert  21302: fi
1.27      millert  21303:
1.37      millert  21304: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   21305:     fi
1.25      millert  21306: fi
1.37      millert  21307: if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
                   21308:     cat >>confdefs.h <<\_ACEOF
                   21309: #define HAVE_KERB5 1
                   21310: _ACEOF
                   21311:
                   21312:                 if test "$with_kerb5" = "yes"; then
                   21313:        found=no
                   21314:        O_CPPFLAGS="$CPPFLAGS"
                   21315:        for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
                   21316:            CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
                   21317:            cat >conftest.$ac_ext <<_ACEOF
                   21318: #include <krb5.h>
                   21319: _ACEOF
                   21320: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   21321: case "(($ac_try" in
                   21322:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21323:   *) ac_try_echo=$ac_try;;
                   21324: esac
                   21325: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21326:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
                   21327:   ac_status=$?
                   21328:   grep -v '^ *+' conftest.er1 >conftest.err
                   21329:   rm -f conftest.er1
                   21330:   cat conftest.err >&5
                   21331:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   21332:   (exit $ac_status); } >/dev/null && {
                   21333:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   21334:         test ! -s conftest.err
                   21335:        }; then
                   21336:   found=yes; break
1.27      millert  21337: else
1.37      millert  21338:   echo "$as_me: failed program was:" >&5
                   21339: sed 's/^/| /' conftest.$ac_ext >&5
                   21340:
                   21341:
1.9       millert  21342: fi
1.25      millert  21343:
1.37      millert  21344: rm -f conftest.err conftest.$ac_ext
                   21345:        done
                   21346:        if test X"$found" = X"no"; then
                   21347:            CPPFLAGS="$O_CPPFLAGS"
                   21348:            { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
                   21349: echo "$as_me: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
                   21350:        fi
                   21351:     else
                   21352:
                   21353:     if test X"$with_rpath" = X"yes"; then
                   21354:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
                   21355:     else
                   21356:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
                   21357:     fi
                   21358:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   21359:        blibpath_add="${blibpath_add}:${with_kerb5}/lib"
                   21360:     fi
1.27      millert  21361:
1.37      millert  21362:        CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
                   21363:     fi
1.25      millert  21364:
1.37      millert  21365:                 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
                   21366: echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
1.27      millert  21367:     cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21368: /* confdefs.h.  */
                   21369: _ACEOF
                   21370: cat confdefs.h >>conftest.$ac_ext
                   21371: cat >>conftest.$ac_ext <<_ACEOF
                   21372: /* end confdefs.h.  */
1.37      millert  21373: #include <krb5.h>
1.9       millert  21374: int
                   21375: main ()
                   21376: {
1.37      millert  21377: const char *tmp = heimdal_version;
1.9       millert  21378:   ;
                   21379:   return 0;
                   21380: }
                   21381: _ACEOF
1.27      millert  21382: rm -f conftest.$ac_objext
                   21383: if { (ac_try="$ac_compile"
                   21384: case "(($ac_try" in
                   21385:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21386:   *) ac_try_echo=$ac_try;;
                   21387: esac
                   21388: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21389:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  21390:   ac_status=$?
1.25      millert  21391:   grep -v '^ *+' conftest.er1 >conftest.err
                   21392:   rm -f conftest.er1
                   21393:   cat conftest.err >&5
1.16      millert  21394:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21395:   (exit $ac_status); } && {
                   21396:         test -z "$ac_c_werror_flag" ||
                   21397:         test ! -s conftest.err
                   21398:        } && test -s conftest.$ac_objext; then
1.16      millert  21399:
1.27      millert  21400:            { echo "$as_me:$LINENO: result: yes" >&5
                   21401: echo "${ECHO_T}yes" >&6; }
1.37      millert  21402:            cat >>confdefs.h <<\_ACEOF
                   21403: #define HAVE_HEIMDAL 1
                   21404: _ACEOF
                   21405:
                   21406:            # XXX - need to check whether -lcrypo is needed!
                   21407:            SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
1.27      millert  21408:            { echo "$as_me:$LINENO: checking for main in -lroken" >&5
                   21409: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
                   21410: if test "${ac_cv_lib_roken_main+set}" = set; then
1.9       millert  21411:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  21412: else
1.9       millert  21413:   ac_check_lib_save_LIBS=$LIBS
1.27      millert  21414: LIBS="-lroken  $LIBS"
1.9       millert  21415: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21416: /* confdefs.h.  */
                   21417: _ACEOF
                   21418: cat confdefs.h >>conftest.$ac_ext
                   21419: cat >>conftest.$ac_ext <<_ACEOF
                   21420: /* end confdefs.h.  */
1.9       millert  21421:
1.27      millert  21422:
1.9       millert  21423: int
                   21424: main ()
                   21425: {
1.27      millert  21426: return main ();
1.9       millert  21427:   ;
                   21428:   return 0;
                   21429: }
                   21430: _ACEOF
                   21431: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  21432: if { (ac_try="$ac_link"
                   21433: case "(($ac_try" in
                   21434:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21435:   *) ac_try_echo=$ac_try;;
                   21436: esac
                   21437: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21438:   (eval "$ac_link") 2>conftest.er1
1.9       millert  21439:   ac_status=$?
1.25      millert  21440:   grep -v '^ *+' conftest.er1 >conftest.err
                   21441:   rm -f conftest.er1
                   21442:   cat conftest.err >&5
1.16      millert  21443:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21444:   (exit $ac_status); } && {
                   21445:         test -z "$ac_c_werror_flag" ||
                   21446:         test ! -s conftest.err
                   21447:        } && test -s conftest$ac_exeext &&
                   21448:        $as_test_x conftest$ac_exeext; then
                   21449:   ac_cv_lib_roken_main=yes
1.9       millert  21450: else
                   21451:   echo "$as_me: failed program was:" >&5
1.16      millert  21452: sed 's/^/| /' conftest.$ac_ext >&5
                   21453:
1.27      millert  21454:        ac_cv_lib_roken_main=no
1.9       millert  21455: fi
1.27      millert  21456:
                   21457: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  21458:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  21459: LIBS=$ac_check_lib_save_LIBS
                   21460: fi
1.27      millert  21461: { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
                   21462: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
                   21463: if test $ac_cv_lib_roken_main = yes; then
1.37      millert  21464:   SUDO_LIBS="${SUDO_LIBS} -lroken"
1.1       millert  21465: fi
                   21466:
1.27      millert  21467:
                   21468: else
                   21469:   echo "$as_me: failed program was:" >&5
                   21470: sed 's/^/| /' conftest.$ac_ext >&5
                   21471:
                   21472:
                   21473:            { echo "$as_me:$LINENO: result: no" >&5
                   21474: echo "${ECHO_T}no" >&6; }
1.37      millert  21475:            SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
                   21476:            { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
                   21477: echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
                   21478: if test "${ac_cv_lib_krb5support_main+set}" = set; then
1.9       millert  21479:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  21480: else
1.27      millert  21481:   ac_check_lib_save_LIBS=$LIBS
1.37      millert  21482: LIBS="-lkrb5support  $LIBS"
1.27      millert  21483: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21484: /* confdefs.h.  */
                   21485: _ACEOF
                   21486: cat confdefs.h >>conftest.$ac_ext
                   21487: cat >>conftest.$ac_ext <<_ACEOF
                   21488: /* end confdefs.h.  */
1.25      millert  21489:
1.1       millert  21490:
1.16      millert  21491: int
                   21492: main ()
                   21493: {
1.27      millert  21494: return main ();
1.9       millert  21495:   ;
                   21496:   return 0;
                   21497: }
                   21498: _ACEOF
                   21499: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  21500: if { (ac_try="$ac_link"
                   21501: case "(($ac_try" in
                   21502:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21503:   *) ac_try_echo=$ac_try;;
                   21504: esac
                   21505: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21506:   (eval "$ac_link") 2>conftest.er1
1.9       millert  21507:   ac_status=$?
1.25      millert  21508:   grep -v '^ *+' conftest.er1 >conftest.err
                   21509:   rm -f conftest.er1
                   21510:   cat conftest.err >&5
1.16      millert  21511:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21512:   (exit $ac_status); } && {
                   21513:         test -z "$ac_c_werror_flag" ||
                   21514:         test ! -s conftest.err
                   21515:        } && test -s conftest$ac_exeext &&
                   21516:        $as_test_x conftest$ac_exeext; then
1.37      millert  21517:   ac_cv_lib_krb5support_main=yes
1.9       millert  21518: else
                   21519:   echo "$as_me: failed program was:" >&5
1.16      millert  21520: sed 's/^/| /' conftest.$ac_ext >&5
                   21521:
1.37      millert  21522:        ac_cv_lib_krb5support_main=no
1.9       millert  21523: fi
1.27      millert  21524:
                   21525: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  21526:       conftest$ac_exeext conftest.$ac_ext
1.27      millert  21527: LIBS=$ac_check_lib_save_LIBS
1.9       millert  21528: fi
1.37      millert  21529: { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
                   21530: echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
                   21531: if test $ac_cv_lib_krb5support_main = yes; then
1.41    ! millert  21532:   SUDO_LIBS="${SUDO_LIBS} -lkrb5support"
1.37      millert  21533: fi
                   21534:
                   21535:
                   21536: fi
                   21537:
                   21538: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   21539:     AUTH_OBJS="$AUTH_OBJS kerb5.o"
                   21540:     _LIBS="$LIBS"
                   21541:     LIBS="${LIBS} ${SUDO_LIBS}"
                   21542:
                   21543:
1.41    ! millert  21544: for ac_func in krb5_verify_user krb5_init_secure_context
1.37      millert  21545: do
                   21546: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   21547: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   21548: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   21549: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9       millert  21550:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  21551: else
1.37      millert  21552:   cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21553: /* confdefs.h.  */
                   21554: _ACEOF
                   21555: cat confdefs.h >>conftest.$ac_ext
                   21556: cat >>conftest.$ac_ext <<_ACEOF
                   21557: /* end confdefs.h.  */
1.37      millert  21558: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   21559:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   21560: #define $ac_func innocuous_$ac_func
                   21561:
                   21562: /* System header to define __stub macros and hopefully few prototypes,
                   21563:     which can conflict with char $ac_func (); below.
                   21564:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   21565:     <limits.h> exists even on freestanding compilers.  */
                   21566:
                   21567: #ifdef __STDC__
                   21568: # include <limits.h>
                   21569: #else
                   21570: # include <assert.h>
                   21571: #endif
1.9       millert  21572:
1.37      millert  21573: #undef $ac_func
                   21574:
                   21575: /* Override any GCC internal prototype to avoid an error.
                   21576:    Use char because int might match the return type of a GCC
                   21577:    builtin and then its argument prototype would still apply.  */
                   21578: #ifdef __cplusplus
                   21579: extern "C"
                   21580: #endif
                   21581: char $ac_func ();
                   21582: /* The GNU C library defines this for functions which it implements
                   21583:     to always fail with ENOSYS.  Some functions are actually named
                   21584:     something starting with __ and the normal name is an alias.  */
                   21585: #if defined __stub_$ac_func || defined __stub___$ac_func
                   21586: choke me
                   21587: #endif
1.27      millert  21588:
1.9       millert  21589: int
                   21590: main ()
                   21591: {
1.37      millert  21592: return $ac_func ();
1.9       millert  21593:   ;
                   21594:   return 0;
                   21595: }
                   21596: _ACEOF
                   21597: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  21598: if { (ac_try="$ac_link"
                   21599: case "(($ac_try" in
                   21600:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21601:   *) ac_try_echo=$ac_try;;
                   21602: esac
                   21603: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21604:   (eval "$ac_link") 2>conftest.er1
1.9       millert  21605:   ac_status=$?
1.25      millert  21606:   grep -v '^ *+' conftest.er1 >conftest.err
                   21607:   rm -f conftest.er1
                   21608:   cat conftest.err >&5
1.16      millert  21609:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21610:   (exit $ac_status); } && {
                   21611:         test -z "$ac_c_werror_flag" ||
                   21612:         test ! -s conftest.err
                   21613:        } && test -s conftest$ac_exeext &&
                   21614:        $as_test_x conftest$ac_exeext; then
1.37      millert  21615:   eval "$as_ac_var=yes"
1.9       millert  21616: else
                   21617:   echo "$as_me: failed program was:" >&5
1.16      millert  21618: sed 's/^/| /' conftest.$ac_ext >&5
                   21619:
1.37      millert  21620:        eval "$as_ac_var=no"
1.9       millert  21621: fi
1.27      millert  21622:
                   21623: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  21624:       conftest$ac_exeext conftest.$ac_ext
1.9       millert  21625: fi
1.37      millert  21626: ac_res=`eval echo '${'$as_ac_var'}'`
1.27      millert  21627:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   21628: echo "${ECHO_T}$ac_res" >&6; }
1.37      millert  21629: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   21630:   cat >>confdefs.h <<_ACEOF
                   21631: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   21632: _ACEOF
1.27      millert  21633:
                   21634: fi
1.37      millert  21635: done
1.27      millert  21636:
1.41    ! millert  21637:
        !          21638: for ac_func in krb5_get_init_creds_opt_alloc
        !          21639: do
        !          21640: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
        !          21641: { echo "$as_me:$LINENO: checking for $ac_func" >&5
        !          21642: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
        !          21643: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
        !          21644:   echo $ECHO_N "(cached) $ECHO_C" >&6
        !          21645: else
        !          21646:   cat >conftest.$ac_ext <<_ACEOF
        !          21647: /* confdefs.h.  */
        !          21648: _ACEOF
        !          21649: cat confdefs.h >>conftest.$ac_ext
        !          21650: cat >>conftest.$ac_ext <<_ACEOF
        !          21651: /* end confdefs.h.  */
        !          21652: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
        !          21653:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
        !          21654: #define $ac_func innocuous_$ac_func
        !          21655:
        !          21656: /* System header to define __stub macros and hopefully few prototypes,
        !          21657:     which can conflict with char $ac_func (); below.
        !          21658:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
        !          21659:     <limits.h> exists even on freestanding compilers.  */
        !          21660:
        !          21661: #ifdef __STDC__
        !          21662: # include <limits.h>
        !          21663: #else
        !          21664: # include <assert.h>
        !          21665: #endif
        !          21666:
        !          21667: #undef $ac_func
        !          21668:
        !          21669: /* Override any GCC internal prototype to avoid an error.
        !          21670:    Use char because int might match the return type of a GCC
        !          21671:    builtin and then its argument prototype would still apply.  */
        !          21672: #ifdef __cplusplus
        !          21673: extern "C"
        !          21674: #endif
        !          21675: char $ac_func ();
        !          21676: /* The GNU C library defines this for functions which it implements
        !          21677:     to always fail with ENOSYS.  Some functions are actually named
        !          21678:     something starting with __ and the normal name is an alias.  */
        !          21679: #if defined __stub_$ac_func || defined __stub___$ac_func
        !          21680: choke me
        !          21681: #endif
        !          21682:
        !          21683: int
        !          21684: main ()
        !          21685: {
        !          21686: return $ac_func ();
        !          21687:   ;
        !          21688:   return 0;
        !          21689: }
        !          21690: _ACEOF
        !          21691: rm -f conftest.$ac_objext conftest$ac_exeext
        !          21692: if { (ac_try="$ac_link"
        !          21693: case "(($ac_try" in
        !          21694:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
        !          21695:   *) ac_try_echo=$ac_try;;
        !          21696: esac
        !          21697: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
        !          21698:   (eval "$ac_link") 2>conftest.er1
        !          21699:   ac_status=$?
        !          21700:   grep -v '^ *+' conftest.er1 >conftest.err
        !          21701:   rm -f conftest.er1
        !          21702:   cat conftest.err >&5
        !          21703:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
        !          21704:   (exit $ac_status); } && {
        !          21705:         test -z "$ac_c_werror_flag" ||
        !          21706:         test ! -s conftest.err
        !          21707:        } && test -s conftest$ac_exeext &&
        !          21708:        $as_test_x conftest$ac_exeext; then
        !          21709:   eval "$as_ac_var=yes"
        !          21710: else
        !          21711:   echo "$as_me: failed program was:" >&5
        !          21712: sed 's/^/| /' conftest.$ac_ext >&5
        !          21713:
        !          21714:        eval "$as_ac_var=no"
        !          21715: fi
        !          21716:
        !          21717: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
        !          21718:       conftest$ac_exeext conftest.$ac_ext
        !          21719: fi
        !          21720: ac_res=`eval echo '${'$as_ac_var'}'`
        !          21721:               { echo "$as_me:$LINENO: result: $ac_res" >&5
        !          21722: echo "${ECHO_T}$ac_res" >&6; }
        !          21723: if test `eval echo '${'$as_ac_var'}'` = yes; then
        !          21724:   cat >>confdefs.h <<_ACEOF
        !          21725: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
        !          21726: _ACEOF
        !          21727:
        !          21728:        { echo "$as_me:$LINENO: checking whether krb5_get_init_creds_opt_free takes a context" >&5
        !          21729: echo $ECHO_N "checking whether krb5_get_init_creds_opt_free takes a context... $ECHO_C" >&6; }
1.37      millert  21730: if test "${sudo_cv_krb5_get_init_creds_opt_free_two_args+set}" = set; then
1.9       millert  21731:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  21732: else
1.27      millert  21733:
1.41    ! millert  21734:                cat >conftest.$ac_ext <<_ACEOF
1.16      millert  21735: /* confdefs.h.  */
                   21736: _ACEOF
                   21737: cat confdefs.h >>conftest.$ac_ext
                   21738: cat >>conftest.$ac_ext <<_ACEOF
                   21739: /* end confdefs.h.  */
1.27      millert  21740: #include <krb5.h>
1.9       millert  21741: int
                   21742: main ()
                   21743: {
1.41    ! millert  21744: krb5_get_init_creds_opt_free(NULL, NULL);
1.9       millert  21745:   ;
                   21746:   return 0;
                   21747: }
                   21748: _ACEOF
1.27      millert  21749: rm -f conftest.$ac_objext
                   21750: if { (ac_try="$ac_compile"
                   21751: case "(($ac_try" in
                   21752:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21753:   *) ac_try_echo=$ac_try;;
                   21754: esac
                   21755: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   21756:   (eval "$ac_compile") 2>conftest.er1
1.9       millert  21757:   ac_status=$?
1.25      millert  21758:   grep -v '^ *+' conftest.er1 >conftest.err
                   21759:   rm -f conftest.er1
                   21760:   cat conftest.err >&5
1.16      millert  21761:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  21762:   (exit $ac_status); } && {
                   21763:         test -z "$ac_c_werror_flag" ||
                   21764:         test ! -s conftest.err
                   21765:        } && test -s conftest.$ac_objext; then
1.37      millert  21766:   sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
1.27      millert  21767: else
                   21768:   echo "$as_me: failed program was:" >&5
                   21769: sed 's/^/| /' conftest.$ac_ext >&5
                   21770:
1.37      millert  21771:        sudo_cv_krb5_get_init_creds_opt_free_two_args=no
                   21772:
                   21773: fi
1.27      millert  21774:
1.37      millert  21775: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.27      millert  21776:
                   21777:
                   21778: fi
1.37      millert  21779: { echo "$as_me:$LINENO: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
                   21780: echo "${ECHO_T}$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
1.41    ! millert  21781:
        !          21782: fi
        !          21783: done
        !          21784:
1.37      millert  21785:     if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
                   21786:        cat >>confdefs.h <<\_ACEOF
                   21787: #define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1
                   21788: _ACEOF
1.27      millert  21789:
                   21790:     fi
1.37      millert  21791:     LIBS="$_LIBS"
1.27      millert  21792: fi
                   21793:
1.37      millert  21794: if test ${with_AFS-'no'} = "yes"; then
                   21795:
                   21796:     # looks like the "standard" place for AFS libs is /usr/afsws/lib
                   21797:     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
                   21798:     for i in $AFSLIBDIRS; do
                   21799:        if test -d ${i}; then
                   21800:
                   21801:     if test X"$with_rpath" = X"yes"; then
                   21802:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
                   21803:     else
                   21804:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
                   21805:     fi
                   21806:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   21807:        blibpath_add="${blibpath_add}:$i"
                   21808:     fi
                   21809:
                   21810:            FOUND_AFSLIBDIR=true
                   21811:        fi
                   21812:     done
                   21813:     if test -z "$FOUND_AFSLIBDIR"; then
                   21814:        { echo "$as_me:$LINENO: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&5
                   21815: echo "$as_me: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&2;}
                   21816:     fi
                   21817:
                   21818:     # Order is important here.  Note that we build AFS_LIBS from right to left
                   21819:     # since AFS_LIBS may be initialized with BSD compat libs that must go last
                   21820:     AFS_LIBS="-laudit ${AFS_LIBS}"
                   21821:     for i in $AFSLIBDIRS; do
                   21822:        if test -f ${i}/util.a; then
                   21823:            AFS_LIBS="${i}/util.a ${AFS_LIBS}"
                   21824:            FOUND_UTIL_A=true
                   21825:            break;
                   21826:        fi
                   21827:     done
                   21828:     if test -z "$FOUND_UTIL_A"; then
                   21829:        AFS_LIBS="-lutil ${AFS_LIBS}"
                   21830:     fi
                   21831:     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
                   21832:
                   21833:     # AFS includes may live in /usr/include on some machines...
                   21834:     for i in /usr/afsws/include; do
                   21835:        if test -d ${i}; then
                   21836:            CPPFLAGS="${CPPFLAGS} -I${i}"
                   21837:            FOUND_AFSINCDIR=true
                   21838:        fi
                   21839:     done
                   21840:
                   21841:     if test -z "$FOUND_AFSLIBDIR"; then
                   21842:        { echo "$as_me:$LINENO: WARNING: Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options." >&5
                   21843: echo "$as_me: WARNING: Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options." >&2;}
                   21844:     fi
1.16      millert  21845:
1.37      millert  21846:     AUTH_OBJS="$AUTH_OBJS afs.o"
                   21847: fi
1.27      millert  21848:
1.37      millert  21849: if test ${with_DCE-'no'} = "yes"; then
                   21850:     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
                   21851:     SUDO_LIBS="${SUDO_LIBS} -ldce"
                   21852:     AUTH_OBJS="$AUTH_OBJS dce.o"
1.9       millert  21853: fi
1.27      millert  21854:
1.37      millert  21855: if test ${with_skey-'no'} = "yes"; then
                   21856:     O_LDFLAGS="$LDFLAGS"
                   21857:     if test "$with_skey" != "yes"; then
                   21858:        CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
                   21859:
                   21860:     if test X"$with_rpath" = X"yes"; then
                   21861:        LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
1.27      millert  21862:     else
1.37      millert  21863:        LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
                   21864:     fi
                   21865:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   21866:        blibpath_add="${blibpath_add}:${with_skey}/lib"
                   21867:     fi
                   21868:
1.27      millert  21869:
                   21870:     if test X"$with_rpath" = X"yes"; then
1.37      millert  21871:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
1.27      millert  21872:     else
1.37      millert  21873:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
1.27      millert  21874:     fi
                   21875:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
1.37      millert  21876:        blibpath_add="${blibpath_add}:${with_skey}/lib"
1.27      millert  21877:     fi
                   21878:
1.37      millert  21879:        cat >conftest.$ac_ext <<_ACEOF
                   21880: #include <skey.h>
1.27      millert  21881: _ACEOF
1.37      millert  21882: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.27      millert  21883: case "(($ac_try" in
                   21884:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21885:   *) ac_try_echo=$ac_try;;
                   21886: esac
                   21887: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  21888:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.27      millert  21889:   ac_status=$?
                   21890:   grep -v '^ *+' conftest.er1 >conftest.err
                   21891:   rm -f conftest.er1
                   21892:   cat conftest.err >&5
                   21893:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37      millert  21894:   (exit $ac_status); } >/dev/null && {
                   21895:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.27      millert  21896:         test ! -s conftest.err
1.37      millert  21897:        }; then
                   21898:   found=yes
1.1       millert  21899: else
1.37      millert  21900:   echo "$as_me: failed program was:" >&5
                   21901: sed 's/^/| /' conftest.$ac_ext >&5
1.9       millert  21902:
1.37      millert  21903:   found=no
                   21904: fi
1.27      millert  21905:
1.37      millert  21906: rm -f conftest.err conftest.$ac_ext
                   21907:     else
                   21908:        found=no
                   21909:        O_CPPFLAGS="$CPPFLAGS"
                   21910:        for dir in "" "/usr/local" "/usr/contrib"; do
                   21911:            test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
                   21912:            cat >conftest.$ac_ext <<_ACEOF
                   21913: #include <skey.h>
1.25      millert  21914: _ACEOF
1.37      millert  21915: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.27      millert  21916: case "(($ac_try" in
                   21917:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21918:   *) ac_try_echo=$ac_try;;
                   21919: esac
                   21920: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  21921:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.25      millert  21922:   ac_status=$?
                   21923:   grep -v '^ *+' conftest.er1 >conftest.err
                   21924:   rm -f conftest.er1
                   21925:   cat conftest.err >&5
                   21926:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37      millert  21927:   (exit $ac_status); } >/dev/null && {
                   21928:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.27      millert  21929:         test ! -s conftest.err
1.37      millert  21930:        }; then
                   21931:   found=yes; break
1.25      millert  21932: else
                   21933:   echo "$as_me: failed program was:" >&5
                   21934: sed 's/^/| /' conftest.$ac_ext >&5
                   21935:
1.37      millert  21936:
1.25      millert  21937: fi
1.27      millert  21938:
1.37      millert  21939: rm -f conftest.err conftest.$ac_ext
                   21940:        done
                   21941:        if test "$found" = "no" -o -z "$dir"; then
                   21942:            CPPFLAGS="$O_CPPFLAGS"
                   21943:        else
1.25      millert  21944:
1.37      millert  21945:     if test X"$with_rpath" = X"yes"; then
                   21946:        LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
                   21947:     else
                   21948:        LDFLAGS="${LDFLAGS} -L${dir}/lib"
                   21949:     fi
                   21950:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   21951:        blibpath_add="${blibpath_add}:${dir}/lib"
                   21952:     fi
1.25      millert  21953:
1.27      millert  21954:
1.37      millert  21955:     if test X"$with_rpath" = X"yes"; then
                   21956:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
                   21957:     else
                   21958:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
                   21959:     fi
                   21960:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   21961:        blibpath_add="${blibpath_add}:${dir}/lib"
                   21962:     fi
1.27      millert  21963:
1.37      millert  21964:        fi
                   21965:     fi
                   21966:     if test "$found" = "no"; then
                   21967:        { echo "$as_me:$LINENO: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&5
                   21968: echo "$as_me: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&2;}
                   21969:     fi
                   21970:     { echo "$as_me:$LINENO: checking for main in -lskey" >&5
                   21971: echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
                   21972: if test "${ac_cv_lib_skey_main+set}" = set; then
1.33      millert  21973:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   21974: else
                   21975:   ac_check_lib_save_LIBS=$LIBS
1.37      millert  21976: LIBS="-lskey  $LIBS"
1.33      millert  21977: cat >conftest.$ac_ext <<_ACEOF
                   21978: /* confdefs.h.  */
                   21979: _ACEOF
                   21980: cat confdefs.h >>conftest.$ac_ext
                   21981: cat >>conftest.$ac_ext <<_ACEOF
                   21982: /* end confdefs.h.  */
                   21983:
                   21984:
                   21985: int
                   21986: main ()
                   21987: {
                   21988: return main ();
                   21989:   ;
                   21990:   return 0;
                   21991: }
                   21992: _ACEOF
                   21993: rm -f conftest.$ac_objext conftest$ac_exeext
                   21994: if { (ac_try="$ac_link"
                   21995: case "(($ac_try" in
                   21996:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   21997:   *) ac_try_echo=$ac_try;;
                   21998: esac
                   21999: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22000:   (eval "$ac_link") 2>conftest.er1
                   22001:   ac_status=$?
                   22002:   grep -v '^ *+' conftest.er1 >conftest.err
                   22003:   rm -f conftest.er1
                   22004:   cat conftest.err >&5
                   22005:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22006:   (exit $ac_status); } && {
                   22007:         test -z "$ac_c_werror_flag" ||
                   22008:         test ! -s conftest.err
                   22009:        } && test -s conftest$ac_exeext &&
                   22010:        $as_test_x conftest$ac_exeext; then
1.37      millert  22011:   ac_cv_lib_skey_main=yes
1.33      millert  22012: else
                   22013:   echo "$as_me: failed program was:" >&5
                   22014: sed 's/^/| /' conftest.$ac_ext >&5
                   22015:
1.37      millert  22016:        ac_cv_lib_skey_main=no
1.33      millert  22017: fi
                   22018:
                   22019: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22020:       conftest$ac_exeext conftest.$ac_ext
                   22021: LIBS=$ac_check_lib_save_LIBS
                   22022: fi
1.37      millert  22023: { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
                   22024: echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
                   22025: if test $ac_cv_lib_skey_main = yes; then
                   22026:   found=yes
                   22027: else
                   22028:   { echo "$as_me:$LINENO: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&5
                   22029: echo "$as_me: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&2;}
1.33      millert  22030: fi
1.25      millert  22031:
1.37      millert  22032:     { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
                   22033: echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
                   22034: if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
1.25      millert  22035:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22036: else
1.37      millert  22037:   ac_check_lib_save_LIBS=$LIBS
                   22038: LIBS="-lskey  $LIBS"
                   22039: cat >conftest.$ac_ext <<_ACEOF
1.25      millert  22040: /* confdefs.h.  */
                   22041: _ACEOF
                   22042: cat confdefs.h >>conftest.$ac_ext
                   22043: cat >>conftest.$ac_ext <<_ACEOF
                   22044: /* end confdefs.h.  */
                   22045:
1.27      millert  22046: /* Override any GCC internal prototype to avoid an error.
                   22047:    Use char because int might match the return type of a GCC
                   22048:    builtin and then its argument prototype would still apply.  */
1.25      millert  22049: #ifdef __cplusplus
                   22050: extern "C"
                   22051: #endif
1.37      millert  22052: char skeyaccess ();
1.9       millert  22053: int
                   22054: main ()
                   22055: {
1.37      millert  22056: return skeyaccess ();
1.9       millert  22057:   ;
                   22058:   return 0;
                   22059: }
                   22060: _ACEOF
                   22061: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  22062: if { (ac_try="$ac_link"
                   22063: case "(($ac_try" in
                   22064:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22065:   *) ac_try_echo=$ac_try;;
                   22066: esac
                   22067: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22068:   (eval "$ac_link") 2>conftest.er1
1.9       millert  22069:   ac_status=$?
1.25      millert  22070:   grep -v '^ *+' conftest.er1 >conftest.err
                   22071:   rm -f conftest.er1
                   22072:   cat conftest.err >&5
1.16      millert  22073:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  22074:   (exit $ac_status); } && {
                   22075:         test -z "$ac_c_werror_flag" ||
                   22076:         test ! -s conftest.err
                   22077:        } && test -s conftest$ac_exeext &&
                   22078:        $as_test_x conftest$ac_exeext; then
1.37      millert  22079:   ac_cv_lib_skey_skeyaccess=yes
1.9       millert  22080: else
                   22081:   echo "$as_me: failed program was:" >&5
1.16      millert  22082: sed 's/^/| /' conftest.$ac_ext >&5
                   22083:
1.37      millert  22084:        ac_cv_lib_skey_skeyaccess=no
1.1       millert  22085: fi
                   22086:
1.37      millert  22087: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22088:       conftest$ac_exeext conftest.$ac_ext
                   22089: LIBS=$ac_check_lib_save_LIBS
                   22090: fi
                   22091: { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
                   22092: echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
                   22093: if test $ac_cv_lib_skey_skeyaccess = yes; then
                   22094:   cat >>confdefs.h <<\_ACEOF
                   22095: #define HAVE_SKEYACCESS 1
                   22096: _ACEOF
1.27      millert  22097:
1.1       millert  22098: fi
                   22099:
1.37      millert  22100:     LDFLAGS="$O_LDFLAGS"
                   22101:     SUDO_LIBS="${SUDO_LIBS} -lskey"
                   22102:     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
1.1       millert  22103: fi
                   22104:
1.37      millert  22105: if test ${with_opie-'no'} = "yes"; then
1.25      millert  22106:     O_LDFLAGS="$LDFLAGS"
1.37      millert  22107:     if test "$with_opie" != "yes"; then
                   22108:        CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
1.25      millert  22109:
                   22110:     if test X"$with_rpath" = X"yes"; then
1.37      millert  22111:        LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
1.25      millert  22112:     else
1.37      millert  22113:        LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
1.25      millert  22114:     fi
                   22115:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
1.37      millert  22116:        blibpath_add="${blibpath_add}:${with_opie}/lib"
1.25      millert  22117:     fi
                   22118:
                   22119:
                   22120:     if test X"$with_rpath" = X"yes"; then
1.37      millert  22121:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
1.25      millert  22122:     else
1.37      millert  22123:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
1.25      millert  22124:     fi
                   22125:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
1.37      millert  22126:        blibpath_add="${blibpath_add}:${with_opie}/lib"
1.25      millert  22127:     fi
                   22128:
                   22129:        cat >conftest.$ac_ext <<_ACEOF
1.37      millert  22130: #include <opie.h>
1.16      millert  22131: _ACEOF
1.27      millert  22132: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   22133: case "(($ac_try" in
                   22134:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22135:   *) ac_try_echo=$ac_try;;
                   22136: esac
                   22137: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22138:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  22139:   ac_status=$?
1.25      millert  22140:   grep -v '^ *+' conftest.er1 >conftest.err
                   22141:   rm -f conftest.er1
                   22142:   cat conftest.err >&5
1.16      millert  22143:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  22144:   (exit $ac_status); } >/dev/null && {
                   22145:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   22146:         test ! -s conftest.err
                   22147:        }; then
1.25      millert  22148:   found=yes
                   22149: else
                   22150:   echo "$as_me: failed program was:" >&5
                   22151: sed 's/^/| /' conftest.$ac_ext >&5
                   22152:
                   22153:   found=no
                   22154: fi
1.27      millert  22155:
1.25      millert  22156: rm -f conftest.err conftest.$ac_ext
                   22157:     else
                   22158:        found=no
                   22159:        O_CPPFLAGS="$CPPFLAGS"
                   22160:        for dir in "" "/usr/local" "/usr/contrib"; do
                   22161:            test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
                   22162:            cat >conftest.$ac_ext <<_ACEOF
1.37      millert  22163: #include <opie.h>
1.25      millert  22164: _ACEOF
1.27      millert  22165: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   22166: case "(($ac_try" in
                   22167:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22168:   *) ac_try_echo=$ac_try;;
                   22169: esac
                   22170: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22171:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9       millert  22172:   ac_status=$?
1.25      millert  22173:   grep -v '^ *+' conftest.er1 >conftest.err
                   22174:   rm -f conftest.er1
                   22175:   cat conftest.err >&5
1.16      millert  22176:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  22177:   (exit $ac_status); } >/dev/null && {
                   22178:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   22179:         test ! -s conftest.err
                   22180:        }; then
1.25      millert  22181:   found=yes; break
1.9       millert  22182: else
                   22183:   echo "$as_me: failed program was:" >&5
1.16      millert  22184: sed 's/^/| /' conftest.$ac_ext >&5
                   22185:
1.25      millert  22186:
1.9       millert  22187: fi
1.27      millert  22188:
1.25      millert  22189: rm -f conftest.err conftest.$ac_ext
                   22190:        done
                   22191:        if test "$found" = "no" -o -z "$dir"; then
                   22192:            CPPFLAGS="$O_CPPFLAGS"
                   22193:        else
                   22194:
                   22195:     if test X"$with_rpath" = X"yes"; then
                   22196:        LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
                   22197:     else
                   22198:        LDFLAGS="${LDFLAGS} -L${dir}/lib"
                   22199:     fi
                   22200:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   22201:        blibpath_add="${blibpath_add}:${dir}/lib"
                   22202:     fi
1.1       millert  22203:
                   22204:
1.25      millert  22205:     if test X"$with_rpath" = X"yes"; then
                   22206:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
                   22207:     else
                   22208:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
                   22209:     fi
                   22210:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   22211:        blibpath_add="${blibpath_add}:${dir}/lib"
                   22212:     fi
1.1       millert  22213:
1.25      millert  22214:        fi
                   22215:     fi
                   22216:     if test "$found" = "no"; then
1.37      millert  22217:        { echo "$as_me:$LINENO: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&5
                   22218: echo "$as_me: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&2;}
1.25      millert  22219:     fi
1.37      millert  22220:     { echo "$as_me:$LINENO: checking for main in -lopie" >&5
                   22221: echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
                   22222: if test "${ac_cv_lib_opie_main+set}" = set; then
1.9       millert  22223:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.1       millert  22224: else
1.25      millert  22225:   ac_check_lib_save_LIBS=$LIBS
1.37      millert  22226: LIBS="-lopie  $LIBS"
                   22227: cat >conftest.$ac_ext <<_ACEOF
                   22228: /* confdefs.h.  */
                   22229: _ACEOF
                   22230: cat confdefs.h >>conftest.$ac_ext
                   22231: cat >>conftest.$ac_ext <<_ACEOF
                   22232: /* end confdefs.h.  */
                   22233:
                   22234:
                   22235: int
                   22236: main ()
                   22237: {
                   22238: return main ();
                   22239:   ;
                   22240:   return 0;
                   22241: }
                   22242: _ACEOF
                   22243: rm -f conftest.$ac_objext conftest$ac_exeext
                   22244: if { (ac_try="$ac_link"
                   22245: case "(($ac_try" in
                   22246:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22247:   *) ac_try_echo=$ac_try;;
                   22248: esac
                   22249: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22250:   (eval "$ac_link") 2>conftest.er1
                   22251:   ac_status=$?
                   22252:   grep -v '^ *+' conftest.er1 >conftest.err
                   22253:   rm -f conftest.er1
                   22254:   cat conftest.err >&5
                   22255:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22256:   (exit $ac_status); } && {
                   22257:         test -z "$ac_c_werror_flag" ||
                   22258:         test ! -s conftest.err
                   22259:        } && test -s conftest$ac_exeext &&
                   22260:        $as_test_x conftest$ac_exeext; then
                   22261:   ac_cv_lib_opie_main=yes
                   22262: else
                   22263:   echo "$as_me: failed program was:" >&5
                   22264: sed 's/^/| /' conftest.$ac_ext >&5
                   22265:
                   22266:        ac_cv_lib_opie_main=no
                   22267: fi
                   22268:
                   22269: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22270:       conftest$ac_exeext conftest.$ac_ext
                   22271: LIBS=$ac_check_lib_save_LIBS
                   22272: fi
                   22273: { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
                   22274: echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
                   22275: if test $ac_cv_lib_opie_main = yes; then
                   22276:   found=yes
                   22277: else
                   22278:   { echo "$as_me:$LINENO: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&5
                   22279: echo "$as_me: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&2;}
                   22280: fi
                   22281:
                   22282:     LDFLAGS="$O_LDFLAGS"
                   22283:     SUDO_LIBS="${SUDO_LIBS} -lopie"
                   22284:     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
                   22285: fi
                   22286:
                   22287: if test ${with_passwd-'no'} != "no"; then
                   22288:                 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
                   22289:        { echo "$as_me:$LINENO: checking for library containing crypt" >&5
                   22290: echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
                   22291: if test "${ac_cv_search_crypt+set}" = set; then
                   22292:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22293: else
                   22294:   ac_func_search_save_LIBS=$LIBS
1.25      millert  22295: cat >conftest.$ac_ext <<_ACEOF
1.16      millert  22296: /* confdefs.h.  */
1.37      millert  22297: _ACEOF
                   22298: cat confdefs.h >>conftest.$ac_ext
                   22299: cat >>conftest.$ac_ext <<_ACEOF
                   22300: /* end confdefs.h.  */
                   22301:
                   22302: /* Override any GCC internal prototype to avoid an error.
                   22303:    Use char because int might match the return type of a GCC
                   22304:    builtin and then its argument prototype would still apply.  */
                   22305: #ifdef __cplusplus
                   22306: extern "C"
                   22307: #endif
                   22308: char crypt ();
                   22309: int
                   22310: main ()
                   22311: {
                   22312: return crypt ();
                   22313:   ;
                   22314:   return 0;
                   22315: }
                   22316: _ACEOF
                   22317: for ac_lib in '' crypt crypt_d ufc; do
                   22318:   if test -z "$ac_lib"; then
                   22319:     ac_res="none required"
                   22320:   else
                   22321:     ac_res=-l$ac_lib
                   22322:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   22323:   fi
                   22324:   rm -f conftest.$ac_objext conftest$ac_exeext
                   22325: if { (ac_try="$ac_link"
                   22326: case "(($ac_try" in
                   22327:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22328:   *) ac_try_echo=$ac_try;;
                   22329: esac
                   22330: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22331:   (eval "$ac_link") 2>conftest.er1
                   22332:   ac_status=$?
                   22333:   grep -v '^ *+' conftest.er1 >conftest.err
                   22334:   rm -f conftest.er1
                   22335:   cat conftest.err >&5
                   22336:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22337:   (exit $ac_status); } && {
                   22338:         test -z "$ac_c_werror_flag" ||
                   22339:         test ! -s conftest.err
                   22340:        } && test -s conftest$ac_exeext &&
                   22341:        $as_test_x conftest$ac_exeext; then
                   22342:   ac_cv_search_crypt=$ac_res
                   22343: else
                   22344:   echo "$as_me: failed program was:" >&5
                   22345: sed 's/^/| /' conftest.$ac_ext >&5
                   22346:
                   22347:
                   22348: fi
                   22349:
                   22350: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22351:       conftest$ac_exeext
                   22352:   if test "${ac_cv_search_crypt+set}" = set; then
                   22353:   break
                   22354: fi
                   22355: done
                   22356: if test "${ac_cv_search_crypt+set}" = set; then
                   22357:   :
                   22358: else
                   22359:   ac_cv_search_crypt=no
                   22360: fi
                   22361: rm conftest.$ac_ext
                   22362: LIBS=$ac_func_search_save_LIBS
                   22363: fi
                   22364: { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
                   22365: echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
                   22366: ac_res=$ac_cv_search_crypt
                   22367: if test "$ac_res" != no; then
                   22368:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   22369:   test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
                   22370: fi
                   22371:
                   22372:     fi
                   22373:
                   22374:     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
                   22375:        _LIBS="$LIBS"
                   22376:        LIBS="$LIBS $shadow_libs"
                   22377:        found=no
                   22378:
                   22379: for ac_func in $shadow_funcs
                   22380: do
                   22381: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   22382: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   22383: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   22384: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
                   22385:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22386: else
                   22387:   cat >conftest.$ac_ext <<_ACEOF
                   22388: /* confdefs.h.  */
                   22389: _ACEOF
                   22390: cat confdefs.h >>conftest.$ac_ext
                   22391: cat >>conftest.$ac_ext <<_ACEOF
                   22392: /* end confdefs.h.  */
                   22393: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   22394:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   22395: #define $ac_func innocuous_$ac_func
                   22396:
                   22397: /* System header to define __stub macros and hopefully few prototypes,
                   22398:     which can conflict with char $ac_func (); below.
                   22399:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   22400:     <limits.h> exists even on freestanding compilers.  */
                   22401:
                   22402: #ifdef __STDC__
                   22403: # include <limits.h>
                   22404: #else
                   22405: # include <assert.h>
                   22406: #endif
                   22407:
                   22408: #undef $ac_func
                   22409:
                   22410: /* Override any GCC internal prototype to avoid an error.
                   22411:    Use char because int might match the return type of a GCC
                   22412:    builtin and then its argument prototype would still apply.  */
                   22413: #ifdef __cplusplus
                   22414: extern "C"
                   22415: #endif
                   22416: char $ac_func ();
                   22417: /* The GNU C library defines this for functions which it implements
                   22418:     to always fail with ENOSYS.  Some functions are actually named
                   22419:     something starting with __ and the normal name is an alias.  */
                   22420: #if defined __stub_$ac_func || defined __stub___$ac_func
                   22421: choke me
                   22422: #endif
1.1       millert  22423:
1.9       millert  22424: int
                   22425: main ()
                   22426: {
1.37      millert  22427: return $ac_func ();
1.9       millert  22428:   ;
                   22429:   return 0;
                   22430: }
                   22431: _ACEOF
                   22432: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  22433: if { (ac_try="$ac_link"
                   22434: case "(($ac_try" in
                   22435:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22436:   *) ac_try_echo=$ac_try;;
                   22437: esac
                   22438: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22439:   (eval "$ac_link") 2>conftest.er1
1.9       millert  22440:   ac_status=$?
1.25      millert  22441:   grep -v '^ *+' conftest.er1 >conftest.err
                   22442:   rm -f conftest.er1
                   22443:   cat conftest.err >&5
1.16      millert  22444:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  22445:   (exit $ac_status); } && {
                   22446:         test -z "$ac_c_werror_flag" ||
                   22447:         test ! -s conftest.err
                   22448:        } && test -s conftest$ac_exeext &&
                   22449:        $as_test_x conftest$ac_exeext; then
1.37      millert  22450:   eval "$as_ac_var=yes"
1.1       millert  22451: else
1.9       millert  22452:   echo "$as_me: failed program was:" >&5
1.16      millert  22453: sed 's/^/| /' conftest.$ac_ext >&5
                   22454:
1.37      millert  22455:        eval "$as_ac_var=no"
1.18      millert  22456: fi
                   22457:
1.27      millert  22458: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22459:       conftest$ac_exeext conftest.$ac_ext
                   22460: fi
1.37      millert  22461: ac_res=`eval echo '${'$as_ac_var'}'`
                   22462:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   22463: echo "${ECHO_T}$ac_res" >&6; }
                   22464: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   22465:   cat >>confdefs.h <<_ACEOF
                   22466: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   22467: _ACEOF
                   22468:  found=yes
1.27      millert  22469: fi
1.37      millert  22470: done
                   22471:
                   22472:        if test "$found" = "yes"; then
                   22473:            SUDO_LIBS="$SUDO_LIBS $shadow_libs"
                   22474:        elif test -n "$shadow_libs_optional"; then
                   22475:            LIBS="$LIBS $shadow_libs_optional"
1.18      millert  22476:
1.37      millert  22477: for ac_func in $shadow_funcs
                   22478: do
                   22479: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   22480: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   22481: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   22482: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.18      millert  22483:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22484: else
1.37      millert  22485:   cat >conftest.$ac_ext <<_ACEOF
1.18      millert  22486: /* confdefs.h.  */
                   22487: _ACEOF
                   22488: cat confdefs.h >>conftest.$ac_ext
                   22489: cat >>conftest.$ac_ext <<_ACEOF
                   22490: /* end confdefs.h.  */
1.37      millert  22491: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   22492:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   22493: #define $ac_func innocuous_$ac_func
                   22494:
                   22495: /* System header to define __stub macros and hopefully few prototypes,
                   22496:     which can conflict with char $ac_func (); below.
                   22497:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   22498:     <limits.h> exists even on freestanding compilers.  */
                   22499:
                   22500: #ifdef __STDC__
                   22501: # include <limits.h>
                   22502: #else
                   22503: # include <assert.h>
                   22504: #endif
                   22505:
                   22506: #undef $ac_func
1.18      millert  22507:
1.27      millert  22508: /* Override any GCC internal prototype to avoid an error.
                   22509:    Use char because int might match the return type of a GCC
                   22510:    builtin and then its argument prototype would still apply.  */
1.25      millert  22511: #ifdef __cplusplus
                   22512: extern "C"
                   22513: #endif
1.37      millert  22514: char $ac_func ();
                   22515: /* The GNU C library defines this for functions which it implements
                   22516:     to always fail with ENOSYS.  Some functions are actually named
                   22517:     something starting with __ and the normal name is an alias.  */
                   22518: #if defined __stub_$ac_func || defined __stub___$ac_func
                   22519: choke me
                   22520: #endif
                   22521:
1.18      millert  22522: int
                   22523: main ()
                   22524: {
1.37      millert  22525: return $ac_func ();
1.18      millert  22526:   ;
                   22527:   return 0;
                   22528: }
                   22529: _ACEOF
                   22530: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  22531: if { (ac_try="$ac_link"
                   22532: case "(($ac_try" in
                   22533:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22534:   *) ac_try_echo=$ac_try;;
                   22535: esac
                   22536: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22537:   (eval "$ac_link") 2>conftest.er1
1.18      millert  22538:   ac_status=$?
1.25      millert  22539:   grep -v '^ *+' conftest.er1 >conftest.err
                   22540:   rm -f conftest.er1
                   22541:   cat conftest.err >&5
1.18      millert  22542:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  22543:   (exit $ac_status); } && {
                   22544:         test -z "$ac_c_werror_flag" ||
                   22545:         test ! -s conftest.err
                   22546:        } && test -s conftest$ac_exeext &&
                   22547:        $as_test_x conftest$ac_exeext; then
1.37      millert  22548:   eval "$as_ac_var=yes"
1.18      millert  22549: else
                   22550:   echo "$as_me: failed program was:" >&5
                   22551: sed 's/^/| /' conftest.$ac_ext >&5
                   22552:
1.37      millert  22553:        eval "$as_ac_var=no"
1.25      millert  22554: fi
1.27      millert  22555:
                   22556: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  22557:       conftest$ac_exeext conftest.$ac_ext
1.18      millert  22558: fi
1.37      millert  22559: ac_res=`eval echo '${'$as_ac_var'}'`
                   22560:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   22561: echo "${ECHO_T}$ac_res" >&6; }
                   22562: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   22563:   cat >>confdefs.h <<_ACEOF
                   22564: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.27      millert  22565: _ACEOF
1.37      millert  22566:  found=yes
1.27      millert  22567: fi
1.37      millert  22568: done
1.25      millert  22569:
1.37      millert  22570:            if test "$found" = "yes"; then
                   22571:                SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
                   22572:            fi
                   22573:        fi
                   22574:        if test "$found" = "yes"; then
                   22575:            case "$shadow_funcs" in
                   22576:                *getprpwnam*) SECUREWARE=1;;
                   22577:            esac
                   22578:            test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
1.27      millert  22579:        else
1.37      millert  22580:            LIBS="$_LIBS"
1.27      millert  22581:        fi
1.37      millert  22582:        CHECKSHADOW=false
1.27      millert  22583:     fi
1.37      millert  22584:     if test "$CHECKSHADOW" = "true"; then
                   22585:        { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
                   22586: echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
                   22587: if test "${ac_cv_search_getspnam+set}" = set; then
1.27      millert  22588:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22589: else
1.37      millert  22590:   ac_func_search_save_LIBS=$LIBS
1.27      millert  22591: cat >conftest.$ac_ext <<_ACEOF
1.17      millert  22592: /* confdefs.h.  */
                   22593: _ACEOF
                   22594: cat confdefs.h >>conftest.$ac_ext
                   22595: cat >>conftest.$ac_ext <<_ACEOF
                   22596: /* end confdefs.h.  */
1.27      millert  22597:
1.37      millert  22598: /* Override any GCC internal prototype to avoid an error.
                   22599:    Use char because int might match the return type of a GCC
                   22600:    builtin and then its argument prototype would still apply.  */
                   22601: #ifdef __cplusplus
                   22602: extern "C"
                   22603: #endif
                   22604: char getspnam ();
1.17      millert  22605: int
                   22606: main ()
                   22607: {
1.37      millert  22608: return getspnam ();
1.17      millert  22609:   ;
                   22610:   return 0;
                   22611: }
                   22612: _ACEOF
1.37      millert  22613: for ac_lib in '' gen; do
                   22614:   if test -z "$ac_lib"; then
                   22615:     ac_res="none required"
                   22616:   else
                   22617:     ac_res=-l$ac_lib
                   22618:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   22619:   fi
                   22620:   rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  22621: if { (ac_try="$ac_link"
                   22622: case "(($ac_try" in
                   22623:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22624:   *) ac_try_echo=$ac_try;;
                   22625: esac
                   22626: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22627:   (eval "$ac_link") 2>conftest.er1
1.17      millert  22628:   ac_status=$?
1.25      millert  22629:   grep -v '^ *+' conftest.er1 >conftest.err
                   22630:   rm -f conftest.er1
                   22631:   cat conftest.err >&5
1.17      millert  22632:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  22633:   (exit $ac_status); } && {
                   22634:         test -z "$ac_c_werror_flag" ||
                   22635:         test ! -s conftest.err
                   22636:        } && test -s conftest$ac_exeext &&
                   22637:        $as_test_x conftest$ac_exeext; then
1.37      millert  22638:   ac_cv_search_getspnam=$ac_res
1.17      millert  22639: else
                   22640:   echo "$as_me: failed program was:" >&5
                   22641: sed 's/^/| /' conftest.$ac_ext >&5
                   22642:
1.37      millert  22643:
1.17      millert  22644: fi
1.27      millert  22645:
                   22646: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.37      millert  22647:       conftest$ac_exeext
                   22648:   if test "${ac_cv_search_getspnam+set}" = set; then
                   22649:   break
1.27      millert  22650: fi
1.37      millert  22651: done
                   22652: if test "${ac_cv_search_getspnam+set}" = set; then
                   22653:   :
1.27      millert  22654: else
1.37      millert  22655:   ac_cv_search_getspnam=no
                   22656: fi
                   22657: rm conftest.$ac_ext
                   22658: LIBS=$ac_func_search_save_LIBS
1.27      millert  22659: fi
1.37      millert  22660: { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
                   22661: echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
                   22662: ac_res=$ac_cv_search_getspnam
                   22663: if test "$ac_res" != no; then
                   22664:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
                   22665:   cat >>confdefs.h <<\_ACEOF
                   22666: #define HAVE_GETSPNAM 1
                   22667: _ACEOF
                   22668:  CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
1.27      millert  22669: fi
                   22670:
1.37      millert  22671:     fi
                   22672:     if test "$CHECKSHADOW" = "true"; then
                   22673:        { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
                   22674: echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
                   22675: if test "${ac_cv_search_getprpwnam+set}" = set; then
1.27      millert  22676:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22677: else
                   22678:   ac_func_search_save_LIBS=$LIBS
                   22679: cat >conftest.$ac_ext <<_ACEOF
1.17      millert  22680: /* confdefs.h.  */
                   22681: _ACEOF
                   22682: cat confdefs.h >>conftest.$ac_ext
                   22683: cat >>conftest.$ac_ext <<_ACEOF
                   22684: /* end confdefs.h.  */
1.27      millert  22685:
                   22686: /* Override any GCC internal prototype to avoid an error.
                   22687:    Use char because int might match the return type of a GCC
                   22688:    builtin and then its argument prototype would still apply.  */
                   22689: #ifdef __cplusplus
                   22690: extern "C"
                   22691: #endif
1.37      millert  22692: char getprpwnam ();
1.17      millert  22693: int
                   22694: main ()
                   22695: {
1.37      millert  22696: return getprpwnam ();
1.17      millert  22697:   ;
                   22698:   return 0;
                   22699: }
                   22700: _ACEOF
1.37      millert  22701: for ac_lib in '' sec security prot; do
1.27      millert  22702:   if test -z "$ac_lib"; then
                   22703:     ac_res="none required"
                   22704:   else
                   22705:     ac_res=-l$ac_lib
                   22706:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
                   22707:   fi
                   22708:   rm -f conftest.$ac_objext conftest$ac_exeext
                   22709: if { (ac_try="$ac_link"
                   22710: case "(($ac_try" in
                   22711:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22712:   *) ac_try_echo=$ac_try;;
                   22713: esac
                   22714: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22715:   (eval "$ac_link") 2>conftest.er1
1.17      millert  22716:   ac_status=$?
1.25      millert  22717:   grep -v '^ *+' conftest.er1 >conftest.err
                   22718:   rm -f conftest.er1
                   22719:   cat conftest.err >&5
1.17      millert  22720:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  22721:   (exit $ac_status); } && {
                   22722:         test -z "$ac_c_werror_flag" ||
                   22723:         test ! -s conftest.err
                   22724:        } && test -s conftest$ac_exeext &&
                   22725:        $as_test_x conftest$ac_exeext; then
1.37      millert  22726:   ac_cv_search_getprpwnam=$ac_res
1.17      millert  22727: else
                   22728:   echo "$as_me: failed program was:" >&5
                   22729: sed 's/^/| /' conftest.$ac_ext >&5
                   22730:
1.25      millert  22731:
1.27      millert  22732: fi
1.25      millert  22733:
1.27      millert  22734: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22735:       conftest$ac_exeext
1.37      millert  22736:   if test "${ac_cv_search_getprpwnam+set}" = set; then
1.27      millert  22737:   break
                   22738: fi
                   22739: done
1.37      millert  22740: if test "${ac_cv_search_getprpwnam+set}" = set; then
1.27      millert  22741:   :
                   22742: else
1.37      millert  22743:   ac_cv_search_getprpwnam=no
1.27      millert  22744: fi
                   22745: rm conftest.$ac_ext
                   22746: LIBS=$ac_func_search_save_LIBS
                   22747: fi
1.37      millert  22748: { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
                   22749: echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
                   22750: ac_res=$ac_cv_search_getprpwnam
1.27      millert  22751: if test "$ac_res" != no; then
                   22752:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.37      millert  22753:   cat >>confdefs.h <<\_ACEOF
                   22754: #define HAVE_GETPRPWNAM 1
                   22755: _ACEOF
                   22756:  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
1.17      millert  22757: fi
1.25      millert  22758:
1.27      millert  22759:     fi
1.37      millert  22760:     if test -n "$SECUREWARE"; then
                   22761:
1.25      millert  22762:
1.17      millert  22763:
1.37      millert  22764: for ac_func in bigcrypt set_auth_parameters initprivs
1.25      millert  22765: do
                   22766: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27      millert  22767: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   22768: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   22769: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.17      millert  22770:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   22771: else
1.25      millert  22772:   cat >conftest.$ac_ext <<_ACEOF
1.17      millert  22773: /* confdefs.h.  */
                   22774: _ACEOF
                   22775: cat confdefs.h >>conftest.$ac_ext
                   22776: cat >>conftest.$ac_ext <<_ACEOF
                   22777: /* end confdefs.h.  */
1.25      millert  22778: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   22779:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   22780: #define $ac_func innocuous_$ac_func
                   22781:
                   22782: /* System header to define __stub macros and hopefully few prototypes,
                   22783:     which can conflict with char $ac_func (); below.
                   22784:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   22785:     <limits.h> exists even on freestanding compilers.  */
                   22786:
                   22787: #ifdef __STDC__
                   22788: # include <limits.h>
                   22789: #else
                   22790: # include <assert.h>
                   22791: #endif
1.17      millert  22792:
1.25      millert  22793: #undef $ac_func
                   22794:
1.27      millert  22795: /* Override any GCC internal prototype to avoid an error.
                   22796:    Use char because int might match the return type of a GCC
                   22797:    builtin and then its argument prototype would still apply.  */
1.25      millert  22798: #ifdef __cplusplus
                   22799: extern "C"
                   22800: #endif
                   22801: char $ac_func ();
                   22802: /* The GNU C library defines this for functions which it implements
                   22803:     to always fail with ENOSYS.  Some functions are actually named
                   22804:     something starting with __ and the normal name is an alias.  */
1.27      millert  22805: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25      millert  22806: choke me
                   22807: #endif
1.17      millert  22808:
                   22809: int
                   22810: main ()
                   22811: {
1.27      millert  22812: return $ac_func ();
1.17      millert  22813:   ;
                   22814:   return 0;
                   22815: }
                   22816: _ACEOF
                   22817: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  22818: if { (ac_try="$ac_link"
                   22819: case "(($ac_try" in
                   22820:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22821:   *) ac_try_echo=$ac_try;;
                   22822: esac
                   22823: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22824:   (eval "$ac_link") 2>conftest.er1
1.17      millert  22825:   ac_status=$?
1.25      millert  22826:   grep -v '^ *+' conftest.er1 >conftest.err
                   22827:   rm -f conftest.er1
                   22828:   cat conftest.err >&5
1.17      millert  22829:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27      millert  22830:   (exit $ac_status); } && {
                   22831:         test -z "$ac_c_werror_flag" ||
                   22832:         test ! -s conftest.err
                   22833:        } && test -s conftest$ac_exeext &&
                   22834:        $as_test_x conftest$ac_exeext; then
1.25      millert  22835:   eval "$as_ac_var=yes"
1.17      millert  22836: else
                   22837:   echo "$as_me: failed program was:" >&5
                   22838: sed 's/^/| /' conftest.$ac_ext >&5
                   22839:
1.27      millert  22840:        eval "$as_ac_var=no"
1.17      millert  22841: fi
1.27      millert  22842:
                   22843: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25      millert  22844:       conftest$ac_exeext conftest.$ac_ext
1.17      millert  22845: fi
1.27      millert  22846: ac_res=`eval echo '${'$as_ac_var'}'`
                   22847:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   22848: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  22849: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   22850:   cat >>confdefs.h <<_ACEOF
                   22851: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   22852: _ACEOF
1.37      millert  22853:
1.17      millert  22854: fi
1.27      millert  22855: done
1.17      millert  22856:
1.37      millert  22857:        AUTH_OBJS="$AUTH_OBJS secureware.o"
                   22858:     fi
                   22859: fi
                   22860:
                   22861: if test ${with_ldap-'no'} != "no"; then
                   22862:     _LDFLAGS="$LDFLAGS"
                   22863:     if test "$with_ldap" != "yes"; then
                   22864:
                   22865:     if test X"$with_rpath" = X"yes"; then
                   22866:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
                   22867:     else
                   22868:        SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
                   22869:     fi
                   22870:     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
                   22871:        blibpath_add="${blibpath_add}:${with_ldap}/lib"
                   22872:     fi
                   22873:
                   22874:
                   22875:     if test X"$with_rpath" = X"yes"; then
                   22876:        LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
                   22877:     else
                   22878:        LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
                   22879:     fi
                   22880:     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
                   22881:        blibpath_add="${blibpath_add}:${with_ldap}/lib"
                   22882:     fi
                   22883:
                   22884:        CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
                   22885:        with_ldap=yes
                   22886:        LDAP=""
                   22887:     fi
                   22888:     SUDO_OBJS="${SUDO_OBJS} ldap.o"
1.17      millert  22889:
1.37      millert  22890:     { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
                   22891: echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
                   22892:     LDAP_LIBS=""
                   22893:     _LIBS="$LIBS"
                   22894:     found=no
                   22895:     for l in -lldap -llber '-lssl -lcrypto'; do
                   22896:        LIBS="${LIBS} $l"
                   22897:        LDAP_LIBS="${LDAP_LIBS} $l"
                   22898:        cat >conftest.$ac_ext <<_ACEOF
1.27      millert  22899: /* confdefs.h.  */
                   22900: _ACEOF
                   22901: cat confdefs.h >>conftest.$ac_ext
                   22902: cat >>conftest.$ac_ext <<_ACEOF
                   22903: /* end confdefs.h.  */
1.37      millert  22904: #include <sys/types.h>
                   22905:        #include <lber.h>
                   22906:        #include <ldap.h>
1.27      millert  22907: int
                   22908: main ()
                   22909: {
1.37      millert  22910: (void)ldap_init(0, 0)
1.27      millert  22911:   ;
                   22912:   return 0;
                   22913: }
1.17      millert  22914: _ACEOF
1.27      millert  22915: rm -f conftest.$ac_objext conftest$ac_exeext
                   22916: if { (ac_try="$ac_link"
                   22917: case "(($ac_try" in
                   22918:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22919:   *) ac_try_echo=$ac_try;;
                   22920: esac
                   22921: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22922:   (eval "$ac_link") 2>conftest.er1
                   22923:   ac_status=$?
                   22924:   grep -v '^ *+' conftest.er1 >conftest.err
                   22925:   rm -f conftest.er1
                   22926:   cat conftest.err >&5
                   22927:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   22928:   (exit $ac_status); } && {
                   22929:         test -z "$ac_c_werror_flag" ||
                   22930:         test ! -s conftest.err
                   22931:        } && test -s conftest$ac_exeext &&
                   22932:        $as_test_x conftest$ac_exeext; then
1.37      millert  22933:   found=yes; break
1.27      millert  22934: else
                   22935:   echo "$as_me: failed program was:" >&5
                   22936: sed 's/^/| /' conftest.$ac_ext >&5
1.17      millert  22937:
1.37      millert  22938:
1.27      millert  22939: fi
1.25      millert  22940:
1.27      millert  22941: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   22942:       conftest$ac_exeext conftest.$ac_ext
1.37      millert  22943:     done
                   22944:         if test "$found" = "no"; then
                   22945:        LIBS="${_LIBS} -lldap"
                   22946:        LDAP_LIBS="-lldap"
                   22947:        { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
                   22948: echo "${ECHO_T}not found, using -lldap" >&6; }
                   22949:     else
                   22950:        { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
                   22951: echo "${ECHO_T}$LDAP_LIBS" >&6; }
1.27      millert  22952:     fi
1.37      millert  22953:         OLIBS="$LIBS"
                   22954:     { echo "$as_me:$LINENO: checking for library containing ber_set_option" >&5
                   22955: echo $ECHO_N "checking for library containing ber_set_option... $ECHO_C" >&6; }
                   22956: if test "${ac_cv_search_ber_set_option+set}" = set; then
1.27      millert  22957:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.25      millert  22958: else
1.27      millert  22959:   ac_func_search_save_LIBS=$LIBS
                   22960: cat >conftest.$ac_ext <<_ACEOF
                   22961: /* confdefs.h.  */
                   22962: _ACEOF
                   22963: cat confdefs.h >>conftest.$ac_ext
                   22964: cat >>conftest.$ac_ext <<_ACEOF
                   22965: /* end confdefs.h.  */
1.25      millert  22966:
1.27      millert  22967: /* Override any GCC internal prototype to avoid an error.
                   22968:    Use char because int might match the return type of a GCC
                   22969:    builtin and then its argument prototype would still apply.  */
                   22970: #ifdef __cplusplus
                   22971: extern "C"
                   22972: #endif
1.37      millert  22973: char ber_set_option ();
1.27      millert  22974: int
                   22975: main ()
                   22976: {
1.37      millert  22977: return ber_set_option ();
1.27      millert  22978:   ;
                   22979:   return 0;
                   22980: }
                   22981: _ACEOF
1.37      millert  22982: for ac_lib in '' lber; do
1.27      millert  22983:   if test -z "$ac_lib"; then
                   22984:     ac_res="none required"
1.25      millert  22985:   else
1.27      millert  22986:     ac_res=-l$ac_lib
                   22987:     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
1.25      millert  22988:   fi
1.27      millert  22989:   rm -f conftest.$ac_objext conftest$ac_exeext
                   22990: if { (ac_try="$ac_link"
                   22991: case "(($ac_try" in
                   22992:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   22993:   *) ac_try_echo=$ac_try;;
                   22994: esac
                   22995: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   22996:   (eval "$ac_link") 2>conftest.er1
                   22997:   ac_status=$?
                   22998:   grep -v '^ *+' conftest.er1 >conftest.err
                   22999:   rm -f conftest.er1
                   23000:   cat conftest.err >&5
                   23001:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23002:   (exit $ac_status); } && {
                   23003:         test -z "$ac_c_werror_flag" ||
                   23004:         test ! -s conftest.err
                   23005:        } && test -s conftest$ac_exeext &&
                   23006:        $as_test_x conftest$ac_exeext; then
1.37      millert  23007:   ac_cv_search_ber_set_option=$ac_res
1.27      millert  23008: else
                   23009:   echo "$as_me: failed program was:" >&5
                   23010: sed 's/^/| /' conftest.$ac_ext >&5
                   23011:
1.25      millert  23012:
1.17      millert  23013: fi
                   23014:
1.27      millert  23015: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   23016:       conftest$ac_exeext
1.37      millert  23017:   if test "${ac_cv_search_ber_set_option+set}" = set; then
1.27      millert  23018:   break
                   23019: fi
                   23020: done
1.37      millert  23021: if test "${ac_cv_search_ber_set_option+set}" = set; then
1.27      millert  23022:   :
1.25      millert  23023: else
1.37      millert  23024:   ac_cv_search_ber_set_option=no
1.27      millert  23025: fi
                   23026: rm conftest.$ac_ext
                   23027: LIBS=$ac_func_search_save_LIBS
1.25      millert  23028: fi
1.37      millert  23029: { echo "$as_me:$LINENO: result: $ac_cv_search_ber_set_option" >&5
                   23030: echo "${ECHO_T}$ac_cv_search_ber_set_option" >&6; }
                   23031: ac_res=$ac_cv_search_ber_set_option
1.27      millert  23032: if test "$ac_res" != no; then
                   23033:   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.37      millert  23034:   found=yes
                   23035: else
                   23036:   found=no
1.17      millert  23037: fi
                   23038:
1.37      millert  23039:     if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
                   23040:        LDAP_LIBS="$LDAP_LIBS -llber"
1.27      millert  23041:     fi
1.37      millert  23042:         { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
                   23043: echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
                   23044:     cat >conftest.$ac_ext <<_ACEOF
1.27      millert  23045: /* confdefs.h.  */
                   23046: _ACEOF
                   23047: cat confdefs.h >>conftest.$ac_ext
                   23048: cat >>conftest.$ac_ext <<_ACEOF
                   23049: /* end confdefs.h.  */
1.37      millert  23050: #include <sys/types.h>
                   23051:     #include <ldap.h>
1.27      millert  23052: int
                   23053: main ()
                   23054: {
1.37      millert  23055: (void)ldap_init(0, 0)
1.27      millert  23056:   ;
                   23057:   return 0;
1.23      millert  23058: }
1.27      millert  23059: _ACEOF
1.37      millert  23060: rm -f conftest.$ac_objext conftest$ac_exeext
1.27      millert  23061: if { (ac_try="$ac_link"
                   23062: case "(($ac_try" in
                   23063:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23064:   *) ac_try_echo=$ac_try;;
                   23065: esac
                   23066: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23067:   (eval "$ac_link") 2>conftest.er1
                   23068:   ac_status=$?
                   23069:   grep -v '^ *+' conftest.er1 >conftest.err
                   23070:   rm -f conftest.er1
                   23071:   cat conftest.err >&5
                   23072:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23073:   (exit $ac_status); } && {
                   23074:         test -z "$ac_c_werror_flag" ||
                   23075:         test ! -s conftest.err
                   23076:        } && test -s conftest$ac_exeext &&
                   23077:        $as_test_x conftest$ac_exeext; then
1.37      millert  23078:   { echo "$as_me:$LINENO: result: no" >&5
                   23079: echo "${ECHO_T}no" >&6; }
1.27      millert  23080: else
                   23081:   echo "$as_me: failed program was:" >&5
                   23082: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  23083:
                   23084:
1.37      millert  23085:     { echo "$as_me:$LINENO: result: yes" >&5
                   23086: echo "${ECHO_T}yes" >&6; }
                   23087:     cat >>confdefs.h <<\_ACEOF
                   23088: #define HAVE_LBER_H 1
                   23089: _ACEOF
                   23090:
1.27      millert  23091: fi
1.23      millert  23092:
1.27      millert  23093: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.37      millert  23094:       conftest$ac_exeext conftest.$ac_ext
                   23095:
                   23096:
                   23097:
1.39      millert  23098: for ac_header in sasl/sasl.h sasl.h
1.37      millert  23099: do
                   23100: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   23101: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   23102:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   23103: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   23104: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   23105:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   23106: fi
                   23107: ac_res=`eval echo '${'$as_ac_Header'}'`
                   23108:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   23109: echo "${ECHO_T}$ac_res" >&6; }
                   23110: else
                   23111:   # Is the header compilable?
                   23112: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   23113: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
                   23114: cat >conftest.$ac_ext <<_ACEOF
                   23115: /* confdefs.h.  */
                   23116: _ACEOF
                   23117: cat confdefs.h >>conftest.$ac_ext
                   23118: cat >>conftest.$ac_ext <<_ACEOF
                   23119: /* end confdefs.h.  */
                   23120: $ac_includes_default
                   23121: #include <$ac_header>
                   23122: _ACEOF
                   23123: rm -f conftest.$ac_objext
                   23124: if { (ac_try="$ac_compile"
                   23125: case "(($ac_try" in
                   23126:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23127:   *) ac_try_echo=$ac_try;;
                   23128: esac
                   23129: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23130:   (eval "$ac_compile") 2>conftest.er1
                   23131:   ac_status=$?
                   23132:   grep -v '^ *+' conftest.er1 >conftest.err
                   23133:   rm -f conftest.er1
                   23134:   cat conftest.err >&5
                   23135:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23136:   (exit $ac_status); } && {
                   23137:         test -z "$ac_c_werror_flag" ||
                   23138:         test ! -s conftest.err
                   23139:        } && test -s conftest.$ac_objext; then
                   23140:   ac_header_compiler=yes
                   23141: else
                   23142:   echo "$as_me: failed program was:" >&5
                   23143: sed 's/^/| /' conftest.$ac_ext >&5
                   23144:
                   23145:        ac_header_compiler=no
                   23146: fi
                   23147:
                   23148: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   23149: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   23150: echo "${ECHO_T}$ac_header_compiler" >&6; }
                   23151:
                   23152: # Is the header present?
                   23153: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   23154: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
                   23155: cat >conftest.$ac_ext <<_ACEOF
                   23156: /* confdefs.h.  */
                   23157: _ACEOF
                   23158: cat confdefs.h >>conftest.$ac_ext
                   23159: cat >>conftest.$ac_ext <<_ACEOF
                   23160: /* end confdefs.h.  */
                   23161: #include <$ac_header>
                   23162: _ACEOF
                   23163: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   23164: case "(($ac_try" in
                   23165:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23166:   *) ac_try_echo=$ac_try;;
                   23167: esac
                   23168: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23169:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
                   23170:   ac_status=$?
                   23171:   grep -v '^ *+' conftest.er1 >conftest.err
                   23172:   rm -f conftest.er1
                   23173:   cat conftest.err >&5
                   23174:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23175:   (exit $ac_status); } >/dev/null && {
                   23176:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   23177:         test ! -s conftest.err
                   23178:        }; then
                   23179:   ac_header_preproc=yes
                   23180: else
                   23181:   echo "$as_me: failed program was:" >&5
                   23182: sed 's/^/| /' conftest.$ac_ext >&5
                   23183:
                   23184:   ac_header_preproc=no
                   23185: fi
                   23186:
                   23187: rm -f conftest.err conftest.$ac_ext
                   23188: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   23189: echo "${ECHO_T}$ac_header_preproc" >&6; }
                   23190:
                   23191: # So?  What about this header?
                   23192: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   23193:   yes:no: )
                   23194:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   23195: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   23196:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   23197: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   23198:     ac_header_preproc=yes
                   23199:     ;;
                   23200:   no:yes:* )
                   23201:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   23202: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   23203:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   23204: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   23205:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   23206: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   23207:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   23208: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   23209:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   23210: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   23211:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   23212: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.40      millert  23213:     ( cat <<\_ASBOX
                   23214: ## --------------------------------------- ##
                   23215: ## Report this to http://www.sudo.ws/bugs/ ##
                   23216: ## --------------------------------------- ##
                   23217: _ASBOX
                   23218:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.37      millert  23219:     ;;
                   23220: esac
                   23221: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   23222: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   23223: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   23224:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   23225: else
                   23226:   eval "$as_ac_Header=\$ac_header_preproc"
                   23227: fi
                   23228: ac_res=`eval echo '${'$as_ac_Header'}'`
                   23229:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   23230: echo "${ECHO_T}$ac_res" >&6; }
                   23231:
                   23232: fi
                   23233: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   23234:   cat >>confdefs.h <<_ACEOF
                   23235: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   23236: _ACEOF
                   23237:
1.39      millert  23238: for ac_func in ldap_sasl_interactive_bind_s
                   23239: do
                   23240: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   23241: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   23242: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   23243: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
                   23244:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   23245: else
                   23246:   cat >conftest.$ac_ext <<_ACEOF
                   23247: /* confdefs.h.  */
                   23248: _ACEOF
                   23249: cat confdefs.h >>conftest.$ac_ext
                   23250: cat >>conftest.$ac_ext <<_ACEOF
                   23251: /* end confdefs.h.  */
                   23252: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   23253:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   23254: #define $ac_func innocuous_$ac_func
                   23255:
                   23256: /* System header to define __stub macros and hopefully few prototypes,
                   23257:     which can conflict with char $ac_func (); below.
                   23258:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   23259:     <limits.h> exists even on freestanding compilers.  */
                   23260:
                   23261: #ifdef __STDC__
                   23262: # include <limits.h>
                   23263: #else
                   23264: # include <assert.h>
                   23265: #endif
                   23266:
                   23267: #undef $ac_func
                   23268:
                   23269: /* Override any GCC internal prototype to avoid an error.
                   23270:    Use char because int might match the return type of a GCC
                   23271:    builtin and then its argument prototype would still apply.  */
                   23272: #ifdef __cplusplus
                   23273: extern "C"
                   23274: #endif
                   23275: char $ac_func ();
                   23276: /* The GNU C library defines this for functions which it implements
                   23277:     to always fail with ENOSYS.  Some functions are actually named
                   23278:     something starting with __ and the normal name is an alias.  */
                   23279: #if defined __stub_$ac_func || defined __stub___$ac_func
                   23280: choke me
                   23281: #endif
                   23282:
                   23283: int
                   23284: main ()
                   23285: {
                   23286: return $ac_func ();
                   23287:   ;
                   23288:   return 0;
                   23289: }
                   23290: _ACEOF
                   23291: rm -f conftest.$ac_objext conftest$ac_exeext
                   23292: if { (ac_try="$ac_link"
                   23293: case "(($ac_try" in
                   23294:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23295:   *) ac_try_echo=$ac_try;;
                   23296: esac
                   23297: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23298:   (eval "$ac_link") 2>conftest.er1
                   23299:   ac_status=$?
                   23300:   grep -v '^ *+' conftest.er1 >conftest.err
                   23301:   rm -f conftest.er1
                   23302:   cat conftest.err >&5
                   23303:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23304:   (exit $ac_status); } && {
                   23305:         test -z "$ac_c_werror_flag" ||
                   23306:         test ! -s conftest.err
                   23307:        } && test -s conftest$ac_exeext &&
                   23308:        $as_test_x conftest$ac_exeext; then
                   23309:   eval "$as_ac_var=yes"
                   23310: else
                   23311:   echo "$as_me: failed program was:" >&5
                   23312: sed 's/^/| /' conftest.$ac_ext >&5
                   23313:
                   23314:        eval "$as_ac_var=no"
                   23315: fi
                   23316:
                   23317: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   23318:       conftest$ac_exeext conftest.$ac_ext
                   23319: fi
                   23320: ac_res=`eval echo '${'$as_ac_var'}'`
                   23321:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   23322: echo "${ECHO_T}$ac_res" >&6; }
                   23323: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   23324:   cat >>confdefs.h <<_ACEOF
                   23325: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   23326: _ACEOF
                   23327:
                   23328: fi
                   23329: done
1.40      millert  23330:
                   23331: else
                   23332:   break
1.37      millert  23333: fi
                   23334:
                   23335: done
                   23336:
                   23337:
                   23338:
                   23339: for ac_header in ldap_ssl.h mps/ldap_ssl.h
                   23340: do
                   23341: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   23342: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   23343: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   23344: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   23345:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   23346: else
                   23347:   cat >conftest.$ac_ext <<_ACEOF
                   23348: /* confdefs.h.  */
                   23349: _ACEOF
                   23350: cat confdefs.h >>conftest.$ac_ext
                   23351: cat >>conftest.$ac_ext <<_ACEOF
                   23352: /* end confdefs.h.  */
                   23353: #include <ldap.h>
                   23354:
                   23355: #include <$ac_header>
                   23356: _ACEOF
                   23357: rm -f conftest.$ac_objext
                   23358: if { (ac_try="$ac_compile"
                   23359: case "(($ac_try" in
                   23360:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23361:   *) ac_try_echo=$ac_try;;
                   23362: esac
                   23363: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23364:   (eval "$ac_compile") 2>conftest.er1
                   23365:   ac_status=$?
                   23366:   grep -v '^ *+' conftest.er1 >conftest.err
                   23367:   rm -f conftest.er1
                   23368:   cat conftest.err >&5
                   23369:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23370:   (exit $ac_status); } && {
                   23371:         test -z "$ac_c_werror_flag" ||
                   23372:         test ! -s conftest.err
                   23373:        } && test -s conftest.$ac_objext; then
                   23374:   eval "$as_ac_Header=yes"
1.27      millert  23375: else
                   23376:   echo "$as_me: failed program was:" >&5
                   23377: sed 's/^/| /' conftest.$ac_ext >&5
1.23      millert  23378:
1.37      millert  23379:        eval "$as_ac_Header=no"
1.17      millert  23380: fi
1.23      millert  23381:
1.37      millert  23382: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25      millert  23383: fi
1.37      millert  23384: ac_res=`eval echo '${'$as_ac_Header'}'`
1.27      millert  23385:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   23386: echo "${ECHO_T}$ac_res" >&6; }
1.37      millert  23387: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.27      millert  23388:   cat >>confdefs.h <<_ACEOF
1.37      millert  23389: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.27      millert  23390: _ACEOF
1.37      millert  23391:  break
                   23392: fi
1.17      millert  23393:
1.27      millert  23394: done
1.17      millert  23395:
                   23396:
1.39      millert  23397:
                   23398:
                   23399:
                   23400:
                   23401:
                   23402:
                   23403:
                   23404:
                   23405:
                   23406:
                   23407: for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_search_ext_s ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_client_init ldap_start_tls_s_np
                   23408: do
                   23409: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
                   23410: { echo "$as_me:$LINENO: checking for $ac_func" >&5
                   23411: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
                   23412: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
                   23413:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   23414: else
                   23415:   cat >conftest.$ac_ext <<_ACEOF
                   23416: /* confdefs.h.  */
                   23417: _ACEOF
                   23418: cat confdefs.h >>conftest.$ac_ext
                   23419: cat >>conftest.$ac_ext <<_ACEOF
                   23420: /* end confdefs.h.  */
                   23421: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
                   23422:    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
                   23423: #define $ac_func innocuous_$ac_func
                   23424:
                   23425: /* System header to define __stub macros and hopefully few prototypes,
                   23426:     which can conflict with char $ac_func (); below.
                   23427:     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
                   23428:     <limits.h> exists even on freestanding compilers.  */
                   23429:
                   23430: #ifdef __STDC__
                   23431: # include <limits.h>
                   23432: #else
                   23433: # include <assert.h>
                   23434: #endif
                   23435:
                   23436: #undef $ac_func
                   23437:
                   23438: /* Override any GCC internal prototype to avoid an error.
                   23439:    Use char because int might match the return type of a GCC
                   23440:    builtin and then its argument prototype would still apply.  */
                   23441: #ifdef __cplusplus
                   23442: extern "C"
                   23443: #endif
                   23444: char $ac_func ();
                   23445: /* The GNU C library defines this for functions which it implements
                   23446:     to always fail with ENOSYS.  Some functions are actually named
                   23447:     something starting with __ and the normal name is an alias.  */
                   23448: #if defined __stub_$ac_func || defined __stub___$ac_func
                   23449: choke me
                   23450: #endif
                   23451:
                   23452: int
                   23453: main ()
                   23454: {
                   23455: return $ac_func ();
                   23456:   ;
                   23457:   return 0;
                   23458: }
                   23459: _ACEOF
                   23460: rm -f conftest.$ac_objext conftest$ac_exeext
                   23461: if { (ac_try="$ac_link"
                   23462: case "(($ac_try" in
                   23463:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23464:   *) ac_try_echo=$ac_try;;
                   23465: esac
                   23466: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23467:   (eval "$ac_link") 2>conftest.er1
                   23468:   ac_status=$?
                   23469:   grep -v '^ *+' conftest.er1 >conftest.err
                   23470:   rm -f conftest.er1
                   23471:   cat conftest.err >&5
                   23472:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23473:   (exit $ac_status); } && {
                   23474:         test -z "$ac_c_werror_flag" ||
                   23475:         test ! -s conftest.err
                   23476:        } && test -s conftest$ac_exeext &&
                   23477:        $as_test_x conftest$ac_exeext; then
                   23478:   eval "$as_ac_var=yes"
                   23479: else
                   23480:   echo "$as_me: failed program was:" >&5
                   23481: sed 's/^/| /' conftest.$ac_ext >&5
                   23482:
                   23483:        eval "$as_ac_var=no"
                   23484: fi
                   23485:
                   23486: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   23487:       conftest$ac_exeext conftest.$ac_ext
                   23488: fi
                   23489: ac_res=`eval echo '${'$as_ac_var'}'`
                   23490:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   23491: echo "${ECHO_T}$ac_res" >&6; }
                   23492: if test `eval echo '${'$as_ac_var'}'` = yes; then
                   23493:   cat >>confdefs.h <<_ACEOF
                   23494: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
                   23495: _ACEOF
                   23496:
                   23497: fi
                   23498: done
                   23499:
                   23500:
1.37      millert  23501:     if test X"$check_gss_krb5_ccache_name" = X"yes"; then
                   23502:        { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi" >&5
                   23503: echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi... $ECHO_C" >&6; }
                   23504: if test "${ac_cv_lib_gssapi_gss_krb5_ccache_name+set}" = set; then
                   23505:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   23506: else
                   23507:   ac_check_lib_save_LIBS=$LIBS
                   23508: LIBS="-lgssapi  $LIBS"
                   23509: cat >conftest.$ac_ext <<_ACEOF
1.27      millert  23510: /* confdefs.h.  */
1.25      millert  23511: _ACEOF
1.27      millert  23512: cat confdefs.h >>conftest.$ac_ext
                   23513: cat >>conftest.$ac_ext <<_ACEOF
                   23514: /* end confdefs.h.  */
1.37      millert  23515:
                   23516: /* Override any GCC internal prototype to avoid an error.
                   23517:    Use char because int might match the return type of a GCC
                   23518:    builtin and then its argument prototype would still apply.  */
                   23519: #ifdef __cplusplus
                   23520: extern "C"
                   23521: #endif
                   23522: char gss_krb5_ccache_name ();
1.27      millert  23523: int
                   23524: main ()
                   23525: {
1.37      millert  23526: return gss_krb5_ccache_name ();
1.27      millert  23527:   ;
                   23528:   return 0;
                   23529: }
1.25      millert  23530: _ACEOF
1.27      millert  23531: rm -f conftest.$ac_objext conftest$ac_exeext
                   23532: if { (ac_try="$ac_link"
                   23533: case "(($ac_try" in
                   23534:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23535:   *) ac_try_echo=$ac_try;;
                   23536: esac
                   23537: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23538:   (eval "$ac_link") 2>conftest.er1
                   23539:   ac_status=$?
                   23540:   grep -v '^ *+' conftest.er1 >conftest.err
                   23541:   rm -f conftest.er1
                   23542:   cat conftest.err >&5
                   23543:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23544:   (exit $ac_status); } && {
                   23545:         test -z "$ac_c_werror_flag" ||
                   23546:         test ! -s conftest.err
                   23547:        } && test -s conftest$ac_exeext &&
                   23548:        $as_test_x conftest$ac_exeext; then
1.37      millert  23549:   ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
1.27      millert  23550: else
                   23551:   echo "$as_me: failed program was:" >&5
                   23552: sed 's/^/| /' conftest.$ac_ext >&5
1.17      millert  23553:
1.37      millert  23554:        ac_cv_lib_gssapi_gss_krb5_ccache_name=no
1.17      millert  23555: fi
                   23556:
1.27      millert  23557: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   23558:       conftest$ac_exeext conftest.$ac_ext
1.37      millert  23559: LIBS=$ac_check_lib_save_LIBS
                   23560: fi
                   23561: { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
                   23562: echo "${ECHO_T}$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
                   23563: if test $ac_cv_lib_gssapi_gss_krb5_ccache_name = yes; then
                   23564:   cat >>confdefs.h <<\_ACEOF
                   23565: #define HAVE_GSS_KRB5_CCACHE_NAME 1
                   23566: _ACEOF
                   23567:
                   23568:            LDAP_LIBS="${LDAP_LIBS} -lgssapi"
                   23569: else
                   23570:   { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
                   23571: echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi_krb5... $ECHO_C" >&6; }
                   23572: if test "${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+set}" = set; then
1.35      millert  23573:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   23574: else
1.37      millert  23575:   ac_check_lib_save_LIBS=$LIBS
                   23576: LIBS="-lgssapi_krb5  $LIBS"
1.35      millert  23577: cat >conftest.$ac_ext <<_ACEOF
                   23578: /* confdefs.h.  */
                   23579: _ACEOF
                   23580: cat confdefs.h >>conftest.$ac_ext
                   23581: cat >>conftest.$ac_ext <<_ACEOF
                   23582: /* end confdefs.h.  */
                   23583:
                   23584: /* Override any GCC internal prototype to avoid an error.
                   23585:    Use char because int might match the return type of a GCC
                   23586:    builtin and then its argument prototype would still apply.  */
                   23587: #ifdef __cplusplus
                   23588: extern "C"
                   23589: #endif
1.37      millert  23590: char gss_krb5_ccache_name ();
1.35      millert  23591: int
                   23592: main ()
                   23593: {
1.37      millert  23594: return gss_krb5_ccache_name ();
1.35      millert  23595:   ;
                   23596:   return 0;
                   23597: }
                   23598: _ACEOF
1.37      millert  23599: rm -f conftest.$ac_objext conftest$ac_exeext
1.35      millert  23600: if { (ac_try="$ac_link"
                   23601: case "(($ac_try" in
                   23602:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23603:   *) ac_try_echo=$ac_try;;
                   23604: esac
                   23605: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23606:   (eval "$ac_link") 2>conftest.er1
                   23607:   ac_status=$?
                   23608:   grep -v '^ *+' conftest.er1 >conftest.err
                   23609:   rm -f conftest.er1
                   23610:   cat conftest.err >&5
                   23611:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23612:   (exit $ac_status); } && {
                   23613:         test -z "$ac_c_werror_flag" ||
                   23614:         test ! -s conftest.err
                   23615:        } && test -s conftest$ac_exeext &&
                   23616:        $as_test_x conftest$ac_exeext; then
1.37      millert  23617:   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
1.35      millert  23618: else
                   23619:   echo "$as_me: failed program was:" >&5
                   23620: sed 's/^/| /' conftest.$ac_ext >&5
                   23621:
1.37      millert  23622:        ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
                   23623: fi
                   23624:
                   23625: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
                   23626:       conftest$ac_exeext conftest.$ac_ext
                   23627: LIBS=$ac_check_lib_save_LIBS
                   23628: fi
                   23629: { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
                   23630: echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
                   23631: if test $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name = yes; then
                   23632:   cat >>confdefs.h <<\_ACEOF
                   23633: #define HAVE_GSS_KRB5_CCACHE_NAME 1
                   23634: _ACEOF
1.35      millert  23635:
1.37      millert  23636:                LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
1.35      millert  23637: fi
                   23638:
1.37      millert  23639:
1.35      millert  23640: fi
1.37      millert  23641:
                   23642:
                   23643:        # gssapi headers may be separate or part of Kerberos V
                   23644:        found=no
                   23645:        O_CPPFLAGS="$CPPFLAGS"
                   23646:        for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
                   23647:            test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
                   23648:            cat >conftest.$ac_ext <<_ACEOF
                   23649: #include <gssapi/gssapi.h>
                   23650: _ACEOF
                   23651: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   23652: case "(($ac_try" in
                   23653:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23654:   *) ac_try_echo=$ac_try;;
                   23655: esac
                   23656: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23657:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
                   23658:   ac_status=$?
                   23659:   grep -v '^ *+' conftest.er1 >conftest.err
                   23660:   rm -f conftest.er1
                   23661:   cat conftest.err >&5
                   23662:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23663:   (exit $ac_status); } >/dev/null && {
                   23664:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   23665:         test ! -s conftest.err
                   23666:        }; then
                   23667:   found="gssapi/gssapi.h"; break
                   23668: else
                   23669:   echo "$as_me: failed program was:" >&5
                   23670: sed 's/^/| /' conftest.$ac_ext >&5
                   23671:
                   23672:   cat >conftest.$ac_ext <<_ACEOF
                   23673: #include <gssapi.h>
                   23674: _ACEOF
                   23675: if { (ac_try="$ac_cpp conftest.$ac_ext"
                   23676: case "(($ac_try" in
                   23677:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23678:   *) ac_try_echo=$ac_try;;
                   23679: esac
                   23680: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23681:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
                   23682:   ac_status=$?
                   23683:   grep -v '^ *+' conftest.er1 >conftest.err
                   23684:   rm -f conftest.er1
                   23685:   cat conftest.err >&5
                   23686:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23687:   (exit $ac_status); } >/dev/null && {
                   23688:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
                   23689:         test ! -s conftest.err
                   23690:        }; then
                   23691:   found="gssapi.h"; break
1.35      millert  23692: else
1.37      millert  23693:   echo "$as_me: failed program was:" >&5
                   23694: sed 's/^/| /' conftest.$ac_ext >&5
                   23695:
                   23696:
                   23697: fi
                   23698:
                   23699: rm -f conftest.err conftest.$ac_ext
1.35      millert  23700: fi
1.37      millert  23701:
                   23702: rm -f conftest.err conftest.$ac_ext
                   23703:        done
                   23704:        if test X"$found" != X"no"; then
                   23705:
                   23706: for ac_header in $found
                   23707: do
                   23708: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   23709: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   23710:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   23711: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   23712: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   23713:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.35      millert  23714: fi
1.37      millert  23715: ac_res=`eval echo '${'$as_ac_Header'}'`
                   23716:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   23717: echo "${ECHO_T}$ac_res" >&6; }
                   23718: else
                   23719:   # Is the header compilable?
                   23720: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   23721: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
                   23722: cat >conftest.$ac_ext <<_ACEOF
                   23723: /* confdefs.h.  */
                   23724: _ACEOF
                   23725: cat confdefs.h >>conftest.$ac_ext
                   23726: cat >>conftest.$ac_ext <<_ACEOF
                   23727: /* end confdefs.h.  */
                   23728: $ac_includes_default
                   23729: #include <$ac_header>
                   23730: _ACEOF
                   23731: rm -f conftest.$ac_objext
                   23732: if { (ac_try="$ac_compile"
                   23733: case "(($ac_try" in
                   23734:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23735:   *) ac_try_echo=$ac_try;;
                   23736: esac
                   23737: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
                   23738:   (eval "$ac_compile") 2>conftest.er1
                   23739:   ac_status=$?
                   23740:   grep -v '^ *+' conftest.er1 >conftest.err
                   23741:   rm -f conftest.er1
                   23742:   cat conftest.err >&5
                   23743:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23744:   (exit $ac_status); } && {
                   23745:         test -z "$ac_c_werror_flag" ||
                   23746:         test ! -s conftest.err
                   23747:        } && test -s conftest.$ac_objext; then
                   23748:   ac_header_compiler=yes
1.35      millert  23749: else
1.37      millert  23750:   echo "$as_me: failed program was:" >&5
                   23751: sed 's/^/| /' conftest.$ac_ext >&5
                   23752:
                   23753:        ac_header_compiler=no
1.35      millert  23754: fi
                   23755:
1.37      millert  23756: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   23757: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   23758: echo "${ECHO_T}$ac_header_compiler" >&6; }
                   23759:
                   23760: # Is the header present?
                   23761: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   23762: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
                   23763: cat >conftest.$ac_ext <<_ACEOF
1.27      millert  23764: /* confdefs.h.  */
1.17      millert  23765: _ACEOF
1.27      millert  23766: cat confdefs.h >>conftest.$ac_ext
                   23767: cat >>conftest.$ac_ext <<_ACEOF
                   23768: /* end confdefs.h.  */
1.37      millert  23769: #include <$ac_header>
1.25      millert  23770: _ACEOF
1.37      millert  23771: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.27      millert  23772: case "(($ac_try" in
                   23773:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23774:   *) ac_try_echo=$ac_try;;
                   23775: esac
                   23776: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  23777:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.27      millert  23778:   ac_status=$?
                   23779:   grep -v '^ *+' conftest.er1 >conftest.err
                   23780:   rm -f conftest.er1
                   23781:   cat conftest.err >&5
                   23782:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37      millert  23783:   (exit $ac_status); } >/dev/null && {
                   23784:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.27      millert  23785:         test ! -s conftest.err
1.37      millert  23786:        }; then
                   23787:   ac_header_preproc=yes
1.27      millert  23788: else
                   23789:   echo "$as_me: failed program was:" >&5
                   23790: sed 's/^/| /' conftest.$ac_ext >&5
1.17      millert  23791:
1.37      millert  23792:   ac_header_preproc=no
                   23793: fi
                   23794:
                   23795: rm -f conftest.err conftest.$ac_ext
                   23796: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   23797: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1       millert  23798:
1.37      millert  23799: # So?  What about this header?
                   23800: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   23801:   yes:no: )
                   23802:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   23803: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   23804:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   23805: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   23806:     ac_header_preproc=yes
                   23807:     ;;
                   23808:   no:yes:* )
                   23809:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   23810: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   23811:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   23812: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   23813:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   23814: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   23815:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   23816: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   23817:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   23818: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   23819:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   23820: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.40      millert  23821:     ( cat <<\_ASBOX
                   23822: ## --------------------------------------- ##
                   23823: ## Report this to http://www.sudo.ws/bugs/ ##
                   23824: ## --------------------------------------- ##
                   23825: _ASBOX
                   23826:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.37      millert  23827:     ;;
                   23828: esac
                   23829: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   23830: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   23831: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   23832:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   23833: else
                   23834:   eval "$as_ac_Header=\$ac_header_preproc"
1.25      millert  23835: fi
1.37      millert  23836: ac_res=`eval echo '${'$as_ac_Header'}'`
                   23837:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   23838: echo "${ECHO_T}$ac_res" >&6; }
1.25      millert  23839:
1.37      millert  23840: fi
                   23841: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   23842:   cat >>confdefs.h <<_ACEOF
                   23843: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   23844: _ACEOF
1.1       millert  23845:
1.37      millert  23846: fi
1.1       millert  23847:
1.37      millert  23848: done
1.33      millert  23849:
1.37      millert  23850:            if test X"$found" = X"gssapi/gssapi.h"; then
1.35      millert  23851:
1.37      millert  23852: for ac_header in gssapi/gssapi_krb5.h
1.27      millert  23853: do
1.37      millert  23854: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
                   23855: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   23856:   { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   23857: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   23858: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.27      millert  23859:   echo $ECHO_N "(cached) $ECHO_C" >&6
1.37      millert  23860: fi
                   23861: ac_res=`eval echo '${'$as_ac_Header'}'`
                   23862:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   23863: echo "${ECHO_T}$ac_res" >&6; }
1.27      millert  23864: else
1.37      millert  23865:   # Is the header compilable?
                   23866: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
                   23867: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
                   23868: cat >conftest.$ac_ext <<_ACEOF
1.27      millert  23869: /* confdefs.h.  */
1.16      millert  23870: _ACEOF
1.27      millert  23871: cat confdefs.h >>conftest.$ac_ext
                   23872: cat >>conftest.$ac_ext <<_ACEOF
                   23873: /* end confdefs.h.  */
1.37      millert  23874: $ac_includes_default
                   23875: #include <$ac_header>
1.27      millert  23876: _ACEOF
1.37      millert  23877: rm -f conftest.$ac_objext
                   23878: if { (ac_try="$ac_compile"
1.27      millert  23879: case "(($ac_try" in
                   23880:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23881:   *) ac_try_echo=$ac_try;;
                   23882: esac
                   23883: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  23884:   (eval "$ac_compile") 2>conftest.er1
1.27      millert  23885:   ac_status=$?
                   23886:   grep -v '^ *+' conftest.er1 >conftest.err
                   23887:   rm -f conftest.er1
                   23888:   cat conftest.err >&5
                   23889:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
                   23890:   (exit $ac_status); } && {
                   23891:         test -z "$ac_c_werror_flag" ||
                   23892:         test ! -s conftest.err
1.37      millert  23893:        } && test -s conftest.$ac_objext; then
                   23894:   ac_header_compiler=yes
1.27      millert  23895: else
                   23896:   echo "$as_me: failed program was:" >&5
                   23897: sed 's/^/| /' conftest.$ac_ext >&5
1.16      millert  23898:
1.37      millert  23899:        ac_header_compiler=no
1.27      millert  23900: fi
1.17      millert  23901:
1.37      millert  23902: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
                   23903: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
                   23904: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.17      millert  23905:
1.37      millert  23906: # Is the header present?
                   23907: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
                   23908: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
                   23909: cat >conftest.$ac_ext <<_ACEOF
1.35      millert  23910: /* confdefs.h.  */
                   23911: _ACEOF
                   23912: cat confdefs.h >>conftest.$ac_ext
                   23913: cat >>conftest.$ac_ext <<_ACEOF
                   23914: /* end confdefs.h.  */
                   23915: #include <$ac_header>
                   23916: _ACEOF
1.37      millert  23917: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.35      millert  23918: case "(($ac_try" in
                   23919:   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
                   23920:   *) ac_try_echo=$ac_try;;
                   23921: esac
                   23922: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37      millert  23923:   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.35      millert  23924:   ac_status=$?
                   23925:   grep -v '^ *+' conftest.er1 >conftest.err
                   23926:   rm -f conftest.er1
                   23927:   cat conftest.err >&5
                   23928:   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37      millert  23929:   (exit $ac_status); } >/dev/null && {
                   23930:         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.35      millert  23931:         test ! -s conftest.err
1.37      millert  23932:        }; then
                   23933:   ac_header_preproc=yes
1.35      millert  23934: else
                   23935:   echo "$as_me: failed program was:" >&5
                   23936: sed 's/^/| /' conftest.$ac_ext >&5
                   23937:
1.37      millert  23938:   ac_header_preproc=no
1.35      millert  23939: fi
                   23940:
1.37      millert  23941: rm -f conftest.err conftest.$ac_ext
                   23942: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
                   23943: echo "${ECHO_T}$ac_header_preproc" >&6; }
                   23944:
                   23945: # So?  What about this header?
                   23946: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
                   23947:   yes:no: )
                   23948:     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
                   23949: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
                   23950:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
                   23951: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
                   23952:     ac_header_preproc=yes
                   23953:     ;;
                   23954:   no:yes:* )
                   23955:     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
                   23956: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
                   23957:     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
                   23958: echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
                   23959:     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
                   23960: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
                   23961:     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
                   23962: echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
                   23963:     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
                   23964: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
                   23965:     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
                   23966: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.40      millert  23967:     ( cat <<\_ASBOX
                   23968: ## --------------------------------------- ##
                   23969: ## Report this to http://www.sudo.ws/bugs/ ##
                   23970: ## --------------------------------------- ##
                   23971: _ASBOX
                   23972:      ) | sed "s/^/$as_me: WARNING:     /" >&2
1.37      millert  23973:     ;;
                   23974: esac
                   23975: { echo "$as_me:$LINENO: checking for $ac_header" >&5
                   23976: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
                   23977: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
                   23978:   echo $ECHO_N "(cached) $ECHO_C" >&6
                   23979: else
                   23980:   eval "$as_ac_Header=\$ac_header_preproc"
1.35      millert  23981: fi
                   23982: ac_res=`eval echo '${'$as_ac_Header'}'`
                   23983:               { echo "$as_me:$LINENO: result: $ac_res" >&5
                   23984: echo "${ECHO_T}$ac_res" >&6; }
1.37      millert  23985:
                   23986: fi
1.35      millert  23987: if test `eval echo '${'$as_ac_Header'}'` = yes; then
                   23988:   cat >>confdefs.h <<_ACEOF
                   23989: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
                   23990: _ACEOF
1.37      millert  23991:
1.35      millert  23992: fi
                   23993:
1.27      millert  23994: done
1.17      millert  23995:
1.37      millert  23996:            fi
                   23997:        else
                   23998:            CPPFLAGS="$O_CPPFLAGS"
                   23999:            { echo "$as_me:$LINENO: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&5
                   24000: echo "$as_me: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&2;}
                   24001:        fi
                   24002:     fi
1.17      millert  24003:
1.36      millert  24004:     SUDO_LIBS="${SUDO_LIBS} ${LDAP_LIBS}"
1.27      millert  24005:     LIBS="$_LIBS"
                   24006:     LDFLAGS="$_LDFLAGS"
                   24007: fi
1.17      millert  24008:
1.40      millert  24009: if test X"$LIBVAS_RPATH" != X""; then
                   24010:     if test -n "$blibpath"; then
                   24011:        blibpath_add="${blibpath_add}:$LIBVAS_RPATH"
                   24012:     else
                   24013:        LDFLAGS="$LDFLAGS -R$LIBVAS_RPATH"
                   24014:     fi
                   24015: fi
                   24016:
1.27      millert  24017: if test -n "$blibpath"; then
                   24018:     if test -n "$blibpath_add"; then
                   24019:        SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
                   24020:     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
                   24021:        SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
1.17      millert  24022:     fi
1.27      millert  24023: fi
                   24024:
                   24025: { echo "$as_me:$LINENO: checking for log file location" >&5
                   24026: echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
                   24027: if test -n "$with_logpath"; then
                   24028:     { echo "$as_me:$LINENO: result: $with_logpath" >&5
                   24029: echo "${ECHO_T}$with_logpath" >&6; }
                   24030:     cat >>confdefs.h <<EOF
                   24031: #define _PATH_SUDO_LOGFILE "$with_logpath"
                   24032: EOF
1.17      millert  24033:
1.27      millert  24034: elif test -d "/var/log"; then
                   24035:     { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
                   24036: echo "${ECHO_T}/var/log/sudo.log" >&6; }
                   24037:     cat >>confdefs.h <<\EOF
                   24038: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
                   24039: EOF
1.17      millert  24040:
1.27      millert  24041: elif test -d "/var/adm"; then
                   24042:     { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
                   24043: echo "${ECHO_T}/var/adm/sudo.log" >&6; }
                   24044:     cat >>confdefs.h <<\EOF
                   24045: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
                   24046: EOF
1.17      millert  24047:
1.27      millert  24048: elif test -d "/usr/adm"; then
                   24049:     { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
                   24050: echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
                   24051:     cat >>confdefs.h <<\EOF
                   24052: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
                   24053: EOF
1.23      millert  24054:
                   24055: else
1.27      millert  24056:     { echo "$as_me:$LINENO: result: unknown" >&5
                   24057: echo "${ECHO_T}unknown" >&6; }
1.23      millert  24058: fi
                   24059:
1.27      millert  24060: { echo "$as_me:$LINENO: checking for timestamp file location" >&5
                   24061: echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
                   24062: if test -n "$with_timedir"; then
                   24063:     { echo "$as_me:$LINENO: result: $with_timedir" >&5
                   24064: echo "${ECHO_T}$with_timedir" >&6; }
                   24065:     cat >>confdefs.h <<EOF
                   24066: #define _PATH_SUDO_TIMEDIR "$with_timedir"
                   24067: EOF
1.23      millert  24068:
1.27      millert  24069:     timedir="$with_timedir"
                   24070: elif test -d "/var/run"; then
                   24071:     { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
                   24072: echo "${ECHO_T}/var/run/sudo" >&6; }
                   24073:     cat >>confdefs.h <<\EOF
                   24074: #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
                   24075: EOF
1.23      millert  24076:
1.27      millert  24077:     timedir="/var/run/sudo"
                   24078: elif test -d "/var/adm"; then
                   24079:     { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
                   24080: echo "${ECHO_T}/var/adm/sudo" >&6; }
                   24081:     cat >>confdefs.h <<\EOF
                   24082: #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
                   24083: EOF
1.23      millert  24084:
1.27      millert  24085:     timedir="/var/adm/sudo"
                   24086: else
                   24087:     { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
                   24088: echo "${ECHO_T}/usr/adm/sudo" >&6; }
                   24089:     cat >>confdefs.h <<\EOF
                   24090: #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
                   24091: EOF
1.23      millert  24092:
1.27      millert  24093:     timedir="/usr/adm/sudo"
                   24094: fi
1.23      millert  24095:
                   24096:
1.27      millert  24097: case "$with_passwd" in
                   24098: yes|maybe)
                   24099:     AUTH_OBJS="$AUTH_OBJS passwd.o"
                   24100:     ;;
                   24101: *)
                   24102:     cat >>confdefs.h <<\_ACEOF
                   24103: #define WITHOUT_PASSWD 1
1.23      millert  24104: _ACEOF
1.25      millert  24105:
1.27      millert  24106:     if test -z "$AUTH_OBJS"; then
                   24107:        { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
                   24108: echo "$as_me: error: no authentication methods defined." >&2;}
                   24109:    { (exit 1); exit 1; }; }
                   24110:     fi
                   24111:     ;;
                   24112: esac
                   24113: AUTH_OBJS=${AUTH_OBJS# }
                   24114: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
                   24115: { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
                   24116: echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
1.25      millert  24117:
1.27      millert  24118: if test -n "$LIBS"; then
                   24119:     L="$LIBS"
                   24120:     LIBS=
                   24121:     for l in ${L}; do
                   24122:        dupe=0
                   24123:        for sl in ${SUDO_LIBS} ${NET_LIBS}; do
                   24124:            test $l = $sl && dupe=1
                   24125:        done
                   24126:        test $dupe = 0 && LIBS="${LIBS} $l"
                   24127:     done
                   24128: fi
1.23      millert  24129:
1.27      millert  24130: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
1.23      millert  24131:
1.36      millert  24132: if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
1.27      millert  24133:     oexec_prefix="$exec_prefix"
                   24134:     if test "$exec_prefix" = '$(prefix)'; then
                   24135:        if test "$prefix" = "NONE"; then
                   24136:            exec_prefix="$ac_default_prefix"
                   24137:        else
                   24138:            exec_prefix="$prefix"
                   24139:        fi
                   24140:     fi
1.36      millert  24141:     if test X"$with_noexec" != X"no"; then
                   24142:        PROGS="${PROGS} sudo_noexec.la"
                   24143:        INSTALL_NOEXEC="install-noexec"
                   24144:
                   24145:        eval noexec_file="$with_noexec"
1.23      millert  24146:
1.27      millert  24147: cat >>confdefs.h <<_ACEOF
                   24148: #define _PATH_SUDO_NOEXEC "$noexec_file"
1.16      millert  24149: _ACEOF
1.23      millert  24150:
1.36      millert  24151:     fi
                   24152:     if test X"$with_selinux" != X"no"; then
                   24153:        eval sesh_file="$libexecdir/sesh"
                   24154:
                   24155: cat >>confdefs.h <<_ACEOF
                   24156: #define _PATH_SUDO_SESH "$sesh_file"
                   24157: _ACEOF
                   24158:
                   24159:     fi
1.27      millert  24160:     exec_prefix="$oexec_prefix"
                   24161: fi
                   24162:
1.37      millert  24163: ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudo_usage.h"
1.27      millert  24164:
                   24165: cat >confcache <<\_ACEOF
                   24166: # This file is a shell script that caches the results of configure
                   24167: # tests run on this system so they can be shared between configure
                   24168: # scripts and configure runs, see configure's option --config-cache.
                   24169: # It is not useful on other systems.  If it contains results you don't
                   24170: # want to keep, you may remove or edit it.
                   24171: #
                   24172: # config.status only pays attention to the cache file if you give it
                   24173: # the --recheck option to rerun configure.
1.25      millert  24174: #
1.27      millert  24175: # `ac_cv_env_foo' variables (set or unset) will be overridden when
                   24176: # loading this file, other *unset* `ac_cv_foo' will be assigned the
                   24177: # following values.
1.16      millert  24178:
1.23      millert  24179: _ACEOF
1.17      millert  24180:
1.27      millert  24181: # The following way of writing the cache mishandles newlines in values,
                   24182: # but we know of no workaround that is simple, portable, and efficient.
                   24183: # So, we kill variables containing newlines.
                   24184: # Ultrix sh set writes to stderr and can't be redirected directly,
                   24185: # and sets the high bit in the cache file unless we assign to the vars.
                   24186: (
                   24187:   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
                   24188:     eval ac_val=\$$ac_var
                   24189:     case $ac_val in #(
                   24190:     *${as_nl}*)
                   24191:       case $ac_var in #(
                   24192:       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
                   24193: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
                   24194:       esac
                   24195:       case $ac_var in #(
                   24196:       _ | IFS | as_nl) ;; #(
                   24197:       *) $as_unset $ac_var ;;
                   24198:       esac ;;
                   24199:     esac
                   24200:   done
1.1       millert  24201:
1.27      millert  24202:   (set) 2>&1 |
                   24203:     case $as_nl`(ac_space=' '; set) 2>&1` in #(
                   24204:     *${as_nl}ac_space=\ *)
                   24205:       # `set' does not quote correctly, so add quotes (double-quote
                   24206:       # substitution turns \\\\ into \\, and sed turns \\ into \).
                   24207:       sed -n \
                   24208:        "s/'/'\\\\''/g;
                   24209:          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
                   24210:       ;; #(
                   24211:     *)
                   24212:       # `set' quotes correctly as required by POSIX, so do not add quotes.
                   24213:       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
                   24214:       ;;
                   24215:     esac |
                   24216:     sort
                   24217: ) |
                   24218:   sed '
                   24219:      /^ac_cv_env_/b end
                   24220:      t clear
                   24221:      :clear
                   24222:      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
                   24223:      t end
                   24224:      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
                   24225:      :end' >>confcache
                   24226: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
                   24227:   if test -w "$cache_file"; then
                   24228:     test "x$cache_file" != "x/dev/null" &&
                   24229:       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
                   24230: echo "$as_me: updating cache $cache_file" >&6;}
                   24231:     cat confcache >$cache_file
1.25      millert  24232:   else
1.27      millert  24233:     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
                   24234: echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.25      millert  24235:   fi
1.27      millert  24236: fi
                   24237: rm -f confcache
1.1       millert  24238:
1.27      millert  24239: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   24240: # Let make expand exec_prefix.
                   24241: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1.1       millert  24242:
1.27      millert  24243: DEFS=-DHAVE_CONFIG_H
1.1       millert  24244:
1.27      millert  24245: ac_libobjs=
                   24246: ac_ltlibobjs=
                   24247: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
                   24248:   # 1. Remove the extension, and $U if already installed.
                   24249:   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
                   24250:   ac_i=`echo "$ac_i" | sed "$ac_script"`
                   24251:   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
                   24252:   #    will be set to the directory where LIBOBJS objects are built.
                   24253:   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
                   24254:   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
                   24255: done
                   24256: LIBOBJS=$ac_libobjs
1.1       millert  24257:
1.27      millert  24258: LTLIBOBJS=$ac_ltlibobjs
1.1       millert  24259:
                   24260:
                   24261:
1.27      millert  24262: : ${CONFIG_STATUS=./config.status}
                   24263: ac_clean_files_save=$ac_clean_files
                   24264: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
                   24265: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
                   24266: echo "$as_me: creating $CONFIG_STATUS" >&6;}
                   24267: cat >$CONFIG_STATUS <<_ACEOF
                   24268: #! $SHELL
                   24269: # Generated by $as_me.
                   24270: # Run this file to recreate the current configuration.
                   24271: # Compiler output produced by configure, useful for debugging
                   24272: # configure, is in config.log if it exists.
1.1       millert  24273:
1.27      millert  24274: debug=false
                   24275: ac_cs_recheck=false
                   24276: ac_cs_silent=false
                   24277: SHELL=\${CONFIG_SHELL-$SHELL}
                   24278: _ACEOF
1.23      millert  24279:
1.27      millert  24280: cat >>$CONFIG_STATUS <<\_ACEOF
                   24281: ## --------------------- ##
                   24282: ## M4sh Initialization.  ##
                   24283: ## --------------------- ##
1.23      millert  24284:
1.27      millert  24285: # Be more Bourne compatible
                   24286: DUALCASE=1; export DUALCASE # for MKS sh
                   24287: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
                   24288:   emulate sh
                   24289:   NULLCMD=:
                   24290:   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
                   24291:   # is contrary to our usage.  Disable this feature.
                   24292:   alias -g '${1+"$@"}'='"$@"'
                   24293:   setopt NO_GLOB_SUBST
                   24294: else
                   24295:   case `(set -o) 2>/dev/null` in
                   24296:   *posix*) set -o posix ;;
                   24297: esac
1.25      millert  24298:
1.27      millert  24299: fi
1.25      millert  24300:
1.9       millert  24301:
                   24302:
1.1       millert  24303:
1.27      millert  24304: # PATH needs CR
                   24305: # Avoid depending upon Character Ranges.
                   24306: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
                   24307: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                   24308: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
                   24309: as_cr_digits='0123456789'
                   24310: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1       millert  24311:
1.27      millert  24312: # The user is always right.
                   24313: if test "${PATH_SEPARATOR+set}" != set; then
                   24314:   echo "#! /bin/sh" >conf$$.sh
                   24315:   echo  "exit 0"   >>conf$$.sh
                   24316:   chmod +x conf$$.sh
                   24317:   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
                   24318:     PATH_SEPARATOR=';'
                   24319:   else
                   24320:     PATH_SEPARATOR=:
                   24321:   fi
                   24322:   rm -f conf$$.sh
                   24323: fi
1.1       millert  24324:
1.27      millert  24325: # Support unset when possible.
                   24326: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
                   24327:   as_unset=unset
                   24328: else
                   24329:   as_unset=false
                   24330: fi
1.1       millert  24331:
1.16      millert  24332:
1.27      millert  24333: # IFS
                   24334: # We need space, tab and new line, in precisely that order.  Quoting is
                   24335: # there to prevent editors from complaining about space-tab.
                   24336: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
                   24337: # splitting by setting IFS to empty value.)
                   24338: as_nl='
                   24339: '
                   24340: IFS=" ""       $as_nl"
1.16      millert  24341:
1.27      millert  24342: # Find who we are.  Look in the path if we contain no directory separator.
                   24343: case $0 in
                   24344:   *[\\/]* ) as_myself=$0 ;;
                   24345:   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
                   24346: for as_dir in $PATH
                   24347: do
                   24348:   IFS=$as_save_IFS
                   24349:   test -z "$as_dir" && as_dir=.
                   24350:   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
                   24351: done
                   24352: IFS=$as_save_IFS
1.16      millert  24353:
1.27      millert  24354:      ;;
                   24355: esac
                   24356: # We did not find ourselves, most probably we were run as `sh COMMAND'
                   24357: # in which case we are not to be found in the path.
                   24358: if test "x$as_myself" = x; then
                   24359:   as_myself=$0
                   24360: fi
                   24361: if test ! -f "$as_myself"; then
                   24362:   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
                   24363:   { (exit 1); exit 1; }
                   24364: fi
1.16      millert  24365:
1.27      millert  24366: # Work around bugs in pre-3.0 UWIN ksh.
                   24367: for as_var in ENV MAIL MAILPATH
                   24368: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
                   24369: done
                   24370: PS1='$ '
                   24371: PS2='> '
                   24372: PS4='+ '
1.9       millert  24373:
1.27      millert  24374: # NLS nuisances.
                   24375: for as_var in \
                   24376:   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
                   24377:   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
                   24378:   LC_TELEPHONE LC_TIME
                   24379: do
                   24380:   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
                   24381:     eval $as_var=C; export $as_var
                   24382:   else
                   24383:     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
                   24384:   fi
                   24385: done
1.9       millert  24386:
1.27      millert  24387: # Required to use basename.
                   24388: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   24389:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   24390:   as_expr=expr
                   24391: else
                   24392:   as_expr=false
                   24393: fi
1.16      millert  24394:
1.27      millert  24395: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
                   24396:   as_basename=basename
                   24397: else
                   24398:   as_basename=false
                   24399: fi
1.9       millert  24400:
1.16      millert  24401:
1.27      millert  24402: # Name of the executable.
                   24403: as_me=`$as_basename -- "$0" ||
                   24404: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
                   24405:         X"$0" : 'X\(//\)$' \| \
                   24406:         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
                   24407: echo X/"$0" |
                   24408:     sed '/^.*\/\([^/][^/]*\)\/*$/{
                   24409:            s//\1/
                   24410:            q
                   24411:          }
                   24412:          /^X\/\(\/\/\)$/{
                   24413:            s//\1/
                   24414:            q
                   24415:          }
                   24416:          /^X\/\(\/\).*/{
                   24417:            s//\1/
                   24418:            q
                   24419:          }
                   24420:          s/.*/./; q'`
1.16      millert  24421:
1.27      millert  24422: # CDPATH.
                   24423: $as_unset CDPATH
1.16      millert  24424:
                   24425:
                   24426:
1.27      millert  24427:   as_lineno_1=$LINENO
                   24428:   as_lineno_2=$LINENO
                   24429:   test "x$as_lineno_1" != "x$as_lineno_2" &&
                   24430:   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.16      millert  24431:
1.27      millert  24432:   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
                   24433:   # uniformly replaced by the line number.  The first 'sed' inserts a
                   24434:   # line-number line after each line using $LINENO; the second 'sed'
                   24435:   # does the real work.  The second script uses 'N' to pair each
                   24436:   # line-number line with the line containing $LINENO, and appends
                   24437:   # trailing '-' during substitution so that $LINENO is not a special
                   24438:   # case at line end.
                   24439:   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
                   24440:   # scripts with optimization help from Paolo Bonzini.  Blame Lee
                   24441:   # E. McMahon (1931-1989) for sed's syntax.  :-)
                   24442:   sed -n '
                   24443:     p
                   24444:     /[$]LINENO/=
                   24445:   ' <$as_myself |
                   24446:     sed '
                   24447:       s/[$]LINENO.*/&-/
                   24448:       t lineno
                   24449:       b
                   24450:       :lineno
                   24451:       N
                   24452:       :loop
                   24453:       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
                   24454:       t loop
                   24455:       s/-\n.*//
                   24456:     ' >$as_me.lineno &&
                   24457:   chmod +x "$as_me.lineno" ||
                   24458:     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
                   24459:    { (exit 1); exit 1; }; }
1.16      millert  24460:
1.27      millert  24461:   # Don't try to exec as it changes $[0], causing all sort of problems
                   24462:   # (the dirname of $[0] is not the place where we might find the
                   24463:   # original and so on.  Autoconf is especially sensitive to this).
                   24464:   . "./$as_me.lineno"
                   24465:   # Exit status is that of the last command.
                   24466:   exit
                   24467: }
1.16      millert  24468:
                   24469:
1.27      millert  24470: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
                   24471:   as_dirname=dirname
                   24472: else
                   24473:   as_dirname=false
                   24474: fi
1.16      millert  24475:
1.27      millert  24476: ECHO_C= ECHO_N= ECHO_T=
                   24477: case `echo -n x` in
                   24478: -n*)
                   24479:   case `echo 'x\c'` in
                   24480:   *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
                   24481:   *)   ECHO_C='\c';;
                   24482:   esac;;
                   24483: *)
                   24484:   ECHO_N='-n';;
                   24485: esac
1.16      millert  24486:
1.27      millert  24487: if expr a : '\(a\)' >/dev/null 2>&1 &&
                   24488:    test "X`expr 00001 : '.*\(...\)'`" = X001; then
                   24489:   as_expr=expr
                   24490: else
                   24491:   as_expr=false
                   24492: fi
1.16      millert  24493:
1.27      millert  24494: rm -f conf$$ conf$$.exe conf$$.file
                   24495: if test -d conf$$.dir; then
                   24496:   rm -f conf$$.dir/conf$$.file
                   24497: else
                   24498:   rm -f conf$$.dir
                   24499:   mkdir conf$$.dir
                   24500: fi
                   24501: echo >conf$$.file
                   24502: if ln -s conf$$.file conf$$ 2>/dev/null; then
                   24503:   as_ln_s='ln -s'
                   24504:   # ... but there are two gotchas:
                   24505:   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
                   24506:   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
                   24507:   # In both cases, we have to default to `cp -p'.
                   24508:   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
                   24509:     as_ln_s='cp -p'
                   24510: elif ln conf$$.file conf$$ 2>/dev/null; then
                   24511:   as_ln_s=ln
                   24512: else
                   24513:   as_ln_s='cp -p'
                   24514: fi
                   24515: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
                   24516: rmdir conf$$.dir 2>/dev/null
1.16      millert  24517:
1.27      millert  24518: if mkdir -p . 2>/dev/null; then
                   24519:   as_mkdir_p=:
                   24520: else
                   24521:   test -d ./-p && rmdir ./-p
                   24522:   as_mkdir_p=false
                   24523: fi
1.16      millert  24524:
1.27      millert  24525: if test -x / >/dev/null 2>&1; then
                   24526:   as_test_x='test -x'
                   24527: else
                   24528:   if ls -dL / >/dev/null 2>&1; then
                   24529:     as_ls_L_option=L
                   24530:   else
                   24531:     as_ls_L_option=
                   24532:   fi
                   24533:   as_test_x='
                   24534:     eval sh -c '\''
                   24535:       if test -d "$1"; then
                   24536:         test -d "$1/.";
                   24537:       else
                   24538:        case $1 in
                   24539:         -*)set "./$1";;
                   24540:        esac;
                   24541:        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
                   24542:        ???[sx]*):;;*)false;;esac;fi
                   24543:     '\'' sh
                   24544:   '
                   24545: fi
                   24546: as_executable_p=$as_test_x
1.16      millert  24547:
1.27      millert  24548: # Sed expression to map a string onto a valid CPP name.
                   24549: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.16      millert  24550:
1.27      millert  24551: # Sed expression to map a string onto a valid variable name.
                   24552: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.16      millert  24553:
1.9       millert  24554:
1.27      millert  24555: exec 6>&1
1.9       millert  24556:
1.27      millert  24557: # Save the log message, to keep $[0] and so on meaningful, and to
                   24558: # report actual input values of CONFIG_FILES etc. instead of their
                   24559: # values after options handling.
                   24560: ac_log="
1.41    ! millert  24561: This file was extended by sudo $as_me 1.7.2p2, which was
1.27      millert  24562: generated by GNU Autoconf 2.61.  Invocation command line was
1.9       millert  24563:
1.27      millert  24564:   CONFIG_FILES    = $CONFIG_FILES
                   24565:   CONFIG_HEADERS  = $CONFIG_HEADERS
                   24566:   CONFIG_LINKS    = $CONFIG_LINKS
                   24567:   CONFIG_COMMANDS = $CONFIG_COMMANDS
                   24568:   $ $0 $@
1.16      millert  24569:
1.27      millert  24570: on `(hostname || uname -n) 2>/dev/null | sed 1q`
                   24571: "
1.9       millert  24572:
1.27      millert  24573: _ACEOF
1.16      millert  24574:
1.27      millert  24575: cat >>$CONFIG_STATUS <<_ACEOF
                   24576: # Files that config.status was made for.
                   24577: config_files="$ac_config_files"
                   24578: config_headers="$ac_config_headers"
1.9       millert  24579:
1.27      millert  24580: _ACEOF
1.9       millert  24581:
1.27      millert  24582: cat >>$CONFIG_STATUS <<\_ACEOF
                   24583: ac_cs_usage="\
                   24584: \`$as_me' instantiates files from templates according to the
                   24585: current configuration.
1.9       millert  24586:
1.27      millert  24587: Usage: $0 [OPTIONS] [FILE]...
1.9       millert  24588:
1.27      millert  24589:   -h, --help       print this help, then exit
                   24590:   -V, --version    print version number and configuration settings, then exit
                   24591:   -q, --quiet      do not print progress messages
                   24592:   -d, --debug      don't remove temporary files
                   24593:       --recheck    update $as_me by reconfiguring in the same conditions
                   24594:   --file=FILE[:TEMPLATE]
                   24595:                   instantiate the configuration file FILE
                   24596:   --header=FILE[:TEMPLATE]
                   24597:                   instantiate the configuration header FILE
1.9       millert  24598:
1.27      millert  24599: Configuration files:
                   24600: $config_files
1.16      millert  24601:
1.27      millert  24602: Configuration headers:
                   24603: $config_headers
1.16      millert  24604:
1.27      millert  24605: Report bugs to <bug-autoconf@gnu.org>."
1.16      millert  24606:
1.27      millert  24607: _ACEOF
                   24608: cat >>$CONFIG_STATUS <<_ACEOF
                   24609: ac_cs_version="\\
1.41    ! millert  24610: sudo config.status 1.7.2p2
1.27      millert  24611: configured by $0, generated by GNU Autoconf 2.61,
                   24612:   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1.9       millert  24613:
1.27      millert  24614: Copyright (C) 2006 Free Software Foundation, Inc.
                   24615: This config.status script is free software; the Free Software Foundation
                   24616: gives unlimited permission to copy, distribute and modify it."
1.9       millert  24617:
1.27      millert  24618: ac_pwd='$ac_pwd'
                   24619: srcdir='$srcdir'
                   24620: _ACEOF
1.9       millert  24621:
1.27      millert  24622: cat >>$CONFIG_STATUS <<\_ACEOF
                   24623: # If no file are specified by the user, then we need to provide default
                   24624: # value.  By we need to know if files were specified by the user.
                   24625: ac_need_defaults=:
                   24626: while test $# != 0
                   24627: do
                   24628:   case $1 in
                   24629:   --*=*)
                   24630:     ac_option=`expr "X$1" : 'X\([^=]*\)='`
                   24631:     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
                   24632:     ac_shift=:
                   24633:     ;;
                   24634:   *)
                   24635:     ac_option=$1
                   24636:     ac_optarg=$2
                   24637:     ac_shift=shift
                   24638:     ;;
                   24639:   esac
1.9       millert  24640:
1.27      millert  24641:   case $ac_option in
                   24642:   # Handling of the options.
                   24643:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   24644:     ac_cs_recheck=: ;;
                   24645:   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
                   24646:     echo "$ac_cs_version"; exit ;;
                   24647:   --debug | --debu | --deb | --de | --d | -d )
                   24648:     debug=: ;;
                   24649:   --file | --fil | --fi | --f )
                   24650:     $ac_shift
                   24651:     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
                   24652:     ac_need_defaults=false;;
                   24653:   --header | --heade | --head | --hea )
                   24654:     $ac_shift
                   24655:     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
                   24656:     ac_need_defaults=false;;
                   24657:   --he | --h)
                   24658:     # Conflict between --help and --header
                   24659:     { echo "$as_me: error: ambiguous option: $1
                   24660: Try \`$0 --help' for more information." >&2
                   24661:    { (exit 1); exit 1; }; };;
                   24662:   --help | --hel | -h )
                   24663:     echo "$ac_cs_usage"; exit ;;
                   24664:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                   24665:   | -silent | --silent | --silen | --sile | --sil | --si | --s)
                   24666:     ac_cs_silent=: ;;
1.9       millert  24667:
1.27      millert  24668:   # This is an error.
                   24669:   -*) { echo "$as_me: error: unrecognized option: $1
                   24670: Try \`$0 --help' for more information." >&2
                   24671:    { (exit 1); exit 1; }; } ;;
1.9       millert  24672:
1.27      millert  24673:   *) ac_config_targets="$ac_config_targets $1"
                   24674:      ac_need_defaults=false ;;
1.9       millert  24675:
1.27      millert  24676:   esac
                   24677:   shift
                   24678: done
1.9       millert  24679:
1.27      millert  24680: ac_configure_extra_args=
1.9       millert  24681:
1.27      millert  24682: if $ac_cs_silent; then
                   24683:   exec 6>/dev/null
                   24684:   ac_configure_extra_args="$ac_configure_extra_args --silent"
                   24685: fi
1.9       millert  24686:
1.27      millert  24687: _ACEOF
                   24688: cat >>$CONFIG_STATUS <<_ACEOF
                   24689: if \$ac_cs_recheck; then
                   24690:   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
                   24691:   CONFIG_SHELL=$SHELL
                   24692:   export CONFIG_SHELL
                   24693:   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
                   24694: fi
1.9       millert  24695:
1.27      millert  24696: _ACEOF
                   24697: cat >>$CONFIG_STATUS <<\_ACEOF
                   24698: exec 5>>config.log
                   24699: {
                   24700:   echo
                   24701:   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
                   24702: ## Running $as_me. ##
                   24703: _ASBOX
                   24704:   echo "$ac_log"
                   24705: } >&5
1.9       millert  24706:
1.27      millert  24707: _ACEOF
                   24708: cat >>$CONFIG_STATUS <<_ACEOF
                   24709: _ACEOF
1.9       millert  24710:
1.27      millert  24711: cat >>$CONFIG_STATUS <<\_ACEOF
1.9       millert  24712:
1.27      millert  24713: # Handling of arguments.
                   24714: for ac_config_target in $ac_config_targets
                   24715: do
                   24716:   case $ac_config_target in
                   24717:     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
                   24718:     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
                   24719:     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
                   24720:     "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
                   24721:     "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
                   24722:     "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
1.37      millert  24723:     "sudoers.ldap.man") CONFIG_FILES="$CONFIG_FILES sudoers.ldap.man" ;;
                   24724:     "sudo_usage.h") CONFIG_FILES="$CONFIG_FILES sudo_usage.h" ;;
1.9       millert  24725:
1.27      millert  24726:   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
                   24727: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
                   24728:    { (exit 1); exit 1; }; };;
                   24729:   esac
                   24730: done
1.9       millert  24731:
                   24732:
1.27      millert  24733: # If the user did not use the arguments to specify the items to instantiate,
                   24734: # then the envvar interface is used.  Set only those that are not.
                   24735: # We use the long form for the default assignment because of an extremely
                   24736: # bizarre bug on SunOS 4.1.3.
                   24737: if $ac_need_defaults; then
                   24738:   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
                   24739:   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
                   24740: fi
1.9       millert  24741:
1.27      millert  24742: # Have a temporary directory for convenience.  Make it in the build tree
                   24743: # simply because there is no reason against having it here, and in addition,
                   24744: # creating and moving files from /tmp can sometimes cause problems.
                   24745: # Hook for its removal unless debugging.
                   24746: # Note that there is a small window in which the directory will not be cleaned:
                   24747: # after its creation but before its name has been assigned to `$tmp'.
                   24748: $debug ||
                   24749: {
                   24750:   tmp=
                   24751:   trap 'exit_status=$?
                   24752:   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
                   24753: ' 0
                   24754:   trap '{ (exit 1); exit 1; }' 1 2 13 15
                   24755: }
                   24756: # Create a (secure) tmp directory for tmp files.
1.9       millert  24757:
1.27      millert  24758: {
                   24759:   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
                   24760:   test -n "$tmp" && test -d "$tmp"
                   24761: }  ||
                   24762: {
                   24763:   tmp=./conf$$-$RANDOM
                   24764:   (umask 077 && mkdir "$tmp")
                   24765: } ||
                   24766: {
                   24767:    echo "$me: cannot create a temporary directory in ." >&2
                   24768:    { (exit 1); exit 1; }
                   24769: }
1.9       millert  24770:
1.27      millert  24771: #
                   24772: # Set up the sed scripts for CONFIG_FILES section.
                   24773: #
1.16      millert  24774:
1.27      millert  24775: # No need to generate the scripts if there are no CONFIG_FILES.
                   24776: # This happens for instance when ./config.status config.h
                   24777: if test -n "$CONFIG_FILES"; then
1.16      millert  24778:
1.27      millert  24779: _ACEOF
1.16      millert  24780:
                   24781:
1.1       millert  24782:
1.27      millert  24783: ac_delim='%!_!# '
                   24784: for ac_last_try in false false false false false :; do
                   24785:   cat >conf$$subs.sed <<_ACEOF
                   24786: SHELL!$SHELL$ac_delim
                   24787: PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
                   24788: PACKAGE_NAME!$PACKAGE_NAME$ac_delim
                   24789: PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
                   24790: PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
                   24791: PACKAGE_STRING!$PACKAGE_STRING$ac_delim
                   24792: PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
                   24793: exec_prefix!$exec_prefix$ac_delim
                   24794: prefix!$prefix$ac_delim
                   24795: program_transform_name!$program_transform_name$ac_delim
                   24796: bindir!$bindir$ac_delim
                   24797: sbindir!$sbindir$ac_delim
                   24798: libexecdir!$libexecdir$ac_delim
                   24799: datarootdir!$datarootdir$ac_delim
                   24800: datadir!$datadir$ac_delim
                   24801: sysconfdir!$sysconfdir$ac_delim
                   24802: sharedstatedir!$sharedstatedir$ac_delim
                   24803: localstatedir!$localstatedir$ac_delim
                   24804: includedir!$includedir$ac_delim
                   24805: oldincludedir!$oldincludedir$ac_delim
                   24806: docdir!$docdir$ac_delim
                   24807: infodir!$infodir$ac_delim
                   24808: htmldir!$htmldir$ac_delim
                   24809: dvidir!$dvidir$ac_delim
                   24810: pdfdir!$pdfdir$ac_delim
                   24811: psdir!$psdir$ac_delim
                   24812: libdir!$libdir$ac_delim
                   24813: localedir!$localedir$ac_delim
                   24814: mandir!$mandir$ac_delim
                   24815: DEFS!$DEFS$ac_delim
                   24816: ECHO_C!$ECHO_C$ac_delim
                   24817: ECHO_N!$ECHO_N$ac_delim
                   24818: ECHO_T!$ECHO_T$ac_delim
                   24819: LIBS!$LIBS$ac_delim
                   24820: build_alias!$build_alias$ac_delim
                   24821: host_alias!$host_alias$ac_delim
                   24822: target_alias!$target_alias$ac_delim
1.39      millert  24823: HAVE_BSM_AUDIT!$HAVE_BSM_AUDIT$ac_delim
1.27      millert  24824: LIBTOOL!$LIBTOOL$ac_delim
                   24825: CFLAGS!$CFLAGS$ac_delim
                   24826: PROGS!$PROGS$ac_delim
                   24827: CPPFLAGS!$CPPFLAGS$ac_delim
                   24828: LDFLAGS!$LDFLAGS$ac_delim
                   24829: SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
                   24830: SUDO_OBJS!$SUDO_OBJS$ac_delim
                   24831: SUDO_LIBS!$SUDO_LIBS$ac_delim
                   24832: NET_LIBS!$NET_LIBS$ac_delim
                   24833: AFS_LIBS!$AFS_LIBS$ac_delim
1.32      millert  24834: GETGROUPS_LIB!$GETGROUPS_LIB$ac_delim
1.27      millert  24835: OSDEFS!$OSDEFS$ac_delim
                   24836: AUTH_OBJS!$AUTH_OBJS$ac_delim
                   24837: MANTYPE!$MANTYPE$ac_delim
                   24838: MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
                   24839: SUDOERS_MODE!$SUDOERS_MODE$ac_delim
                   24840: SUDOERS_UID!$SUDOERS_UID$ac_delim
                   24841: SUDOERS_GID!$SUDOERS_GID$ac_delim
                   24842: DEV!$DEV$ac_delim
1.36      millert  24843: SELINUX!$SELINUX$ac_delim
                   24844: BAMAN!$BAMAN$ac_delim
                   24845: LCMAN!$LCMAN$ac_delim
                   24846: SEMAN!$SEMAN$ac_delim
1.37      millert  24847: devdir!$devdir$ac_delim
1.27      millert  24848: mansectsu!$mansectsu$ac_delim
                   24849: mansectform!$mansectform$ac_delim
                   24850: mansrcdir!$mansrcdir$ac_delim
1.36      millert  24851: NOEXECFILE!$NOEXECFILE$ac_delim
1.27      millert  24852: NOEXECDIR!$NOEXECDIR$ac_delim
                   24853: noexec_file!$noexec_file$ac_delim
                   24854: INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
                   24855: DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
1.37      millert  24856: BSDAUTH_USAGE!$BSDAUTH_USAGE$ac_delim
                   24857: SELINUX_USAGE!$SELINUX_USAGE$ac_delim
                   24858: LDAP!$LDAP$ac_delim
                   24859: LOGINCAP_USAGE!$LOGINCAP_USAGE$ac_delim
1.40      millert  24860: NONUNIX_GROUPS_IMPL!$NONUNIX_GROUPS_IMPL$ac_delim
1.27      millert  24861: timedir!$timedir$ac_delim
                   24862: timeout!$timeout$ac_delim
                   24863: password_timeout!$password_timeout$ac_delim
                   24864: sudo_umask!$sudo_umask$ac_delim
                   24865: passprompt!$passprompt$ac_delim
                   24866: long_otp_prompt!$long_otp_prompt$ac_delim
                   24867: lecture!$lecture$ac_delim
                   24868: logfac!$logfac$ac_delim
                   24869: goodpri!$goodpri$ac_delim
                   24870: badpri!$badpri$ac_delim
                   24871: loglen!$loglen$ac_delim
                   24872: ignore_dot!$ignore_dot$ac_delim
                   24873: mail_no_user!$mail_no_user$ac_delim
                   24874: mail_no_host!$mail_no_host$ac_delim
                   24875: mail_no_perms!$mail_no_perms$ac_delim
                   24876: mailto!$mailto$ac_delim
                   24877: mailsub!$mailsub$ac_delim
                   24878: badpass_message!$badpass_message$ac_delim
                   24879: fqdn!$fqdn$ac_delim
                   24880: runas_default!$runas_default$ac_delim
                   24881: env_editor!$env_editor$ac_delim
                   24882: passwd_tries!$passwd_tries$ac_delim
                   24883: _ACEOF
1.9       millert  24884:
1.27      millert  24885:   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
                   24886:     break
                   24887:   elif $ac_last_try; then
                   24888:     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
                   24889: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
                   24890:    { (exit 1); exit 1; }; }
                   24891:   else
                   24892:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   24893:   fi
                   24894: done
1.9       millert  24895:
1.27      millert  24896: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
                   24897: if test -n "$ac_eof"; then
                   24898:   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
                   24899:   ac_eof=`expr $ac_eof + 1`
                   24900: fi
1.16      millert  24901:
1.27      millert  24902: cat >>$CONFIG_STATUS <<_ACEOF
                   24903: cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
                   24904: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
                   24905: _ACEOF
                   24906: sed '
                   24907: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
                   24908: s/^/s,@/; s/!/@,|#_!!_#|/
                   24909: :n
                   24910: t n
                   24911: s/'"$ac_delim"'$/,g/; t
                   24912: s/$/\\/; p
                   24913: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
                   24914: ' >>$CONFIG_STATUS <conf$$subs.sed
                   24915: rm -f conf$$subs.sed
                   24916: cat >>$CONFIG_STATUS <<_ACEOF
                   24917: CEOF$ac_eof
                   24918: _ACEOF
1.1       millert  24919:
                   24920:
1.27      millert  24921: ac_delim='%!_!# '
                   24922: for ac_last_try in false false false false false :; do
                   24923:   cat >conf$$subs.sed <<_ACEOF
1.40      millert  24924: tty_tickets!$tty_tickets$ac_delim
1.39      millert  24925: insults!$insults$ac_delim
1.37      millert  24926: root_sudo!$root_sudo$ac_delim
                   24927: path_info!$path_info$ac_delim
                   24928: ldap_conf!$ldap_conf$ac_delim
                   24929: ldap_secret!$ldap_secret$ac_delim
                   24930: nsswitch_conf!$nsswitch_conf$ac_delim
1.39      millert  24931: netsvc_conf!$netsvc_conf$ac_delim
1.41    ! millert  24932: secure_path!$secure_path$ac_delim
1.37      millert  24933: EGREPPROG!$EGREPPROG$ac_delim
                   24934: CC!$CC$ac_delim
                   24935: ac_ct_CC!$ac_ct_CC$ac_delim
1.36      millert  24936: EXEEXT!$EXEEXT$ac_delim
                   24937: OBJEXT!$OBJEXT$ac_delim
                   24938: CPP!$CPP$ac_delim
                   24939: build!$build$ac_delim
                   24940: build_cpu!$build_cpu$ac_delim
1.32      millert  24941: build_vendor!$build_vendor$ac_delim
1.27      millert  24942: build_os!$build_os$ac_delim
                   24943: host!$host$ac_delim
                   24944: host_cpu!$host_cpu$ac_delim
                   24945: host_vendor!$host_vendor$ac_delim
                   24946: host_os!$host_os$ac_delim
                   24947: SED!$SED$ac_delim
                   24948: GREP!$GREP$ac_delim
                   24949: EGREP!$EGREP$ac_delim
                   24950: LN_S!$LN_S$ac_delim
                   24951: ECHO!$ECHO$ac_delim
                   24952: AR!$AR$ac_delim
                   24953: RANLIB!$RANLIB$ac_delim
                   24954: STRIP!$STRIP$ac_delim
1.36      millert  24955: DSYMUTIL!$DSYMUTIL$ac_delim
                   24956: NMEDIT!$NMEDIT$ac_delim
1.27      millert  24957: UNAMEPROG!$UNAMEPROG$ac_delim
                   24958: TRPROG!$TRPROG$ac_delim
                   24959: NROFFPROG!$NROFFPROG$ac_delim
                   24960: YACC!$YACC$ac_delim
                   24961: YFLAGS!$YFLAGS$ac_delim
1.40      millert  24962: FLEX!$FLEX$ac_delim
1.27      millert  24963: LIBOBJS!$LIBOBJS$ac_delim
                   24964: KRB5CONFIG!$KRB5CONFIG$ac_delim
                   24965: LTLIBOBJS!$LTLIBOBJS$ac_delim
                   24966: _ACEOF
1.9       millert  24967:
1.41    ! millert  24968:   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 42; then
1.27      millert  24969:     break
                   24970:   elif $ac_last_try; then
                   24971:     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
                   24972: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
                   24973:    { (exit 1); exit 1; }; }
                   24974:   else
                   24975:     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
                   24976:   fi
                   24977: done
1.1       millert  24978:
1.27      millert  24979: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
                   24980: if test -n "$ac_eof"; then
                   24981:   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
                   24982:   ac_eof=`expr $ac_eof + 1`
                   24983: fi
1.9       millert  24984:
1.27      millert  24985: cat >>$CONFIG_STATUS <<_ACEOF
                   24986: cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
                   24987: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
                   24988: _ACEOF
                   24989: sed '
                   24990: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
                   24991: s/^/s,@/; s/!/@,|#_!!_#|/
                   24992: :n
                   24993: t n
                   24994: s/'"$ac_delim"'$/,g/; t
                   24995: s/$/\\/; p
                   24996: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
                   24997: ' >>$CONFIG_STATUS <conf$$subs.sed
                   24998: rm -f conf$$subs.sed
                   24999: cat >>$CONFIG_STATUS <<_ACEOF
                   25000: :end
                   25001: s/|#_!!_#|//g
                   25002: CEOF$ac_eof
                   25003: _ACEOF
1.1       millert  25004:
                   25005:
1.27      millert  25006: # VPATH may cause trouble with some makes, so we remove $(srcdir),
                   25007: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
                   25008: # trailing colons and then remove the whole line if VPATH becomes empty
                   25009: # (actually we leave an empty line to preserve line numbers).
                   25010: if test "x$srcdir" = x.; then
                   25011:   ac_vpsub='/^[         ]*VPATH[        ]*=/{
                   25012: s/:*\$(srcdir):*/:/
                   25013: s/:*\${srcdir}:*/:/
                   25014: s/:*@srcdir@:*/:/
                   25015: s/^\([^=]*=[    ]*\):*/\1/
                   25016: s/:*$//
                   25017: s/^[^=]*=[      ]*$//
                   25018: }'
                   25019: fi
1.1       millert  25020:
1.27      millert  25021: cat >>$CONFIG_STATUS <<\_ACEOF
                   25022: fi # test -n "$CONFIG_FILES"
1.16      millert  25023:
                   25024:
1.27      millert  25025: for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
                   25026: do
                   25027:   case $ac_tag in
                   25028:   :[FHLC]) ac_mode=$ac_tag; continue;;
                   25029:   esac
                   25030:   case $ac_mode$ac_tag in
                   25031:   :[FHL]*:*);;
                   25032:   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
                   25033: echo "$as_me: error: Invalid tag $ac_tag." >&2;}
                   25034:    { (exit 1); exit 1; }; };;
                   25035:   :[FH]-) ac_tag=-:-;;
                   25036:   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
                   25037:   esac
                   25038:   ac_save_IFS=$IFS
                   25039:   IFS=:
                   25040:   set x $ac_tag
                   25041:   IFS=$ac_save_IFS
                   25042:   shift
                   25043:   ac_file=$1
                   25044:   shift
1.16      millert  25045:
1.27      millert  25046:   case $ac_mode in
                   25047:   :L) ac_source=$1;;
                   25048:   :[FH])
                   25049:     ac_file_inputs=
                   25050:     for ac_f
                   25051:     do
                   25052:       case $ac_f in
                   25053:       -) ac_f="$tmp/stdin";;
                   25054:       *) # Look for the file first in the build tree, then in the source tree
                   25055:         # (if the path is not absolute).  The absolute path cannot be DOS-style,
                   25056:         # because $ac_f cannot contain `:'.
                   25057:         test -f "$ac_f" ||
                   25058:           case $ac_f in
                   25059:           [\\/$]*) false;;
                   25060:           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
                   25061:           esac ||
                   25062:           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
                   25063: echo "$as_me: error: cannot find input file: $ac_f" >&2;}
                   25064:    { (exit 1); exit 1; }; };;
                   25065:       esac
                   25066:       ac_file_inputs="$ac_file_inputs $ac_f"
                   25067:     done
1.1       millert  25068:
1.27      millert  25069:     # Let's still pretend it is `configure' which instantiates (i.e., don't
                   25070:     # use $as_me), people would be surprised to read:
                   25071:     #    /* config.h.  Generated by config.status.  */
                   25072:     configure_input="Generated from "`IFS=:
                   25073:          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
                   25074:     if test x"$ac_file" != x-; then
                   25075:       configure_input="$ac_file.  $configure_input"
                   25076:       { echo "$as_me:$LINENO: creating $ac_file" >&5
                   25077: echo "$as_me: creating $ac_file" >&6;}
                   25078:     fi
1.1       millert  25079:
1.27      millert  25080:     case $ac_tag in
                   25081:     *:-:* | *:-) cat >"$tmp/stdin";;
                   25082:     esac
                   25083:     ;;
                   25084:   esac
1.1       millert  25085:
1.27      millert  25086:   ac_dir=`$as_dirname -- "$ac_file" ||
                   25087: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   25088:         X"$ac_file" : 'X\(//\)[^/]' \| \
                   25089:         X"$ac_file" : 'X\(//\)$' \| \
                   25090:         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
                   25091: echo X"$ac_file" |
                   25092:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   25093:            s//\1/
                   25094:            q
                   25095:          }
                   25096:          /^X\(\/\/\)[^/].*/{
                   25097:            s//\1/
                   25098:            q
                   25099:          }
                   25100:          /^X\(\/\/\)$/{
                   25101:            s//\1/
                   25102:            q
                   25103:          }
                   25104:          /^X\(\/\).*/{
                   25105:            s//\1/
                   25106:            q
                   25107:          }
                   25108:          s/.*/./; q'`
                   25109:   { as_dir="$ac_dir"
                   25110:   case $as_dir in #(
                   25111:   -*) as_dir=./$as_dir;;
                   25112:   esac
                   25113:   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
                   25114:     as_dirs=
                   25115:     while :; do
                   25116:       case $as_dir in #(
                   25117:       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
                   25118:       *) as_qdir=$as_dir;;
                   25119:       esac
                   25120:       as_dirs="'$as_qdir' $as_dirs"
                   25121:       as_dir=`$as_dirname -- "$as_dir" ||
                   25122: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   25123:         X"$as_dir" : 'X\(//\)[^/]' \| \
                   25124:         X"$as_dir" : 'X\(//\)$' \| \
                   25125:         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
                   25126: echo X"$as_dir" |
                   25127:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   25128:            s//\1/
                   25129:            q
                   25130:          }
                   25131:          /^X\(\/\/\)[^/].*/{
                   25132:            s//\1/
                   25133:            q
                   25134:          }
                   25135:          /^X\(\/\/\)$/{
                   25136:            s//\1/
                   25137:            q
                   25138:          }
                   25139:          /^X\(\/\).*/{
                   25140:            s//\1/
                   25141:            q
                   25142:          }
                   25143:          s/.*/./; q'`
                   25144:       test -d "$as_dir" && break
                   25145:     done
                   25146:     test -z "$as_dirs" || eval "mkdir $as_dirs"
                   25147:   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
                   25148: echo "$as_me: error: cannot create directory $as_dir" >&2;}
                   25149:    { (exit 1); exit 1; }; }; }
                   25150:   ac_builddir=.
1.9       millert  25151:
1.27      millert  25152: case "$ac_dir" in
                   25153: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   25154: *)
                   25155:   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
                   25156:   # A ".." for each directory in $ac_dir_suffix.
                   25157:   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
                   25158:   case $ac_top_builddir_sub in
                   25159:   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
                   25160:   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
                   25161:   esac ;;
                   25162: esac
                   25163: ac_abs_top_builddir=$ac_pwd
                   25164: ac_abs_builddir=$ac_pwd$ac_dir_suffix
                   25165: # for backward compatibility:
                   25166: ac_top_builddir=$ac_top_build_prefix
1.1       millert  25167:
1.27      millert  25168: case $srcdir in
                   25169:   .)  # We are building in place.
                   25170:     ac_srcdir=.
                   25171:     ac_top_srcdir=$ac_top_builddir_sub
                   25172:     ac_abs_top_srcdir=$ac_pwd ;;
                   25173:   [\\/]* | ?:[\\/]* )  # Absolute name.
                   25174:     ac_srcdir=$srcdir$ac_dir_suffix;
                   25175:     ac_top_srcdir=$srcdir
                   25176:     ac_abs_top_srcdir=$srcdir ;;
                   25177:   *) # Relative name.
                   25178:     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
                   25179:     ac_top_srcdir=$ac_top_build_prefix$srcdir
                   25180:     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
                   25181: esac
                   25182: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1       millert  25183:
                   25184:
1.27      millert  25185:   case $ac_mode in
                   25186:   :F)
                   25187:   #
                   25188:   # CONFIG_FILE
                   25189:   #
1.1       millert  25190:
1.27      millert  25191: _ACEOF
1.1       millert  25192:
1.27      millert  25193: cat >>$CONFIG_STATUS <<\_ACEOF
                   25194: # If the template does not know about datarootdir, expand it.
                   25195: # FIXME: This hack should be removed a few years after 2.60.
                   25196: ac_datarootdir_hack=; ac_datarootdir_seen=
                   25197:
                   25198: case `sed -n '/datarootdir/ {
                   25199:   p
                   25200:   q
                   25201: }
                   25202: /@datadir@/p
                   25203: /@docdir@/p
                   25204: /@infodir@/p
                   25205: /@localedir@/p
                   25206: /@mandir@/p
                   25207: ' $ac_file_inputs` in
                   25208: *datarootdir*) ac_datarootdir_seen=yes;;
                   25209: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
                   25210:   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
                   25211: echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
                   25212: _ACEOF
                   25213: cat >>$CONFIG_STATUS <<_ACEOF
                   25214:   ac_datarootdir_hack='
                   25215:   s&@datadir@&$datadir&g
                   25216:   s&@docdir@&$docdir&g
                   25217:   s&@infodir@&$infodir&g
                   25218:   s&@localedir@&$localedir&g
                   25219:   s&@mandir@&$mandir&g
                   25220:     s&\\\${datarootdir}&$datarootdir&g' ;;
                   25221: esac
                   25222: _ACEOF
1.1       millert  25223:
1.27      millert  25224: # Neutralize VPATH when `$srcdir' = `.'.
                   25225: # Shell code in configure.ac might set extrasub.
                   25226: # FIXME: do we really want to maintain this feature?
                   25227: cat >>$CONFIG_STATUS <<_ACEOF
                   25228:   sed "$ac_vpsub
                   25229: $extrasub
                   25230: _ACEOF
                   25231: cat >>$CONFIG_STATUS <<\_ACEOF
                   25232: :t
                   25233: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
                   25234: s&@configure_input@&$configure_input&;t t
                   25235: s&@top_builddir@&$ac_top_builddir_sub&;t t
                   25236: s&@srcdir@&$ac_srcdir&;t t
                   25237: s&@abs_srcdir@&$ac_abs_srcdir&;t t
                   25238: s&@top_srcdir@&$ac_top_srcdir&;t t
                   25239: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
                   25240: s&@builddir@&$ac_builddir&;t t
                   25241: s&@abs_builddir@&$ac_abs_builddir&;t t
                   25242: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
                   25243: $ac_datarootdir_hack
                   25244: " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
                   25245:
                   25246: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
                   25247:   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
                   25248:   { ac_out=`sed -n '/^[         ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
                   25249:   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
                   25250: which seems to be undefined.  Please make sure it is defined." >&5
                   25251: echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
                   25252: which seems to be undefined.  Please make sure it is defined." >&2;}
1.1       millert  25253:
1.27      millert  25254:   rm -f "$tmp/stdin"
                   25255:   case $ac_file in
                   25256:   -) cat "$tmp/out"; rm -f "$tmp/out";;
                   25257:   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
1.25      millert  25258:   esac
1.27      millert  25259:  ;;
                   25260:   :H)
                   25261:   #
                   25262:   # CONFIG_HEADER
                   25263:   #
                   25264: _ACEOF
                   25265:
                   25266: # Transform confdefs.h into a sed script `conftest.defines', that
                   25267: # substitutes the proper values into config.h.in to produce config.h.
                   25268: rm -f conftest.defines conftest.tail
                   25269: # First, append a space to every undef/define line, to ease matching.
                   25270: echo 's/$/ /' >conftest.defines
                   25271: # Then, protect against being on the right side of a sed subst, or in
                   25272: # an unquoted here document, in config.status.  If some macros were
                   25273: # called several times there might be several #defines for the same
                   25274: # symbol, which is useless.  But do not sort them, since the last
                   25275: # AC_DEFINE must be honored.
                   25276: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
                   25277: # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
                   25278: # NAME is the cpp macro being defined, VALUE is the value it is being given.
                   25279: # PARAMS is the parameter list in the macro definition--in most cases, it's
                   25280: # just an empty string.
                   25281: ac_dA='s,^\\([  #]*\\)[^        ]*\\([  ]*'
                   25282: ac_dB='\\)[     (].*,\\1define\\2'
                   25283: ac_dC=' '
                   25284: ac_dD=' ,'
1.1       millert  25285:
1.27      millert  25286: uniq confdefs.h |
                   25287:   sed -n '
                   25288:        t rset
                   25289:        :rset
                   25290:        s/^[     ]*#[    ]*define[       ][      ]*//
                   25291:        t ok
                   25292:        d
                   25293:        :ok
                   25294:        s/[\\&,]/\\&/g
                   25295:        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
                   25296:        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
                   25297:   ' >>conftest.defines
1.1       millert  25298:
1.27      millert  25299: # Remove the space that was appended to ease matching.
                   25300: # Then replace #undef with comments.  This is necessary, for
                   25301: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   25302: # on some systems where configure will not decide to define it.
                   25303: # (The regexp can be short, since the line contains either #define or #undef.)
                   25304: echo 's/ $//
                   25305: s,^[    #]*u.*,/* & */,' >>conftest.defines
                   25306:
                   25307: # Break up conftest.defines:
                   25308: ac_max_sed_lines=50
                   25309:
                   25310: # First sed command is:         sed -f defines.sed $ac_file_inputs >"$tmp/out1"
                   25311: # Second one is:        sed -f defines.sed "$tmp/out1" >"$tmp/out2"
                   25312: # Third one will be:    sed -f defines.sed "$tmp/out2" >"$tmp/out1"
                   25313: # et cetera.
                   25314: ac_in='$ac_file_inputs'
                   25315: ac_out='"$tmp/out1"'
                   25316: ac_nxt='"$tmp/out2"'
1.1       millert  25317:
1.27      millert  25318: while :
                   25319: do
                   25320:   # Write a here document:
                   25321:     cat >>$CONFIG_STATUS <<_ACEOF
                   25322:     # First, check the format of the line:
                   25323:     cat >"\$tmp/defines.sed" <<\\CEOF
                   25324: /^[     ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
                   25325: /^[     ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
                   25326: b
                   25327: :def
                   25328: _ACEOF
                   25329:   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
                   25330:   echo 'CEOF
                   25331:     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
                   25332:   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
                   25333:   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
                   25334:   grep . conftest.tail >/dev/null || break
                   25335:   rm -f conftest.defines
                   25336:   mv conftest.tail conftest.defines
                   25337: done
                   25338: rm -f conftest.defines conftest.tail
1.9       millert  25339:
1.27      millert  25340: echo "ac_result=$ac_in" >>$CONFIG_STATUS
                   25341: cat >>$CONFIG_STATUS <<\_ACEOF
                   25342:   if test x"$ac_file" != x-; then
                   25343:     echo "/* $configure_input  */" >"$tmp/config.h"
                   25344:     cat "$ac_result" >>"$tmp/config.h"
                   25345:     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
                   25346:       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
                   25347: echo "$as_me: $ac_file is unchanged" >&6;}
                   25348:     else
                   25349:       rm -f $ac_file
                   25350:       mv "$tmp/config.h" $ac_file
                   25351:     fi
                   25352:   else
                   25353:     echo "/* $configure_input  */"
                   25354:     cat "$ac_result"
                   25355:   fi
                   25356:   rm -f "$tmp/out12"
                   25357: # Compute $ac_file's index in $config_headers.
1.36      millert  25358: _am_arg=$ac_file
1.27      millert  25359: _am_stamp_count=1
                   25360: for _am_header in $config_headers :; do
                   25361:   case $_am_header in
1.36      millert  25362:     $_am_arg | $_am_arg:* )
1.27      millert  25363:       break ;;
                   25364:     * )
                   25365:       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
                   25366:   esac
                   25367: done
1.36      millert  25368: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
                   25369: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
                   25370:         X"$_am_arg" : 'X\(//\)[^/]' \| \
                   25371:         X"$_am_arg" : 'X\(//\)$' \| \
                   25372:         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
                   25373: echo X"$_am_arg" |
1.27      millert  25374:     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
                   25375:            s//\1/
                   25376:            q
                   25377:          }
                   25378:          /^X\(\/\/\)[^/].*/{
                   25379:            s//\1/
                   25380:            q
                   25381:          }
                   25382:          /^X\(\/\/\)$/{
                   25383:            s//\1/
                   25384:            q
                   25385:          }
                   25386:          /^X\(\/\).*/{
                   25387:            s//\1/
                   25388:            q
                   25389:          }
                   25390:          s/.*/./; q'`/stamp-h$_am_stamp_count
                   25391:  ;;
1.9       millert  25392:
                   25393:
1.25      millert  25394:   esac
1.1       millert  25395:
1.27      millert  25396: done # for ac_tag
                   25397:
1.1       millert  25398:
1.9       millert  25399: { (exit 0); exit 0; }
1.16      millert  25400: _ACEOF
1.1       millert  25401: chmod +x $CONFIG_STATUS
1.9       millert  25402: ac_clean_files=$ac_clean_files_save
1.1       millert  25403:
1.16      millert  25404:
1.9       millert  25405: # configure is writing to config.log, and then calls config.status.
                   25406: # config.status does its own redirection, appending to config.log.
                   25407: # Unfortunately, on DOS this fails, as config.log is still kept open
                   25408: # by configure, so config.status won't be able to write to it; its
                   25409: # output is simply discarded.  So we exec the FD to /dev/null,
                   25410: # effectively closing config.log, so it can be properly (re)opened and
                   25411: # appended to by config.status.  When coming back to configure, we
                   25412: # need to make the FD available again.
                   25413: if test "$no_create" != yes; then
                   25414:   ac_cs_success=:
1.16      millert  25415:   ac_config_status_args=
                   25416:   test "$silent" = yes &&
                   25417:     ac_config_status_args="$ac_config_status_args --quiet"
1.9       millert  25418:   exec 5>/dev/null
1.16      millert  25419:   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.9       millert  25420:   exec 5>>config.log
                   25421:   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
                   25422:   # would make configure fail if this is the last instruction.
                   25423:   $ac_cs_success || { (exit 1); exit 1; }
                   25424: fi
1.1       millert  25425:
1.16      millert  25426:
1.1       millert  25427: if test "$with_pam" = "yes"; then
                   25428:     case $host in
                   25429:        *-*-linux*)
1.17      millert  25430:            { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
                   25431: echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
1.1       millert  25432:            ;;
                   25433:     esac
                   25434: fi
1.40      millert  25435:
                   25436:
1.39      millert  25437:
                   25438:
1.37      millert  25439:
                   25440:
                   25441:
                   25442:
                   25443:
                   25444:
                   25445:
                   25446:
                   25447:
                   25448:
1.36      millert  25449:
                   25450:
1.34      millert  25451:
                   25452:
1.32      millert  25453:
                   25454:
1.31      millert  25455:
                   25456:
1.23      millert  25457:
                   25458:
                   25459:
                   25460:
                   25461:
                   25462:
                   25463:
                   25464:
                   25465:
                   25466:
                   25467:
                   25468:
                   25469:
                   25470:
                   25471:
                   25472:
                   25473:
                   25474:
                   25475:
                   25476:
                   25477:
                   25478:
                   25479:
                   25480:
                   25481:
                   25482:
                   25483:
                   25484:
                   25485:
                   25486:
                   25487:
                   25488:
                   25489:
                   25490:
                   25491:
                   25492:
                   25493:
                   25494:
                   25495:
                   25496:
                   25497:
                   25498:
                   25499:
                   25500:
                   25501:
                   25502:
                   25503:
                   25504:
                   25505:
                   25506:
                   25507:
                   25508:
                   25509:
                   25510:
                   25511:
                   25512:
                   25513:
                   25514:
                   25515:
                   25516:
                   25517:
                   25518:
                   25519:
                   25520:
                   25521:
                   25522:
                   25523:
                   25524:
                   25525:
                   25526:
                   25527:
                   25528:
                   25529:
                   25530:
                   25531:
                   25532:
                   25533:
                   25534:
                   25535:
                   25536:
                   25537:
                   25538:
                   25539:
                   25540:
                   25541:
                   25542:
                   25543:
                   25544:
                   25545:
                   25546:
                   25547:
                   25548:
                   25549:
                   25550:
                   25551:
                   25552:
                   25553:
                   25554:
                   25555:
                   25556:
                   25557:
                   25558:
                   25559:
                   25560:
                   25561:
                   25562:
                   25563:
                   25564:
                   25565:
                   25566:
                   25567:
                   25568:
                   25569:
                   25570:
                   25571:
                   25572:
                   25573:
                   25574:
                   25575:
                   25576:
                   25577:
                   25578:
                   25579:
                   25580:
1.16      millert  25581:
                   25582:
                   25583:
                   25584:
                   25585:
                   25586:
                   25587:
                   25588:
                   25589:
                   25590:
                   25591:
                   25592:
                   25593:
                   25594:
1.9       millert  25595: